• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Adding subscription/site times out, site not created properly

flaxton

Basic Pleskian
I haven't created a site in a while before this issue, I believe the last one I added was 11/7/2016. Anyway, I've tried to add several sites. The add subscription action times out:

Adding Your Own Subscription

This operation is taking too long. Check the results in a few minutes.

The folder /var/www/vhosts/{sitename}/httpdocs & logs is created, and a cgi-bin folder (empty) placed in httpdocs. But no Plesk home page, nothing in httpdocs except the cgi-bin folder. Adding an index.html page there causes the visiting web browser to redirect to the default domain home page (another domain).

Here is a relevant log entry from the add/create:
/var/log/sw-cp-server/error_log
2016/12/29 11:43:25 [error] 21378#0: *32 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 96.37.228.44, server: , request: "POST /admin/subscription/create HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock", host: "cloud04.infotechdesign.ws:8443", referrer: "https://cloud04.infotechdesign.ws:8443/admin/subscription/create"

I tried deleting the subscription/site and it is incomplete. The subscription remains, but it says "no hosting". Here is the log entry from the delete operation:
2016/12/29 13:21:06 [error] 16502#0: *22 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 96.37.228.44, server: , request: "POST /admin/subscription/delete/?redirect=/admin/subscription/list HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock", host: "cloud04.infotechdesign.ws:8443", referrer: "https://cloud04.infotechdesign.ws:8443/admin/subscription/list?context=subscriptions"

I did run:

Code:
plesk installer install-all-updates

and it completed seemingly fine.

I verified that the two sw servers are running with netstat.

Here is the environment:
OS: CentOS Linux release 7.2.1511 (Core)
was: Plesk 12.5.30 Update #53
now: Plesk 12.5.30 Update #56
Mail server: postfix 2.10.1-6.el7 & dovecot 2.2.18-centos7.15081914

All my existing sites are running fine.

I tried deleting the subscription/site again and it seemed to complete.

Then I tried to readd and got the timeout again:

2016/12/29 13:52:37 [error] 9992#0: *15 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 96.37.228.44, server: , request: "POST /admin/subscription/create HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock", host: "cloud04.infotechdesign.ws:8443", referrer: "https://cloud04.infotechdesign.ws:8443/admin/subscription/create"

I also tried changing the PHP settings on the damaged site and it timed out and did not change it.

Any ideas?

I can't add any more sites until I get this resolved.

Thanks!

Fred
 
Another strange thing - I cannot get into the Fail2ban area in Plesk, it times out also:

504 Gateway Time-out
nginx

I don't know how long that has been going on. I check /var/log/fail2ban.log and it is empty, with a date of 11/27:
Code:
# ls -lah /var/log/fail2ban.log
-rw-------. 1 root root 0 Nov 27 03:11 /var/log/fail2ban.log
 
OK, I believe I know what caused this. I installed "mosh", a terminal server that you use in conjunction with ssh and perhaps something like screen or tmux. I had to compile some stuff from source. Anyway, I think I mucked up some dependencies or something.

I just brought up a new server witn Onyx pre-installed. I tried adding the el? repository, then do a "yum update" and got a bunch of errors. I removed the repository and have abandoned the idea of installing mosh. Too bad, because it is awesome!

Mosh allows you to switch IP addresses/networks *without* losing your ssh/screen/tmux connection. Like you are connected on your laptop in your office. You close the lid. You go to a coffee shop, connect to their wifi and *boom* your ssh connection is *still active*.

Very cool.

But if it breaks Plesk or CentOS, then I can't install it. It is not that important!

It is already in the Ubuntu repository, so it would be good there.
 
Back
Top