-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Cant log in after upgrade to 5.1 #9951
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. |
|
(Also did you clear browser cookies, etc etc) |
Clearing browser cache didn’t help. Same affect.
The httpd access logs only show GET and POST info
10.10.8.137 - - [18/Aug/2021:16:28:30 -0400] "GET /favicon.ico HTTP/1.1" 200 17910 "http://snipeit/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36 Edg/92.0.902.73"
10.10.8.137 - - [18/Aug/2021:16:28:34 -0400] "POST /login HTTP/1.1" 302 326 "http://snipeit/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36 Edg/92.0.902.73"
10.10.8.137 - - [18/Aug/2021:16:28:34 -0400] "GET /login HTTP/1.1" 200 152850 "http://snipeit/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36 Edg/92.0.902.73"
Are there other logs I can look at? I haven’t able to find anything.
There weren’t any errors when I installed. But it appears there are errors in the log around when I installed.
[2021-08-16 16:20:27] production.ERROR: Unable to prepare route [api/v1] for serialization. Uses Closure. {"exception":"[object] (LogicException(code: 0): Unable to prepare route [api/v1] for serialization. Uses Closure. at /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Routing/Route.php:917)
[2021-08-16 16:20:27] production.ERROR: file_put_contents(/var/www/snipeit/storage/framework/cache/cf/90/cf906e7195218453e4ff6f1bdcdc6b2d9f6cae71): failed to open stream: No such file or directory {"exception":"[object] (ErrorException(code: 0): file_put_contents(/var/www/snipeit/storage/framework/cache/cf/90/cf906e7195218453e4ff6f1bdcdc6b2d9f6cae71): failed to open stream: No such file or directory at /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:133)
[2021-08-16 16:16:04] production.ERROR: Interface 'Illuminate\Contracts\Support\DeferrableProvider' not found {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Interface 'Illuminate\\Contracts\\Support\\DeferrableProvider' not found at /var/www/snipeit/app/Providers/LdapServiceProvider.php:7)
From: snipe ***@***.***>
Sent: Wednesday, August 18, 2021 4:24 PM
To: snipe/snipe-it ***@***.***>
Cc: Juan Mas ***@***.***>; Author ***@***.***>
Subject: EXT** Re: [snipe/snipe-it] Cant log in after upgrade to 5.1 (#9951)
(Also did you clear browser cookies, etc etc)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#9951 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AVHLVM4VOR3JGKM7AU5MUG3T5QJFJANCNFSM5CMZA56A>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
Use Caution, this Email is from outside St. Mary's Bank
|
Did you try running the commands mentioned here? I'd also maybe try deleting the
|
I had run the php artisan migrate which did update.
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? (yes/no) [no]:
y
Migrating: 2020_10_22_233743_move_accessory_checkout_note_to_join_table
Migrated: 2020_10_22_233743_move_accessory_checkout_note_to_join_table (0 seconds)
Migrating: 2020_10_23_161736_fix_zero_values_for_locations
Migrated: 2020_10_23_161736_fix_zero_values_for_locations (0 seconds)
Migrating: 2020_11_18_214827_widen_license_serial_field
Migrated: 2020_11_18_214827_widen_license_serial_field (0.02 seconds)
Migrating: 2020_12_14_233815_add_digit_separator_to_settings
Migrated: 2020_12_14_233815_add_digit_separator_to_settings (0.01 seconds)
Migrating: 2020_12_18_090026_swap_target_type_index_order
Migrated: 2020_12_18_090026_swap_target_type_index_order (0.09 seconds)
Migrating: 2020_12_21_153235_update_min_password
Migrated: 2020_12_21_153235_update_min_password (0 seconds)
Migrating: 2020_12_21_210105_fix_bad_ldap_server_url_for_v5
Migrated: 2020_12_21_210105_fix_bad_ldap_server_url_for_v5 (0 seconds)
Migrating: 2021_02_05_172502_add_provider_to_oauth_table
Migrated: 2021_02_05_172502_add_provider_to_oauth_table (0.01 seconds)
Migrating: 2021_03_18_184102_adds_several_ldap_fields
Migrated: 2021_03_18_184102_adds_several_ldap_fields (0.01 seconds)
Migrating: 2021_04_07_001811_add_ldap_dept
Migrated: 2021_04_07_001811_add_ldap_dept (0.01 seconds)
Migrating: 2021_04_14_180125_add_ids_to_tables
Migrated: 2021_04_14_180125_add_ids_to_tables (0.01 seconds)
Migrating: 2021_06_07_155421_add_serial_number_indexes
Migrated: 2021_06_07_155421_add_serial_number_indexes (0.02 seconds)
Migrating: 2021_06_07_155436_add_company_id_indexes
Migrated: 2021_06_07_155436_add_company_id_indexes (0.12 seconds)
Migrating: 2021_08_11_005206_add_depreciation_minimum_value
Migrated: 2021_08_11_005206_add_depreciation_minimum_value (0.01 seconds)
When I run the composer install --no-dev I get:
composer install --no-dev
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package patchwork/utf8 is abandoned, you should avoid using it. Use symfony/polyfill-mbstring or symfony/string instead.
Generating optimized autoload files
Warning: Ambiguous class resolution, "App\Http\Transformers\DepartmentsTransformer" was found in both "/var/www/snipeit/app/Http/Transformers/DepartmentsTranformer.php" and "/var/www/snipeit/app/Http/Transformers/DepartmentsTransformer.php", the first will be used.
Illuminate\Foundation\ComposerScripts::postAutoloadDump
The only time I see an issue is here, when I try to run some clears. Looks like some permissions?
***@***.*** snipeit]$ composer check-platform-reqs
ext-bcmath 7.4.22 success
ext-ctype 7.4.22 success
ext-curl 7.4.22 success
ext-date 7.4.22 success
ext-dom 20031129 success
ext-fileinfo 7.4.22 success
ext-filter 7.4.22 success
ext-gd 7.4.22 success
ext-iconv 7.4.22 success
ext-json 7.4.22 success
ext-ldap 7.4.22 success
ext-libxml 7.4.22 success
ext-mbstring 7.4.22 success
ext-openssl 7.4.22 success
ext-pcre 7.4.22 success
ext-PDO 7.4.22 success
ext-SimpleXML 7.4.22 success
ext-tokenizer 7.4.22 success
ext-xmlwriter 7.4.22 success
lib-pcre 10.35 success
php 7.4.22 success
***@***.*** snipeit]$ composer dump-autoload; php artisan cache:clear; php artisan config:clear; php artisan route:clear; php artisan debugbar:clear; php artisan event:clear; php artisan view:clear; php artisan optimize:clear; php artisan clear-compiled
Generating optimized autoload filesWarning: Ambiguous class resolution, "App\Http\Transformers\DepartmentsTransformer" was found in both "/var/www/snipeit/app/Http/Transformers/DepartmentsTranformer.php" and "/var/www/snipeit/app/Http/Transformers/DepartmentsTransformer.php", the first will be used.
Illuminate\Foundation\ComposerScripts::postAutoloadDump Generated optimized autoload files containing 6046 classes
Failed to clear cache. Make sure you have the appropriate permissions.
Configuration cache cleared!
Route cache cleared!
Debugbar Storage cleared!
Cached events cleared!
Compiled views cleared!
Compiled views cleared!
Failed to clear cache. Make sure you have the appropriate permissions.
Route cache cleared!
Configuration cache cleared!
Compiled services and packages files removed!
Caches cleared successfully!
Compiled services and packages files removed!
From: snipe ***@***.***>
Sent: Wednesday, August 18, 2021 4:50 PM
To: snipe/snipe-it ***@***.***>
Cc: Juan Mas ***@***.***>; Author ***@***.***>
Subject: EXT** Re: [snipe/snipe-it] Cant log in after upgrade to 5.1 (#9951)
Did you try running the commands mentioned here?
https://snipe-it.readme.io/docs/common-issues#quick-tip-handy-commands
I'd also maybe try deleting the vendor directory and re-running composer install --no-dev
</favicon.ico>[X]</favicon.ico></favicon.ico>
Snipe-IT Documentation
Common Issues<https://snipe-it.readme.io/docs/common-issues#quick-tip-handy-commands>
These commands should be run from your Snipe-IT project root, just like every other cli command we mention. They should not need to be run as root/sudo/admin.Or to run them as a one-liner all at once:These commands clear out cached service files that help speed up modern PHP applications but can a...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#9951 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AVHLVM3BJCHH3FK6HOXRCFLT5QMIZANCNFSM5CMZA56A>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
Use Caution, this Email is from outside St. Mary's Bank
|
Every time you upgrade, you always have to run migrations, or at least check that upgrade.php completed migrations correctly. If you're seeing permissions issues, you should fix those as well. Everything (files and directories) in
Did you remove the vendors directory first as I suggested? |
Sorry. I missed the part that said to remove the vendor dir first. After doing that it did install
Package operations: 133 installs, 0 updates, 0 removals
Still getting the same behavior though. Honestly, not sure what other permissions I can set.
***@***.*** snipeit]$ ls -la
total 2152
drwxr-xr-x. 17 snipeitapp apache 4096 Aug 18 15:42 .
drwxr-xr-x. 5 root root 48 May 26 04:41 ..
-rw-rw-r--. 1 snipeitapp snipeitapp 64059 Aug 16 16:16 .all-contributorsrc
drwxrwxr-x. 4 snipeitapp snipeitapp 35 Aug 16 16:16 ansible
drwxr-xr-x. 18 snipeitapp apache 267 Aug 16 16:16 app
-rw-r--r--. 1 snipeitapp apache 1646 Jun 28 2019 artisan
drwxr-xr-x. 3 snipeitapp apache 54 Jun 28 2019 bootstrap
-rw-r--r--. 1 snipeitapp apache 875 Jun 28 2019 bower.json
-rw-r--r--. 1 snipeitapp apache 9210 Jun 28 2019 c3.php
-rw-rw-r--. 1 snipeitapp snipeitapp 373 Aug 16 16:16 codeception.yml
-rw-r--r--. 1 snipeitapp apache 3228 Jun 28 2019 CODE_OF_CONDUCT.md
-rw-rw-r--. 1 snipeitapp snipeitapp 3261 Aug 16 16:16 composer.json
-rw-rw-r--. 1 snipeitapp snipeitapp 427795 Aug 16 16:16 composer.lock
drwxr-xr-x. 2 snipeitapp apache 4096 Aug 18 15:47 config
-rw-rw-r--. 1 snipeitapp snipeitapp 0 Aug 16 16:16 _config.yml
-rw-r--r--. 1 snipeitapp apache 317 Jun 28 2019 CONTRIBUTING.md
-rw-rw-r--. 1 snipeitapp snipeitapp 214 Aug 16 16:16 crowdin.yml
drwxr-xr-x. 5 snipeitapp apache 72 Jun 28 2019 database
drwxr-xr-x. 2 snipeitapp apache 4096 Aug 16 16:16 docker
-rw-rw-r--. 1 snipeitapp snipeitapp 707 Aug 16 16:16 docker-compose.yml
-rw-rw-r--. 1 snipeitapp snipeitapp 4054 Aug 16 16:16 Dockerfile
-rw-rw-r--. 1 snipeitapp snipeitapp 2458 Aug 16 16:16 Dockerfile.alpine
-rw-rw-r--. 1 snipeitapp snipeitapp 3568 Aug 16 16:16 Dockerfile.fpm-alpine
-rw-rw-r--. 1 snipeitapp snipeitapp 156 Aug 16 16:16 .dockerignore
-rw-r--r--. 1 snipeitapp apache 3109 Aug 18 16:44 .env
-rw-rw-r--. 1 snipeitapp snipeitapp 4367 Aug 16 16:16 .env.docker
-rw-rw-r--. 1 snipeitapp snipeitapp 4047 Aug 16 16:16 .env.example
-rw-rw-r--. 1 snipeitapp snipeitapp 1889 Aug 16 16:16 .env.testing
-rw-rw-r--. 1 snipeitapp snipeitapp 1819 Aug 16 16:16 .env.testing-ci
-rw-r--r--. 1 snipeitapp apache 536 Jun 28 2019 .env.tests
-rw-r--r--. 1 snipeitapp apache 491 Jun 28 2019 .env.unit-tests
-rw-r--r--. 1 snipeitapp apache 1711 Jun 28 2019 gh-changelog.php
drwxr-xr-x. 8 snipeitapp apache 220 Aug 18 16:48 .git
-rwxrwxr-x. 1 snipeitapp snipeitapp 53 Aug 16 16:16 .gitattributes
drwxr-xr-x. 4 snipeitapp apache 247 Aug 16 16:16 .github
-rwxrwxr-x. 1 snipeitapp snipeitapp 1209 Aug 16 16:16 .gitignore
-rw-rw-r--. 1 snipeitapp snipeitapp 446 Aug 16 16:16 .htaccess
-rw-r--r--. 1 snipeitapp apache 956 Jun 28 2019 index.html
-rw-r--r--. 1 root root 21 Jul 1 2019 info.php
-rwxrwxr-x. 1 snipeitapp snipeitapp 371 Aug 16 16:13 install.sh
-rwxr-xr-x. 1 snipeitapp apache 34519 Jun 28 2019 LICENSE
-rw-r--r--. 1 snipeitapp apache 450983 Jun 28 2019 npm-shrinkwrap.json
-rw-rw-r--. 1 snipeitapp snipeitapp 9 Aug 16 16:16 .nvmrc
-rw-rw-r--. 1 snipeitapp snipeitapp 1996 Aug 16 16:16 package.json
-rw-rw-r--. 1 snipeitapp snipeitapp 896119 Aug 16 16:16 package-lock.json
-rw-rw-r--. 1 snipeitapp snipeitapp 2376 Aug 16 16:16 phpmd.xml
-rw-r--r--. 1 snipeitapp apache 1097 Jun 28 2019 phpunit.xml
drwxr-xr-x. 8 snipeitapp apache 232 Aug 16 16:16 public
-rw-rw-r--. 1 snipeitapp snipeitapp 63924 Aug 16 16:16 README.md
drwxr-xr-x. 6 snipeitapp apache 59 Jun 28 2019 resources
drwxr-xr-x. 3 snipeitapp apache 66 Aug 16 16:16 routes
drwxr-xr-x. 2 snipeitapp apache 189 Aug 16 16:16 sample_csvs
-rw-rw-r--. 1 snipeitapp snipeitapp 1083 Aug 16 16:16 SECURITY.md
-rw-r--r--. 1 snipeitapp apache 567 Jun 28 2019 server.php
-rwxrwxr-x. 1 snipeitapp snipeitapp 25136 Aug 16 16:16 snipeit.sh
-rw-r--r--. 1 snipeitapp apache 21737 Jun 28 2019 snipeit.sh.1
drwxr-xr-x. 7 apache apache 134 Jun 28 2019 storage
drwxr-xr-x. 10 snipeitapp apache 4096 Aug 16 16:16 tests
-rw-r--r--. 1 snipeitapp apache 2805 Jun 28 2019 .travis.yml
-rw-rw-r--. 1 snipeitapp snipeitapp 9657 Aug 16 16:16 upgrade.php
-rw-rw-r--. 1 snipeitapp snipeitapp 4586 Aug 16 16:16 Vagrantfile
drwxrwxr-x. 68 snipeitapp apache 4096 Aug 18 16:53 vendor
-rw-rw-r--. 1 snipeitapp snipeitapp 7565 Aug 16 16:16 webpack.mix.js
From: snipe ***@***.***>
Sent: Wednesday, August 18, 2021 5:21 PM
To: snipe/snipe-it ***@***.***>
Cc: Juan Mas ***@***.***>; Author ***@***.***>
Subject: EXT** Re: [snipe/snipe-it] Cant log in after upgrade to 5.1 (#9951)
Every time you upgrade, you always have to run permissions, or at least check that upgrade.php completed migrations correctly. If you're seeing permissions issues, you should fix those as well. Everything (files and directories) in storage needs to be writable by the web server.
When I run the composer install --no-dev I get:
composer install --no-dev
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Did you remove the vendors directory first as I suggested?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#9951 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AVHLVM53VA35TY5BGIBMQS3T5QP5HANCNFSM5CMZA56A>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
Use Caution, this Email is from outside St. Mary's Bank
|
at last I figure out what was wrong |
Expected Behavior (or desired behavior if a feature request)
We are using LDAP to auth into snipeit. Before the upgrade there werent any issues.
Actual Behavior
When I log in, the pages refreshes back to the login screen. Cant get beyond it. I have tried creating a new admin account from the CLI and that doesnt work either. The page just goes back to the login and cant proceed.
Please confirm you have done the following before posting your bug report:
Provide answers to these questions:
Upgrade
5.1.8
PHP 7.4.22
5.5.68-MariaDB
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-1160.36.2.el7.x86_64
upgrade.php
not getting an error. its just refreshing
/login
No
storage/logs
and your webserver's logs.No
Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.
https://snipe-it.readme.io/docs/getting-help
The text was updated successfully, but these errors were encountered: