snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.08k stars 3.18k forks source link

API/V1/ Endlessly Redirecting #8770

Closed RomanoCodes closed 3 years ago

RomanoCodes commented 3 years ago

Please confirm you have done the following before posting your bug report:

Describe the bug Had snipeit running on an older Debian/Apache2 server, moved it to a newer (similar) server to the latest version of snipe it (from 4.8 to current). I have copied folder permissions and structure, the .env file (with database creds, etc) and confirmed that I am able to log into the dashboard, but NO data is loading.

On closer inspection, all GETS (and probably otherwise) to the API are returning 401 errors. For example, the hardware listings: https://mysite.com/api/v1/hardware?company_id=&limit=20&offset=0&order=asc&order_number=&sort=name&status=&status_id=

image

image

You can see hitting the API directly causes you to loop back and forth with 302s. image

My vHost: image

Server (please complete the following information):

It feels like I am doing something wrong via the vhost, but I have tried multiple machinations to no avail. Thank you for your time...

welcome[bot] commented 3 years 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.

snipe commented 3 years ago

You cannot access the API via a web browser. That is by design.

RomanoCodes commented 3 years ago

Sorry, I tried this via POSTMAN, as well, but you can see that the site isn't pulling any information (as shown in the network tab of the browser).

snipe commented 3 years ago

When the API calls are not loading in the Web UI, please see the common issues: https://snipe-it.readme.io/docs/installation-issues#table-listing-pages-load-with-401-unauthorizedunauthenticated

Snipe-IT Documentation
Installation/Upgrading Issues
Common installation/upgrading issues and solutions
RomanoCodes commented 3 years ago

Thank you for the quick reply. I will have a look.

snipe commented 3 years ago

(If you use the newer upgrade.php, it will tell you which extensions you're missing and will try to delete those cache files.)

RomanoCodes commented 3 years ago

After checking the bootstrap/cache folder I noticed only services.php was there, which I deleted (and ensure was coming back after a reload to ensure permissions issues were not a factor). This did not fix anything, however.

Hitting upgrade.php off of the root of the site yields a 404, as well. I have tried removing the .htaccess and switching around some directives in the vhost to no avail. I am at a loss here... I also tried regenerating a new APP_KEY.

snipe commented 3 years ago

You run php upgrade.php from the command line, not from the web.

Do not remove the htaccess file! It is requires for everything to work.

snipe commented 3 years ago
git pull
php upgrade.php
RomanoCodes commented 3 years ago

You truly are the some kind of wizard... thanks for the quick reply. 👍 I will try this out - Thank you!

snipe commented 3 years ago

When you've run that script, show me the output of it here

RomanoCodes commented 3 years ago

Looks like...

✘ MISSING PHP EXTENSION: bcmath

Will sort that out and report back.

RomanoCodes commented 3 years ago
This script will attempt to:

- check your PHP version and extension requirements
- do a git pull to bring you to the latest version
- run composer install to get your vendors up to date
- run migrations to get your schema up to date
- clear out old cache settings

--------------------------------------------------------
STEP 1: Checking PHP requirements:
--------------------------------------------------------

Current PHP version: (7.3.19-1~deb10u1) is at least 7.2.0 - continuing...
FYI: The php.ini used by this PHP is: /etc/php/7.3/cli/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!
√ tokenizer is installed!
√ xml is installed!
√ zip is installed!

--------------------------------------------------------
STEP 2: Backing up database:
--------------------------------------------------------

-- Starting backup...
Dumping database snipeit...
Determining files to backup...
Zipping 50 files and directories...
Created zip containing 50 files and directories. Size is 50.04 KB
Copying zip to disk named backup...
Successfully copied zip to disk named backup.
Backup completed!

--------------------------------------------------------
STEP 3: Putting application into maintenance mode:
--------------------------------------------------------

-- Application is now in maintenance mode.

--------------------------------------------------------
STEP 4: Pulling latest from Git (master branch):
--------------------------------------------------------

Git is installed.
Already on 'master'

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <xxxxxxxxxxl>) not allowed
Cannot save the current index state
-- -- M composer.lock
M       storage/private_uploads/signatures/.gitkeep
Your branch is up to date with 'origin/master'.
-- Already up to date.

--------------------------------------------------------
Step 5: Cleaning up old cached files:
--------------------------------------------------------

√ No bootstrap/cache/compiled.php, so nothing to delete.
√ No bootsrap/cache/services.php, so nothing to delete.
√ No bootstrap/cache/config.php, so nothing to delete.

-- Configuration cache cleared!
-- Application cache cleared!
-- Route cache cleared!
-- Compiled views cleared!

--------------------------------------------------------
Step 6: Updating composer dependencies:
(This may take a moment.)
--------------------------------------------------------

-- We couldn't find a local composer.phar. No worries, trying globally.

> Illuminate\Foundation\ComposerScripts::postAutoloadDump
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 0 installs, 0 updates, 37 removals
  - Removing theseer/tokenizer (1.2.0)
  - Removing symfony/yaml (v4.4.16)
  - Removing symfony/dom-crawler (v4.4.16)
  - Removing symfony/browser-kit (v4.4.16)
  - Removing softcreatr/jsonpath (0.7.2)
  - Removing sebastian/version (2.0.1)
  - Removing sebastian/type (1.1.3)
  - Removing sebastian/resource-operations (2.0.1)
  - Removing sebastian/object-reflector (1.1.1)
  - Removing sebastian/object-enumerator (3.0.3)
  - Removing sebastian/global-state (3.0.0)
  - Removing sebastian/environment (4.2.3)
  - Removing sebastian/code-unit-reverse-lookup (1.0.1)
  - Removing phpunit/phpunit (8.5.9)
  - Removing phpunit/php-token-stream (3.1.1)
  - Removing phpunit/php-timer (2.1.2)
  - Removing phpunit/php-text-template (1.2.1)
  - Removing phpunit/php-file-iterator (2.0.2)
  - Removing phpunit/php-code-coverage (7.0.10)
  - Removing php-webdriver/webdriver (1.8.3)
  - Removing phar-io/version (2.0.1)
  - Removing phar-io/manifest (1.0.3)
  - Removing overtrue/phplint (2.2.0)
  - Removing n98/junit-xml (1.0.0)
  - Removing myclabs/deep-copy (1.10.2)
  - Removing justinrainbow/json-schema (5.2.10)
  - Removing fzaninotto/faker (v1.9.1)
  - Removing codeception/stub (3.7.0)
  - Removing codeception/phpunit-wrapper (8.1.3)
  - Removing codeception/module-webdriver (1.1.4)
  - Removing codeception/module-rest (1.2.7)
  - Removing codeception/module-laravel5 (1.1.1)
  - Removing codeception/module-asserts (1.3.1)
  - Removing codeception/lib-innerbrowser (1.3.4)
  - Removing codeception/lib-asserts (1.13.2)
  - Removing codeception/codeception (4.1.12)
  - Removing behat/gherkin (v4.6.2)
    0 [>---------------------------]    0 [>---------------------------]Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
51 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Generating optimized autoload files
Generated optimized autoload files containing 7320 classes

--------------------------------------------------------
Step 7: Migrating database:
--------------------------------------------------------

Nothing to migrate.

--------------------------------------------------------
Step 8: Checking for OAuth keys:
--------------------------------------------------------

√ OAuth keys detected. Skipping passport install.

--------------------------------------------------------
Step 9: Taking application out of maintenance mode:
--------------------------------------------------------

-- Application is now live.

---------------------- FINISHED! -----------------------
All done! Clear your browser cookies and re-login to use
your upgraded Snipe-IT!
--------------------------------------------------------
snipe commented 3 years ago

And? What's the state of your Snipe-IT install now?

RomanoCodes commented 3 years ago

The pandas, they weep. image

snipe commented 3 years ago

Did you logout, clear your browser cookies and log back in?

RomanoCodes commented 3 years ago

Yes, tried on a completely different browser (in incognito/private mode). No luck. The odd thing is that on the main dashboard it is reporting all the assets I have stored on the old server/install, but it simply won't list them. Schema changes of some sort, perhaps?

image

snipe commented 3 years ago

Nothing to migrate

would indicate that your schema is up to date, and your storage/logs/laravel.log would be indicating a database schema error, not a 401. When you reload the page, do you see anything new in that log file?

RomanoCodes commented 3 years ago

To be clear, I have not edited any of the source/master on my previous install where this was running.

snipe commented 3 years ago

Actually, this bit here seems a bit weird...

Git is installed.
Already on 'master'

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <xxxxxxxxxxl>) not allowed
Cannot save the current index state
-- -- M composer.lock
M       storage/private_uploads/signatures/.gitkeep
Your branch is up to date with 'origin/master'.

You'll want to fix that: https://stackoverflow.com/questions/43662048/getting-fatal-empty-ident-name-not-allowed-when-doing-git-commit-amend/43662115

Then try running those commands again

Stack Overflow
Getting 'fatal: empty ident name not allowed' when doing 'git commit --amend'
I am doing a git commit --amend and I get this error: fatal: empty ident name (for <>) not allowed I've found a bunch of stuff saying I need to set my user.email and user.name, but I have. T...
RomanoCodes commented 3 years ago

Will look into the above...

For what it is worth, there are no new log entries in that log file after running the page or the upgrade.php file (nor in the apache error log).

RomanoCodes commented 3 years ago

Well sheesh.

After setting a user.name and user.email, it a whole lot more grabbing of things... pasting here for posterity.


--------------------------------------------------------
WELCOME TO THE SNIPE-IT UPGRADER!
--------------------------------------------------------

This script will attempt to:

- check your PHP version and extension requirements
- do a git pull to bring you to the latest version
- run composer install to get your vendors up to date
- run migrations to get your schema up to date
- clear out old cache settings

--------------------------------------------------------
STEP 1: Checking PHP requirements:
--------------------------------------------------------

Current PHP version: (7.3.19-1~deb10u1) is at least 7.2.0 - continuing...
FYI: The php.ini used by this PHP is: /etc/php/7.3/cli/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!
√ tokenizer is installed!
√ xml is installed!
√ zip is installed!

--------------------------------------------------------
STEP 2: Backing up database:
--------------------------------------------------------

-- Starting backup...
Dumping database snipeit...
Determining files to backup...
Zipping 50 files and directories...
Created zip containing 50 files and directories. Size is 50.05 KB
Copying zip to disk named backup...
Successfully copied zip to disk named backup.
Backup completed!

--------------------------------------------------------
STEP 3: Putting application into maintenance mode:
--------------------------------------------------------

-- Application is now in maintenance mode.

--------------------------------------------------------
STEP 4: Pulling latest from Git (master branch):
--------------------------------------------------------

Git is installed.
Already on 'master'
-- Saved working directory and index state WIP on master: 124af6ac6 Merge remote-tracking branch 'origin/develop'
-- M    composer.lock
M       storage/private_uploads/signatures/.gitkeep
Your branch is up to date with 'origin/master'.
-- Already up to date.

--------------------------------------------------------
Step 5: Cleaning up old cached files:
--------------------------------------------------------

√ No bootstrap/cache/compiled.php, so nothing to delete.
√ No bootsrap/cache/services.php, so nothing to delete.
√ No bootstrap/cache/config.php, so nothing to delete.

-- Configuration cache cleared!
-- Failed to clear cache. Make sure you have the appropriate permissions.
-- Route cache cleared!
-- Compiled views cleared!

--------------------------------------------------------
Step 6: Updating composer dependencies:
(This may take a moment.)
--------------------------------------------------------

-- We couldn't find a local composer.phar. No worries, trying globally.

> Illuminate\Foundation\ComposerScripts::postAutoloadDump
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 0 installs, 84 updates, 3 removals
  - Downloading symfony/polyfill-php72 (v1.15.0)
  - Downloading symfony/polyfill-mbstring (v1.15.0)
  - Downloading symfony/var-dumper (v4.4.7)
  - Downloading tightenco/collect (v7.6.1)
  - Downloading symfony/polyfill-ctype (v1.15.0)
  - Downloading phpoption/phpoption (1.7.3)
  - Downloading vlucas/phpdotenv (v3.6.3)
  - Downloading symfony/css-selector (v4.4.7)
  - Downloading symfony/routing (v4.4.7)
  - Downloading symfony/process (v4.4.7)
  - Downloading symfony/polyfill-php73 (v1.15.0)
  - Downloading symfony/polyfill-intl-idn (v1.15.0)
  - Downloading symfony/mime (v4.4.7)
  - Downloading symfony/http-foundation (v4.4.7)
  - Downloading symfony/event-dispatcher (v4.4.7)
  - Downloading symfony/debug (v4.4.7)
  - Downloading symfony/error-handler (v4.4.7)
  - Downloading symfony/http-kernel (v4.4.7)
  - Downloading symfony/service-contracts (v1.1.8)
  - Downloading symfony/console (v4.4.7)
  - Downloading symfony/polyfill-iconv (v1.15.0)
  - Downloading doctrine/lexer (1.2.0)
  - Downloading egulias/email-validator (2.1.17)
  - Downloading opis/closure (3.5.1)
  - Downloading symfony/translation-contracts (v1.1.7)
  - Downloading symfony/translation (v4.4.7)
  - Downloading nesbot/carbon (2.32.2)
  - Downloading monolog/monolog (2.0.2)
  - Downloading league/flysystem (1.0.67)
  - Downloading league/commonmark (1.4.1)
  - Downloading laravel/framework (v6.18.10)
  - Downloading adldap2/adldap2 (v10.2.3)
  - Downloading maximebf/debugbar (v1.16.2)
  - Downloading barryvdh/laravel-debugbar (v3.3.2)
  - Downloading doctrine/annotations (1.10.2)
  - Downloading doctrine/reflection (1.2.1)
  - Downloading doctrine/collections (1.6.4)
  - Downloading doctrine/persistence (1.3.7)
  - Downloading doctrine/common (2.12.0)
  - Downloading doctrine/dbal (2.10.2)
  - Downloading squizlabs/php_codesniffer (3.5.5)
  - Downloading masterminds/html5 (2.7.0)
  - Downloading fideloper/proxy (4.3.0)
  - Downloading laminas/laminas-zendframework-bridge (1.0.3)
  - Downloading laravel/helpers (v1.2.0)
  - Downloading symfony/psr-http-message-bridge (v2.0.0)
  - Downloading phpseclib/phpseclib (2.0.27)
  - Downloading nyholm/psr7 (1.2.1)
  - Downloading league/oauth2-server (8.0.0)
  - Downloading laminas/laminas-diactoros (2.2.3)
  - Downloading guzzlehttp/guzzle (6.5.3)
  - Downloading laravel/passport (v8.4.4)
  - Downloading laravel/slack-notification-channel (v2.0.2)
  - Downloading nikic/php-parser (v4.4.0)
  - Downloading psy/psysh (v0.10.3)
  - Downloading laravel/tinker (v2.4.0)
  - Downloading mtdowling/jmespath.php (2.5.0)
  - Downloading aws/aws-sdk-php (3.135.1)
  - Downloading league/flysystem-aws-s3-v3 (1.0.24)
  - Downloading league/flysystem-cached-adapter (1.0.9)
  - Downloading robrichards/xmlseclibs (3.1.0)
  - Downloading phpdocumentor/type-resolver (1.1.0)
  - Downloading webmozart/assert (1.8.0)
  - Downloading pragmarx/google2fa-laravel (v1.3.3)
  - Downloading rollbar/rollbar (v2.0.0)
  - Downloading spatie/temporary-directory (1.2.2)
  - Downloading spatie/db-dumper (2.16.0)
  - Downloading spatie/laravel-backup (6.9.0)
  - Downloading tecnickcom/tc-lib-barcode (1.15.20)
  - Downloading tightenco/ziggy (v0.9.0)
  0/70 [>---------------------------]   0%
  2/70 [>---------------------------]   2%
  3/70 [=>--------------------------]   4%
  4/70 [=>--------------------------]   5%
  5/70 [==>-------------------------]   7%
  6/70 [==>-------------------------]   8%
  7/70 [==>-------------------------]  10%
  8/70 [===>------------------------]  11%
  9/70 [===>------------------------]  12%
 10/70 [====>-----------------------]  14%
 11/70 [====>-----------------------]  15%
 12/70 [====>-----------------------]  17%
 13/70 [=====>----------------------]  18%
 14/70 [=====>----------------------]  20%
 15/70 [======>---------------------]  21%
 16/70 [======>---------------------]  22%
 17/70 [======>---------------------]  24%
 18/70 [=======>--------------------]  25%
 19/70 [=======>--------------------]  27%
 20/70 [========>-------------------]  28%
 21/70 [========>-------------------]  30%
 22/70 [========>-------------------]  31%
 23/70 [=========>------------------]  32%
 24/70 [=========>------------------]  34%
 25/70 [==========>-----------------]  35%
 26/70 [==========>-----------------]  37%
 27/70 [==========>-----------------]  38%
 28/70 [===========>----------------]  40%
 29/70 [===========>----------------]  41%
 30/70 [============>---------------]  42%
 31/70 [============>---------------]  44%
 32/70 [============>---------------]  45%
 33/70 [=============>--------------]  47%
 34/70 [=============>--------------]  48%
 35/70 [==============>-------------]  50%
 36/70 [==============>-------------]  51%
 37/70 [==============>-------------]  52%
 38/70 [===============>------------]  54%
 39/70 [===============>------------]  55%
 40/70 [================>-----------]  57%
 41/70 [================>-----------]  58%
 42/70 [================>-----------]  60%
 43/70 [=================>----------]  61%
 44/70 [=================>----------]  62%
 45/70 [==================>---------]  64%
 46/70 [==================>---------]  65%
 47/70 [==================>---------]  67%
 48/70 [===================>--------]  68%
 49/70 [===================>--------]  70%
 50/70 [====================>-------]  71%
 51/70 [====================>-------]  72%
 52/70 [====================>-------]  74%
 53/70 [=====================>------]  75%
 54/70 [=====================>------]  77%
 55/70 [======================>-----]  78%
 57/70 [======================>-----]  81%
 58/70 [=======================>----]  82%
 59/70 [=======================>----]  84%
 60/70 [========================>---]  85%
 61/70 [========================>---]  87%
 62/70 [========================>---]  88%
 63/70 [=========================>--]  90%
 64/70 [=========================>--]  91%
 65/70 [==========================>-]  92%
 66/70 [==========================>-]  94%
 67/70 [==========================>-]  95%
 68/70 [===========================>]  97%
 69/70 [===========================>]  98%
 70/70 [============================] 100%  - Removing symfony/polyfill-php80 (v1.20.0)
  - Removing symfony/polyfill-intl-normalizer (v1.20.0)
  - Removing symfony/http-client-contracts (v1.1.10)
  - Downgrading symfony/polyfill-php72 (v1.20.0 => v1.15.0): Extracting archive
  - Downgrading symfony/polyfill-mbstring (v1.20.0 => v1.15.0): Extracting archive
  - Downgrading symfony/var-dumper (v4.4.16 => v4.4.7): Extracting archive
  - Downgrading tightenco/collect (v8.14.0 => v7.6.1): Extracting archive
  - Downgrading symfony/polyfill-ctype (v1.20.0 => v1.15.0): Extracting archive
  - Downgrading phpoption/phpoption (1.7.5 => 1.7.3): Extracting archive
  - Downgrading vlucas/phpdotenv (v3.6.7 => v3.6.3): Extracting archive
  - Downgrading symfony/css-selector (v4.4.16 => v4.4.7): Extracting archive
  - Downgrading tijsverkoyen/css-to-inline-styles (2.2.3 => 2.2.2): Extracting archive
  - Downgrading symfony/routing (v4.4.16 => v4.4.7): Extracting archive
  - Downgrading symfony/process (v4.4.16 => v4.4.7): Extracting archive
  - Downgrading symfony/polyfill-php73 (v1.20.0 => v1.15.0): Extracting archive
  - Downgrading symfony/polyfill-intl-idn (v1.20.0 => v1.15.0): Extracting archive
  - Downgrading symfony/mime (v4.4.16 => v4.4.7): Extracting archive
  - Downgrading symfony/http-foundation (v4.4.16 => v4.4.7): Extracting archive
  - Downgrading symfony/event-dispatcher-contracts (v1.1.9 => v1.1.7): Extracting archive
  - Downgrading symfony/event-dispatcher (v4.4.16 => v4.4.7): Extracting archive
  - Downgrading symfony/debug (v4.4.16 => v4.4.7): Extracting archive
  - Downgrading symfony/error-handler (v4.4.16 => v4.4.7): Extracting archive
  - Downgrading symfony/http-kernel (v4.4.16 => v4.4.7): Extracting archive
  - Downgrading symfony/finder (v4.4.16 => v4.4.7): Extracting archive
  - Downgrading symfony/service-contracts (v1.1.9 => v1.1.8): Extracting archive
  - Downgrading symfony/console (v4.4.16 => v4.4.7): Extracting archive
  - Downgrading symfony/polyfill-iconv (v1.20.0 => v1.15.0): Extracting archive
  - Downgrading doctrine/lexer (1.2.1 => 1.2.0): Extracting archive
  - Downgrading egulias/email-validator (2.1.24 => 2.1.17): Extracting archive
  - Downgrading opis/closure (3.6.1 => 3.5.1): Extracting archive
  - Downgrading symfony/translation-contracts (v1.1.10 => v1.1.7): Extracting archive
  - Downgrading symfony/translation (v4.4.16 => v4.4.7): Extracting archive
  - Downgrading nesbot/carbon (2.41.5 => 2.32.2): Extracting archive
  - Downgrading monolog/monolog (2.1.1 => 2.0.2): Extracting archive
  - Downgrading league/flysystem (1.0.70 => 1.0.67): Extracting archive
  - Downgrading league/commonmark (1.5.7 => 1.4.1): Extracting archive
  - Downgrading dragonmantank/cron-expression (v2.3.1 => v2.3.0): Extracting archive
  - Downgrading doctrine/inflector (1.4.3 => 1.3.1): Extracting archive
  - Downgrading laravel/framework (v6.18.43 => v6.18.10): Extracting archive
  - Downgrading adldap2/adldap2 (v10.3.1 => v10.2.3): Extracting archive
  - Downgrading maximebf/debugbar (v1.16.3 => v1.16.2): Extracting archive
  - Downgrading barryvdh/laravel-debugbar (v3.5.1 => v3.3.2): Extracting archive
  - Downgrading doctrine/annotations (1.11.1 => 1.10.2): Extracting archive
  - Downgrading doctrine/reflection (1.2.2 => 1.2.1): Extracting archive
  - Downgrading doctrine/event-manager (1.1.1 => 1.1.0): Extracting archive
  - Downgrading doctrine/collections (1.6.7 => 1.6.4): Extracting archive
  - Downgrading doctrine/cache (1.10.2 => 1.10.0): Extracting archive
  - Downgrading doctrine/persistence (1.3.8 => 1.3.7): Extracting archive
  - Downgrading doctrine/common (2.13.3 => 2.12.0): Extracting archive
  - Downgrading doctrine/dbal (2.10.4 => 2.10.2): Extracting archive
  - Downgrading squizlabs/php_codesniffer (3.5.8 => 3.5.5): Extracting archive
  - Downgrading masterminds/html5 (2.7.4 => 2.7.0): Extracting archive
  - Downgrading fideloper/proxy (4.4.1 => 4.3.0): Extracting archive
  - Downgrading guzzlehttp/promises (1.4.0 => v1.3.1): Extracting archive
  - Downgrading guzzlehttp/psr7 (1.7.0 => 1.6.1): Extracting archive
  - Downgrading laminas/laminas-zendframework-bridge (1.1.1 => 1.0.3): Extracting archive
  - Downgrading laravel/helpers (v1.4.0 => v1.2.0): Extracting archive
  - Downgrading symfony/psr-http-message-bridge (v2.0.2 => v2.0.0): Extracting archive
  - Downgrading phpseclib/phpseclib (2.0.29 => 2.0.27): Extracting archive
  - Downgrading nyholm/psr7 (1.3.2 => 1.2.1): Extracting archive
  - Downgrading lcobucci/jwt (3.3.3 => 3.3.1): Extracting archive
  - Downgrading league/oauth2-server (8.1.1 => 8.0.0): Extracting archive
  - Downgrading laminas/laminas-diactoros (2.4.1 => 2.2.3): Extracting archive
  - Downgrading guzzlehttp/guzzle (6.5.5 => 6.5.3): Extracting archive
  - Downgrading laravel/passport (v8.5.0 => v8.4.4): Extracting archive
  - Downgrading laravel/slack-notification-channel (v2.3.0 => v2.0.2): Extracting archive
  - Downgrading nikic/php-parser (v4.10.2 => v4.4.0): Extracting archive
  - Downgrading psy/psysh (v0.10.4 => v0.10.3): Extracting archive
  - Downgrading laravel/tinker (v2.4.2 => v2.4.0): Extracting archive
  - Downgrading mtdowling/jmespath.php (2.6.0 => 2.5.0): Extracting archive
  - Downgrading aws/aws-sdk-php (3.162.0 => 3.135.1): Extracting archive
  - Downgrading league/flysystem-aws-s3-v3 (1.0.29 => 1.0.24): Extracting archive
  - Downgrading league/flysystem-cached-adapter (1.1.0 => 1.0.9): Extracting archive
  - Downgrading robrichards/xmlseclibs (3.1.1 => 3.1.0): Extracting archive
  - Downgrading phpdocumentor/reflection-common (2.2.0 => 2.0.0): Extracting archive
  - Downgrading phpdocumentor/type-resolver (1.4.0 => 1.1.0): Extracting archive
  - Downgrading webmozart/assert (1.9.1 => 1.8.0): Extracting archive
  - Downgrading phpdocumentor/reflection-docblock (5.2.2 => 5.1.0): Extracting archive
  - Downgrading doctrine/instantiator (1.4.0 => 1.3.0): Extracting archive
  - Downgrading phpspec/prophecy (1.12.1 => v1.10.3): Extracting archive
  - Downgrading pragmarx/google2fa-laravel (v1.4.1 => v1.3.3): Extracting archive
  - Downgrading rollbar/rollbar (v2.1.0 => v2.0.0): Extracting archive
  - Downgrading spatie/temporary-directory (1.3.0 => 1.2.2): Extracting archive
  - Downgrading spatie/db-dumper (2.18.0 => 2.16.0): Extracting archive
  - Downgrading spatie/laravel-backup (6.11.1 => 6.9.0): Extracting archive
  - Upgrading tecnickcom/tc-lib-barcode (1.15.4 => 1.15.20): Extracting archive
  - Downgrading tightenco/ziggy (0.9.4 => v0.9.0): Extracting archive
  0/74 [>---------------------------]   0%
 10/74 [===>------------------------]  13%
 20/74 [=======>--------------------]  27%
 30/74 [===========>----------------]  40%
 40/74 [===============>------------]  54%
 50/74 [==================>---------]  67%
 59/74 [======================>-----]  79%
 69/74 [==========================>-]  93%
 74/74 [============================] 100%Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
11 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Generating optimized autoload files
Generated optimized autoload files containing 5753 classes

--------------------------------------------------------
Step 7: Migrating database:
--------------------------------------------------------

Nothing to migrate.

--------------------------------------------------------
Step 8: Checking for OAuth keys:
--------------------------------------------------------

√ OAuth keys detected. Skipping passport install.

--------------------------------------------------------
Step 9: Taking application out of maintenance mode:
--------------------------------------------------------

-- Application is now live.

---------------------- FINISHED! -----------------------
All done! Clear your browser cookies and re-login to use
your upgraded Snipe-IT!
--------------------------------------------------------

Thank you kindly for your help.

snipe commented 3 years ago

That looks much better. Is your Snipe-IT loading now?

RomanoCodes commented 3 years ago

Yes, all screens are green. Thank you very much for your help, this is what fixed it... I suspect some packages, specifically /tighten/ziggy needed updating, hence the routing fail.

snipe commented 3 years ago

Anything that needed updating should be handled via the composer install that the upgrade script does. You should never be running composer update. I noticed the composer.lock file was modified when you ran that upgrader the first time, which typically only happens if someone ran composer update. When you do that, your package versions become out of sync with ours, and that becomes nearly impossible to troubleshoot.

Glad you're all sorted tho.