Bug Report Template
Description
Fresh install on AlmaLinux 8 amd64
Steps to Reproduce
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 -vvv
ERROR non-zero return code
TASK [apnscp/create-admin : command] **************************************************************************************************************************************
task path: /usr/local/apnscp/resources/playbooks/roles/apnscp/create-admin/tasks/main.yml:59
Using module file /usr/lib/python3.6/site-packages/ansible/modules/commands/command.py
Pipelining is enabled.
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c '/usr/libexec/platform-python && sleep 0'
fatal: [localhost]: FAILED! => changed=false
cmd:
- /usr/local/apnscp/bin/cmd
- admin_get_email
delta: '0:00:00.286429'
end: '2024-06-29 21:42:27.008220'
invocation:
module_args:
_raw_params: /usr/local/apnscp/bin/cmd admin_get_email
_uses_shell: false
argv: null
chdir: null
creates: null
executable: null
removes: null
stdin: null
stdin_add_newline: true
strip_empty_ends: true
warn: false
msg: non-zero return code
rc: 255
start: '2024-06-29 21:42:26.721791'
stderr: |-
FATAL : fatal(): `admin_get_email': crash or other nasty error detected
0. Error_Reporter::trigger_fatal("`admin_get_email': crash or other nasty error detected", ["admin_get_email"])
[/usr/local/apnscp/lib/log_wrapper.php:50]
1. fatal("`%s': crash or other nasty error detected", "admin_get_email")
[/usr/local/apnscp/lib/datastream.php:426]
2. DataStream->pipeline(<binary>)
[/usr/local/apnscp/lib/datastream.php:394]
3. DataStream->query("admin_get_email")
[/usr/local/apnscp/lib/Module/Skeleton/Standard.php:200]
4. Module\Skeleton\Standard->query("admin_get_email")
[/usr/local/apnscp/lib/modules/admin.php:171]
5. Admin_Module->get_email()
[/usr/local/apnscp/lib/Module/Skeleton/Standard.php:145]
6. Module\Skeleton\Standard->_invoke("get_email", )
[/usr/local/apnscp/lib/apnscpfunction.php:992]
7. apnscpFunctionInterceptor->call("admin_get_email", )
[/usr/local/apnscp/lib/CLI/cmd.php:62]
8. CLI\__call("admin_get_email", )
[/usr/local/apnscp/lib/CLI/cmd.php:581]
9. CLI\main()
[/usr/local/apnscp/bin/cmd:7]
ERROR: fatal(): `admin_get_email': crash or other nasty error detected
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
PLAY RECAP ****************************************************************************************************************************************************************
localhost : ok=610 changed=2 unreachable=0 failed=1 skipped=331 rescued=0 ignored=0
Environment
Operating System:
AlmaLinux 8 - 4.18.0-553.5.1.el8_10.x86_64
Latest install verification completed without issue. To note, you shouldn’t need to run this unless the install was explicitly stopped. Upon reboot, which occurs to disarm SELinux + enable cgroupv2 support, installer will automatically resume.
Going forward, I’d need to see the status of the ApisCP service and backend log when the command is performed.
systemctl status apiscp
systemctl restart apiscp
sleep 5
cpcmd common:get-email
tail -n 40 /usr/local/apnscp/storage/logs/start.log
[root@server1 ~]# systemctl status apiscp
● apnscp.service - ApisCP backend service
Loaded: loaded (/etc/systemd/system/apnscp.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/apnscp.service.d
└─override.conf
Active: active (running) since Sun 2024-06-30 15:08:36 UTC; 2s ago
Process: 5605 ExecStopPost=/usr/sbin/httpd -f /usr/local/apnscp/config/httpd.conf -k stop $HTTPD_ARGS (code=exited, status=1/FAILURE)
Process: 5599 ExecStop=/usr/local/apnscp/bin/apnscpd stop (code=exited, status=0/SUCCESS)
Main PID: 5610 (apnscp_php)
Status: "Waiting"
Tasks: 35 (limit: 153907)
Memory: 119.6M
CGroup: /system.slice/apnscp.service
├─2801 redis-server 127.0.0.1:0
├─2871 /usr/sbin/httpd -f /usr/local/apnscp/config/httpd.conf -DAPNSCP_ROOT=/usr/local/apnscp -DFPM -k start
├─2879 /usr/sbin/httpd -f /usr/local/apnscp/config/httpd.conf -DAPNSCP_ROOT=/usr/local/apnscp -DFPM -k start
├─5610 apnscpd: master
├─5633 php-fpm: master process (/usr/local/apnscp/config/php-fpm.conf)
└─5634 apnscpd: idle
Jun 30 15:08:35 server1.faithtechsolutions.net systemd[1]: Starting ApisCP backend service...
Jun 30 15:08:35 server1.faithtechsolutions.net systemd[1]: apnscp.service: Supervising process 5610 which is not our child. We'll most likely not notice when it exits.
Jun 30 15:08:36 server1.faithtechsolutions.net systemd[1]: Started ApisCP backend service.
[root@server1 ~]# cpcmd common:get-email
FATAL : fatal(): `admin_get_email': crash or other nasty error detected
0. Error_Reporter::trigger_fatal("`admin_get_email': crash or other nasty error detected", ["admin_get_email"])
[/usr/local/apnscp/lib/log_wrapper.php:50]
1. fatal("`%s': crash or other nasty error detected", "admin_get_email")
[/usr/local/apnscp/lib/datastream.php:426]
2. DataStream->pipeline(<binary>)
[/usr/local/apnscp/lib/datastream.php:394]
3. DataStream->query("admin_get_email")
[/usr/local/apnscp/lib/Module/Skeleton/Standard.php:200]
4. Module\Skeleton\Standard->query("admin_get_email")
[/usr/local/apnscp/lib/modules/admin.php:171]
5. Admin_Module->get_email()
[/usr/local/apnscp/lib/Module/Skeleton/Standard.php:145]
6. Module\Skeleton\Standard->_invoke("get_email", )
[/usr/local/apnscp/lib/apnscpfunction.php:992]
7. apnscpFunctionInterceptor->call("admin_get_email", )
[/usr/local/apnscp/lib/apnscpFunctionInterceptorTrait.php:34]
8. Module\Skeleton\Standard->__call("admin_get_email", )
[/usr/local/apnscp/lib/modules/common.php:104]
9. Common_Module->get_email()
[/usr/local/apnscp/lib/Module/Skeleton/Standard.php:145]
10. Module\Skeleton\Standard->_invoke("get_email", )
[/usr/local/apnscp/lib/apnscpfunction.php:992]
11. apnscpFunctionInterceptor->call("common_get_email", )
[/usr/local/apnscp/lib/CLI/cmd.php:62]
12. CLI\__call("common_get_email", )
[/usr/local/apnscp/lib/CLI/cmd.php:581]
13. CLI\main()
[/usr/local/apnscp/bin/cmd:7]
ERROR: fatal(): `admin_get_email': crash or other nasty error detected
[root@server1 ~]# tail -n 40 /usr/local/apnscp/storage/logs/start.log
WARNING: Opcenter\System\Cgroup::mountAll(): Failed to mount cgroup controller `io'
[Sun Jun 30 15:08:36 2024] Checking if frontend started
[Sun Jun 30 15:08:36 2024] Housekeeping...
[Sun Jun 30 15:08:36 2024] Panel not installed yet - suspending ancillary tasks
[Sun Jun 30 15:08:36 2024] Spawning daemons
[Sun Jun 30 15:08:36 2024] Starting socket servers
[Sun Jun 30 15:08:36 2024] Listening...
[Sun Jun 30 15:08:36 2024] apnscpd load time: 0.0762s
[Sun Jun 30 15:09:02 2024] EXCEPTION: Class "Opcenter\System\Cgroup\v1\Controllers\Io" not found
[/usr/local/apnscp/lib/Opcenter/System/Cgroup/BaseController.php:72]
0B. Error_Reporter::get_debug_bt()
[/usr/local/apnscp/lib/error_reporter.php:281]
1B. Error_Reporter::handle_error(128, "Class "Opcenter\System\Cgroup\v1\Controllers\Io" not found", "/usr/local/apnscp/lib/Opcenter/System/Cgroup/BaseController.php", 72, Error)
[/usr/local/apnscp/lib/error_reporter.php:160]
2B. Error_Reporter::handle_exception(Error)
[n/a]
EXCEPTION: Class "Opcenter\System\Cgroup\v1\Controllers\Io" not found
[/usr/local/apnscp/lib/Opcenter/System/Cgroup/BaseController.php:72]
0B. Opcenter\System\Cgroup\BaseController::make(Opcenter\System\Cgroup\Group, "io")
[/usr/local/apnscp/lib/Opcenter/System/Cgroup.php:239]
1B. Opcenter\System\Cgroup::charge(Opcenter\System\Cgroup\Group)
[/usr/local/apnscp/lib/lservicelib8.pht:1172]
2B. ListenerService\Daemon->process_backend_data(<binary>)
[/usr/local/apnscp/lib/lservicelib8.pht:1101]
3B. ListenerService\Daemon->client_processing_loop()
[/usr/local/apnscp/lib/lservicelib8.pht:1057]
4B. ListenerService\Daemon->spawn()
[/usr/local/apnscp/lib/lservicelib8.pht:960]
5B. ListenerService\Daemon->spawn_workers()
[/usr/local/apnscp/lib/lservicelib8.pht:288]
6B. ListenerService\Daemon->start()
[/usr/local/apnscp/lib/lservicelib8.pht:171]
7B. ListenerService\Daemon->__construct()
[/usr/local/apnscp/lib/lservicelib8.pht:1463]
8B. ListenerService\Daemon::init()
[/usr/local/apnscp/lib/lservice.php:28]
Is this an EFI dedicated server with multiple drives in a softRAID configuration? Related to ApisCP cgroup2 blank admin panel
Kernel options must be available on each /boot/efi device if boot device is non-deterministic.