Plesk 12.x / Linux :: Random 503 Service Temporarily Unavailable
Apr 12, 2015
Every now and then I will attempt to load my Plesk 12, CentOS6 Website, and receive the following error:
503, Service Temporarily Unavailable.
It requires a restart of nginx and apache in order to remove the error. It then can come back in a week, or in a few hours. Its completely random. I also can't find anything in the logs.
This started happening after I enabled backups, then later disabled backups because of problems with my backup server. However this does not occur when my scheduled backup was.
I'm running a CentOS 6 server with Plesk 11.0.9 installed. It's only being used for dev purposes with only a couple vhosts running on it. All of the vhosts are using PHP - there are a few WordPress sites and Zend Framework 2 applications running. Up until a few months ago it was also running a high traffic WordPress site, but that's no longer the case.
This server has been running without problems for over a year. A few days ago I first started noticing 503 errors (Service Temporarily Unavailable) on accessing one of the vhosts from the web browser.
I logged on through ssh and noticed the load was a bit higher than I expected (nothing crazy though). All other vhosts using PHP also gave me the same error. The only vhost that was working normal was a Ruby on Rails app (Redmine).
I also did a netstat -napt and noticed many connections from two or three IP addresses. I checked their geographical location and after blocking them through iptables the problem seemed to have gone away.
Now it's a few days later and the same problem started popping up. I checked again through netstat and noticed that again a whole bunch of connections from only a handful of IP addresses were connected to Apache.
When I was digging deeper I noticed that some of those IP addresses were what looks to me like other servers (at least they're running Apache). I'm suspecting they are hacked servers and they're trying to use my server to send spam or some other type of evil.
I just blocked those new IP addresses in iptables and that seemed to have solved the problem for now again, but I want to solve the root of the problem.
So my questions are: 1) How can I find out to what vhost those clients are connected? 2) Why does Apache stop working with not that many client connections, when it used to serve thousands of visitors at the same time when that big site was still running on this server? 3) What could they possibly be using my server for? The first time it happened I thought that they found some leaking WordPress plugin to use to spam people, but today I checked and there's barely anything in the mail queue.
I have uploaded typo files to /etc/rails_apps/typo and setup mysql database user password. When I visit the domain at [url]typo I get a 503 / Service Temporarily Unavailable error message.
Suddenly my server stop to accept mail from outside. Here you have the logs of mail.info
Feb 20 14:26:02 xxx postfix/smtpd[5581]: 17098E1CCB: milter-reject: DATA from mail2.email-o-matic.com[217.116.24.xxx]: 451 4.7.1 Service unavailable - try again later; from=<empresas@xxx.es> to=<whatever@whatwever.es> proto=ESMTP helo=<mail2.email-o-matic.com>
It seems it is a milter problem as in the line I can read "milter-reject"
Also I have a lot of lines like this:
Feb 20 14:27:34 dv2 greylisting filter[9152]: Starting greylisting filter... Feb 20 14:27:36 dv2 greylisting filter[9154]: Starting greylisting filter... Feb 20 14:27:37 dv2 greylisting filter[9165]: Starting greylisting filter...
I can go to control panel and stop plesk milter but I see these lines on mail.info
Feb 20 14:30:04 xxx postfix/smtpd[8845]: warning: connect to Milter service inet:127.0.0.1:12768: Connection refused
And 4.7.1 still there
Feb 20 14:30:03 xxx postfix/smtpd[7289]: NOQUEUE: milter-reject: CONNECT from 223.179.15.xx.dynamic.jazztel.es[37.15.179.xx]: 451 4.7.1 Service unavailable - try again later; proto=SMTP
Maybe is a port (12768) connection error? How I can test that port?
This KB article does not solve anything as the load of the server is 0.1-0.5 [URL] ....
A temporal fix is to edit /etc/postfix/main.cf file comment these two lines:
I activated greylisting on my mailserver and took a look in the logfiles.
The mail are temporary rejected with the following log message / statuscode:
451 4.7.1 Service unavailable - try again later;
Mails from my server to other servers are greylisted with messages like: 451 4.7.1 message delayed, see http://www.greylisting.org ; 452 Greylisted. Please try again after some time. 451 4.7.1 <E-MAIL-ADRESSE>: Sender address rejected: Greylisting in action. Please try again later.
Is it possible to change this log message at my server?
All genuine emails are making it through fine - barring one or two domains, which fail with postfix/cleanup[5184]: warning: milter inet:127.0.0.1:12768: can't read SMFIC_BODYEOB reply packet header: Connection timed out
postfix/cleanup[5184]: 5082A22A8E: milter-reject: END-OF-MESSAGE from XX-XX-202-76.dsl.in-addr.zen.co.uk[XX.XX.202.76]: 4.7.1 Service unavailable - try again later; from=<newsalert@financialexpress.net> to=<nameremoved@domain.co.uk> proto=ESMTP helo=<mailrelayname.co.uk>
Since the last update I am having constant troubles with email accounts when sending or replying to email messages.
This is the message I am getting:-
"error sending your message: Service unavailable - try again later"
This is our system and the software is the Parellels with Business Manager and stuff.
OS CentOS 6.5 (Final) Plesk version 12.0.18 Update #10, last updated at Aug 4, 2014 05:00 AM
The system is up-to-date; last checked at Aug 3, 2014 04:44 AM
This is what the error looks like in the log file located at /usr/local/psa/var/log/maillog
Aug 6 11:54:08 host spamd[28992]: spamd: connection from localhost [127.0.0.1] at port 37548 Aug 6 11:54:08 host spamd[14212]: prefork: child states: II Aug 6 11:54:08 host courier-imapd: Connection, ip=[::ffff:127.0.0.1] Aug 6 11:54:08 host courier-imapd: LOGOUT, ip=[::ffff:127.0.0.1], rcvd=12, sent=365
One particular server I have out of a few (same data center / network) is acting up network wise. The server load is minimal, so its not that. The NOC confirmed no network issues either, which makes sense since its one server out of about 4 that have this issue. All have the same exact specs, o/s, Cpanel, etc.
root@server [/etc]# mii-tool eth0: negotiated 100baseTx-FD, link ok SIOCGMIIPHY on 'eth1' failed: Resource temporarily unavailable
Tracert/ping from dnsstuff.com to the server IP is normal. A couple other servers I lease (100% identical configuration) work just fine.Kernel Linux 2.6.9-78.0.1.ELsmp #1 SMPFirewall Quote:
TCP IN 20,21,25,26,53,80,110,143,443,465,953,993,995,2077,2078,2083,2087,2095,2096,3306 TCP OUT 20,21,25,37,43,53,80,110,113,443,587,873,953,2087,2089,2703,3306 UDP IN 20,21,53,953 UDP OUT 20,21,53,113,123,873,953,6277Confirmed, resolvers in resolv.conf are correct. ICMP IN = 1
root@server [~]# traceroute dnsstuff.com traceroute to dnsstuff.com (75.125.82.162), 30 hops max, 38 byte packets 1 xxxxxx (xxxxxx) 0.757 ms 0.507 ms 0.503 ms 2 ge2-11.coreswa.cf.teamnet.net (xxx.xxx.6.57) 0.325 ms 0.321 ms 0.290 ms 3 ge0-1.border2.cf.teamnet.net (xxx.xxx.1.130) 0.270 ms 0.359 ms 0.312 ms 4 border1.p6-3.teamtech-8.ext1.dal.pnap.net (216.52.189.157) 18.190 ms 18.059 ms 18.896 ms 5 core3.tge5-2-bbnet2.ext1.dal.pnap.net (216.52.191.98) 108.819 ms 18.796 ms 18.916 ms 6 207.88.185.73.ptr.us.xo.net (207.88.185.73) 18.548 ms 18.495 ms 18.464 ms 7 65.106.4.233.ptr.us.xo.net (65.106.4.233) 18.553 ms 18.215 ms 18.349 ms 8 * * * 9 * po-1.r02.dllstx09.us.bb.gin.ntt.net (129.250.2.154) 18.361 ms 19.005 ms 10 xe-4-4.r03.dllstx09.us.ce.gin.ntt.net (157.238.225.6) 18.750 ms 18.473 ms 18.342 ms 11 et1-1.ibr01.hstntx2.theplanet.com (70.87.253.50) 26.666 ms 24.172 ms 23.806 ms 12 po1.car03.hstntx2.theplanet.com (74.55.252.74) 24.387 ms 24.525 ms 24.244 ms 13 * * * 14 * * * 15 * * * 16 * * * 17 * * Quote:
root@server [/etc]# ethtool eth0 Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised auto-negotiation: Yes Speed: 100Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on Supports Wake-on: d Wake-on: d Link detected: yes
root@server [/etc]# sysreport Traceback (most recent call last): File "/usr/sbin/sysreport", line 31, in ? import sos.policyredhat ImportError: No module named sos.policyredhat
root@server [/etc]# cat modprobe.conf alias eth0 bnx2 alias eth1 bnx2 alias scsi_hostadapter mptbase alias scsi_hostadapter1 mptscsi alias scsi_hostadapter2 mptfc alias scsi_hostadapter3 mptspi alias scsi_hostadapter4 mptsas alias scsi_hostadapter5 mptscsih alias usb-controller ehci-hcd alias usb-controller1 uhci-hcd
We have just installed the plesk version 12. All the installation completed without errors . then we restarted the server . and when we tried to open the plesk through the desktop shortcut we get the error " HTTP Error 503. The service is unavailable."
We have tried the following links fix HTTP , kb6735 .
Using Apache 2.0.52 + PHP 4.3.10 on Linux (Fedora Core 2), I get this error message when accesing my PHP page: ---------------
Service Unavailable - Zero size object The server is temporarily unable to service your request. Please try again later. Reference #15.21eaaad4.1173400585.294a7ed8 ---------------
I fixed it by restarting Apache, but I'd like to know the reason of this error. Does anybody have any experience with this issue?
I am using windows 2008 R2 64 bit O.S, I downloaded httpd-2.4.10-win64-VC11 and tomcat-connectors-1.2.39-windows-x86_64-httpd-2.4.x and I created 3 tomcat workers and then I configured workers.properties and httpd.conf.
After complete setup when i tried using
http://localhost then
I got It works! message (looks everything is fine).
and then I have deployed my sample web application I tried to access the same application then using
http://localhost/SampleCluster
I am getting
503 service not available.
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
I have a Server with Centos7 + Plesk 12 and in the service configuration say that the Bind service is not installed, from command line i have install named services and make a manual configuration the first domain, but when I return to the service page in plesk... the problem is the same, the Bind Service is not installed; then the problem is when i want create a new hosting i need to go to the ssh to make the DNS configuration...
Got following Problem: Unable to find service node for web service on domain with id = 0
After a Check from [URL] ....
I tried this: [URL] ....
Result:
+--------------------+--------------+---------------------------------------+------------------------------+------------+ | Domains | Service Type | IpAddressesCollections.ipCollectionId | Current value of ipAddressId | Have to be | +--------------------+--------------+---------------------------------------+------------------------------+------------+ | XXXXXXXXXXXXX.org | mail | 30 | 0 | 1 | +--------------------+--------------+---------------------------------------+------------------------------+------------+
Resolution:
mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -e 'Update IpAddressesCollections SET ipAddressId = 1 WHERE ipCollectionId = 30'
Result: ERROR 1062 (23000) at line 1: Duplicate entry '30-0' for key 'PRIMARY'
Deleted a domain workspace in Parallels Plesk and now I am getting this error when signing into the panel:Looked at the logs and been trying multiple commands (including the bootstrapper repair etc.)I found the full error from the logs:
[13-Jun-2015 16:35:33 UTC] PleskDBException: Unable to find service node for web service on domain with id=6 file: /usr/local/psa/admin/plib/PhDomain.php line: 1404 code: 0 trace: #0 /usr/local/psa/admin/plib/Smb/Subscription/Domain.php(490): PhDomain->getWebHostingServiceNode()
After deleting a domain, we got the following error which rendered the panel useless.
Internal error: Unable to find service node for web service on domain with id=5 Message Unable to find service node for web service on domain with id=5 File PhDomain.php Line 1402 Type PleskDBException Go To Previous Page
I have a plesk 11.0.9 on a windows server 2008 R2 which has MailEnable. One of my customers faced a problem to send emails from one of his local mailboxes to another of his local mailboxes! He got this error:Your message did not reach some or all of the intended recipients.The following recipient(s) cannot be reached.Server error: '550 Requested action not taken: mailbox unavailable or not local'
But we are sure the recipient mailboxes exist and work fine!I checked this link: URL....It dosen't work for this case.
I've just recently installed Plesk Panel 11.5. Previously I was using a basic IIS Mail Server with the current server allowed to relay messages for my Web Sites.After installing Plesk, I went to Tools & Settings -> Server-Wide Mail Settings. In there, I have relaying set to Authorization is required (SMTP) and for the relay access I have the following 3 entries:
127.0.0.1/32 ::1/128 <My Servers IP>/32
Whenever one of my sites tries to use this server now to send out mail, I keep getting the following error:Mailbox unavailable. The server response was: Requested action not taken: mailbox unavailable or not local...I've been struggling with this issue for weeks now and have read all the documentation and forum posts I could think of, I've restarted the server, I've run C:Program FilesSWsoftPleskadminin>mchk --all --fix=all
The e-mail accounts that I'm using to send mail from has nothing to do with this server and it's domains, I'm just trying to set the mail server to start sending mails like my IIS server used to.I've found the setting to Open Relay on the server and have activated it, yet whenever one of the websites attempts to send a mail, the same response is received.Mailbox unavailable. The server response was: Requested action not taken: mailbox unavailable or not local.
I switched off the mail service for one of my domains in that sites control panel a few days ago because there were some malicious files on my server sending out spam. I stopped the service until I cleared all the files that weren't meant to be there and then tried to restart the mail service again but it won't start.
I get this message 'Information: Mail service settings were successfully changed for the selected domains.' but the service stays off. I had the same problem on another site on the same server and carried out the same process but the mail service for that website started fine.
I installed Cloudflare for Plesk during this time and thought that might be causing an issue but after disabling this I still can't start the mail service for the domain.
Is there a section of the main (super admin) control panel that manages the mail services for each domain I am unaware of?
if I try to use the new wordpress service in the admin panel, I get following errors:
By starting a search of wordpress installations: PHP Fatal error: "Die Suche nach WordPress-Installationen wurde mit Fehlern abgeschlossen: Resource with UID 'c94fef81-1552-43e1-ae5b-ce125776caa7' not found."
One installation is found but by open the detail view I get the error "Call to undefined function is_admin() in /usr/share/plesk-wp-cli/php/wp-cli.php(18) : eval()'d code on line 87".
/etc/init.d/sw-cp-server restart Restarting sw-cp-server (via systemctl): Job for sw-cp-server.service failed. See 'systemctl status sw-cp-server.service' and 'journalctl -xn' for details. [FAILED]
tail -f /var/log/sw-cp-server/error_log
2014/11/26 03:06:10 [emerg] 520#0: invalid number of arguments in "fastcgi_buffers" directive in /etc/sw-cp-server/config:31 2014/11/26 03:06:11 [emerg] 874#0: invalid number of arguments in "fastcgi_buffers" directive in /etc/sw-cp-server/config:31
I upgraded today from 11 to 12, however since the upgrade I am now unable to start the PSA Service, it comes up with the below error.
Starting psa... Starting sw-engine-fpm: Thu Jun 19 13:22:29 2014 (7885): Fatal Error Unable to allocate shared memory segment of 104857600 bytes: mmap: Cannot allocate memory (12)
I have checked resources and everything should be fine, I cant see a reason why it cant allocate the memory, as there is plenty free for it to take from.
I have tried a Bootstrapper repair for 12 however this has not found any issues other than its not able to stop the PSA Service (As its not running)
Everything else is up and running its just the Parallels backend which im guessing is what the PSA Service is!
After setting up some e-mail accounts over the plesk gui I tried to connect via a mail software (like thunderbird).
This failed with every combination of settings I tried. So I checked if the POP3/IMAP services are running correctly using telnet.
I connected using the following command:
Code: telnet <host-ip> 110
The response was:
Code: Trying <host-IP>... Connected to <host-IP>. Escape character is '^]'. -ERR Cannot connect to POP server <host-IP> (<host-IP>:110), NB connect error 1460 Connection closed by foreign host.
Did I miss to enable a setting?
The Plesk gui schows me, that the corresponding services are running...
First, the datacenter lost power so the server shut off. I assume there is some DB corruption and why the SQL Service won't start.
Code: failed Trying to start service mariadb... Job for mariadb.service failed. See 'systemctl status mariadb.service' and 'journalctl -xn' for details.
WARNING! Some problems are found during start(see log file: /var/log/plesk/psa_service.log)
Continue...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) Unable to connect to Plesk Database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
I ran the systemctl status mariadb.service command and this is below.
I have a problem with my linux server using plesk 12x, I am using postfix as the email service, all emails are working from the webmail (horde) and from any email client using smtp.However the service is not working from the website (contact form on Wordpress) nor through the ssh commands. I have searched for few days but I still seem to have an issue.
Code: ls -la /etc/alternatives/mta the output is "nothing found".
and
Code: ls -la /usr/sbin/sendmail output: lrwxrwxrwx 1 root root 21 nov 4 2011 /usr/sbin/sendmail -> /etc/alternatives/mta
I can't switch a subscription to another service plan, my conf is very simple.I have on reseller account with service pack "Default Reseller".This reseller account contains 1 client with custom subscription.
When I want to switch the pack to another service plan, I have only one choice : "No change" so I cannot.I have 4 service plan so I don't know how to solve this problem.
Fehler: f2bmng failed: Job for fail2ban.service failed. See 'systemctl status fail2ban.service' and 'journalctl -xn' for details. ERROR:f2bmng:Failed to start fail2ban service
-- Unit fail2ban.service has failed. -- -- The result is failed.
Aug 20 14:22:13 noreply.flusiserver.de systemd[1]: Unit fail2ban.service entered failed state. Aug 20 14:22:14 noreply.flusiserver.de agetty[14140]: /dev/hvc0: No such file or directoryClick to expand...