Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Trying to access array offset on value of type bool #1505

Closed
demorgia opened this issue Mar 14, 2022 · 0 comments
Closed

Trying to access array offset on value of type bool #1505

demorgia opened this issue Mar 14, 2022 · 0 comments

Comments

@demorgia
Copy link

Hi, we perform a daily backup of our LARAVEL app along with database (MySQL), for some reason we are encountering the issue "Trying to access array offset on value of type bool" this behaviour is not permanent as sometimes the backup is successfully done and sometimes this issue is shown. Moreover, we have observed that our current backup has 78.6 GB size, the process copies around 68 GB of data and after that throws this error.

If we backup database & application separately, the database is successfully backed up, but while copying the application files, this error is thrown. Below is also the logs:

mportant: An error occurred while backing up PROCTORPRO

Exception message: Trying to access array offset on value of type bool

Exception trace: #0 /var/www/html/exam/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php(3471): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() #1 /var/www/html/exam/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php(3409): phpseclib\Net\SSH2->_filter() #2 /var/www/html/exam/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php(3698): phpseclib\Net\SSH2->_get_binary_packet() #3 /var/www/html/exam/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php(4072): phpseclib\Net\SSH2->_get_channel_packet() #4 /var/www/html/exam/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php(2968): phpseclib\Net\SSH2->_send_channel_packet() #5 /var/www/html/exam/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php(2046): phpseclib\Net\SFTP->_send_sftp_packet() #6 /var/www/html/exam/vendor/league/flysystem-sftp/src/SftpAdapter.php(445): phpseclib\Net\SFTP->put() #7 /var/www/html/exam/vendor/league/flysystem-sftp/src/SftpAdapter.php(424): League\Flysystem\Sftp\SftpAdapter->upload() #8 /var/www/html/exam/vendor/league/flysystem/src/Filesystem.php(88): League\Flysystem\Sftp\SftpAdapter->writeStream() #9 /var/www/html/exam/vendor/spatie/laravel-backup/src/BackupDestination/BackupDestination.php(92): League\Flysystem\Filesystem->writeStream() #10 /var/www/html/exam/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(272): Spatie\Backup\BackupDestination\BackupDestination->write() #11 /var/www/html/exam/vendor/laravel/framework/src/Illuminate/Support/Traits/EnumeratesValues.php(178): Spatie\Backup\Tasks\Backup\BackupJob->Spatie\Backup\Tasks\Backup{closure}() #12 /var/www/html/exam/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(282): Illuminate\Support\Collection->each() #13 /var/www/html/exam/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(155): Spatie\Backup\Tasks\Backup\BackupJob->copyToBackupDestinations() #14 /var/www/html/exam/vendor/spatie/laravel-backup/src/Commands/BackupCommand.php(56): Spatie\Backup\Tasks\Backup\BackupJob->run() #15 [internal function]: Spatie\Backup\Commands\BackupCommand->handle() #16 /var/www/html/exam/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array() #17 /var/www/html/exam/vendor/laravel/framework/src/Illuminate/Container/Util.php(36): Illuminate\Container\BoundMethod::Illuminate\Container{closure}() #18 /var/www/html/exam/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate\Container\Util::unwrapIfClosure() #19 /var/www/html/exam/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate\Container\BoundMethod::callBoundMethod() #20 /var/www/html/exam/vendor/laravel/framework/src/Illuminate/Container/Container.php(592): Illuminate\Container\BoundMethod::call() #21 /var/www/html/exam/vendor/laravel/framework/src/Illuminate/Console/Command.php(134): Illuminate\Container\Container->call() #22 /var/www/html/exam/vendor/symfony/console/Command/Command.php(258): Illuminate\Console\Command->execute() #23 /var/www/html/exam/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\Component\Console\Command\Command->run() #24 /var/www/html/exam/vendor/spatie/laravel-backup/src/Commands/BaseCommand.php(16): Illuminate\Console\Command->run() #25 /var/www/html/exam/vendor/symfony/console/Application.php(911): Spatie\Backup\Commands\BaseCommand->run() #26 /var/www/html/exam/vendor/symfony/console/Application.php(264): Symfony\Component\Console\Application->doRunCommand() #27 /var/www/html/exam/vendor/symfony/console/Application.php(140): Symfony\Component\Console\Application->doRun() #28 /var/www/html/exam/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\Component\Console\Application->run() #29 /var/www/html/exam/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\Console\Application->run() #30 /var/www/html/exam/artisan(37): Illuminate\Foundation\Console\Kernel->handle() #31 {main}

Kindly Help !!!!

@spatie spatie locked and limited conversation to collaborators Mar 14, 2022
@freekmurze freekmurze converted this issue into discussion #1506 Mar 14, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant