Copying tutor gives permission denied

Hi,

I was following this from the docs: Making backups and migrating data — Tutor documentation

On the 3rd step, when I run
rsync -avr "$(tutor config printroot)/" username@server2:/tmp/tutor/

I get permission denied on some files:

rsync: [sender] opendir "/home/testuser/.local/share/tutor/data/caddy/caddy" failed: Permission denied (13)
rsync: [sender] opendir "/home/testuser/.local/share/tutor/data/mongodb/diagnostic.data" failed: Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/WiredTiger": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/WiredTiger.lock": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/WiredTiger.turtle": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/WiredTiger.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/WiredTigerHS.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/_mdb_catalog.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/collection-0-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/collection-11-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/collection-13-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/collection-16-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/collection-2-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/collection-4-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/collection-7-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/collection-9-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/index-1-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/index-10-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/index-12-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/index-14-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/index-15-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/index-17-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/index-18-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/index-3-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/index-5-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/index-6-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/index-8-8890937415215016908.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/mongod.lock": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/sizeStorer.wt": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mongodb/storage.bson": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mysql/ca-key.pem": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mysql/client-key.pem": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mysql/private_key.pem": Permission denied (13)
rsync: [sender] send_files failed to open "/home/testuser/.local/share/tutor/data/mysql/server-key.pem": Permission denied (13)

I did do tutor local stop before copying. Is this a problem or can I proceed without those files?

Hi! As indicated by the banner at the top :point_up: this forum is no longer monitored. It is kept open for reference purposes only. You are strongly encouraged to move your question on the official Open edX forum: https://discuss.openedx.org/

Thanks!

To resolve your issue, run rsync with sudo. This is a mistake in the documentation that will be fixed in the next release.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.