EarlRamirez / snipeit_iso

Up and running with Snipe-IT
GNU General Public License v2.0
14 stars 4 forks source link

HTTP ERROR 500 #18

Closed taylanmusluman closed 5 years ago

taylanmusluman commented 6 years ago

Hi there, thanks for making this first of all!

Everything went smoothly with the install, it was working perfectly. However after 1-2h every time, the Snipe-IT page under the IP address starts giving a "Page not found, HTTP ERROR 500". I created another VM with another IP as well and tried a fresh install, same result. Worked just fine for 2h then the same error. These VMs are accessible via SSH and everything seems to be fine. Any ideas what might be causing it?

taylanmusluman commented 6 years ago

Some more context from /var/www/html/snipeit/storage/logs

production.ERROR: ErrorException: Trying to get property 'privacy_policy_link' of non-object in /var/www/html/snipeit/storage/framework/views/2003de040112dbb9f4ecec8a498fd2f53ae90abae90aba.php:59

Next ErrorException: Trying to get property 'privacy_policy_link' of non-object (View: /var/www/html/snipeit/resources/views/layouts/basic.blade.php) in /var/www/html/snipeit/storage/framework/views/2003de040112dbb9f4ecec8a498fd2f53ae90aba.php:59

Next ErrorException: Trying to get property 'privacy_policy_link' of non-object (View: /var/www/html/snipeit/resources/views/layouts/basic.blade.php) (View: /var/www/html/snipeit/resources/views/layouts/basic.blade.php) in /var/www/html/snipeit/storage/framework/views/2003de040112dbb9f4ecec8a498fd2f53ae90aba.php:59

EarlRamirez commented 6 years ago

@taylanmusluman, thanks for informing me about this issue, I'll check it now and will get back to you shortly.

In the meantime, you can upgrade to the latest version of Snipe-IT and let me know if you are still experiencing the same issue.

To upgrade do the following.

EarlRamirez commented 6 years ago

500 errors from the web server, I spin up a VM and do not see these errors or behaviour can you share the httpd error logs.

EarlRamirez commented 6 years ago

Okay, I experienced the same issue but with different errors, after upgrading Snipe-IT it was accessible again, I'll let it run for a few hours and see if the upgrade is the permanent fix and update the ISO, test it and upload it.

EarlRamirez commented 6 years ago

@taylanmusluman the ISO was created and uploaded, the root cause of the error was caused by missing files in vendor/psy, it was there when the OS was initially installed; however, was deleted after, don't know what caused it though. The new ISO ships with the latest version and was tested for over 24 hours.

Thanks for reporting the issue, the issue will remain open until I receive a confirmation from you.

taylanmusluman commented 6 years ago

@EarlRamirez thank you for quickly looking into it! I am currently away and won't be able to check if it works this week. But it sounds plausible that some files were missing...

EarlRamirez commented 6 years ago

@taylanmusluman try with the new ISO and let me know how it goes.

taylanmusluman commented 5 years ago

@EarlRamirez tested now and it works, thanks!

EarlRamirez commented 5 years ago

Glad that it worked did you grab the latest version, it includes SSL support.

taylanmusluman commented 5 years ago

@EarlRamirez yeah I used the latest :)

EarlRamirez commented 5 years ago

Thanks very much :)