-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Multiples Errors during upgrade.php #12945
Comments
Answer to myself, for the DB path failure it is fixed. after changing in the .env, backup works again. Still can't find any clue for the issue at STEP 1
|
If I had to hazard a guess, there's something funny in your .env - maybe some stray spaces on a blank line. Before trying to check for a key, it checks that the .env line contents is greater than 1 (meaning there's something on that line, it's not completely blank) and also that it doesn't start with |
Hi Snipe, thanks for the input, but i have the same issue using the .env.example file `PS E:\wwwroot\snipe-IT> ren ..env.example .env
|
Debug mode
Describe the bug
During upgrade.php
error log
STEP 1: Checking .env file:
PHP Warning: Undefined array key 1 in E:\wwwroot\snipe-IT\upgrade.php on line 54
PHP Warning: Undefined array key 1 in E:\wwwroot\snipe-IT\upgrade.php on line 54
PHP Warning: Undefined array key 1 in E:\wwwroot\snipe-IT\upgrade.php on line 54
PHP Warning: Undefined array key 1 in E:\wwwroot\snipe-IT\upgrade.php on line 54
PHP Warning: Undefined array key 1 in E:\wwwroot\snipe-IT\upgrade.php on line 54
PHP Warning: Undefined array key 1 in E:\wwwroot\snipe-IT\upgrade.php on line 54
PHP Warning: Undefined array key 1 in E:\wwwroot\snipe-IT\upgrade.php on line 54
PHP Warning: Undefined array key 1 in E:\wwwroot\snipe-IT\upgrade.php on line 54
PHP Warning: Undefined array key 1 in E:\wwwroot\snipe-IT\upgrade.php on line 54
PHP Warning: Undefined array key 1 in E:\wwwroot\snipe-IT\upgrade.php on line 54
PHP Warning: Undefined array key 1 in E:\wwwroot\snipe-IT\upgrade.php on line 54
PHP Warning: Undefined array key 1 in E:\wwwroot\snipe-IT\upgrade.php on line 54
PHP Warning: Undefined array key 1 in E:\wwwroot\snipe-IT\upgrade.php on line 54
PHP Warning: Undefined array key 1 in E:\wwwroot\snipe-IT\upgrade.php on line 54
√ Your APP_KEY is not blank.
√ Your APP_URL is not null or blank. It is set to http://snipeit
√ Your APP_URL is set to http://snipeit and starts with the protocol (https:// or http://)
√ Your APP_URL (http://snipeit) does not have a trailing slash.
don't know why this appear, since the .env file last modified timestamp is 17/11/2020
Other issue
STEP 4: Backing up database:
-- Starting backup...
Dumping database snipeit...
Backup failed because The dump process failed with exitcode 1 : General error : The system cannot find the path specified.
.
#0 E:\wwwroot\snipe-IT\vendor\spatie\db-dumper\src\DbDumper.php(263): Spatie\DbDumper\Exceptions\DumpFailed::processDidNotEndSuccessfully()
#1 E:\wwwroot\snipe-IT\vendor\spatie\db-dumper\src\Databases\MySql.php(203): Spatie\DbDumper\DbDumper->checkIfDumpWasSuccessFul()
#2 E:\wwwroot\snipe-IT\vendor\spatie\laravel-backup\src\Tasks\Backup\BackupJob.php(260): Spatie\DbDumper\Databases\MySql->dumpToFile()
#3 [internal function]: Spatie\Backup\Tasks\Backup\BackupJob->Spatie\Backup\Tasks\Backup{closure}()
#4 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Collections\Collection.php(695): array_map()
#5 E:\wwwroot\snipe-IT\vendor\spatie\laravel-backup\src\Tasks\Backup\BackupJob.php(263): Illuminate\Support\Collection->map()
#6 E:\wwwroot\snipe-IT\vendor\spatie\laravel-backup\src\Tasks\Backup\BackupJob.php(171): Spatie\Backup\Tasks\Backup\BackupJob->dumpDatabases()
#7 E:\wwwroot\snipe-IT\vendor\spatie\laravel-backup\src\Tasks\Backup\BackupJob.php(147): Spatie\Backup\Tasks\Backup\BackupJob->createBackupManifest()
#8 E:\wwwroot\snipe-IT\vendor\spatie\laravel-backup\src\Commands\BackupCommand.php(56): Spatie\Backup\Tasks\Backup\BackupJob->run()
#9 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php(36): Spatie\Backup\Commands\BackupCommand->handle()
#10 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Container\Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#11 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#12 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#13 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Container\Container.php(653): Illuminate\Container\BoundMethod::call()
#14 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Console\Command.php(136): Illuminate\Container\Container->call()
#15 E:\wwwroot\snipe-IT\vendor\symfony\console\Command\Command.php(298): Illuminate\Console\Command->execute()
#16 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Console\Command.php(121): Symfony\Component\Console\Command\Command->run()
#17 E:\wwwroot\snipe-IT\vendor\spatie\laravel-backup\src\Commands\BaseCommand.php(16): Illuminate\Console\Command->run()
#18 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Console\Concerns\CallsCommands.php(68): Spatie\Backup\Commands\BaseCommand->run()
#19 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Console\Concerns\CallsCommands.php(28): Illuminate\Console\Command->runCommand()
#20 E:\wwwroot\snipe-IT\app\Console\Commands\SystemBackup.php(41): Illuminate\Console\Command->call()
#21 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php(36): App\Console\Commands\SystemBackup->handle()
#22 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Container\Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#23 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#24 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#25 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Container\Container.php(653): Illuminate\Container\BoundMethod::call()
#26 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Console\Command.php(136): Illuminate\Container\Container->call()
#27 E:\wwwroot\snipe-IT\vendor\symfony\console\Command\Command.php(298): Illuminate\Console\Command->execute()
#28 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Console\Command.php(121): Symfony\Component\Console\Command\Command->run()
#29 E:\wwwroot\snipe-IT\vendor\symfony\console\Application.php(1024): Illuminate\Console\Command->run()
#30 E:\wwwroot\snipe-IT\vendor\symfony\console\Application.php(299): Symfony\Component\Console\Application->doRunCommand()
#31 E:\wwwroot\snipe-IT\vendor\symfony\console\Application.php(171): Symfony\Component\Console\Application->doRun()
#32 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Console\Application.php(94): Symfony\Component\Console\Application->run()
#33 E:\wwwroot\snipe-IT\vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php(129): Illuminate\Console\Application->run()
#34 E:\wwwroot\snipe-IT\artisan(35): Illuminate\Foundation\Console\Kernel->handle()
#35 {main}
Backup failed because: The dump process failed with exitcode 1 : General error : The system cannot find the path specified.
.
running php artisan snipeit:backup give the same output
same issue after upgrading to 6.1.0
Reproduction steps
run php upgrade.php
run php artisan snipeit:backup
Expected behavior
No error in the log for upgrade.php
Screenshots
No response
Snipe-IT Version
6.0.14
Operating System
windows
Web Server
IIS
PHP Version
8.1.14
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
The text was updated successfully, but these errors were encountered: