[SOLVED] container's files and directory locked

AxelTwin

Well-Known Member
Oct 10, 2017
126
5
58
38
Hi,
Ia m having trouble with a container. it looks like I have no permissions on it.
cannot log into it, and here is what I get when I try to backup:

Code:
INFO: starting new backup job: vzdump 107 --storage bkp-storage --node proxmox-2 --compress lzo --mode snapshot --remove 0
INFO: Starting Backup of VM 107 (lxc)
INFO: Backup started at 2019-07-04 11:46:00
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: BKP.serveur.nissou-architectes.fr
INFO: creating archive '/mnt/pve/bkp-storage/dump/vzdump-lxc-107-2019_07_04-11_46_00.tar.lzo'
INFO: tar: ./run/sudo: Cannot open: Permission denied
INFO: tar: ./etc/ufw/after.rules: Cannot open: Permission denied
INFO: tar: ./etc/ufw/user6.rules: Cannot open: Permission denied
INFO: tar: ./etc/ufw/after6.rules: Cannot open: Permission denied
INFO: tar: ./etc/ufw/before6.rules: Cannot open: Permission denied
INFO: tar: ./etc/ufw/before.init: Cannot open: Permission denied
INFO: tar: ./etc/ufw/after.init: Cannot open: Permission denied
INFO: tar: ./etc/ufw/user.rules: Cannot open: Permission denied
INFO: tar: ./etc/ufw/before.rules: Cannot open: Permission denied
INFO: tar: ./etc/security/opasswd: Cannot open: Permission denied
INFO: tar: ./etc/sudoers.d/README: Cannot open: Permission denied
INFO: tar: ./etc/shadow-: Cannot open: Permission denied
INFO: tar: ./etc/.pwd.lock: Cannot open: Permission denied
INFO: tar: ./etc/redis/redis.conf.bak: Cannot open: Permission denied
INFO: tar: ./etc/redis/redis.conf: Cannot open: Permission denied
INFO: tar: ./etc/gshadow-: Cannot open: Permission denied
INFO: tar: ./etc/shadow: Cannot open: Permission denied
INFO: tar: ./etc/mysql/debian.cnf: Cannot open: Permission denied
INFO: tar: ./etc/gshadow: Cannot open: Permission denied
INFO: tar: ./etc/ssh/ssh_host_dsa_key: Cannot open: Permission denied
INFO: tar: ./etc/ssh/ssh_host_ed25519_key: Cannot open: Permission denied
INFO: tar: ./etc/ssh/ssh_host_rsa_key: Cannot open: Permission denied
INFO: tar: ./etc/ssh/ssh_host_ecdsa_key: Cannot open: Permission denied
INFO: tar: ./etc/sudoers: Cannot open: Permission denied
INFO: tar: ./etc/apparmor.d/cache/sbin.dhclient: Cannot open: Permission denied
INFO: tar: ./etc/apparmor.d/cache/usr.sbin.mysqld: Cannot open: Permission denied
INFO: tar: ./etc/apparmor.d/cache/usr.bin.man: Cannot open: Permission denied
INFO: tar: ./etc/apparmor.d/cache/usr.sbin.tcpdump: Cannot open: Permission denied
INFO: tar: ./etc/letsencrypt/archive: Cannot open: Permission denied
INFO: tar: ./etc/letsencrypt/keys: Cannot open: Permission denied
INFO: tar: ./etc/letsencrypt/live: Cannot open: Permission denied
INFO: tar: ./etc/letsencrypt/accounts: Cannot open: Permission denied
INFO: tar: ./etc/ssl/private: Cannot open: Permission denied
INFO: tar: ./home/sam/.cache: Cannot open: Permission denied
INFO: tar: ./root: Cannot open: Permission denied
INFO: tar: ./var/nc_data: Cannot open: Permission denied
INFO: tar: ./var/mail/root: Cannot open: Permission denied
INFO: tar: ./var/lib/mysql/ibdata1: Cannot open: Permission denied
INFO: tar: ./var/lib/mysql/ib_logfile1: Cannot open: Permission denied
INFO: tar: ./var/lib/mysql/performance_schema: Cannot open: Permission denied
INFO: tar: ./var/lib/mysql/multi-master.info: Cannot open: Permission denied
INFO: tar: ./var/lib/mysql/ibtmp1: Cannot open: Permission denied
INFO: tar: ./var/lib/mysql/mysql: Cannot open: Permission denied
INFO: tar: ./var/lib/mysql/nextcloud: Cannot open: Permission denied
INFO: tar: ./var/lib/mysql/ib_buffer_pool: Cannot open: Permission denied
INFO: tar: ./var/lib/mysql/aria_log.00000001: Cannot open: Permission denied
INFO: tar: ./var/lib/mysql/aria_log_control: Cannot open: Permission denied
INFO: tar: ./var/lib/mysql/ib_logfile0: Cannot open: Permission denied
INFO: tar: ./var/lib/mysql/mysql_upgrade_info: Cannot open: Permission denied
INFO: tar: ./var/lib/apt/lists/lock: Cannot open: Permission denied
INFO: tar: ./var/lib/apt/lists/partial: Cannot open: Permission denied
INFO: tar: ./var/lib/mlocate/mlocate.db: Cannot open: Permission denied
INFO: tar: ./var/lib/redis: Cannot open: Permission denied
INFO: tar: ./var/lib/dpkg/triggers/Lock: Cannot open: Permission denied
INFO: tar: ./var/lib/dpkg/lock: Cannot open: Permission denied
INFO: tar: ./var/lib/dpkg/lock-frontend: Cannot open: Permission denied
INFO: tar: ./var/lib/php/sessions: Cannot open: Permission denied
INFO: tar: ./var/lib/postfix/master.lock: Cannot open: Permission denied
INFO: tar: ./var/www/html/nextcloud/config/config.php: Cannot open: Permission denied
INFO: tar: ./var/www/html/nextcloud/config/config.php.bak: Cannot open: Permission denied
INFO: tar: ./var/www/.rnd: Cannot open: Permission denied
INFO: tar: ./var/backups/shadow.bak: Cannot open: Permission denied
INFO: tar: ./var/backups/passwd.bak: Cannot open: Permission denied
INFO: tar: ./var/backups/group.bak: Cannot open: Permission denied
INFO: tar: ./var/backups/gshadow.bak: Cannot open: Permission denied
INFO: tar: ./var/log/auth.log.3.gz: Cannot open: Permission denied
INFO: tar: ./var/log/php7.3-fpm.log.3.gz: Cannot open: Permission denied
INFO: tar: ./var/log/auth.log.2.gz: Cannot open: Permission denied
INFO: tar: ./var/log/php7.3-fpm.log.2.gz: Cannot open: Permission denied
INFO: tar: ./var/log/syslog.3.gz: Cannot open: Permission denied
INFO: tar: ./var/log/syslog.2.gz: Cannot open: Permission denied
INFO: tar: ./var/log/php7.3-fpm.log.5.gz: Cannot open: Permission denied
INFO: tar: ./var/log/syslog.6.gz: Cannot open: Permission denied
INFO: tar: ./var/log/btmp: Cannot open: Permission denied
INFO: tar: ./var/log/auth.log.4.gz: Cannot open: Permission denied
INFO: tar: ./var/log/syslog.7.gz: Cannot open: Permission denied
INFO: tar: ./var/log/php7.3-fpm.log.4.gz: Cannot open: Permission denied
INFO: tar: ./var/log/mysql: Cannot open: Permission denied
INFO: tar: ./var/log/php7.3-fpm.log.6.gz: Cannot open: Permission denied
INFO: tar: ./var/log/syslog.5.gz: Cannot open: Permission denied
INFO: tar: ./var/log/php7.3-fpm.log.10.gz: Cannot open: Permission denied
INFO: tar: ./var/log/syslog.4.gz: Cannot open: Permission denied
INFO: tar: ./var/log/php7.3-fpm.log.7.gz: Cannot open: Permission denied
INFO: tar: ./var/log/mail.log.1: Cannot open: Permission denied
INFO: tar: ./var/log/unattended-upgrades: Cannot open: Permission denied
INFO: tar: ./var/log/php7.3-fpm.log: Cannot open: Permission denied
INFO: tar: ./var/log/redis: Cannot open: Permission denied
INFO: tar: ./var/log/apache2: Cannot open: Permission denied
INFO: tar: ./var/log/mail.log.3.gz: Cannot open: Permission denied
INFO: tar: ./var/log/auth.log.1: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@000586cc5e140753-e4c4fbd541955abb.journal~: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@000586d18e153cb7-a4f65d551f481ccd.journal~: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@00058ad7dad978e8-d731ae9b51c6592c.journal~: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@566eef3462cc4e1bbdb760d09e115ac0-0000000000000001-000586d18e100577.journal: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@2e37a9a554c54379840ee36942669589-0000000000000001-00058af3bf196319.journal: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@000587959ffe1a93-17eb472f754364b2.journal~: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@0005894454235161-14cf837b35efa33a.journal~: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@00058af3bf21a7cc-b5ba656231a780aa.journal~: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@cbee14eb34dc452fa57bfdf1fc967c83-0000000000000001-00058a5dec196561.journal: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@000589139c8d47b6-3c7fca091b229072.journal~: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@00058969174f6dfa-ef9b782e53ee44ac.journal~: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@e77b0dfc62d14d6ab76137fcd6f12155-0000000000000001-0005886455f05c3a.journal: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@0005879c31c5a37f-c330a034b0400700.journal~: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@00058850ab54c09e-46e885ffcd7633e6.journal~: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@00058a5dec204acc-b29f6185d4b0ec7f.journal~: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@0005886455f7ab6a-88ae89acbad765e2.journal~: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@000589d072a7a5a2-81073d8ee468f43a.journal~: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@2e37a9a554c54379840ee36942669589-00000000000160e9-00058b85f2bab847.journal: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/user-1000.journal: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@8cb8992bd3994c9990ec7c6f4eef5290-0000000000015f4d-0005881cfcf89f96.journal: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@9e7cefb75757408aab7ca32e0428e379-0000000000000001-000589691747bdac.journal: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@000587697a6c03a8-f88eb45ecb28b5cc.journal~: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@000588e620700ebd-127428e72cb2148a.journal~: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system.journal: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@bf214674133c4fa2b21bbc43caa451f5-0000000000000001-000589d072a11280.journal: Cannot open: Permission denied
INFO: tar: ./var/log/journal/db91a8d9813048b3b0d9627361bf92a2/system@8cb8992bd3994c9990ec7c6f4eef5290-0000000000000001-0005879c31bed28d.journal: Cannot open: Permission denied
INFO: tar: ./var/log/mail.log.2.gz: Cannot open: Permission denied
INFO: tar: ./var/log/syslog: Cannot open: Permission denied
INFO: tar: ./var/log/php7.3-fpm.log.8.gz: Cannot open: Permission denied
INFO: tar: ./var/log/syslog.1: Cannot open: Permission denied
INFO: tar: ./var/log/auth.log: Cannot open: Permission denied
INFO: tar: ./var/log/tallylog: Cannot open: Permission denied
INFO: tar: ./var/log/php7.3-fpm.log.9.gz: Cannot open: Permission denied
INFO: tar: ./var/log/php7.3-fpm.log.1: Cannot open: Permission denied
INFO: tar: ./var/log/apt/term.log: Cannot open: Permission denied
INFO: tar: ./var/log/apt/term.log.1.gz: Cannot open: Permission denied
INFO: tar: ./var/log/apt/term.log.2.gz: Cannot open: Permission denied
INFO: tar: ./var/log/letsencrypt: Cannot open: Permission denied
INFO: tar: ./var/log/btmp.1: Cannot open: Permission denied
INFO: tar: ./var/log/mail.log: Cannot open: Permission denied
INFO: tar: ./var/log/mail.log.4.gz: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/deferred: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/active: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/bounce: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/saved: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/private: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/hold: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/flush: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/defer: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/trace: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/corrupt: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/incoming: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/public: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/maildrop: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/pid/unix.bounce: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/pid/unix.cleanup: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/pid/master.pid: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/pid/unix.smtp: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/pid/unix.local: Cannot open: Permission denied
INFO: tar: ./var/spool/rsyslog: Cannot open: Permission denied
INFO: tar: ./var/spool/cron/crontabs: Cannot open: Permission denied
INFO: tar: ./var/cache/ldconfig: Cannot open: Permission denied
INFO: tar: ./var/cache/apt/archives/lock: Cannot open: Permission denied
INFO: tar: ./var/cache/apt/archives/partial: Cannot open: Permission denied
INFO: tar: ./var/cache/debconf/passwords.dat: Cannot open: Permission denied
INFO: Total bytes written: 2052730880 (2.0GiB, 124MiB/s)
INFO: tar: Exiting with failure status due to previous errors
ERROR: Backup of VM 107 failed - command 'set -o pipefail && lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar cpf - --totals --one-file-system -p --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-file-ignored' '--warning=no-xattr-write' --one-file-system '--warning=no-file-ignored' '--directory=/var/lib/vz/tmp_backup/vzdumptmp21096' ./etc/vzdump/pct.conf '--directory=/mnt/vzsnap0' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' ./ | lzop >/mnt/pve/bkp-storage/dump/vzdump-lxc-107-2019_07_04-11_46_00.tar.dat' failed: exit code 2
INFO: Failed at 2019-07-04 11:46:25
INFO: Backup job finished with errors
TASK ERROR: job errors
 
oups, found the solution right after I opened this thread.
This was a container I had to write the conf manualy from scratch after a crash.
I set it with unprivileged: 1 and it was supposed to be unprivileged: 0
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!