[SOLVED] Error: unable to create rrdb stat dir - EACCES: Permission denied - Clean PBS v2 Installation

StackIOI

Member
Nov 9, 2021
11
1
8
50
I'm trying to run PBS v2.x directly in a LXC running Debian 11. Already have a PBS v1.x instance running in another LXC running Debian 10, so I thought to give it a try with the new version... What steps did a take? Here a summary:
  1. create lxc using template debian-11-standard_11.0-1_amd64.tar.gz
  2. resources: arch: amd64 / cores: 2 / hostname: prxmxbs / memory: 2048 / mp0: /media/usb-hdd/pbs,mp=/media/usb-hdd / net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=[redacted],ip=dhcp,type=veth / ostype: debian / rootfs: local-lvm:vm-900-disk-0,size=16G / swap: 1024
  3. options" privileged [also tried unprivileged] / features: none
  4. inside the lxc:
    - wget https://enterprise.proxmox.com/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
    - edit /etc/apt/sources.list.d/pbs-enterprise.list
    #deb https://enterprise.proxmox.com/debian/pbs bullseye pbs-enterprise
    - edit /etc/apt/sources.list
    deb http://download.proxmox.com/debian/pbs bullseye pbs-no-subscription
    - apt update && apt install -y proxmox-backup [also tried with proxmox-backup-server]
  5. tried https://server-ip:8007/ - but got a "ERR_CONNECTION_REFUSED"
Code:
# systemctl status proxmox-backup-proxy.service
* proxmox-backup-proxy.service - Proxmox Backup API Proxy Server
     Loaded: loaded (/lib/systemd/system/proxmox-backup-proxy.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2021-11-09 15:52:12 UTC; 18min ago
    Process: 359 ExecStart=/usr/lib/x86_64-linux-gnu/proxmox-backup/proxmox-backup-proxy (code=exited, status=1/FAILURE)
   Main PID: 359 (code=exited, status=1/FAILURE)
        CPU: 11ms


Nov 09 15:52:12 prxmxbs systemd[1]: proxmox-backup-proxy.service: Scheduled restart job, restart counter is at 5.
Nov 09 15:52:12 prxmxbs systemd[1]: Stopped Proxmox Backup API Proxy Server.
Nov 09 15:52:12 prxmxbs systemd[1]: proxmox-backup-proxy.service: Start request repeated too quickly.
Nov 09 15:52:12 prxmxbs systemd[1]: proxmox-backup-proxy.service: Failed with result 'exit-code'.
Nov 09 15:52:12 prxmxbs systemd[1]: Failed to start Proxmox Backup API Proxy Server.

and...

Code:
# journalctl -b -u proxmox-backup.service -u proxmox-backup-proxy.service
-- Journal begins at Tue 2021-11-09 15:19:20 UTC, ends at Tue 2021-11-09 15:52:50 UTC. --
Nov 09 15:52:10 prxmxbs systemd[1]: Starting Proxmox Backup API Server...
Nov 09 15:52:10 prxmxbs proxmox-backup-api[178]: service is ready
Nov 09 15:52:10 prxmxbs systemd[1]: Started Proxmox Backup API Server.
Nov 09 15:52:10 prxmxbs systemd[1]: Starting Proxmox Backup API Proxy Server...
Nov 09 15:52:10 prxmxbs proxmox-backup-proxy[236]: Error: unable to create rrdb stat dir - EACCES: Permission denied
Nov 09 15:52:10 prxmxbs systemd[1]: proxmox-backup-proxy.service: Main process exited, code=exited, status=1/FAILURE
Nov 09 15:52:10 prxmxbs systemd[1]: proxmox-backup-proxy.service: Failed with result 'exit-code'.
Nov 09 15:52:10 prxmxbs systemd[1]: Failed to start Proxmox Backup API Proxy Server.
Nov 09 15:52:11 prxmxbs systemd[1]: proxmox-backup-proxy.service: Scheduled restart job, restart counter is at 1.
Nov 09 15:52:11 prxmxbs systemd[1]: Stopped Proxmox Backup API Proxy Server.
Nov 09 15:52:11 prxmxbs systemd[1]: Starting Proxmox Backup API Proxy Server...
Nov 09 15:52:11 prxmxbs proxmox-backup-proxy[306]: Error: unable to create rrdb stat dir - EACCES: Permission denied
Nov 09 15:52:11 prxmxbs systemd[1]: proxmox-backup-proxy.service: Main process exited, code=exited, status=1/FAILURE
Nov 09 15:52:11 prxmxbs systemd[1]: proxmox-backup-proxy.service: Failed with result 'exit-code'.
Nov 09 15:52:11 prxmxbs systemd[1]: Failed to start Proxmox Backup API Proxy Server.
Nov 09 15:52:11 prxmxbs systemd[1]: proxmox-backup-proxy.service: Scheduled restart job, restart counter is at 2.
Nov 09 15:52:11 prxmxbs systemd[1]: Stopped Proxmox Backup API Proxy Server.
Nov 09 15:52:11 prxmxbs systemd[1]: Starting Proxmox Backup API Proxy Server...
Nov 09 15:52:11 prxmxbs proxmox-backup-proxy[349]: Error: unable to create rrdb stat dir - EACCES: Permission denied
Nov 09 15:52:11 prxmxbs systemd[1]: proxmox-backup-proxy.service: Main process exited, code=exited, status=1/FAILURE
Nov 09 15:52:11 prxmxbs systemd[1]: proxmox-backup-proxy.service: Failed with result 'exit-code'.
Nov 09 15:52:11 prxmxbs systemd[1]: Failed to start Proxmox Backup API Proxy Server.
Nov 09 15:52:11 prxmxbs systemd[1]: proxmox-backup-proxy.service: Scheduled restart job, restart counter is at 3.
Nov 09 15:52:11 prxmxbs systemd[1]: Stopped Proxmox Backup API Proxy Server.
Nov 09 15:52:11 prxmxbs systemd[1]: Starting Proxmox Backup API Proxy Server...
Nov 09 15:52:11 prxmxbs proxmox-backup-proxy[354]: Error: unable to create rrdb stat dir - EACCES: Permission denied
Nov 09 15:52:11 prxmxbs systemd[1]: proxmox-backup-proxy.service: Main process exited, code=exited, status=1/FAILURE
Nov 09 15:52:11 prxmxbs systemd[1]: proxmox-backup-proxy.service: Failed with result 'exit-code'.
Nov 09 15:52:11 prxmxbs systemd[1]: Failed to start Proxmox Backup API Proxy Server.
Nov 09 15:52:11 prxmxbs systemd[1]: proxmox-backup-proxy.service: Scheduled restart job, restart counter is at 4.
Nov 09 15:52:11 prxmxbs systemd[1]: Stopped Proxmox Backup API Proxy Server.
Nov 09 15:52:11 prxmxbs systemd[1]: Starting Proxmox Backup API Proxy Server...
Nov 09 15:52:11 prxmxbs proxmox-backup-proxy[359]: Error: unable to create rrdb stat dir - EACCES: Permission denied
Nov 09 15:52:11 prxmxbs systemd[1]: proxmox-backup-proxy.service: Main process exited, code=exited, status=1/FAILURE
Nov 09 15:52:11 prxmxbs systemd[1]: proxmox-backup-proxy.service: Failed with result 'exit-code'.
Nov 09 15:52:11 prxmxbs systemd[1]: Failed to start Proxmox Backup API Proxy Server.
Nov 09 15:52:12 prxmxbs systemd[1]: proxmox-backup-proxy.service: Scheduled restart job, restart counter is at 5.
Nov 09 15:52:12 prxmxbs systemd[1]: Stopped Proxmox Backup API Proxy Server.
Nov 09 15:52:12 prxmxbs systemd[1]: proxmox-backup-proxy.service: Start request repeated too quickly.
Nov 09 15:52:12 prxmxbs systemd[1]: proxmox-backup-proxy.service: Failed with result 'exit-code'.
Nov 09 15:52:12 prxmxbs systemd[1]: Failed to start Proxmox Backup API Proxy Server.

Where is that rrdb stat dir supposed to be created and why is it failing? Any help is greatly appreciated!
 
yeah it seems to be a bug in how (or better: where) we create the directory

you can workaround by creating the directory: '/var/lib/proxmox-backup/rrdb' and make it belong to the 'backup' user and group by doing:

Code:
chown backup:backup /var/lib/proxmox-backup/rrdb
 
  • Like
Reactions: maxprox and werter
yeah it seems to be a bug in how (or better: where) we create the directory

you can workaround by creating the directory: '/var/lib/proxmox-backup/rrdb' and make it belong to the 'backup' user and group by doing:

Code:
chown backup:backup /var/lib/proxmox-backup/rrdb
same bug today, and same "Failed to start Proxmox Backup API Proxy Server"
and also this workaround works for me

thanks for the help
 

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!