Skip to content
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

Upgraded from v6.0.12 to 6.2.2, but stucked with error 500 #13747

Closed
2 tasks done
karthik8223 opened this issue Oct 13, 2023 · 7 comments
Closed
2 tasks done

Upgraded from v6.0.12 to 6.2.2, but stucked with error 500 #13747

karthik8223 opened this issue Oct 13, 2023 · 7 comments

Comments

@karthik8223
Copy link

Debug mode

Describe the bug

I can't figure out where the problem is, able to copy out the logs. Can someone help me,

#90 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#91 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()
#92 /var/www/snipeit/app/Http/Middleware/NoSessionStore.php(28): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#93 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\Http\Middleware\NoSessionStore->handle()
#94 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#95 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(142): Illuminate\Pipeline\Pipeline->then()
#96 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#97 /var/www/snipeit/public/index.php(52): Illuminate\Foundation\Http\Kernel->handle()
#98 {main}
"}

Reproduction steps

  1. Turn on the server
  2. Able to see the login page
  3. After login, stucked with error 500

...

Expected behavior

Expected to login normally after update.

Screenshots

No response

Snipe-IT Version

6.2.2

Operating System

Ubuntu 22.04.3 LTS

Web Server

Apache

PHP Version

8.1

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

#90 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#91 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
#92 /var/www/snipeit/app/Http/Middleware/NoSessionStore.php(28): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#93 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\\Http\\Middleware\\NoSessionStore->handle()
#94 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#95 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(142): Illuminate\\Pipeline\\Pipeline->then()
#96 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#97 /var/www/snipeit/public/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle()
#98 {main}
"}

Additional context

No response

@snipe
Copy link
Owner

snipe commented Oct 13, 2023

We'd need the full stack trace there - those aren't error messages, that's just a partial stack trace

@karthik8223
Copy link
Author

We'd need the full stack trace there - those aren't error messages, that's just a partial stack trace

Thank you so much for your reply, I appreciate it. Also, thanks for taking your time to help me. I will try to get the full stack trace. It's been a while since I have accessed Linux systems. I will get back to you soon.

@karthik8223
Copy link
Author

We'd need the full stack trace there - those aren't error messages, that's just a partial stack trace

I'm attempting to obtain a copy of the entire log files, but I've encountered issues. Could you please check if the file permissions for the log files are correct?

administrator@stilsnipeit:/var/www/snipeit/storage/logs$ ls
laravel.log

administrator@stilsnipeit:/var/www/snipeit/storage/logs$ sudo journalctl > laravel.txt
-bash: laravel.txt: Permission denied

administrator@stilsnipeit:/var/www/snipeit/storage/logs$ ls -la
total 2148
drwxr-xr-x 2 www-data www-data 4096 Feb 7 2021 .
drwxr-xr-x 7 www-data www-data 4096 Feb 7 2021 ..
-rwxr-xr-x 1 www-data www-data 14 Feb 7 2021 .gitignore
-rwxr-xr-x 1 www-data www-data 2180735 Oct 18 09:22 laravel.log

administrator@stilsnipeit:/var/www/snipeit/storage/logs$

@snipe
Copy link
Owner

snipe commented Oct 18, 2023

Well, you're sudo-ing to user journalctl, but the directories are owned by www-data, which is probably the issue.

@karthik8223
Copy link
Author

Well, you're sudo-ing to user journalctl, but the directories are owned by www-data, which is probably the issue.

Thank you for highlighting my mistakes. I've corrected them, but I'm still encountering issues.

administrator@stilsnipeit:/var/www/snipeit/storage/logs$ ls -la
total 33668
drwxrwxr-x 2 administrator administrator 4096 Oct 19 09:06 .
drwxrwxr-x 7 administrator www-data 4096 Feb 7 2021 ..
-rwxrwxr-x 1 administrator administrator 14 Feb 7 2021 .gitignore
-rwxrwxr-x 1 administrator administrator 2439401 Oct 19 08:56 laravel.log
-rw-rw-r-- 1 administrator administrator 32016932 Oct 19 09:07 laravel.txt

I've also been able to export the Laravel logs into a text file, which I'll share below.

@karthik8223
Copy link
Author

Hi, can anyone help me to solve this ? I can see the login page, but right after login it shows 500 Server Error

@karthik8223
Copy link
Author

Hi, can anyone help me to solve this ? I can see the login page, but right after login it shows 500 Server Error

Sorry for bugging, I just updated to [v6.2.3] and problem was solved. Thanks everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants