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

HTTP 500 Internal Server Error (Windows Server 2012 R2)

Open henryp007 opened this issue 10 years ago • 41 comments

Expected Behavior (or desired behavior if a feature request)

(what you expect to happen goes here)

Webpage opens

Actual Behavior

The website cannot display the page

HTTP 500

Most likely causes: •The website is under maintenance. •The website has a programming error.


Please confirm you have done the following before posting your bug report:


Please provide answers to these questions before posting your bug report:

  • Version of Snipe-IT you're running: Latest Release
  • What OS and web server you're running Snipe-IT on Windows Server 2012 R2 Standard (IIS8)
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) Manual
  • If you're getting an error in your browser, include that error HTTP 500
  • What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error any
  • If a stacktrace is provided in the error, include that too.
  • Any errors that appear in your browser's error console.
  • Confirm whether the error is reproduceable on the demo.
  • Include any additional information you can find in app/storage/logs and your webserver's logs. No logs have been created even though debug is turned on
  • Include what you've done so far in the installation, and if you got any error messages along the way.
  • Indicate whether or not you've manually edited any data directly in the database

henryp007 avatar Aug 08 '16 12:08 henryp007

add the "full control" rights for directory under C:\Inetpub\wwwroot\ "Snipe-IT" & "Temp"folder under Windows directory or it's good if you add everyone with full rights

DheerCodes avatar Aug 08 '16 12:08 DheerCodes

Hi @dheer99 I tried this but I still get the same error message :-( I've applied the correct permissions that it mentioned in the instructions as well

henryp007 avatar Aug 08 '16 12:08 henryp007

Check storage/logs/laravel.log and see if anything in there is indicative of an issue.

mnemonicly avatar Aug 08 '16 14:08 mnemonicly

Hi @dmeltzer I've checked the folder and there's only a single file called .gitignore which contains no log. I think there must be something very wrong here...

henryp007 avatar Aug 08 '16 14:08 henryp007

If you set APP_DEBUG to true in the .env file does it give more information? (You may need to restart IIS, not sure how everything works on windows)

mnemonicly avatar Aug 08 '16 14:08 mnemonicly

I have set it as true - what should the .env file be called ? I have just called mine config.env @dmeltzer

henryp007 avatar Aug 08 '16 14:08 henryp007

It needs to be just .env, I forget how you do that on windows... you may need to do it on the command line.

mnemonicly avatar Aug 08 '16 14:08 mnemonicly

that may be where i'm going wrong then - windows by default wont let you just call it .env @dmeltzer

henryp007 avatar Aug 08 '16 14:08 henryp007

https://gist.github.com/ozh/4131243 has a few ideas.

mnemonicly avatar Aug 08 '16 14:08 mnemonicly

Ok just renamed it using the command line (ren config.env .env) and it doesn't seem to have made a difference :-( @dmeltzer

henryp007 avatar Aug 08 '16 14:08 henryp007

Did you restart IIS after renaming it?

mnemonicly avatar Aug 08 '16 14:08 mnemonicly

have you loaded the url rewritte file on the iis server? i had a lot of troubles the first time with that.

korio77 avatar Aug 08 '16 15:08 korio77

Do you mean the .htaccess file? if so I did import it but one of the Rewright rules failed saying "The rule cannot be converted into an equivalent IIS format because of unsupported flags E

image @korio77

henryp007 avatar Aug 08 '16 15:08 henryp007

Hi @dmeltzer yes I did

henryp007 avatar Aug 08 '16 15:08 henryp007

mine ended in this and iirc there was one rule that didnt work in iis

image

korio77 avatar Aug 08 '16 15:08 korio77

image Thats mine on the same page @korio77 looks the same to me !

henryp007 avatar Aug 08 '16 15:08 henryp007

Also check the iis error logs, if there is no log on the lavarel side its probably because the webserver is not even reaching that, probably there is something wrong on your .env file config.

Be sure you have all the php extensions needed too.

korio77 avatar Aug 08 '16 15:08 korio77

I beleive I have all the PHP extensions enabled - I will try and look through the IIS Logs.. @korio77 image

henryp007 avatar Aug 08 '16 15:08 henryp007

I have a couple more enabled but cant remember if it was for snipeip or another thing.

Check the iis logs they will tell you where it falls to load.

IIS is a bit tricky to config if you only have one site, but if you have 2 or more on the same its a pain in the a**.

Just in case it helps here is a pic of my loaded php extensions.

image

Also for the v3 you need php 5.5.9 or more.

korio77 avatar Aug 08 '16 15:08 korio77

Thanks :-) I'm running PHP 5.6.20 with the same extensions enabled. I found this log - I dont know if it helps: ::1, -, 8/8/2016, 16:35:29, W3SVC5, sycamores-svr, ::1, 15, 407, 210, 500, 0, GET, /, -, @korio77

henryp007 avatar Aug 08 '16 15:08 henryp007