factorial-io / phabalicious

Supports your deployments and every-day devops-tasks
http://docs.phab.io
MIT License
18 stars 3 forks source link

remote shell command crashed #255

Closed joachim-n closed 2 years ago

joachim-n commented 2 years ago

I had done phab -cmain-preview shell and run a few commands on that environment. I then left my terminal idle for a while, and I assume it tried to disconnect the session, which normally happens.

However, instead of getting a message saying my session was closed due to inactivity, I got this:

cli-drupal:/app$ command terminated with exit code 137

 [ERROR] Command 'kubectl' '--kubeconfig' '/Users/joachim/.kube/occhio-digimagical' '--namespace' 'main-preview'
         '--context' 'occhio' 'exec' '-it' 'cli-fb4b75fbb-snzwc' '--' '/bin/sh' failed with error 137

Warning: include(phar:///usr/local/bin/phab/vendor/composer/../symfony/console/Event/ConsoleTerminateEvent.php): failed to open stream: phar error: internal corruption of phar "/usr/local/bin/phab" (actual filesize mismatch on file "vendor/symfony/console/Event/ConsoleTerminateEvent.php") in phar:///usr/local/bin/phab/.box/vendor/composer/ClassLoader.php on line 444

Call Stack:
    0.0930     357640   1. {main}() /usr/local/bin/phab:0
    0.1624    1320008   2. require('phar:///usr/local/bin/phab/bin/phab') /usr/local/bin/phab:14
    0.9915    3364472   3. Symfony\Component\Console\Application->run() phar:///usr/local/bin/phab/bin/phab:77
    0.9919    3371112   4. Symfony\Component\Console\Application->doRun() phar:///usr/local/bin/phab/vendor/symfony/console/Application.php:149
    0.9931    3383664   5. Symfony\Component\Console\Application->doRunCommand() phar:///usr/local/bin/phab/vendor/symfony/console/Application.php:273
 1566.7637    4029784   6. spl_autoload_call() phar:///usr/local/bin/phab/vendor/symfony/console/Application.php:1041
 1566.7637    4029864   7. Composer\Autoload\ClassLoader->loadClass() phar:///usr/local/bin/phab/vendor/symfony/console/Application.php:1041
 1566.7638    4029864   8. Composer\Autoload\includeFile() phar:///usr/local/bin/phab/.box/vendor/composer/ClassLoader.php:322

Warning: include(): Failed opening 'phar:///usr/local/bin/phab/vendor/composer/../symfony/console/Event/ConsoleTerminateEvent.php' for inclusion (include_path='.:/Applications/MAMP/bin/php/php7.4.2/lib/php') in phar:///usr/local/bin/phab/.box/vendor/composer/ClassLoader.php on line 444

Call Stack:
    0.0930     357640   1. {main}() /usr/local/bin/phab:0
    0.1624    1320008   2. require('phar:///usr/local/bin/phab/bin/phab') /usr/local/bin/phab:14
    0.9915    3364472   3. Symfony\Component\Console\Application->run() phar:///usr/local/bin/phab/bin/phab:77
    0.9919    3371112   4. Symfony\Component\Console\Application->doRun() phar:///usr/local/bin/phab/vendor/symfony/console/Application.php:149
    0.9931    3383664   5. Symfony\Component\Console\Application->doRunCommand() phar:///usr/local/bin/phab/vendor/symfony/console/Application.php:273
 1566.7637    4029784   6. spl_autoload_call() phar:///usr/local/bin/phab/vendor/symfony/console/Application.php:1041
 1566.7637    4029864   7. Composer\Autoload\ClassLoader->loadClass() phar:///usr/local/bin/phab/vendor/symfony/console/Application.php:1041
 1566.7638    4029864   8. Composer\Autoload\includeFile() phar:///usr/local/bin/phab/.box/vendor/composer/ClassLoader.php:322

Fatal error: Uncaught Error: Class 'Symfony\Component\Console\Event\ConsoleTerminateEvent' not found in phar:///usr/local/bin/phab/vendor/symfony/console/Application.php on line 1041

Error: Class 'Symfony\Component\Console\Event\ConsoleTerminateEvent' not found in phar:///usr/local/bin/phab/vendor/symfony/console/Application.php on line 1041

Call Stack:
    0.0930     357640   1. {main}() /usr/local/bin/phab:0
    0.1624    1320008   2. require('phar:///usr/local/bin/phab/bin/phab') /usr/local/bin/phab:14
    0.9915    3364472   3. Symfony\Component\Console\Application->run() phar:///usr/local/bin/phab/bin/phab:77
    0.9919    3371112   4. Symfony\Component\Console\Application->doRun() phar:///usr/local/bin/phab/vendor/symfony/console/Application.php:149
    0.9931    3383664   5. Symfony\Component\Console\Application->doRunCommand() phar:///usr/local/bin/phab/vendor/symfony/console/Application.php:273
stmh commented 2 years ago

Any chance you ran phab self-update in a different shell? Usually you get these types of errors, when the phar gets replaced/updated when a php process is still running.

joachim-n commented 2 years ago

Ah yes, I think I did.