ERROR : unknown(): failed to remove site site39': fatal(): URL request failed, code 503’: Service Unavailable
0. Error_Reporter::append_msg(“fatal(): URL request failed, code 503': Service Unavailable", ["fatal", "URL request failed, code 503’: Service Unavailable”], 64)
[/usr/local/apnscp/lib/error_reporter.php:1341]
1. Error_Reporter::trigger_fatal(“URL request failed, code 503': Service Unavailable", [503, "Service Unavailable"]) [/usr/local/apnscp/lib/log_wrapper.php:50] 2. fatal("URL request failed, code %d’: %s”, 503, “Service Unavailable”)
[/usr/local/apnscp/lib/Auth/Lookup.php:101]
3. Auth_Lookup::request(“POST”, “lookup”, [domain:“brokendomain.com”, full:true])
[/usr/local/apnscp/lib/Auth/Lookup.php:127]
4. Auth_Lookup::lookup(“brokendomain.com”)
[/usr/local/apnscp/lib/Auth/Redirect.php:81]
5. Auth_Redirect::lookup(“brokendomain.com”)
[/usr/local/apnscp/lib/modules/auth.php:1332]
6. Auth_Module->_delete()
[/usr/local/apnscp/lib/Util/Account/Hooks.php:140]
7. Util_Account_Hooks->_process(“delete”, )
[/usr/local/apnscp/lib/Util/Account/Hooks.php:50]
8. Util_Account_Hooks->run(“delete”)
[/usr/local/apnscp/lib/Opcenter/Account/Delete.php:208]
9. Opcenter\Account\Delete->processHooks()
[/usr/local/apnscp/lib/Opcenter/Account/Delete.php:242]
10. Opcenter\Account\Delete->exec()
[/usr/local/apnscp/bin/DeleteDomain:97]
All the log shows is:
[Tue Oct 21 01:31:26 2025] Deleted site39, brokendomain.com (0) Failed
cp-proxy is configured and rejecting deletion because it cannot verify establishment of the domain. This is set in [misc] => cp_proxy. I’d see what’s going on with that endpoint, then proceed forward.
The server config matches another and it’s been established for some time.
I can query the API and confirm the account is hosted on the server in question.
Please provide your test script to validate
What test script?
proxy lookup brokendomain.com
That tells me the collector is working as is the API. The domain only exists on the one server and this issue of deleting accounts is newish, it started within the last 24 hours, but I’m not deleting accounts every day so that’s a hard number to come up with.
No changes relevant internal. I’d look at your PHP-FPM log in /usr/local/apnscp/storage/logs/php-fpm.log or perhaps start.log
git diff --stat 50eca27bdf98f47e978cc66122911e4c0193a82c^..50eca27bdf98f47e978cc66122911e4c0193a82c
bin/apnscpd | 8 +-
build/upcp.sh | 25 ++-
lib/Module/Support/Webapps/Composer.php | 2 +-
lib/apnscpcore.php | 2 +-
lib/lservicelib.pht | 2237 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------------------------------------------------------------------------------------------
lib/lservicelib8.pht | 2122 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------
6 files changed, 2145 insertions(+), 2251 deletions(-)
AddDomain -c siteinfo,domain=test.test && DeleteDomain test.test
This should help you capture the issue
I can create the domain, not delete the domain.
[Tue Oct 21 03:42:07 2025] Added test.test (WARNING) Succeeded
[Tue Oct 21 03:42:07 2025] [last message repeated 312 times]
[Tue Oct 21 03:42:07 2025] [last message repeated 312 times]
[Tue Oct 21 03:42:07 2025] Deleted site40, test.test (0) Failed
php-fpm/MAIN.log has no errors.
ERROR : unknown(): failed to remove site `site40': fatal(): URL request failed, code `503': Service Unavailable
0. Error_Reporter::append_msg("fatal(): URL request failed, code `503': Service Unavailable", ["fatal", "URL request failed, code `503': Service Unavailable"], 64)
[/usr/local/apnscp/lib/error_reporter.php:1341]
1. Error_Reporter::trigger_fatal("URL request failed, code `503': Service Unavailable", [503, "Service Unavailable"])
[/usr/local/apnscp/lib/log_wrapper.php:50]
2. fatal("URL request failed, code `%d': %s", 503, "Service Unavailable")
[/usr/local/apnscp/lib/Auth/Lookup.php:101]
3. Auth_Lookup::request("POST", "lookup", [domain:"test.test", full:true])
[/usr/local/apnscp/lib/Auth/Lookup.php:127]
4. Auth_Lookup::lookup("test.test")
[/usr/local/apnscp/lib/Auth/Redirect.php:81]
5. Auth_Redirect::lookup("test.test")
[/usr/local/apnscp/lib/modules/auth.php:1332]
6. Auth_Module->_delete()
[/usr/local/apnscp/lib/Util/Account/Hooks.php:140]
7. Util_Account_Hooks->_process("delete", )
[/usr/local/apnscp/lib/Util/Account/Hooks.php:50]
8. Util_Account_Hooks->run("delete")
[/usr/local/apnscp/lib/Opcenter/Account/Delete.php:208]
9. Opcenter\Account\Delete->processHooks()
[/usr/local/apnscp/lib/Opcenter/Account/Delete.php:242]
10. Opcenter\Account\Delete->exec()
[/usr/local/apnscp/bin/DeleteDomain:97]
It’s reaching out to your configured cp-proxy endpoint as noted earlier. It gets a 503 response - server-side error - then pukes.
If you allege things work on other servers then you have a misconfiguration here to resolve.
fixed, it was the api server php not running.