Skip to content

Unable to create podman container: unable to open database file #457

@Mek101

Description

@Mek101

When I try to create a podman container of wallabag, using quadlets, the creation of the container quickly fails with unable to open database file

I tried setting the database file and it's directory to be owned by nobody, 75533 (the unamed user the file was originally created as?) and the current user invoking the pod, to no avail

The quadlet file:

[Unit]
Description=Wallabag server

# See Quadlet documentation
[Container]
ContainerName=Wallabag
Image=docker.io/wallabag/wallabag
AutoUpdate=registry
NoNewPrivileges=true
# Recommended volume for Wallabag's persistent data such as configuration and SQLite databases
Volume=/srv/www-wallabag/container/data:/var/www/wallabag/data
# Open a port 8081 on the local machine:
PublishPort=127.0.0.1:8081:8000
Environment=TZ=Europe/Rome
Environment=SYMFONY__ENV__SERVER_NAME="localhost:8081"
Environment=SYMFONY__ENV__DOMAIN_NAME="http://localhost:8081/"
Environment=SYMFONY__ENV__LOCALE=it
Environment=PUID=988
Environment=PGID=988

[Install]
# Start by default on boot
WantedBy=multi-user.target default.target

To reproduce, install the quadlet file in ~/.config/containers/systemd/wallabag.service and run systemctl start wallabag
If you want to clearly see the output, use the cmd line generated by systemd with systemctl --user --no-pager cat wallabag

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions