-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pre Flight Setup page not loading (Similar to #14326) #15142
Comments
👋 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. |
Tried running a php development server on localhost to see if I could narrow down the problem. I changed the app url in .env to be http://localhost:8000.
I used curl on the same machine to make a request to localhost:8000 and it accepted the request, gave me the same PHP Deprecated message I was getting in the logs, and then hanging. The response was not sent as long as I waited, so I hit control c to stop the server. After hitting control c a second time, the response was sent and then the server closed. curl localhost:8000
I tried to curl localhost:8000/setup and it wouldn't give me a response after any amount of time, even after trying to stop the server with control c. I ended up having to use kill to stop the server. I have no clue why it is hanging before sending the response. I don't know php / laravel programming so I don't know where to look in the code to narrow down the issue any further. Edit: After running it again it turns out I do get a response from localhost:8000, but only after 4 minutes. The response always comes exactly at 4 minutes as well. I didn't get a response from localhost:setup after letting it run for over 15 minutes. |
I think this might have been addressed in #15147 ? |
Thank you for responding! I did a git pull and when I ran it again I got these errors. [2024-07-24 08:50:02] production.ERROR: Exception: The /var/www/snipeit/bootstrap/cache directory must be present and writable. in /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php:178 Next Illuminate\Contracts\Container\BindingResolutionException: Target class [session] does not exist. in /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php:914 [previous exception] [object] (ReflectionException(code: -1): Class "session" does not exist at /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php:912) I changed the permissions of the bootstrap/cache directory and the errors went away, but it just went back to hanging. I am not using https if that makes a difference. |
Huh. So it's timing out when it's doing the env check. @uberbrady any thoughts on this? |
Debug mode
Describe the bug
I am having issues getting the Pre Flight Setup page to show up. Currently when trying to navigate to the page I just get a loading icon in the tab and nothing else happens. I replaced index.php with one that just had phpinfo() and it displayed correctly, so I don't think that it is an issue with my server configuration. Any help is greatly appreciated!
Reproduction steps
Expected behavior
The preflight setup page should show up.
Screenshots
No response
Snipe-IT Version
7.0.9
Operating System
Ubuntu server
Web Server
Apache
PHP Version
8.3.6
Operating System
Windows
Browser
Chrome and Firefox
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
Additional context
Fresh Install${...} to {$ ...} at those two spots that were in the logs and it did not make a difference so I changed it back to how it was.
Ubuntu Server and Apache2
Manual installation (git clone)
I've followed the installation directions as closely as possible and included the error messages I got. I had some issues configuring the web server but I'm pretty sure I have fixed those.
Also, I went into the code and changed the
The text was updated successfully, but these errors were encountered: