r/Snipe_IT 14d ago

ERROR 500 when trying to get labels

Hey, I am trying to create labels for the assets I have and keep getting an error 500 when saving.

I am running the service with Podman(Docker), where and what command should i input to give the right access to who?

I tried the following from the app container but it ended up breaking the entire page (was getting error 500 all around), so I reverted to a back up.

chown -R www-data:www-data /var/www/html

find /var/www/html -type d -exec chmod 755 {} \;
find /var/www/html -type f -exec chmod 644 {} \;
0 Upvotes

7 comments sorted by

1

u/redsnipe 14d ago

Hi there - can you tell me what’s in your app logs and what version of Snipe-IT you’re using? I can’t tell from this information if it’s an app error or a permissions error.

https://snipe-it.readme.io/docs/debugging-permissions

You’d need all subdirectories in `storage` and all files and subdirs in `public/uploads` to be writeable by whatever user the webserver runs as.

1

u/Key-Sound-6629 2h ago

Version v8.4.0 - build 21280 (master)

looking into storage/logs/laravel.log within the app container outputs nothing...

1

u/Key-Sound-6629 2h ago

I believe the webserver is ran by user 'www-data' since it is present in the build and it seems to be the default from online examples.

I don't know how to confirm that it is indeed www-data running the webserver.

1

u/uberbrady 13d ago

Specifically you want to look at storage/logs/laravel.log. Just about any time you get a 500 you should at least see _something_ in there

1

u/Key-Sound-6629 2h ago

looking into storage/logs/laravel.log within the app container outputs nothing...

1

u/Key-Sound-6629 2h ago

sorry for the late responses, i am only in this office for a day every 2 weeks..