Open fowlerc74 opened 1 month 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.
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.
/var/www/snipeit/public$ php -S localhost:8000 [Tue Jul 23 15:16:08 2024] PHP 8.3.6 Development Server (http://localhost:8000) started [Tue Jul 23 15:16:11 2024] 127.0.0.1:57900 Accepted [Tue Jul 23 15:16:11 2024] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/snipeit/app/Models/License.php on line 188 [Tue Jul 23 15:16:11 2024] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/snipeit/app/Models/License.php on line 220 ^C^C[Tue Jul 23 15:16:22 2024] 127.0.0.1:57900 [302]: GET / [Tue Jul 23 15:16:22 2024] 127.0.0.1:57900 Closing
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 <!DOCTYPE html>
I think this might have been addressed in https://github.com/snipe/snipe-it/pull/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 Stack trace:
[2024-07-24 08:50:02] production.ERROR: The /var/www/snipeit/bootstrap/cache directory must be present and writable. {"exception":"[object] (Exception(code: 0): The /var/www/snipeit/bootstrap/cache directory must be present and writable. at /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php:178) [stacktrace]
"} [2024-07-24 08:50:02] production.ERROR: ReflectionException: Class "session" does not exist in /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php:912 Stack trace:
Next Illuminate\Contracts\Container\BindingResolutionException: Target class [session] does not exist. in /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php:914 Stack trace:
[2024-07-24 08:50:02] production.ERROR: Target class [session] does not exist. {"exception":"[object] (Illuminate\Contracts\Container\BindingResolutionException(code: 0): Target class [session] does not exist. at /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php:914) [stacktrace]
[previous exception] [object] (ReflectionException(code: -1): Class \"session\" does not exist at /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php:912) [stacktrace]
"}
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.
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.
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 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 ${...} 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.