snipe / snipe-it

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

Site wont load after git upgrade #15688

Closed NotUrAverageITGuy closed 1 month ago

NotUrAverageITGuy commented 1 month ago

Debug mode

Describe the bug

I went through the process of upgrading from 6.4 > 7.0.13. I Switched from a manual to a git install and everything went smoothly. After I ran the php upgrade.php and received the site is live notification I am not able to reach the site.


WELCOME TO THE SNIPE-IT UPGRADER!

This script will attempt to:

Launching using branch: master Found PHP requirements, will check for PHP > 8.1.0 and < 8.4.0 y Proceed with upgrade? [y/N]: Skipping user check as it is not supported on Windows or Posix is not installed on this server.

STEP 1: Checking .env file:

√ Your APP_KEY is not blank. √ Your APP_URL is not null or blank. It is set to http://10.1.1.25 √ Your APP_URL is set to http://10.1.1.25 and starts with the protocol (https:// or http://) √ Your APP_URL (http://10.1.1.25) does not have a trailing slash.


STEP 2: Checking PHP requirements: (Required PHP >=8.1.0 - <8.4.0)

√ Current PHP version: (8.1.28) is at least 8.1.0 and less than 8.4.0! Continuing... FYI: The php.ini used by this PHP is: C:\PHP\php.ini

Checking Required PHP extensions...

√ bcmath is installed! √ curl is installed! √ exif 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:

√ c:\inetpub\wwwroot\Snipe-IT/bootstrap/cache is writable √ c:\inetpub\wwwroot\Snipe-IT/storage is writable √ c:\inetpub\wwwroot\Snipe-IT/storage/logs is writable √ c:\inetpub\wwwroot\Snipe-IT/storage/logs/laravel.log is writable √ c:\inetpub\wwwroot\Snipe-IT/storage/framework is writable √ c:\inetpub\wwwroot\Snipe-IT/storage/framework/cache is writable √ c:\inetpub\wwwroot\Snipe-IT/storage/framework/sessions is writable √ c:\inetpub\wwwroot\Snipe-IT/storage/framework/views is writable √ c:\inetpub\wwwroot\Snipe-IT/storage/app is writable √ c:\inetpub\wwwroot\Snipe-IT/storage/app/backups is writable √ c:\inetpub\wwwroot\Snipe-IT/storage/app/backup-temp is writable √ c:\inetpub\wwwroot\Snipe-IT/storage/private_uploads is writable √ c:\inetpub\wwwroot\Snipe-IT/public/uploads is writable


STEP 4: Backing up database:

-- Starting backup... Dumping database snipe-it... Determining files to backup... Zipping 106 files and directories... Created zip containing 106 files and directories. Size is 978.94 KB Copying zip to disk named backup... Successfully copied zip to disk named backup. Backup completed!


STEP 5: Putting application into maintenance mode:

-- INFO Application is now in maintenance mode.


STEP 6: Pulling latest from Git (master branch):

Git is installed. Already on 'master' warning: in the working copy of 'composer.lock', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'public/vendor/livewire/livewire.esm.js', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'public/vendor/livewire/livewire.js', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'public/vendor/livewire/livewire.min.js', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'public/vendor/livewire/livewire.min.js.map', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'public/vendor/livewire/manifest.json', LF will be replaced by CRLF the next time Git touches it -- Saved working directory and index state WIP on master: 688260c8b Merge remote-tracking branch 'origin/develop' -- M composer.lock M public/vendor/livewire/livewire.esm.js M public/vendor/livewire/livewire.js M public/vendor/livewire/livewire.min.js M public/vendor/livewire/livewire.min.js.map M public/vendor/livewire/manifest.json 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. √ Deleting bootstrap/cache/services.php. It is no longer used. √ No bootstrap/cache/config.php, so nothing to delete. √ No vendor/symfony/translation/TranslatorInterface.php, so nothing to delete.

-- INFO Configuration cache cleared successfully.

-- INFO Application cache cleared successfully.

-- INFO Route cache cleared successfully.

-- INFO Compiled views cleared successfully.


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: 0 installs, 13 updates, 72 removals

Generated optimized autoload files containing 8854 classes

INFO Discovering packages.

arietimmerman/laravel-scim-server ........................................................................................................... DONE barryvdh/laravel-debugbar ................................................................................................................... DONE barryvdh/laravel-dompdf ..................................................................................................................... DONE eduardokum/laravel-mail-auto-embed .......................................................................................................... DONE intervention/image .......................................................................................................................... DONE laravel-notification-channels/google-chat ................................................................................................... DONE laravel-notification-channels/microsoft-teams ............................................................................................... DONE laravel/passport ............................................................................................................................ DONE laravel/slack-notification-channel .......................................................................................................... DONE laravel/socialite ........................................................................................................................... DONE laravel/tinker .............................................................................................................................. DONE laravel/ui .................................................................................................................................. DONE laravelcollective/html ...................................................................................................................... DONE livewire/livewire ........................................................................................................................... DONE nesbot/carbon ............................................................................................................................... DONE nunomaduro/collision ........................................................................................................................ DONE nunomaduro/termwind ......................................................................................................................... DONE pragmarx/google2fa-laravel .................................................................................................................. DONE spatie/laravel-backup ....................................................................................................................... DONE spatie/laravel-ignition ..................................................................................................................... DONE spatie/laravel-signal-aware-command ......................................................................................................... DONE unicodeveloper/laravel-password ............................................................................................................. DONE

INFO Publishing [livewire:assets] assets.

Copying directory [C:\inetpub\wwwroot\Snipe-IT\vendor\livewire\livewire\dist] to [C:\inetpub\wwwroot\Snipe-IT\public\vendor\livewire] ....... DONE


STEP 9: Migrating database:

INFO Nothing to migrate.


STEP 10: Checking for OAuth keys:

√ OAuth keys detected. Skipping passport install.


STEP 11: Taking application out of maintenance mode:

-- INFO Application is now live.

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

Reproduction steps

  1. run php upgrade.php
  2. ...

Expected behavior

Site to be working after git upgrade

Screenshots

No response

Snipe-IT Version

7.0.13

Operating System

Windows

Web Server

IIS

PHP Version

8.1.28

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

No response

Additional context

No response

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