snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Error 500 after upgrading from v6.2.3 - build 11759

Open jmoraites opened this issue 1 year ago • 5 comments

Debug mode

Describe the bug

DEBUG is not turned on not sure how to enable it. Running on rocky 9.3 v6.2.3 - build 11759 is working fine. I perform the upgrade (php upgrade.php) I don't see any errors during upgrade but /var/log/snipeit-install.log does not get updated either.

Reproduction steps

1.php upgrade.php 2.try to login through browser 3.get 500 server error ...

Expected behavior

upgrade should report issues and or system should work normally

Screenshots

No response

Snipe-IT Version

v6.2.3 - build 11759

Operating System

Rocky 9.3

Web Server

Apache

PHP Version

8.0.30

Operating System

Windows 11

Browser

Chrome

Version

latest

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

500 | Server error

Additional context

upgrade

jmoraites avatar Feb 23 '24 17:02 jmoraites

👋 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.

welcome[bot] avatar Feb 23 '24 17:02 welcome[bot]

Set your app_debug field in your .env file to true

NickNck avatar Feb 23 '24 17:02 NickNck

Since i am testing this on a copy of the production VM would you like me to set debug prior to performing the upgrade. What logs should I collect when the upgrade is completed?

jmoraites avatar Feb 23 '24 17:02 jmoraites

I'm no expert with this, but if I were you I'd probably try to enable debug in the env first and then try the upgrade. If it fails, check the install log again, php and apache error logs.

NickNck avatar Feb 24 '24 11:02 NickNck

Check /storage/logs/laravel.log. https://snipe-it.readme.io/docs/getting-help

Snipe-IT Documentation
If you're having trouble setting up Snipe-IT, don't worry!

snipe avatar Feb 28 '24 08:02 snipe