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
I installed Snipe-IT with docker compose on a ubuntu machine default settings.
It basically works except scheduled backup.
It seems that the php artisan scheduler does not run every minute or it runs with wrong user or wrong permissions.
I seems that running the php artisan scheduler:run with docker user has some permission issues when running some tasks.
I propose to run the php artisan scheduler:run as root user and if needed chown backup file to docker user later, after backup.
Reproduction steps
Customize Snipe-IT app section in docker compose file with image snipe/snipe-it:v7.1.15
Customize Snipe-IT app section in docker compose file with a local volume bind to /var/lib/snipeit
Run docker compose
Wait for next day
Backups is not created at night at 0.00; no file is found in dumps directory in local volume bind path
Logging inside the container and running
su - docker -c "/var/www/html/artisan schedule:list"
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
Describe the bug
Hi there
I installed Snipe-IT with docker compose on a ubuntu machine default settings.
It basically works except scheduled backup.
It seems that the php artisan scheduler does not run every minute or it runs with wrong user or wrong permissions.
I seems that running the php artisan scheduler:run with
docker
user has some permission issues when running some tasks.I propose to run the php artisan scheduler:run as
root
user and if neededchown
backup file todocker
user later, after backup.Reproduction steps
/var/lib/snipeit
Logging inside the container and running
I get
Logging inside the container and running
I get the scheduler list
Inside the container if running
I get
Logging inside the container and running
I get
Logging inside the container and running
I get
Expected behavior
Get a new backup file every day, created at 0.00 by snipeit:backup invoked by scheduler:run
Screenshots
No response
Snipe-IT Version
v7.1.15
Operating System
Ubuntu
Web Server
apache
PHP Version
Operating System
No response
Browser
No response
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: