[GH-ISSUE #1698] Docker permissions question #2525

Closed
opened 2026-03-01 17:59:37 +03:00 by kerem · 2 comments
Owner

Originally created by @ghost on GitHub (Oct 11, 2025).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1698

Originally assigned to: @pirate on GitHub.

Provide a screenshot and describe the bug

After build and start - the archivebox and scheduler containers fail. Rest is running good.

I'm on Synology NAS and so ssh in and using docker directly instead of some Synology manager tool:

docker compose run archivebox init --setup
And this ended the same.

Steps to reproduce

Downloaded the provided docker-compose.yml template and added folder in FS to accomodate some location for it. So basically nothing changed (passwords and default user in ADMIN_USER/PASS).

Logs or errors

ArchiveBox v0.7.3: archivebox init --setup
    > /data

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/logging/config.py", line 573, in configure
    handler = self.configure_handler(handlers[name])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/logging/config.py", line 757, in configure_handler
    result = factory(**kwargs)
             ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/logging/handlers.py", line 155, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding=encoding,
  File "/usr/local/lib/python3.11/logging/handlers.py", line 58, in __init__
    logging.FileHandler.__init__(self, filename, mode=mode,
  File "/usr/local/lib/python3.11/logging/__init__.py", line 1181, in __init__
    StreamHandler.__init__(self, self._open())
                                 ^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/logging/__init__.py", line 1213, in _open
    return open_func(self.baseFilename, self.mode,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/data/logs/errors.log'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/archivebox", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/app/archivebox/cli/__init__.py", line 140, in main
    run_subcommand(
  File "/app/archivebox/cli/__init__.py", line 74, in run_subcommand
    setup_django(in_memory_db=subcommand in fake_db, check_db=cmd_requires_db and not init_pending)
  File "/app/archivebox/config.py", line 1379, in setup_django
    django.setup()
  File "/usr/local/lib/python3.11/site-packages/django/__init__.py", line 19, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/usr/local/lib/python3.11/site-packages/django/utils/log.py", line 75, in configure_logging
    logging_config_func(logging_settings)
  File "/usr/local/lib/python3.11/logging/config.py", line 823, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/local/lib/python3.11/logging/config.py", line 580, in configure
    raise ValueError('Unable to configure handler '
ValueError: Unable to configure handler 'logfile'

ArchiveBox Version

0.7.3

How did you install the version of ArchiveBox you are using?

Docker (or Podman/LXC/K8s/TrueNAS/Proxmox/etc)

What operating system are you running on?

Linux (Ubuntu/Debian/Arch/Alpine/etc.)

What type of drive are you using to store your ArchiveBox data?

  • some of data/ is on a local SSD or NVMe drive
  • some of data/ is on a spinning hard drive or external USB drive
  • some of data/ is on a network mount (e.g. NFS/SMB/Ceph/GlusterFS/etc.)
  • some of data/ is on a FUSE mount (e.g. SSHFS/RClone/S3/B2/Google Drive/Dropbox/etc.)

Docker Compose Configuration

Downloaded the provided docker-compose.yml template

ArchiveBox Configuration

There is none yet created
Originally created by @ghost on GitHub (Oct 11, 2025). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1698 Originally assigned to: @pirate on GitHub. ### Provide a screenshot and describe the bug After build and start - the archivebox and scheduler containers fail. Rest is running good. I'm on Synology NAS and so ssh in and using docker directly instead of some Synology manager tool: `docker compose run archivebox init --setup ` And this ended the same. ### Steps to reproduce ```markdown Downloaded the provided docker-compose.yml template and added folder in FS to accomodate some location for it. So basically nothing changed (passwords and default user in ADMIN_USER/PASS). ``` ### Logs or errors ```shell ArchiveBox v0.7.3: archivebox init --setup > /data Traceback (most recent call last): File "/usr/local/lib/python3.11/logging/config.py", line 573, in configure handler = self.configure_handler(handlers[name]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/logging/config.py", line 757, in configure_handler result = factory(**kwargs) ^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/logging/handlers.py", line 155, in __init__ BaseRotatingHandler.__init__(self, filename, mode, encoding=encoding, File "/usr/local/lib/python3.11/logging/handlers.py", line 58, in __init__ logging.FileHandler.__init__(self, filename, mode=mode, File "/usr/local/lib/python3.11/logging/__init__.py", line 1181, in __init__ StreamHandler.__init__(self, self._open()) ^^^^^^^^^^^^ File "/usr/local/lib/python3.11/logging/__init__.py", line 1213, in _open return open_func(self.baseFilename, self.mode, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: '/data/logs/errors.log' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/bin/archivebox", line 8, in <module> sys.exit(main()) ^^^^^^ File "/app/archivebox/cli/__init__.py", line 140, in main run_subcommand( File "/app/archivebox/cli/__init__.py", line 74, in run_subcommand setup_django(in_memory_db=subcommand in fake_db, check_db=cmd_requires_db and not init_pending) File "/app/archivebox/config.py", line 1379, in setup_django django.setup() File "/usr/local/lib/python3.11/site-packages/django/__init__.py", line 19, in setup configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) File "/usr/local/lib/python3.11/site-packages/django/utils/log.py", line 75, in configure_logging logging_config_func(logging_settings) File "/usr/local/lib/python3.11/logging/config.py", line 823, in dictConfig dictConfigClass(config).configure() File "/usr/local/lib/python3.11/logging/config.py", line 580, in configure raise ValueError('Unable to configure handler ' ValueError: Unable to configure handler 'logfile' ``` ### ArchiveBox Version ```shell 0.7.3 ``` ### How did you install the version of ArchiveBox you are using? Docker (or Podman/LXC/K8s/TrueNAS/Proxmox/etc) ### What operating system are you running on? Linux (Ubuntu/Debian/Arch/Alpine/etc.) ### What type of drive are you using to store your ArchiveBox data? - [x] some of `data/` is on a local SSD or NVMe drive - [ ] some of `data/` is on a spinning hard drive or external USB drive - [ ] some of `data/` is on a network mount (e.g. NFS/SMB/Ceph/GlusterFS/etc.) - [ ] some of `data/` is on a FUSE mount (e.g. SSHFS/RClone/S3/B2/Google Drive/Dropbox/etc.) ### Docker Compose Configuration ```shell Downloaded the provided docker-compose.yml template ``` ### ArchiveBox Configuration ```shell There is none yet created ```
kerem closed this issue 2026-03-01 17:59:38 +03:00
Author
Owner

@pirate commented on GitHub (Oct 12, 2025):

PermissionError: [Errno 13] Permission denied: '/data/logs/errors.log'

It's a permissions issue with your data dir.

Just run this and it will fix it automatically:

chmod -R 777 ./data (outside docker)

<!-- gh-comment-id:3394078973 --> @pirate commented on GitHub (Oct 12, 2025): > `PermissionError: [Errno 13] Permission denied: '/data/logs/errors.log'` It's a permissions issue with your data dir. Just run this and it will fix it automatically: `chmod -R 777 ./data` (outside docker)
Author
Owner

@ghost commented on GitHub (Oct 12, 2025):

Ahh, easy one, should dig deeper on the log.
Kindly thank you for the patience.

Edit: just for the scheduler container is needed the PGID.

Because otherwise: 'OSError: Read crontab archivebox: crontabs/archivebox/: fopen: Permission denied'

So id and find the docker gid.
Putting it in compose solve setting the cron job (so far it does not fail).

<!-- gh-comment-id:3394254804 --> @ghost commented on GitHub (Oct 12, 2025): Ahh, easy one, should dig deeper on the log. Kindly thank you for the patience. Edit: just for the scheduler container is needed the PGID. Because otherwise: 'OSError: Read crontab archivebox: crontabs/archivebox/: fopen: Permission denied' So `id` and find the docker gid. Putting it in compose solve setting the cron job (so far it does not fail).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#2525
No description provided.