Error 503 - Service Unavailable CPanel API Request
when i request cpanel api it's showing..
Error 503 - Service Unavailable
The resource you requested is currently unavailable. Typically this is a temporary condition. Please contact the web site owner for further assistance.
my code is :)
$query = "https://$main_domain.xyz:2083/cpsess2971083704/json-api/cpanel?cpanel_jsonapi_user=".$whmusername."&cpanel_jsonapi_apiversion=2&cpanel_jsonapi_module=AddonDomain&cpanel_jsonapi_func=addaddondomain&newdomain=".$addons."&subdomain=".$sub."&dir=$addons&disallowdot=1";
it's creating addons domain well but isn't getting response..
just stopped script and showing 503 error...
my server is nginx...
Thank you..
-
Hello, Is there any output in the error logs in regard to this, including the cPanel error logs? You can find them at /usr/local/cpanel/logs/error_log0 -
i think there is no error :( i replaced my website name as ***** :) if you found any error there plz inform me..and give me solution :( /usr/local/cpanel/logs/error_log [2020-01-24 20:27:42 +0600] info [whostmgrd] Successfully verified signature for cpanel (key types: release). [2020-01-24 20:31:05 +0600] info [queueprocd] chkservd::Notify Notification => machinemessages@forum.inmotionhostin***** via EMAIL [eventimportance => High (1)] [2020-01-24 20:35:05 +0600] info [gather-update-logs] File /usr/local/cpanel/logs/update_analysis/2020-01-24T14:35:01Z.tar.gz has been sent successfully to updatelogdrop.cpanel.net. [2020-01-24 20:37:06 +0600] info [queueprocd] chkservd::Notify Notification => machinemessages@forum.inmotionhostin***** via EMAIL [eventimportance => High (1)] [2020-01-24 20:46:10 +0600] info [park] Creating Addon domain '******.com' on '******.****.com'. [2020-01-24 20:46:13 +0600] info [park] parkadmin::Notify Notification => machinemessages@forum.inmotionhostin***** via EMAIL [eventimportance => Low (3)] [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] rebuild_files: working on domain (******.com) [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] rebuild_files: working on domain (******.******.com) [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] rebuild_files: working on domain (******.com) [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] Rebuilding vhosts in apache conf [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] ensure_all_fpm_versions_start_on_reboot: started [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] php-fpm: rebuild_files: attempting to have ea-php56-php-fpm start on reboot [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] php-fpm: rebuild_files: attempting to have ea-php70-php-fpm NOT start on reboot [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] php-fpm: rebuild_files: attempting to have ea-php71-php-fpm start on reboot [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] php-fpm: rebuild_files: attempting to have ea-php72-php-fpm start on reboot [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] ensure_all_fpm_versions_start_on_reboot: completed [2020-01-24 20:46:15 +0600]: "/scripts/restartsrv_apache_php_fpm " called by (11127 - /opt/imh-python/bin/python /usr/bin/ngxconf -Rr --fork) [2020-01-24 20:46:16 +0600] warn [restartsrv_apache_php_fpm] The system is unable to find systemd configuration for the 'apache_php_fpm' service... at /usr/local/cpanel/Cpanel/ServiceManager/Base.pm line 1424. [2020-01-24 20:46:18 +0600] info [cpanel] STDERR output from hook: /usr/bin/ngxconf -Rr --fork [2020-01-24 20:46:18 +0600] info [cpanel] INFO: Forking into background... INFO: Background job running. Exiting main process (PID 11117) 0 -
Ok, actually this says a lot: - The output here indicates that the addon domain was indeed added:
[2020-01-24 20:46:10 +0600] info [park] Creating Addon domain '******.com' on '******.****.com'.[2020-01-24 20:46:13 +0600] info [park] parkadmin::Notify Notification => machinemessages@forum.inmotionhostin***** via EMAIL [eventimportance => Low (3)]
- The output here indicates your 3rd party addon is not able to build the apache conf:
[2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] rebuild_files: working on domain (******.com)[2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] rebuild_files: working on domain (******.******.com) [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] rebuild_files: working on domain (******.com) [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] Rebuilding vhosts in apache conf [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] ensure_all_fpm_versions_start_on_reboot: started [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] php-fpm: rebuild_files: attempting to have ea-php56-php-fpm start on reboot [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] php-fpm: rebuild_files: attempting to have ea-php70-php-fpm NOT start on reboot [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] php-fpm: rebuild_files: attempting to have ea-php71-php-fpm start on reboot [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] php-fpm: rebuild_files: attempting to have ea-php72-php-fpm start on reboot [2020-01-24 20:46:15 +0600] info [ngxconf_php_fpm_config] ensure_all_fpm_versions_start_on_reboot: completed [2020-01-24 20:46:15 +0600]: "/scripts/restartsrv_apache_php_fpm " called by (11127 - /opt/imh-python/bin/python /usr/bin/ngxconf -Rr --fork) [2020-01-24 20:46:16 +0600] warn [restartsrv_apache_php_fpm] The system is unable to find systemd configuration for the 'apache_php_fpm' service... at /usr/local/cpanel/Cpanel/ServiceManager/Base.pm line 1424. [2020-01-24 20:46:18 +0600] info [cpanel] STDERR output from hook: /usr/bin/ngxconf -Rr --fork [2020-01-24 20:46:18 +0600] info [cpanel] INFO: Forking into background... INFO: Background job running. Exiting main process (PID 11117)
- To resolve this I'd suggest removing the 3rd party ngxconf addon and then rebuilding/restarting apache
0 - The output here indicates that the addon domain was indeed added:
Please sign in to leave a comment.
Comments
3 comments