-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
Upgrade 6.0.14 to newest 6.1 - failed and now access to GUI now #13126
Comments
This is from the debug: Illuminate \ Contracts \ Container \ BindingResolutionException |
Fixed: I added the git config line from below and every time I upgrade.php it would give a new line. Did about 20 of them and it finally worked. In GitDownloader.php line 248: Failed to execute git show-ref --head -d fatal: detected dubious ownership in repository at '/var/www/snipe-it/vendor/nyholm/psr7' To add an exception for this directory, call:
|
Hi there @splork, glad you got it working but it would be a lot better if you didn't have to keep running the command over and over...what platform are you using? |
Centos 7
…On Wed, Jun 7, 2023, 4:45 PM Marcus Moore ***@***.***> wrote:
Hi there @splork <https://github.com/splork>, glad you got it working but
it would be a lot better if you didn't have to keep running the command
over and over...what platform are you using?
—
Reply to this email directly, view it on GitHub
<#13126 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXPEOKQ5FD5WUQQADUXS3LXKDR5RANCNFSM6AAAAAAY5AXJYE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks for the response. I'm going to close this since you got around the issues you experienced but we'll keep track of it if anyone else runs into the same problem. |
Hello, I got the same problem after running ./upgrade.php from 6.0.14 to latest. I searched for GitDownloader.php but that file dose not exist. at this time I am getting 500 error. `STEP 4: Backing up database:-- Class "Laravel\Socialite\SocialiteServiceProvider" not found STEP 5: Putting application into maintenance mode:-- Class "Laravel\Socialite\SocialiteServiceProvider" not found STEP 6: Pulling latest from Git (master branch):Git is installed. STEP 7: Cleaning up old cached files:v No bootstrap/cache/compiled.php, so nothing to delete. -- Class "Laravel\Socialite\SocialiteServiceProvider" not found -- Class "Laravel\Socialite\SocialiteServiceProvider" not found -- Class "Laravel\Socialite\SocialiteServiceProvider" not found -- Class "Laravel\Socialite\SocialiteServiceProvider" not found STEP 8: Updating composer dependencies:
|
Hi @stf675 This line stood out to me: |
since initial setup over year ago, php ./upgrade.php always worked. this time after it broke on v 6.1.12, I ran php ./upgrade.php v6.1.0 and I got back to 6.1.0 and it worked - tried 6.1.2 and it failed same error tried few time back and forth with same results |
so going from 6.1.0 to 6.1.1 or 6.1.2 ends up with those errors 6.1.0 is good |
Sorry you're having issues with this. Can you try the following:
|
running #2 produce lots of "Synching...... into cache then
hitting enter not helping. CTRL-C messing up shell. rebooted, ran upgrade.php - error 500 ran upgrade.php v6.1.0 back to ver 6.1.0 and working |
That's odd...Did you generate a token and paste it in before hitting enter? |
it did not prompt me, and I am not really know what token that should be. |
The message might be confusing because you're not accessing "private repos" but the prompt was at the top of your snippet:
You usually won't get prompted for this but it can occur when I would give the steps mentioned above and generate and paste in the token if prompted. |
Fixed, As you suggested.... ran
confirmed bunch of smaller updates, re-ran uograde.php, it updated some dependencies and now I am on 6.1.2 |
Debug mode
Describe the bug
Upgraded to newest 6.1 version and can no longer access GUI using same URL as previously. Here is the output from the upgrade:
WELCOME TO THE SNIPE-IT UPGRADER!
This script will attempt to:
STEP 1: Checking .env file:
√ Your APP_KEY is not blank.
√ Your APP_URL is not null or blank. It is set to http://snipe.lan
√ Your APP_URL is set to http://snipe.lan and starts with the protocol (https:// or http://)
√ Your APP_URL (http://snipe.lan) does not have a trailing slash.
STEP 2: Checking PHP requirements:
Current PHP version: (7.4.30) is at least 7.4.0 - continuing...
FYI: The php.ini used by this PHP is: /etc/php.ini
Checking Required PHP extensions...
√ bcmath is installed!
√ curl is installed!
√ fileinfo is installed!
√ gd is installed!
√ json is installed!
√ ldap is installed!
√ mbstring is installed!
√ mysqli is installed!
√ openssl is installed!
√ PDO is installed!
√ sodium is installed!
√ tokenizer is installed!
√ xml is installed!
√ zip is installed!
STEP 3: Checking directory permissions:
√ /var/www/snipe-it/bootstrap/cache is writable
√ /var/www/snipe-it/storage is writable
√ /var/www/snipe-it/storage/logs is writable
√ /var/www/snipe-it/storage/logs/laravel.log is writable
√ /var/www/snipe-it/storage/framework is writable
√ /var/www/snipe-it/storage/framework/cache is writable
√ /var/www/snipe-it/storage/framework/sessions is writable
√ /var/www/snipe-it/storage/framework/views is writable
√ /var/www/snipe-it/storage/app is writable
√ /var/www/snipe-it/storage/app/backups is writable
√ /var/www/snipe-it/storage/app/backup-temp is writable
√ /var/www/snipe-it/storage/private_uploads is writable
√ /var/www/snipe-it/public/uploads is writable
STEP 4: Backing up database:
--
In ProviderRepository.php line 208:
Class 'Laravel\Socialite\SocialiteServiceProvider' not found
STEP 5: Putting application into maintenance mode:
--
In ProviderRepository.php line 208:
Class 'Laravel\Socialite\SocialiteServiceProvider' not found
STEP 6: Pulling latest from Git (master branch):
Git is installed.
Already on 'master'
-- No local changes to save
-- Your branch is up to date with 'origin/master'.
-- Already up to date.
STEP 7: Cleaning up old cached files:
√ No bootstrap/cache/compiled.php, so nothing to delete.
√ No bootstrap/cache/services.php, so nothing to delete.
√ No bootstrap/cache/config.php, so nothing to delete.
√ No vendor/symfony/translation/TranslatorInterface.php, so nothing to delete.
--
In ProviderRepository.php line 208:
Class 'Laravel\Socialite\SocialiteServiceProvider' not found
--
In ProviderRepository.php line 208:
Class 'Laravel\Socialite\SocialiteServiceProvider' not found
--
In ProviderRepository.php line 208:
Class 'Laravel\Socialite\SocialiteServiceProvider' not found
--
In ProviderRepository.php line 208:
Class 'Laravel\Socialite\SocialiteServiceProvider' not found
STEP 8: Updating composer dependencies:
(This may take a moment.)
-- Running the app in production mode.
-- We couldn't find a local composer.phar. No worries, trying globally.
Since you are running composer globally, we won't try to update it for you.
If you run into issues with this step, try running
composer self-update
before running this updater again
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 3 installs, 60 updates, 0 removals
0 [>---------------------------] 0 [->--------------------------]
symfony/polyfill-mbstring has modified files:
M LICENSE
M Mbstring.php
M README.md
M Resources/unidata/lowerCase.php
M Resources/unidata/titleCaseRegexp.php
M Resources/unidata/upperCase.php
M bootstrap.php
M bootstrap80.php
M composer.json
Discard changes [y,n,v,d,s,?]?
In GitDownloader.php line 246:
Failed to execute git show-ref --head -d
fatal: detected dubious ownership in repository at '/var/www/snipe-it/vendor/symfony/polyfill-php80'
To add an exception for this directory, call:
install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [...]
Class ParsedownTest located in ./vendor/erusev/parsedown/test/ParsedownTest.php does not comply with psr-0 autoloading standard. Skipping.
In ProviderRepository.php line 208:
Class 'Laravel\Socialite\SocialiteServiceProvider' not found
STEP 9: Migrating database:
In ProviderRepository.php line 208:
Class 'Laravel\Socialite\SocialiteServiceProvider' not found
STEP 10: Checking for OAuth keys:
√ OAuth keys detected. Skipping passport install.
STEP 11: Taking application out of maintenance mode:
--
In ProviderRepository.php line 208:
Class 'Laravel\Socialite\SocialiteServiceProvider' not found
---------------------- FINISHED! -----------------------
All done! Clear your browser cookies and re-login to use
your upgraded Snipe-IT!
[snipeit@WCS-snipeIT-01 snipe-it]$
The text was updated successfully, but these errors were encountered: