PHP looks to be missing

Bug Report Template

Description

Any attempt to run upcp

Steps to Reproduce

run upcp

Expected Behavior

Describe what you expected to happen when the bug occurred.

Actual Behavior

Failed loading /usr/local/apnscp/sys/php/20210902/opcache.so:  /usr/local/apnscp/sys/php/20210902/opcache.so: cannot open shared object file: No such file or directory
Failed loading /usr/local/apnscp/sys/php/20210902/opcache.so:  /usr/local/apnscp/sys/php/20210902/opcache.so: cannot open shared object file: No such file or directory

Warning: PHP Startup: Unable to load dynamic library 'dbus.so' (tried: /usr/local/apnscp/sys/php/20210902/dbus.so (/usr/local/apnscp/sys/php/20210902/dbus.so: cannot open shared object file: No such file or directory), /usr/local/apnscp/sys/php/20210902/dbus.so.so (/usr/local/apnscp/sys/php/20210902/dbus.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Fatal error: Uncaught Error: Undefined constant "IS_CLI" in /usr/local/apnscp/lib/error_reporter.php:392
Stack trace:
#0 /usr/local/apnscp/lib/error_reporter.php(244): Error_Reporter::parse_debug_bt(0, 99, Array)
#1 /usr/local/apnscp/lib/error_reporter.php(161): Error_Reporter::handle_error(128, 'Undefined const...', '/usr/local/apns...', 392, Object(Error))
#2 [internal function]: Error_Reporter::handle_exception(Object(Error))
#3 {main}
  thrown in /usr/local/apnscp/lib/error_reporter.php on line 392
Migrations have not completed yet. Update cannot proceed!
Run the following command to apply migrations, correcting failure as necessary:

cd /usr/local/apnscp && ./artisan migrate --force

To force an update to latest code, run the following command:

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

Environment

ApisCP version: cpcmd misc:cp-version can’t get in current state
Operating System: uname -r 4.18.0-553.89.1.el8_10.x86_64

Additional relevant information (e.g., PHP version, database, etc.):

Additional Information

Not sure what happened here but it looks like php is no longer available on the server. From reading the forums i tried running “pcp -sbf apnscp/build-php apnscp/install-extensions” but it fails on the startup step.

Any idea how to get things working again?

When’s the last time you ran upcp? When’s the last time things were “working” in the panel? Panel PHP engine is 8.3, API version 20230831. This is reporting 8.1.

Run the following commands:

upcp -sbf apnscp/build-php apnscp/install-extensions

It’s been a few months I think. I connected over to check on it and ran upcp and that’s when I got all the errors.

Running “upcp -sbf apnscp/build-php apnscp/install-extensions” gets me:

upcp -sbf apnscp/build-php apnscp/install-extensions
Failed loading /usr/local/apnscp/sys/php/20210902/opcache.so:  /usr/local/apnscp/sys/php/20210902/opcache.so: cannot open shared object file: No such file or directory

PLAY [localhost] ******************************************************************************************************************************************************************************************************************

TASK [apnscp/build-php : Install apnscp build RPMs] *******************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to download metadata for repo 'apnscp-debuginfo': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried", "rc": 1, "results": []}

PLAY RECAP ************************************************************************************************************************************************************************************************************************
localhost                  : ok=7    changed=0    unreachable=0    failed=1    skipped=4    rescued=0    ignored=0   

lgtm. What does this report?

yum list --disablerepo='*' --enablerepo='apnscp-debuginfo'
ApisCP Packages for CentOS Linux 8 - x86_64 - Debug                                                                                                                                                0.0  B/s |   0  B     00:00    
Errors during downloading metadata for repository 'apnscp-debuginfo':
  - Curl error (58): Problem with the local SSL certificate for https://yum.apiscp.com/os/8/x86_64/debug/repodata/repomd.xml [could not load PEM client certificate, OpenSSL error error:02001002:system library:fopen:No such file or directory, (no key found, wrong pass phrase, or wrong file format?)]
Error: Failed to download metadata for repo 'apnscp-debuginfo': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Is there any way to force a full reinstall without removing any user data?

Your license has expired. Use the license tool, specifically the info command to verify.

/usr/local/apnscp/bin/scripts/license.php info

Due to the nature of requiring a valid license to use the product, there is no workaround without one.

I can’t even run that right now since everything is so broken.

Failed loading /usr/local/apnscp/sys/php/20210902/opcache.so:  /usr/local/apnscp/sys/php/20210902/opcache.so: cannot open shared object file: No such file or directory

Warning: PHP Startup: Unable to load dynamic library 'dbus.so' (tried: /usr/local/apnscp/sys/php/20210902/dbus.so (/usr/local/apnscp/sys/php/20210902/dbus.so: cannot open shared object file: No such file or directory), /usr/local/apnscp/sys/php/20210902/dbus.so.so (/usr/local/apnscp/sys/php/20210902/dbus.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Fatal error: Uncaught Error: Undefined constant "IS_CLI" in /usr/local/apnscp/lib/error_reporter.php:392
Stack trace:
#0 /usr/local/apnscp/lib/error_reporter.php(244): Error_Reporter::parse_debug_bt(0, 99, Array)
#1 /usr/local/apnscp/lib/error_reporter.php(161): Error_Reporter::handle_error(128, 'Undefined const...', '/usr/local/apns...', 392, Object(Error))
#2 [internal function]: Error_Reporter::handle_exception(Object(Error))
#3 {main}
  thrown in /usr/local/apnscp/lib/error_reporter.php on line 392

I would need for you to pull a support request via my.apiscp.com. There’s a variety of potential situations, including having an expired license from October 2024 in which the intermediate had expired requiring an update. I simply don’t know from afar.

I sent a request over. Not sure why the license would be expired, it’s a lifetime one.