snipe-it-docker-compose
snipe-it-docker-compose copied to clipboard
Getting 500 Errors during Pre-Flight
Hello,
I followed your instructions and was able to get an instance of Snipe-IT online. As soon as I start trying to configure the server I get 500 errors though. Any thoughts on what might cause this? I have attempted to enable debugging mode but so far I'm just getting permissions errors it looks like - I think this is related to the debugging and not the actual webpages though.
Thanks!
Same thing, on :3051 500 | SERVER ERROR
I'm facing the same issue. I notice that the mysql container exits as soon as it starts:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0d33c1a97086 snipe/snipe-it "/startup.sh" 4 minutes ago Up 4 minutes 443/tcp, 0.0.0.0:3051->80/tcp, :::3051->80/tcp snipeit_snipe-it_1
daf3994b74a6 mysql:5.6 "docker-entrypoint.s…" 4 minutes ago Exited (137) 19 seconds ago snipe-mysql
Its docker logs show:
2022-07-25 21:34:24+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2022-07-25 21:34:25+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2022-07-25 21:34:25+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2022-07-25 21:38:39+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2022-07-25 21:38:39+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2022-07-25 21:38:39+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
For me it appears that the issue was using the default key in readme.md was causing cipher problems in Laravel. Make sure to generate a fresh key with
php artisan key:generate --show
from within the container
After doing this it worked fine for me. Rocky Linux 9 + Podman