You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The proper folder structure and required files have not been created in the mounted folders even when permissions were correct, this led to many errors including the software not being able to find the SQLite databse, the .env file or the Laravel migration/setup files
Steps to Reproduce the issue
Permission issues
Download the official docker-compose.sqlite.yaml file
Replace named volumes with local folders, i.e. /var/lib/invoiceshelf/{data,modules} owned by your user, root, or any other user for that matter. Even if I made sure it has 777 permissions it didn't work.
Files & folders issues
As changing folder ownership to 82:82 seems to solve the previous issue it's not over, as it seems like the files and folders do not get created in mounted rather than named volumes, thus files like the SQLite database or .env file HAVE to be created manually for the software to be able to find and edit them.
Expected behavior
The software installing normally like with named volumes
Actual behavior
The software fails due to permission and file ownership issues and if that gets solved it is unable to install due to it missing critical files.
InvoiceShelf version
v2.3.3
Database type
SQLite
Server OS
Linux (Debian 13)
My solution that worked
Make sure the base folder is owned by 82:82 (invoiceshelf/)
Start the container with named volumes but also mount your base folder (invoiceshelf/)
Go through the whole install and make sure invoiceshelf is working
docker exec bash inside the container and manually copy the files from their in-container locations to folder in your mounted volumes (i.e. /var/www/html/Modules to /mnt/invoiceshelf/modules)
Remove the named volumes and mount your proper foolders inside mounted volumes
Issue filing pre-requisites
Describe the bug
When installing with mounted volumes instead of named volumes I've encountered many errors.
Steps to Reproduce the issue
Permission issues
Files & folders issues
Expected behavior
The software installing normally like with named volumes
Actual behavior
The software fails due to permission and file ownership issues and if that gets solved it is unable to install due to it missing critical files.
InvoiceShelf version
v2.3.3
Database type
SQLite
Server OS
Linux (Debian 13)
My solution that worked