KirkM
Regular Pleskian
Plesk CP is dead with a 500 server error after it auto-updated last night. I have tried everything my limited knowledge came up with and enlisted the help of my server customer support with no luck. I have been searching these forums and the web for an answer with no luck. Here is the last update from my server support:
The command in the server that is erroring out is:
/usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm
If you run the command as root it works. If you run the command as psaadm, the Plesk user, then it fails. I also tried running it as sw-cp-server. Here are the errors that occurred with both Plesk users:
bash-3.2$ /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3
Could not open Repository at "/etc/sw/keys": Cannot open file
Status: 500 PleskFatalException
Expires: Fri, 28 May 1999 00:00:00 GMT
Last-Modified: Mon, 05 Dec 2011 01:57:18 GMT
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
P3P: CP="NON COR CURa ADMa OUR NOR UNI COM NAV STA"
Content-type: text/plain; charset=utf-8
ERROR: PleskFatalException
Unable to connect to database: get_admin_password() failed: file_get_contents() failed: Undefined index: PLESK_DEBUG_SQL
0: common_func.php3:150
psaerror(string 'Unable to connect to database: get_admin_password() failed: file_get_contents() failed: Undefined index: PLESK_DEBUG_SQL')
1: auth.php3:107
PleskFatalException: Unable to connect to database: get_admin_password() failed: file_get_contents() failed: Undefined index: PLESK_DEBUG_SQL
file: /usr/local/psa/admin/plib/common_func.php3
line: 150
code: 0
trace: #0 /usr/local/psa/admin/auto_prepend/auth.php3(107): psaerror('Unable to conne...')
#1 {main}
PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/psa/admin/plib/PleskException.php:44) in /usr/local/psa/admin/plib/PleskException.php on line 27
ERROR: PleskFatalException
Unable to connect to database: get_admin_password() failed: file_get_contents() failed: Undefined index: PLESK_DEBUG_SQL
0: common_func.php3:150
psaerror(string 'Unable to connect to database: get_admin_password() failed: file_get_contents() failed: Undefined index: PLESK_DEBUG_SQL')
1: auth.php3:107
PleskFatalException: Unable to connect to database: get_admin_password() failed: file_get_contents() failed: Undefined index: PLESK_DEBUG_SQL
file: /usr/local/psa/admin/plib/common_func.php3
line: 150
code: 0
trace: #0 /usr/local/psa/admin/auto_prepend/auth.php3(107): psaerror('Unable to conne...')
#1 {main}
PHP Fatal error: Uncaught exception 'Zend_Exception' with message 'No entry is registered for key 'config'' in /usr/local/psa/admin/plib/Zend/Registry.php:147
Stack trace:
#0 /usr/local/psa/admin/plib/CommonPanel/Exception.php(63): Zend_Registry::get('config')
#1 /usr/local/psa/admin/plib/CommonPanel/Exception.php(43): CommonPanel_Exception::_sendRuntimeReportXML(Object(PleskFatalException), 1)
#2 /usr/local/psa/admin/plib/PleskException.php(49): CommonPanel_Exception::sendNotification(Object(PleskFatalException))
#3 /usr/local/psa/admin/plib/PleskException.php(10): report_crash('Unable to conne...', Array, 'PleskFatalExcep...', 500, Object(PleskFatalException))
#4 [internal function]: plesk_exception_handler(Object(PleskFatalException))
#5 {main}
thrown in /usr/local/psa/admin/plib/Zend/Registry.php on line 147
bash-3.2$ /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm
initgroups() failed: Operation not permitted
The command in the server that is erroring out is:
/usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm
If you run the command as root it works. If you run the command as psaadm, the Plesk user, then it fails. I also tried running it as sw-cp-server. Here are the errors that occurred with both Plesk users:
bash-3.2$ /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3
Could not open Repository at "/etc/sw/keys": Cannot open file
Status: 500 PleskFatalException
Expires: Fri, 28 May 1999 00:00:00 GMT
Last-Modified: Mon, 05 Dec 2011 01:57:18 GMT
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
P3P: CP="NON COR CURa ADMa OUR NOR UNI COM NAV STA"
Content-type: text/plain; charset=utf-8
ERROR: PleskFatalException
Unable to connect to database: get_admin_password() failed: file_get_contents() failed: Undefined index: PLESK_DEBUG_SQL
0: common_func.php3:150
psaerror(string 'Unable to connect to database: get_admin_password() failed: file_get_contents() failed: Undefined index: PLESK_DEBUG_SQL')
1: auth.php3:107
PleskFatalException: Unable to connect to database: get_admin_password() failed: file_get_contents() failed: Undefined index: PLESK_DEBUG_SQL
file: /usr/local/psa/admin/plib/common_func.php3
line: 150
code: 0
trace: #0 /usr/local/psa/admin/auto_prepend/auth.php3(107): psaerror('Unable to conne...')
#1 {main}
PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/psa/admin/plib/PleskException.php:44) in /usr/local/psa/admin/plib/PleskException.php on line 27
ERROR: PleskFatalException
Unable to connect to database: get_admin_password() failed: file_get_contents() failed: Undefined index: PLESK_DEBUG_SQL
0: common_func.php3:150
psaerror(string 'Unable to connect to database: get_admin_password() failed: file_get_contents() failed: Undefined index: PLESK_DEBUG_SQL')
1: auth.php3:107
PleskFatalException: Unable to connect to database: get_admin_password() failed: file_get_contents() failed: Undefined index: PLESK_DEBUG_SQL
file: /usr/local/psa/admin/plib/common_func.php3
line: 150
code: 0
trace: #0 /usr/local/psa/admin/auto_prepend/auth.php3(107): psaerror('Unable to conne...')
#1 {main}
PHP Fatal error: Uncaught exception 'Zend_Exception' with message 'No entry is registered for key 'config'' in /usr/local/psa/admin/plib/Zend/Registry.php:147
Stack trace:
#0 /usr/local/psa/admin/plib/CommonPanel/Exception.php(63): Zend_Registry::get('config')
#1 /usr/local/psa/admin/plib/CommonPanel/Exception.php(43): CommonPanel_Exception::_sendRuntimeReportXML(Object(PleskFatalException), 1)
#2 /usr/local/psa/admin/plib/PleskException.php(49): CommonPanel_Exception::sendNotification(Object(PleskFatalException))
#3 /usr/local/psa/admin/plib/PleskException.php(10): report_crash('Unable to conne...', Array, 'PleskFatalExcep...', 500, Object(PleskFatalException))
#4 [internal function]: plesk_exception_handler(Object(PleskFatalException))
#5 {main}
thrown in /usr/local/psa/admin/plib/Zend/Registry.php on line 147
bash-3.2$ /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm
initgroups() failed: Operation not permitted