Hotfix: Container crash on startup after upgrading from pre-2.12.0
Fixes a startup crash introduced in v2.12.0 where the container would restart in a loop with:
chown: invalid group: 'bbs-XXXXX:bbs-XXXXX'
What happened
Older versions ran chown -R www-data:www-data /var/bbs/home, changing all home directory ownership to www-data (UID 33). When v2.12.0's new user recreation logic ran, it detected UID 33 from the directory and tried to create SSH users with that UID — which silently failed because UID 33 already belongs to www-data. The subsequent chown with the non-existent username crashed the entrypoint.
Fix
- Detects when a directory's UID already belongs to another system user and allocates a fresh UID instead
- Verifies user creation succeeded before attempting ownership changes
- Uses numeric IDs for
.sshownership to avoid group name lookup failures
Upgrade
docker pull marcpope/borgbackupserver:latest
docker compose up -d