Internal error when trying to delete a client from Plesk

Created:

2016-11-16 13:14:07 UTC

Modified:

2017-04-24 11:30:55 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Internal error when trying to delete a client from Plesk

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux

Symptoms

When trying to remove a client using the Plesk web interface, I get errors such as the following:

Internal error.

 PHP Warning: stream_socket_client() [function.stream-socket-client]: php_network_getaddresses: getaddrinfo failed: Name or service not known
Line: 139
File: /usr/local/psa/admin/plib/pear/Net/Socket.php
Stack Trace:
#0  Smb_Exception_Syntax::handleError(2, stream_socket_client() [function.stream-socket-client]: php_network_getaddresses: getaddrinfo failed: Name or service not known, /usr/local/psa/admin/plib/pear/Net/Socket.php, 139, Array ([addr] => ssl://sone_hostname:8443,[port] => 8443,[persistent] => ,[timeout] => 30,[options] => Array ([ssl] => Array ([local_cert] => /usr/local/psa/var/sso.sp.pem)),[openfunc] => fsockopen,[errno] => 0,[errstr] => ,[context] => Resource id #342,[flags] => 4))
#1  stream_socket_client(ssl://some_hostname:8443, 0, , 30, 4, Resource id #342) called at [/usr/local/psa/admin/plib/pear/Net/Socket.php:139]
#2  Net_Socket->connect(ssl://some_hostname, 8443, , 30, Array ([ssl] => Array ([local_cert] => /usr/local/psa/var/sso.sp.pem))) called at [/usr/local/psa/admin/plib/pear/HTTP/Request.php:707]
#3  HTTP_Request->sendRequest() called at [/usr/local/psa/admin/plib/sso/SP.php:86]
#4  sso_SP::ssoRemoveSpAccountFromIdP(yourpostcardbusiness.com) called at [/usr/local/psa/admin/plib/Domain.php:1096]
#5  Domain->delete() called at [/usr/local/psa/admin/plib/PhDomain.php:209]
#6  PhDomain->reset(1, ) called at [/usr/local/psa/admin/plib/BsDomain.php:602]
#7  BsDomain->reset() called at [/usr/local/psa/admin/plib/BsDomain.php:558]
#8  BsDomain->delete() called at [/usr/local/psa/admin/plib/Webspace.php:835]
#9  Webspace->delete() called at [/usr/local/psa/admin/plib/BsDomain.php:927]

Cause

The issue may occur if the SSO server is unreachable.

Diagnostics

Check which server SSO is configured to use:

# MYSQL_PWD=`cat /etc/psa/.psa.shadow`  mysql -uadmin psa

mysql> select * from misc where param like '%sso%';
+---------------------+-------------------------------+
| param | val |
+---------------------+-------------------------------+
...
| sso_relay | https://EXAMPLE_HOSTNAME:8443 |
| sso_server | https://EXAMPLE_HOSTNAME:8443 |
| sso_server_user_url | https://EXAMPLE_HOSTNAME:8443 |
+---------------------+-------------------------------+
9 rows in set (0.00 sec)

Check if the server is reachable. Follow the resolution below if you see the following output:

# ping EXAMPLE_HOSTNAME
ping: unknown host EXAMPLE_HOSTNAME

Note: Replace EXAMPLE_HOSTNAME with the actual hostname from the database.

Resolution

In general, you need to make sure the above hostname is reachable.

This can be done, for example, by adding it to the /etc/hosts file on the server:

# cat /etc/hosts
...
EXAMPLE_IP EXAMPLE_HOSTNAME
#

Check if it worked. If it worked, you should see this output:

# ping EXAMPLE_HOSTNAME
PING EXAMPLE_HOSTNAME (EXAMPLE_IP) 56(84) bytes of data.
64 bytes from EXAMPLE_HOSTNAME (EXAMPLE_IP): icmp_seq=1 ttl=64 time=0.025 ms
...
Have more questions? Submit a request
Please sign in to leave a comment.