500 Internal Server Error after upgrading from v5.1.6 to v5.1.8
Expected Behavior (or desired behavior if a feature request)
(what you expect to happen goes here) Expected to be able to log into SnipeIt.
Actual Behavior
(what actually happens goes here) Receive 500 Internal Server Error. Have tried from three different browsers.
Please confirm you have done the following before posting your bug report:
- [X ] I have enabled debug mode
- [ X] I have read checked the Common Issues page
Provide answers to these questions:
- Is this a fresh install or an upgrade? Upgrade
- Version of Snipe-IT you're running? 5.1.8
- Version of PHP you're running? 7.4.13
- Version of MySQL/MariaDB you're running? MySQL 5.5
- What OS and web server you're running Snipe-IT on? Windows Server Standard 2019
- What method you used to install Snipe-IT (install.sh, manual installation, docker, etc)? php upgrade.php; then I ran the following: composer install --no-dev --prefer-source, composer dump-autoload, php artisan migrate , php artisan cache:clear, php artisan config:cache; I also had to manually delete bootstrap/cache services.php and config.php files; I also generated new keys. Nothing has made a difference.
- WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error? Yes, I get the same exact error which is 500 Internal Server Error.
- What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error? The main website.
- If a stacktrace is provided in the error, include that too. Didn't see any stack errors.
- Any errors that appear in your browser's error console. GET My SnipeIT Website) 500 Internal (My SnipeIT Website/:1 Server Error.
- Confirm whether the error is reproducible on the demo: https://snipeitapp.com/demo. It's not.
- Include any additional information you can find in
storage/logsand your webserver's logs. Only have a laravel.log file in the storage/logs folder. The file is dated 06/30/2021 and here is the information:
[2021-06-30 12:27:48] production.ERROR: Image source not readable {"userId":613,"exception":"[object] (Intervention\Image\Exception\NotReadableException(code: 0): Image source not readable at C:\inetpub\wwwroot\snipeit\vendor\intervention\image\src\Intervention\Image\AbstractDecoder.php:346) [stacktrace] #0 C:\inetpub\wwwroot\snipeit\vendor\intervention\image\src\Intervention\Image\AbstractDriver.php(66): Intervention\Image\AbstractDecoder->init() #1 C:\inetpub\wwwroot\snipeit\vendor\intervention\image\src\Intervention\Image\ImageManager.php(54): Intervention\Image\AbstractDriver->init() #2 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(261): Intervention\Image\ImageManager->make() #3 C:\inetpub\wwwroot\snipeit\app\Http\Controllers\ProfileController.php(82): Illuminate\Support\Facades\Facade::__callStatic() #4 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Routing\Controller.php(54): App\Http\Controllers\ProfileController->postIndex() #5 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction() #6 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Routing\Route.php(219): Illuminate\Routing\ControllerDispatcher->dispatch() #7 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Routing\Route.php(176): Illuminate\Routing\Route->runController() #8 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Routing\Router.php(681): Illuminate\Routing\Route->run() #9 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(130): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #10 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Auth\Middleware\Authenticate.php(43): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #11 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Auth\Middleware\Authenticate->handle() #12 C:\inetpub\wwwroot\snipeit\app\Http\Middleware\AssetCountForSidebar.php(56): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #13 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): App\Http\Middleware\AssetCountForSidebar->handle() #14 C:\inetpub\wwwroot\snipeit\vendor\laravel\passport\src\Http\Middleware\CreateFreshApiToken.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #15 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Laravel\Passport\Http\Middleware\CreateFreshApiToken->handle() #16 C:\inetpub\wwwroot\snipeit\app\Http\Middleware\CheckForTwoFactor.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #17 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): App\Http\Middleware\CheckForTwoFactor->handle() #18 C:\inetpub\wwwroot\snipeit\app\Http\Middleware\CheckLocale.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #19 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): App\Http\Middleware\CheckLocale->handle() #20 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php(78): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #21 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle() #22 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle() #24 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #25 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Cookie\Middleware\EncryptCookies->handle() #26 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #27 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Routing\Router.php(683): Illuminate\Pipeline\Pipeline->then() #28 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Routing\Router.php(658): Illuminate\Routing\Router->runRouteWithinStack() #29 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Routing\Router.php(624): Illuminate\Routing\Router->runRoute() #30 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Routing\Router.php(613): Illuminate\Routing\Router->dispatchToRoute() #31 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(170): Illuminate\Routing\Router->dispatch() #32 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(130): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #33 C:\inetpub\wwwroot\snipeit\vendor\barryvdh\laravel-debugbar\src\Middleware\InjectDebugbar.php(60): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #34 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Barryvdh\Debugbar\Middleware\InjectDebugbar->handle() #35 C:\inetpub\wwwroot\snipeit\app\Http\Middleware\SecurityHeaders.php(26): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): App\Http\Middleware\SecurityHeaders->handle() #37 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #39 C:\inetpub\wwwroot\snipeit\app\Http\Middleware\CheckForDebug.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #40 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): App\Http\Middleware\CheckForDebug->handle() #41 C:\inetpub\wwwroot\snipeit\app\Http\Middleware\CheckForSetup.php(26): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #42 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): App\Http\Middleware\CheckForSetup->handle() #43 C:\inetpub\wwwroot\snipeit\vendor\fideloper\proxy\src\TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #44 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Fideloper\Proxy\TrustProxies->handle() #45 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #46 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\View\Middleware\ShareErrorsFromSession->handle() #47 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php(56): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #48 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Session\Middleware\StartSession->handle() #49 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php(63): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #50 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle() #51 C:\inetpub\wwwroot\snipeit\app\Http\Middleware\NoSessionStore.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #52 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): App\Http\Middleware\NoSessionStore->handle() #53 C:\inetpub\wwwroot\snipeit\vendor\barryvdh\laravel-cors\src\HandlePreflight.php(29): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #54 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Barryvdh\Cors\HandlePreflight->handle() #55 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #56 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(145): Illuminate\Pipeline\Pipeline->then() #57 C:\inetpub\wwwroot\snipeit\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #58 C:\inetpub\wwwroot\snipeit\public\index.php(58): Illuminate\Foundation\Http\Kernel->handle() #59 {main} "}
- Include what you've done so far in the installation, and if you got any error messages along the way. After running php upgrade.php, I saw one error which is Class ParsedownTest located in C:/inetpub/wwwroot/snipeit/vendor/erusev/parsedown\test\ParsedownTest.php does not comply with psr-0 autoloading standard. Skipping. Received this message twice.
- Indicate whether or not you've manually edited any data directly in the database. No, I didn't.
Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.
ALSO, I have tried manually upgrade and get the same error, 500 Internal Server Error.
Thanks.
https://snipe-it.readme.io/docs/getting-help
That stack trace doesn’t look related (and the date stamp on it seems to confirm it’s unrelated). What are your permissions on your storage directory and the subdirectories there?
Hi Snipe, Thanks for the quick response. Actually the account I'm using doesn't have full permissions like I thought it did. Let me run the upgrade with the correct account!
Cool - keep me posted :)
Will do!!!
Hi, I made sure I logged in with the correct account. I ran into the same exact error message. In addition, I went ahead and added my account t to the storage folder and subsequent folders/files and reran php upgrade.php. This didn't help. Thanks.
Hi, I'm still experiencing the same problem. How can I upgrade to v5.1.7 instead. Don't see a way to upgrade to to a previous version. Thanks, Cameshia
I had a similar issue that seemed to be caused by cmd using an old version of PHP cli when I was running the upgrade.php
Can you run php -v in cmd just to double check the version cmd is using?
Hi madd15,
Thanks for responding. I'm running PHP 7.4.13 cli.
Do you get any errors when you run php upgrade.php?
HI again, this is the message I receive when I run php upgrade.php: After running php upgrade.php, I saw one error which is Class ParsedownTest located in C:/inetpub/wwwroot/snipeit/vendor/erusev/parsedown\test\ParsedownTest.php does not comply with psr-0 autoloading standard. Skipping. Received this message twice.
Here's a screen shot. snipeit.pdf
Not resolved. Same error with upgrading to v5.2.
Update. I was finally able to figure it out. I never upgraded to v5.1.8 because I couldn't get past the 500 Internal Server Error. After upgrading to v5.2 using php upgrade.php (from c:\inetpub\wwwroot\snipeit), I then ran:
For windows, use: composer install --no-dev --prefer-source composer dump-autoload php artisan migrate php artisan config:clear php artisan config:cache
Received the following message: ParsedownTest located in C:/inetpub/wwwroot/snipeit/vendor/erusev/parsedown\test\ParsedownTest.php does not comply with psr-0 autoloading standard. Skipping.
I've figured out that this file isn't relevant.
I edited the .env file and enabled debugging which I've done before.
Then I ran: php artisan config:clear php artisan config:cache
This time, it gave me additional IIS error message: HTTP Error 500.0 - Internal Server Error
See the attached screen shot iis http error 500 detail...pdf
Then I found this website: https://stackoverflow.com/questions/34796767/http-error-500-fastcgimodule which helped me realize I need to review the applicationHost.config file that's located here c:\windows\System32\inetsrv\config\
I found that some of the PHP references was referring back to an old installation and version that long been uninstalled/removed. See examples below:
<add name="php-5.5.36" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\PHP\php-cgi.exe" resourceType="Either" requireAccess="Script" />
<add name="PHP53_via_FastCGI" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\PHP\v5.3\php-cgi.exe" resourceType="Either" />
<add name="PHP_via_FastCGI" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\PHP\v5.6\php-cgi.exe" resourceType="Either" />
The correct file path should be: "C:\Program Files\PHP\v7.4\php-cgi.exe"
Anywhere that had php-cgi.exe, I made sure it had the correct path.
I also changed the add name="php5.5.36" to "php7.4" and "PHP53_via_FastCGI" to "PHP74_via_FastCGI"
Now everything works fine. Still testing.
iis http error 500 details.pdf
Stack OverflowIn my server I have some classic asp sites, and wordpress sites. I had a problem with my classic asp site, and I manually added "Hendler Mapping" to that site. Unfortunately this Hendler Mapping di...