snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.21k stars 3.2k forks source link

500 Server Error #12051

Closed dataprotechgroup closed 2 years ago

dataprotechgroup commented 2 years ago

Debug mode

Describe the bug

I am getting a few “500 Server Errors” when I try certain things example is if I go to settings > asset models when I then click “create new” I get the 500 error.

Reproduction steps

settings > asset models > create new

Expected behavior

Not showing 500 error.

Screenshots

No response

Snipe-IT Version

v6.0.10

Operating System

Ubuntu

Web Server

Apache

PHP Version

PHP 7.4.3

Operating System

No response

Browser

Google Chrome

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

welcome[bot] commented 2 years ago

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

zaincassim commented 2 years ago

I have this issue as well, but I'm running v6.0.12 on a Windows Server with PHP 8.1

xinput commented 2 years ago

did you check if bootstrap/cache directory is writeable by the apache/IIS user?

so ideally your permissions must be 755 with owner snipeit:apache .

Same aplies to Windows directory must be writeable by ISUSR

also check to clear your application cache with php artisan cache:clear

zaincassim commented 2 years ago

@xinput Thank you! It was the permissions in my case!

snipe commented 2 years ago

If you run php upgrade.php it will usually try to troubleshoot these types of problems.