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

500 Error After Update #15924

Closed
2 tasks done
bigolbug opened this issue Dec 4, 2024 · 23 comments
Closed
2 tasks done

500 Error After Update #15924

bigolbug opened this issue Dec 4, 2024 · 23 comments

Comments

@bigolbug
Copy link

bigolbug commented Dec 4, 2024

Debug mode

Describe the bug

When accessing the server I receive a 500 error.

I have tried...

  1. https://stackoverflow.com/questions/60634251/script-php-artisan-packagediscover-ansi-handling-the-post-autoload-dump-even/60635087#60635087
  2. chown -R www-data:www-data /var/www/html/snipeit/
  3. https://snipe-it.readme.io/docs/common-issues

Attached is my Laravel.log
laravel.log

Reproduction steps

  1. Install dependencies (https://snipe-it.readme.io/docs/install-dependencies)
  2. php upgrade.php Upgrade Output.txt
  3. Clear cache on browser
  4. Log in
    ...

Expected behavior

No error on login

Screenshots

No response

Snipe-IT Version

v7.1.15 (I assume since I ran upgrade.php)

Operating System

Ubuntu

Web Server

Apache

PHP Version

8.1.2-1ubuntu2.19

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

Copy link

welcome bot commented Dec 4, 2024

👋 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
Copy link
Owner

snipe commented Dec 4, 2024

In the future, please do not attach log files here. They're a pain to open, and we don't like to encourage folks to download files from strangers :)

laravel.log

[2024-12-04 09:00:19] production.ERROR: Symfony\Component\Finder\Exception\DirectoryNotFoundException: The "/home/test/snipeit/storage/oauth-private.key" directory does not exist. in /home/test/snipeit/vendor/symfony/finder/Finder.php:649
Stack trace:
#0 /home/test/snipeit/vendor/spatie/laravel-backup/src/Tasks/Backup/FileSelection.php(79): Symfony\Component\Finder\Finder->in()
#1 /home/test/snipeit/vendor/spatie/laravel-backup/src/Tasks/Backup/Manifest.php(36): Spatie\Backup\Tasks\Backup\FileSelection->selectedFiles()
#2 /home/test/snipeit/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(195): Spatie\Backup\Tasks\Backup\Manifest->addFiles()
#3 /home/test/snipeit/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(163): Spatie\Backup\Tasks\Backup\BackupJob->createBackupManifest()
#4 /home/test/snipeit/vendor/spatie/laravel-backup/src/Commands/BackupCommand.php(65): Spatie\Backup\Tasks\Backup\BackupJob->run()
#5 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Spatie\Backup\Commands\BackupCommand->handle()
#6 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#7 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#8 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#9 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call()
#10 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\Container\Container->call()
#11 /home/test/snipeit/vendor/symfony/console/Command/Command.php(326): Illuminate\Console\Command->execute()
#12 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Command.php(181): Symfony\Component\Console\Command\Command->run()
#13 /home/test/snipeit/vendor/spatie/laravel-backup/src/Commands/BaseCommand.php(28): Illuminate\Console\Command->run()
#14 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(68): Spatie\Backup\Commands\BaseCommand->run()
#15 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(28): Illuminate\Console\Command->runCommand()
#16 /home/test/snipeit/app/Console/Commands/SystemBackup.php(50): Illuminate\Console\Command->call()
#17 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Console\Commands\SystemBackup->handle()
#18 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#19 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#20 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#21 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call()
#22 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\Container\Container->call()
#23 /home/test/snipeit/vendor/symfony/console/Command/Command.php(326): Illuminate\Console\Command->execute()
#24 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Command.php(181): Symfony\Component\Console\Command\Command->run()
#25 /home/test/snipeit/vendor/symfony/console/Application.php(1096): Illuminate\Console\Command->run()
#26 /home/test/snipeit/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#27 /home/test/snipeit/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#28 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\Component\Console\Application->run()
#29 /home/test/snipeit/artisan(35): Illuminate\Foundation\Console\Kernel->handle()
#30 {main}

Next Spatie\Backup\Exceptions\BackupFailed: The "/home/test/snipeit/storage/oauth-private.key" directory does not exist. in /home/test/snipeit/vendor/spatie/laravel-backup/src/Exceptions/BackupFailed.php:17
Stack trace:
#0 /home/test/snipeit/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(177): Spatie\Backup\Exceptions\BackupFailed::from()
#1 /home/test/snipeit/vendor/spatie/laravel-backup/src/Commands/BackupCommand.php(65): Spatie\Backup\Tasks\Backup\BackupJob->run()
#2 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Spatie\Backup\Commands\BackupCommand->handle()
#3 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#4 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#5 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#6 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call()
#7 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\Container\Container->call()
#8 /home/test/snipeit/vendor/symfony/console/Command/Command.php(326): Illuminate\Console\Command->execute()
#9 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Command.php(181): Symfony\Component\Console\Command\Command->run()
#10 /home/test/snipeit/vendor/spatie/laravel-backup/src/Commands/BaseCommand.php(28): Illuminate\Console\Command->run()
#11 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(68): Spatie\Backup\Commands\BaseCommand->run()
#12 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(28): Illuminate\Console\Command->runCommand()
#13 /home/test/snipeit/app/Console/Commands/SystemBackup.php(50): Illuminate\Console\Command->call()
#14 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Console\Commands\SystemBackup->handle()
#15 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#16 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#17 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#18 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call()
#19 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\Container\Container->call()
#20 /home/test/snipeit/vendor/symfony/console/Command/Command.php(326): Illuminate\Console\Command->execute()
#21 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Command.php(181): Symfony\Component\Console\Command\Command->run()
#22 /home/test/snipeit/vendor/symfony/console/Application.php(1096): Illuminate\Console\Command->run()
#23 /home/test/snipeit/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#24 /home/test/snipeit/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#25 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\Component\Console\Application->run()
#26 /home/test/snipeit/artisan(35): Illuminate\Foundation\Console\Kernel->handle()
#27 {main}  
[2024-12-04 09:00:19] production.ERROR: The "/home/test/snipeit/storage/oauth-private.key" directory does not exist. {"exception":"[object] (Spatie\\Backup\\Exceptions\\BackupFailed(code: 0): The \"/home/test/snipeit/storage/oauth-private.key\" directory does not exist. at /home/test/snipeit/vendor/spatie/laravel-backup/src/Exceptions/BackupFailed.php:17)
[stacktrace]
#0 /home/test/snipeit/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(177): Spatie\\Backup\\Exceptions\\BackupFailed::from()
#1 /home/test/snipeit/vendor/spatie/laravel-backup/src/Commands/BackupCommand.php(65): Spatie\\Backup\\Tasks\\Backup\\BackupJob->run()
#2 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Spatie\\Backup\\Commands\\BackupCommand->handle()
#3 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#4 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure()
#5 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod()
#6 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call()
#7 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call()
#8 /home/test/snipeit/vendor/symfony/console/Command/Command.php(326): Illuminate\\Console\\Command->execute()
#9 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Command.php(181): Symfony\\Component\\Console\\Command\\Command->run()
#10 /home/test/snipeit/vendor/spatie/laravel-backup/src/Commands/BaseCommand.php(28): Illuminate\\Console\\Command->run()
#11 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(68): Spatie\\Backup\\Commands\\BaseCommand->run()
#12 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(28): Illuminate\\Console\\Command->runCommand()
#13 /home/test/snipeit/app/Console/Commands/SystemBackup.php(50): Illuminate\\Console\\Command->call()
#14 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\\Console\\Commands\\SystemBackup->handle()
#15 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#16 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure()
#17 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod()
#18 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call()
#19 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call()
#20 /home/test/snipeit/vendor/symfony/console/Command/Command.php(326): Illuminate\\Console\\Command->execute()
#21 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Command.php(181): Symfony\\Component\\Console\\Command\\Command->run()
#22 /home/test/snipeit/vendor/symfony/console/Application.php(1096): Illuminate\\Console\\Command->run()
#23 /home/test/snipeit/vendor/symfony/console/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand()
#24 /home/test/snipeit/vendor/symfony/console/Application.php(175): Symfony\\Component\\Console\\Application->doRun()
#25 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\\Component\\Console\\Application->run()
#26 /home/test/snipeit/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle()
#27 {main}

[previous exception] [object] (Symfony\\Component\\Finder\\Exception\\DirectoryNotFoundException(code: 0): The \"/home/test/snipeit/storage/oauth-private.key\" directory does not exist. at /home/test/snipeit/vendor/symfony/finder/Finder.php:649)
[stacktrace]
#0 /home/test/snipeit/vendor/spatie/laravel-backup/src/Tasks/Backup/FileSelection.php(79): Symfony\\Component\\Finder\\Finder->in()
#1 /home/test/snipeit/vendor/spatie/laravel-backup/src/Tasks/Backup/Manifest.php(36): Spatie\\Backup\\Tasks\\Backup\\FileSelection->selectedFiles()
#2 /home/test/snipeit/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(195): Spatie\\Backup\\Tasks\\Backup\\Manifest->addFiles()
#3 /home/test/snipeit/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(163): Spatie\\Backup\\Tasks\\Backup\\BackupJob->createBackupManifest()
#4 /home/test/snipeit/vendor/spatie/laravel-backup/src/Commands/BackupCommand.php(65): Spatie\\Backup\\Tasks\\Backup\\BackupJob->run()
#5 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Spatie\\Backup\\Commands\\BackupCommand->handle()
#6 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#7 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure()
#8 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod()
#9 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call()
#10 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call()
#11 /home/test/snipeit/vendor/symfony/console/Command/Command.php(326): Illuminate\\Console\\Command->execute()
#12 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Command.php(181): Symfony\\Component\\Console\\Command\\Command->run()
#13 /home/test/snipeit/vendor/spatie/laravel-backup/src/Commands/BaseCommand.php(28): Illuminate\\Console\\Command->run()
#14 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(68): Spatie\\Backup\\Commands\\BaseCommand->run()
#15 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(28): Illuminate\\Console\\Command->runCommand()
#16 /home/test/snipeit/app/Console/Commands/SystemBackup.php(50): Illuminate\\Console\\Command->call()
#17 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\\Console\\Commands\\SystemBackup->handle()
#18 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#19 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure()
#20 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod()
#21 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call()
#22 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call()
#23 /home/test/snipeit/vendor/symfony/console/Command/Command.php(326): Illuminate\\Console\\Command->execute()
#24 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Console/Command.php(181): Symfony\\Component\\Console\\Command\\Command->run()
#25 /home/test/snipeit/vendor/symfony/console/Application.php(1096): Illuminate\\Console\\Command->run()
#26 /home/test/snipeit/vendor/symfony/console/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand()
#27 /home/test/snipeit/vendor/symfony/console/Application.php(175): Symfony\\Component\\Console\\Application->doRun()
#28 /home/test/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\\Component\\Console\\Application->run()
#29 /home/test/snipeit/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle()
#30 {main}
"} 

What's strange here is the mention of a directory.

[2024-12-04 09:00:19] production.ERROR: Symfony\Component\Finder\Exception\DirectoryNotFoundException: The "/home/test/snipeit/storage/oauth-private.key" directory does not exist. in /home/test/snipeit/vendor/symfony/finder/Finder.php:649

What was the output when you ran the upgrader?

@bigolbug
Copy link
Author

bigolbug commented Dec 4, 2024 via email

@snipe
Copy link
Owner

snipe commented Dec 4, 2024

Also via attachment, so not as helpful.

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

This script will attempt to:

- validate some very basic .env file settings
- check your PHP version and extension requirements
- check directory permissions
- 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

Launching using branch: master
Found PHP requirements, will check for PHP > 8.1.0 and < 8.4.0
Proceed with upgrade? [y/N]: y

--------------------------------------------------------
STEP 1: Checking .env file:
- Your .env is located at /home/test/snipeit/.env
--------------------------------------------------------

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

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

√ Current PHP version: (8.1.2-1ubuntu2.19) is at least 8.1.0 and less than 8.4.0! Continuing...
FYI: The php.ini used by this PHP is: /etc/php/8.1/cli/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:
--------------------------------------------------------

√ /home/test/snipeit/bootstrap/cache is writable
√ /home/test/snipeit/storage is writable
√ /home/test/snipeit/storage/logs is writable
√ /home/test/snipeit/storage/logs/laravel.log is writable
√ /home/test/snipeit/storage/framework is writable
√ /home/test/snipeit/storage/framework/cache is writable
√ /home/test/snipeit/storage/framework/sessions is writable
√ /home/test/snipeit/storage/framework/views is writable
√ /home/test/snipeit/storage/app is writable
√ /home/test/snipeit/storage/app/backups is writable
√ /home/test/snipeit/storage/app/backup-temp is writable
√ /home/test/snipeit/storage/private_uploads is writable
√ /home/test/snipeit/public/uploads is writable

--------------------------------------------------------
STEP 4: Backing up database:
--------------------------------------------------------

-- Starting backup...
Dumping database snipeit...
Determining files to backup...
Zipping 60 files and directories...
Created zip containing 60 files and directories. Size is 286.78 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'
-- Saved working directory and index state WIP on master: 43d66a8fc Merge pull request #15918 from Godmartinz/mail_name_fix
-- M    composer.lock
M       public/vendor/livewire/livewire.esm.js
M       public/vendor/livewire/livewire.esm.js.map
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.
√ Local composer.phar detected, so we'll use that.

-- Updating local composer.phar

You are already using the latest available Composer version 2.8.3 (stable channel).


Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 0 installs, 25 updates, 70 removals
  - Downloading symfony/deprecation-contracts (v3.5.0)
  - Downloading voku/portable-ascii (2.0.1)
  - Downloading symfony/routing (v6.4.13)
  - Downloading symfony/service-contracts (v3.5.0)
  - Downloading symfony/event-dispatcher-contracts (v3.5.0)
  - Downloading symfony/http-foundation (v6.4.15)
  - Downloading symfony/http-kernel (v6.4.15)
  - Downloading nunomaduro/termwind (v1.16.0)
  - Downloading symfony/translation-contracts (v3.5.0)
  - Downloading laravel/serializable-closure (v1.3.6)
  - Downloading laravel/framework (v10.48.23)
  - Downloading barryvdh/laravel-debugbar (v3.14.6)
  - Downloading laravel/helpers (v1.7.0)
  - Downloading firebase/php-jwt (v6.10.1)
  - Downloading psy/psysh (v0.12.4)
  - Downloading laravel/ui (v4.5.2)
  - Downloading aws/aws-sdk-php (3.326.0)
  - Downloading livewire/livewire (v3.5.12)
  - Downloading robrichards/xmlseclibs (3.1.1)
  - Downloading phpspec/prophecy (v1.19.0)
  - Downloading spatie/backtrace (1.6.2)
  - Downloading spatie/flare-client-php (1.8.0)
  - Downloading spatie/laravel-package-tools (1.16.5)
  - Downloading spatie/db-dumper (3.7.0)
  - Downloading spatie/laravel-ignition (2.8.0)
  0/25 [>---------------------------]   0%
  3/25 [===>------------------------]  12%
  8/25 [========>-------------------]  32%
 14/25 [===============>------------]  56%
 18/25 [====================>-------]  72%
 20/25 [======================>-----]  80%
 23/25 [=========================>--]  92%
 25/25 [============================] 100%
  - Removing vimeo/psalm (5.26.1)
  - Removing theseer/tokenizer (1.2.3)
  - Removing symfony/var-exporter (v6.4.13)
  - Removing symfony/stopwatch (v6.4.13)
  - Removing symfony/polyfill-php81 (v1.31.0)
  - Removing symfony/options-resolver (v6.4.16)
  - Removing symfony/http-client-contracts (v3.5.1)
  - Removing symfony/http-client (v6.4.16)
  - Removing symfony/filesystem (v6.4.13)
  - Removing symfony/dom-crawler (v4.4.45)
  - Removing symfony/cache-contracts (v3.5.1)
  - Removing symfony/cache (v6.4.16)
  - Removing squizlabs/php_codesniffer (3.11.1)
  - Removing spatie/array-to-xml (3.3.0)
  - Removing slevomat/coding-standard (8.15.0)
  - Removing sebastian/version (4.0.1)
  - Removing sebastian/type (4.0.0)
  - Removing sebastian/object-reflector (3.0.0)
  - Removing sebastian/object-enumerator (5.0.0)
  - Removing sebastian/lines-of-code (2.0.2)
  - Removing sebastian/global-state (6.0.2)
  - Removing sebastian/environment (6.1.0)
  - Removing sebastian/complexity (3.2.0)
  - Removing sebastian/code-unit-reverse-lookup (3.0.0)
  - Removing sebastian/code-unit (2.0.0)
  - Removing sebastian/cli-parser (2.0.1)
  - Removing react/stream (v1.4.0)
  - Removing react/socket (v1.16.0)
  - Removing react/promise (v3.2.0)
  - Removing react/event-loop (v1.5.0)
  - Removing react/dns (v1.13.0)
  - Removing react/child-process (v0.6.5)
  - Removing react/cache (v1.2.0)
  - Removing phpunit/phpunit (10.5.38)
  - Removing phpunit/php-timer (6.0.0)
  - Removing phpunit/php-text-template (3.0.1)
  - Removing phpunit/php-invoker (4.0.0)
  - Removing phpunit/php-file-iterator (4.1.0)
  - Removing phpunit/php-code-coverage (10.1.16)
  - Removing phpstan/phpstan (1.12.12)
  - Removing phpmyadmin/sql-parser (5.10.1)
  - Removing php-parallel-lint/php-parallel-lint (v1.4.0)
  - Removing php-mock/php-mock-phpunit (2.10.0)
  - Removing php-mock/php-mock-integration (2.3.0)
  - Removing php-mock/php-mock (2.5.0)
  - Removing phar-io/version (3.2.1)
  - Removing phar-io/manifest (2.0.4)
  - Removing nunomaduro/phpinsights (v2.12.0)
  - Removing netresearch/jsonmapper (v4.5.0)
  - Removing myclabs/deep-copy (1.12.1)
  - Removing mockery/mockery (1.6.12)
  - Removing league/container (4.2.4)
  - Removing larastan/larastan (v2.9.12)
  - Removing justinrainbow/json-schema (5.3.0)
  - Removing hamcrest/hamcrest-php (v2.0.1)
  - Removing friendsofphp/php-cs-fixer (v3.65.0)
  - Removing fidry/cpu-core-counter (1.2.0)
  - Removing felixfbecker/language-server-protocol (v1.5.3)
  - Removing felixfbecker/advanced-json-rpc (v3.2.1)
  - Removing fakerphp/faker (v1.24.1)
  - Removing evenement/evenement (v3.0.2)
  - Removing dnoegel/php-xdg-base-dir (v0.1.1)
  - Removing dealerdirect/phpcodesniffer-composer-installer (v1.0.0)
  - Removing composer/xdebug-handler (3.0.5)
  - Removing composer/semver (3.4.3)
  - Removing composer/pcre (3.3.2)
  - Removing cmgmyr/phploc (8.0.4)
  - Removing clue/ndjson-react (v1.3.0)
  - Removing amphp/byte-stream (v1.8.2)
  - Removing amphp/amp (v2.6.4)
  - Downgrading symfony/deprecation-contracts (v3.5.1 => v3.5.0): Extracting archive
  - Downgrading voku/portable-ascii (2.0.3 => 2.0.1): Extracting archive
  - Downgrading symfony/routing (v6.4.16 => v6.4.13): Extracting archive
  - Downgrading symfony/service-contracts (v3.5.1 => v3.5.0): Extracting archive
  - Downgrading symfony/event-dispatcher-contracts (v3.5.1 => v3.5.0): Extracting archive
  - Downgrading symfony/http-foundation (v6.4.16 => v6.4.15): Extracting archive
  - Downgrading symfony/http-kernel (v6.4.16 => v6.4.15): Extracting archive
  - Downgrading nunomaduro/termwind (v1.17.0 => v1.16.0): Extracting archive
  - Downgrading symfony/translation-contracts (v3.5.1 => v3.5.0): Extracting archive
  - Downgrading laravel/serializable-closure (v1.3.7 => v1.3.6): Extracting archive
  - Downgrading laravel/framework (v10.48.25 => v10.48.23): Extracting archive
  - Downgrading barryvdh/laravel-debugbar (v3.14.9 => v3.14.6): Extracting archive
  - Downgrading laravel/helpers (v1.7.1 => v1.7.0): Extracting archive
  - Downgrading firebase/php-jwt (v6.10.2 => v6.10.1): Extracting archive
  - Downgrading psy/psysh (v0.12.5 => v0.12.4): Extracting archive
  - Downgrading laravel/ui (v4.6.0 => v4.5.2): Extracting archive
  - Downgrading aws/aws-sdk-php (3.333.0 => 3.326.0): Extracting archive
  - Downgrading livewire/livewire (v3.5.16 => v3.5.12): Extracting archive
  - Downgrading robrichards/xmlseclibs (3.1.3 => 3.1.1): Extracting archive
  - Downgrading phpspec/prophecy (v1.20.0 => v1.19.0): Extracting archive
  - Downgrading spatie/backtrace (1.7.1 => 1.6.2): Extracting archive
  - Downgrading spatie/flare-client-php (1.10.0 => 1.8.0): Extracting archive
  - Downgrading spatie/laravel-package-tools (1.16.6 => 1.16.5): Extracting archive
  - Downgrading spatie/db-dumper (3.7.1 => 3.7.0): Extracting archive
  - Downgrading spatie/laravel-ignition (2.9.0 => 2.8.0): Extracting archive
  0/86 [>---------------------------]   0%
  9/86 [==>-------------------------]  10%
 18/86 [=====>----------------------]  20%
 27/86 [========>-------------------]  31%
 35/86 [===========>----------------]  40%
 44/86 [==============>-------------]  51%
 52/86 [================>-----------]  60%
 61/86 [===================>--------]  70%
 71/86 [=======================>----]  82%
 81/86 [==========================>-]  94%
 85/86 [===========================>]  98%
 86/86 [============================] 100%
Package laravelcollective/html is abandoned, you should avoid using it. Use spatie/laravel-html instead.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
> @php artisan vendor:publish --force --tag=livewire:assets --ansi
88 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
> @php artisan vendor:publish --force --tag=livewire:assets --ansi
Generating optimized autoload files

   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
  osa-eg/laravel-teams-notification ..................................... 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 [vendor/livewire/livewire/dist] to [public/vendor/livewire]  DONE

Generated optimized autoload files containing 8898 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
  osa-eg/laravel-teams-notification ..................................... 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 [vendor/livewire/livewire/dist] to [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!
--------------------------------------------------------

Nothing stands out - that upgrade looks pretty clean.

When you ls -al /var/www/html/snipeit/, what do you see?

@bigolbug
Copy link
Author

bigolbug commented Dec 4, 2024 via email

@snipe
Copy link
Owner

snipe commented Dec 5, 2024

In your original post, you said you ran chown -R www-data:www-data /var/www/html/snipeit/ - if that directory doesn't exist, how would that have command have completed?

Where is your Snipe-IT directory? Looks like maybe /home/test/snipeit? I think you'd want to chown -R www-data:www-data /home/test/snipeit, in which case please show me the output of ls -al /home/test/snipeit/storage.

@bigolbug
Copy link
Author

bigolbug commented Dec 5, 2024 via email

@snipe
Copy link
Owner

snipe commented Dec 9, 2024

in which case please show me the output of ls -al /home/test/snipeit/storage

Can you show me the output of that please?

@snipe
Copy link
Owner

snipe commented Dec 9, 2024

(ls -al just means list all files within a directory with details - file/dir size, permissions, etc - including hidden files)

@bigolbug
Copy link
Author

bigolbug commented Dec 9, 2024 via email

@uberbrady
Copy link
Collaborator

It's still super-weird that it says that your oauth-private.key is supposed to be a directory - can you redact out any private information - passwords, API keys, stuff like that - from your .env file and paste it up here? Maybe there'll be something weird in there, or something?

@bigolbug
Copy link
Author

bigolbug commented Dec 9, 2024 via email

@uberbrady
Copy link
Collaborator

uberbrady commented Dec 10, 2024

Everything in here looks just fine. Your permissions look good. So I'm running out of things to try.

The main thing to note is that a 500 should cause a report to show up in your laravel.log file. Something should be in there, telling you why you 500'ed. If that file is writable by your PHP process, of course.

The only thing left I can think of - as a sort of 'hail mary' - is to try the various 'clear' strategies here: https://snipe-it.readme.io/docs/common-issues#quick-tip-handy-commands

Barring that, I'm wondering if www-data is the correct user, after all. Do a ps auxwww and look for your web server and/or your PHP-FPM processes - who owns them?

Snipe-IT Documentation
🚧 Problem Installing/Upgrading?: We've moved the the most common installation/upgrade issues to their own page. If you're having an issue installing or upgrading Snipe-IT, please check the Installation/Upgrading Issues page before opening a ticket on Github . Quick Tip: Handy Commands 👍 Many issue...

@bigolbug
Copy link
Author

bigolbug commented Dec 10, 2024 via email

@snipe
Copy link
Owner

snipe commented Dec 11, 2024

That looks like some migrations didn't run. Try php artisan migrate

@bigolbug
Copy link
Author

bigolbug commented Dec 11, 2024 via email

@snipe
Copy link
Owner

snipe commented Dec 11, 2024

The only way that table wouldn't exist is if the migrations didn't run though.

@bigolbug
Copy link
Author

bigolbug commented Dec 11, 2024 via email

@snipe
Copy link
Owner

snipe commented Dec 11, 2024

You'll need to fix those errors and try the upgrader again.

@bigolbug
Copy link
Author

bigolbug commented Dec 12, 2024 via email

@snipe
Copy link
Owner

snipe commented Dec 12, 2024

I had a feeling the two installs might have been confusing things.

Permissions of the storage directory and and subdirectories as well as the public/uploads directory and all subdirectories will need to be readable and writable by the user the web server runs as.

https://snipe-it.readme.io/docs/debugging-permissions#fixing-it

Snipe-IT Documentation
❗️ This article refers to web server file system permissions only: It does not address Snipe-IT application permissions. One of the most common issues folks newer to running web servers run into is how to manage the Linux/Windows/etc owners and groups of the Snipe-IT filesystem. As we mention many t...

@bigolbug
Copy link
Author

bigolbug commented Dec 12, 2024 via email

@snipe snipe closed this as completed Dec 12, 2024
@snipe
Copy link
Owner

snipe commented Dec 12, 2024

No problem - glad you're sorted!

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

3 participants