Andrew, different error!

your first mail shows that you have a koha-conf.xml in /etc/koha/sites/library/koha-conf.xml
but not in /etc/koha/sites/koha-conf.xml

So change the first export and try again.

Regards,
Bernardo