Fatal Error "Set kdump state" task

I’m having this error after running “upcp -sb”
its about “Set kdump state” task.

[0/1] TASK [common/migrate : Locate migration files] *********************************
included: /usr/local/apnscp/resources/playbooks/migrations/2019_09_17_220704_centos_7.7_hotfixes.yml for localhost
[1/1] TASK [Set kdump state] *********************************************************
fatal: [localhost]: FAILED! =>
  msg: |-
    The conditional check 'lookup('ini', 'version section=core file=' + apnscp_root + '/config/config.ini') is version('3.1', '>=')' failed. The error was: Version comparison: '<' not supported between instances of 'str' and 'int'
 
    The error appears to be in '/usr/local/apnscp/resources/playbooks/migrations/2019_09_17_220704_centos_7.7_hotfixes.yml': line 12, column 7, but may
    be elsewhere in the file depending on the exact syntax problem.
 
    The offending line appears to be:
 
    - block:
        - name: Set kdump state
          ^ here
[2/1] PLAY RECAP *********************************************************************
localhost                  : ok=6    changed=0    unreachable=0    failed=1    skipped=3    rescued=0    ignored=0

tried
cd /usr/local/apnscp && upcp -f && ./artisan migrate --force
without success.

Run this now,

env APNSCP_UPDATE_POLICY=edge upcp -bf

Let me know what errors you get, if any. You’re many migrations behind…

Both -m and -b may not be set

I just installed this apiscp I think 6 hours ago.

Can you email me the installation log, /root/apnscp-bootstrapper.log, to matt@apisnetworks.com?

Something’s fishy with fast-forwarding migrations on your install.

At the end of the install, the following commands are run:

cd /usr/local/apnscp
./artisan migrate:platform --ff --force

Last test on Feb 26 completed as expected. You can run this on your fresh install to bring migration current as nothing as changed since.

can’t tell if it’s related but I was having trouble installing this apiscp hours ago.

errors on my install attempt on a fresh 2 GB almalinux 8.4 vps
https://pastebin.com/3pKuB3PH

and so I try re-running the installer and again it failed but with different error.

resumed the install
cd /usr/local/apnscp/resources/playbooks && env ANSIBLE_LOG_PATH=/root/apnscp-bootstrapper.log BOOTSTRAP_SH=/root/resume_apnscp_setup.sh ansible-playbook -l localhost -c local bootstrap.yml
this time, the install was successfull.

OK, this makes more sense.

If SELinux is enabled on the OS, then a reboot is forced early in the install. A separate service, bootstrapper-resume is created that removes the temporary password generated. The presence of this temporary password throughout the entire installation process is what signals at the end it’s a fresh install rather than a platform scrub.

Either the OS was installed without SELinux enabled or the bootstrapper-resume service was stopped to manually run resume_apnscp_setup.sh, so the password file was preserved across invocations bypassing the fast-forward routine at the very end.

By the way, if SELinux was disabled before installing and you’re running xfs, reboot the server so quota support can be brought up on the filesystem. This is covered during the SELinux disablement reboot.

Other issue, transient DNS is due to the resolver. cpcmd scope:get cp.bootstrapper use_robust_dns. If false, it will default to your defaults in /etc/resolv.conf. Setting to true will use Cloudflare’s, which I’ve found to be far more reliable.

cpcmd scope:set cp.bootstrapper use_robust_dns true
upcp -sb common/update-config

cd /usr/local/apnscp ./artisan migrate:platform --ff --force
debian Pastezone

I just checked
cpcmd scope:get cp.bootstrapper use_robust_dns
and the value was 1(true).

you still want the apnscp-bootstrapper.log ?
email is ready.

Not at this time. You’re good to go.

Additionally, you can confirm Cloudflare is being used with resolvectl. In such a case there’s little that can be done with a flaky network.

1 Like

got another exception when trying to create a new plan.

[root@apiscp apnscp]# ./artisan opcenter:plan --new first
(Symfony\Component\Debug\Exception\FatalThrowableError) EXCEPTION: Undefined class constant 'RESERVED_SITE'
[/usr/local/apnscp/lib/Opcenter/SiteConfiguration.php:816]
EXCEPTION: Undefined class constant 'RESERVED_SITE'
[/usr/local/apnscp/lib/Opcenter/SiteConfiguration.php:816]

debian Pastezone

found another bug.
this time, it fails to remove the plan.

[root@apiscp apnscp]# ./artisan opcenter:plan --remove litessh
WARNING: unlink(/usr/local/apnscp/resources/templates/plans/litessh/aliases): Permission denied 
[/usr/local/apnscp/lib/Opcenter/Filesystem.php:219]
WARNING: rmdir(/usr/local/apnscp/resources/templates/plans/litessh): Directory not empty 
[/usr/local/apnscp/lib/Opcenter/Filesystem.php:220]
(RuntimeException) EXCEPTION: Failed to remove plan directory litessh 
[/usr/local/apnscp/lib/Lararia/Console/Commands/OpcenterPlanCommand.php:218]
WARNING: unlink(/usr/local/apnscp/resources/templates/plans/litessh/aliases): Permission denied 
[/usr/local/apnscp/lib/Opcenter/Filesystem.php:219]

         0. Error_Reporter::handle_error(2, "unlink(/usr/local/apnscp/resources/templates/plans/litessh/aliases): Permission denied", "/usr/local/apnscp/lib/Opcenter/Filesystem.php", 219, [file:"/usr/local/apnscp/resources/templates/plans/litessh/aliases", path:"/usr/local/apnscp/resources/templates/plans/litessh"])
            [n/a]
         1. unlink("/usr/local/apnscp/resources/templates/plans/litessh/aliases")
            [/usr/local/apnscp/lib/Opcenter/Filesystem.php:219]
         2. Opcenter\Filesystem::Opcenter\{closure}("/usr/local/apnscp/resources/templates/plans/litessh/aliases")
            [/usr/local/apnscp/lib/Opcenter/Filesystem.php:244]
         3. Opcenter\Filesystem::readdir("/usr/local/apnscp/resources/templates/plans/litessh", )
            [/usr/local/apnscp/lib/Opcenter/Filesystem.php:220]
         4. Opcenter\Filesystem::rmdir("/usr/local/apnscp/resources/templates/plans/litessh")
            [/usr/local/apnscp/lib/Lararia/Console/Commands/OpcenterPlanCommand.php:217]
         5. Lararia\Console\Commands\OpcenterPlanCommand->handle()
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36]
         6. Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Container/Util.php:37]
         7. Illuminate\Container\Util::unwrapIfClosure()
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93]
         8. Illuminate\Container\BoundMethod::callBoundMethod(Lararia\Application, [Lararia\Console\Commands\OpcenterPlanCommand, "handle"], )
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37]
         9. Illuminate\Container\BoundMethod::call(Lararia\Application, [Lararia\Console\Commands\OpcenterPlanCommand, "handle"], null)
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Container/Container.php:590]
        10. Illuminate\Container\Container->call([Lararia\Console\Commands\OpcenterPlanCommand, "handle"])
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Console/Command.php:134]
        11. Illuminate\Console\Command->execute(Symfony\Component\Console\Input\ArgvInput, Illuminate\Console\OutputStyle)
            [/usr/local/apnscp/vendor/symfony/console/Command/Command.php:255]
        12. Symfony\Component\Console\Command\Command->run(Symfony\Component\Console\Input\ArgvInput, Illuminate\Console\OutputStyle)
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Console/Command.php:121]
        13. Illuminate\Console\Command->run(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/vendor/symfony/console/Application.php:1021]
        14. Symfony\Component\Console\Application->doRunCommand(Lararia\Console\Commands\OpcenterPlanCommand, Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/vendor/symfony/console/Application.php:275]
        15. Symfony\Component\Console\Application->doRun(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/vendor/symfony/console/Application.php:149]
        16. Symfony\Component\Console\Application->run(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Console/Application.php:93]
        17. Illuminate\Console\Application->run(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:131]
        18. Illuminate\Foundation\Console\Kernel->handle(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/lib/Lararia/Console/Kernel.php:31]
        19. Lararia\Console\Kernel->handle(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/artisan:69]
WARNING: rmdir(/usr/local/apnscp/resources/templates/plans/litessh): Directory not empty 
[/usr/local/apnscp/lib/Opcenter/Filesystem.php:220]

         0. Error_Reporter::handle_error(2, "rmdir(/usr/local/apnscp/resources/templates/plans/litessh): Directory not empty", "/usr/local/apnscp/lib/Opcenter/Filesystem.php", 220, [path:"/usr/local/apnscp/resources/templates/plans/litessh"])
            [n/a]
         1. rmdir("/usr/local/apnscp/resources/templates/plans/litessh")
            [/usr/local/apnscp/lib/Opcenter/Filesystem.php:220]
         2. Opcenter\Filesystem::rmdir("/usr/local/apnscp/resources/templates/plans/litessh")
            [/usr/local/apnscp/lib/Lararia/Console/Commands/OpcenterPlanCommand.php:217]
         3. Lararia\Console\Commands\OpcenterPlanCommand->handle()
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36]
         4. Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Container/Util.php:37]
         5. Illuminate\Container\Util::unwrapIfClosure()
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93]
         6. Illuminate\Container\BoundMethod::callBoundMethod(Lararia\Application, [Lararia\Console\Commands\OpcenterPlanCommand, "handle"], )
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37]
         7. Illuminate\Container\BoundMethod::call(Lararia\Application, [Lararia\Console\Commands\OpcenterPlanCommand, "handle"], null)
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Container/Container.php:590]
         8. Illuminate\Container\Container->call([Lararia\Console\Commands\OpcenterPlanCommand, "handle"])
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Console/Command.php:134]
         9. Illuminate\Console\Command->execute(Symfony\Component\Console\Input\ArgvInput, Illuminate\Console\OutputStyle)
            [/usr/local/apnscp/vendor/symfony/console/Command/Command.php:255]
        10. Symfony\Component\Console\Command\Command->run(Symfony\Component\Console\Input\ArgvInput, Illuminate\Console\OutputStyle)
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Console/Command.php:121]
        11. Illuminate\Console\Command->run(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/vendor/symfony/console/Application.php:1021]
        12. Symfony\Component\Console\Application->doRunCommand(Lararia\Console\Commands\OpcenterPlanCommand, Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/vendor/symfony/console/Application.php:275]
        13. Symfony\Component\Console\Application->doRun(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/vendor/symfony/console/Application.php:149]
        14. Symfony\Component\Console\Application->run(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Console/Application.php:93]
        15. Illuminate\Console\Application->run(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:131]
        16. Illuminate\Foundation\Console\Kernel->handle(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/lib/Lararia/Console/Kernel.php:31]
        17. Lararia\Console\Kernel->handle(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/artisan:69]
EXCEPTION: Failed to remove plan directory litessh 
[/usr/local/apnscp/lib/Lararia/Console/Commands/OpcenterPlanCommand.php:218]

         0. Lararia\Console\Commands\OpcenterPlanCommand->handle()
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36]
         1. Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Container/Util.php:37]
         2. Illuminate\Container\Util::unwrapIfClosure()
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93]
         3. Illuminate\Container\BoundMethod::callBoundMethod(Lararia\Application, [Lararia\Console\Commands\OpcenterPlanCommand, "handle"], )
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37]
         4. Illuminate\Container\BoundMethod::call(Lararia\Application, [Lararia\Console\Commands\OpcenterPlanCommand, "handle"], null)
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Container/Container.php:590]
         5. Illuminate\Container\Container->call([Lararia\Console\Commands\OpcenterPlanCommand, "handle"])
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Console/Command.php:134]
         6. Illuminate\Console\Command->execute(Symfony\Component\Console\Input\ArgvInput, Illuminate\Console\OutputStyle)
            [/usr/local/apnscp/vendor/symfony/console/Command/Command.php:255]
         7. Symfony\Component\Console\Command\Command->run(Symfony\Component\Console\Input\ArgvInput, Illuminate\Console\OutputStyle)
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Console/Command.php:121]
         8. Illuminate\Console\Command->run(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/vendor/symfony/console/Application.php:1021]
         9. Symfony\Component\Console\Application->doRunCommand(Lararia\Console\Commands\OpcenterPlanCommand, Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/vendor/symfony/console/Application.php:275]
        10. Symfony\Component\Console\Application->doRun(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/vendor/symfony/console/Application.php:149]
        11. Symfony\Component\Console\Application->run(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Console/Application.php:93]
        12. Illuminate\Console\Application->run(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:131]
        13. Illuminate\Foundation\Console\Kernel->handle(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/lib/Lararia/Console/Kernel.php:31]
        14. Lararia\Console\Kernel->handle(Symfony\Component\Console\Input\ArgvInput, Symfony\Component\Console\Output\ConsoleOutput)
            [/usr/local/apnscp/artisan:69]
[root@apiscp apnscp]# ./artisan opcenter:plan --list
* marks default plan
  litessh
  * basic
[root@apiscp apnscp]# 

Thanks for the bug report. This has been fixed in edge and will be rolled out in the next release, possibly later today.

1 Like