Plesk 12.x / Linux :: Relation 502 Bad Gateway / Can't Apply Process Slot And Restart Iptables

Jul 8, 2015

I have a strange issue on a Plesk 12 VPS. Sometimes the sites result in a "502 Bad Gateway (nginx)". This happens 1 or 2 times a day on different times.

In the httpd log I see a record "can't apply process slot" and in nginx log I see "connect() failed (111: Connection refused) while connecting to upstream" but restarting apache and/or nginx will not always result in a working site.

When I restart iptables everything is working fine again.

View 5 Replies


ADVERTISEMENT

Plesk 12.x / Linux :: Can't Apply Process Slot

Jul 11, 2015

im suddenly seeing this in my error log not sure what i need to change

mod_fcgid: can't apply process slot for /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

View 1 Replies View Related

Plesk 12.x / Linux :: Apply DNS Template Changes

Mar 11, 2015

I am currently in the process of migrating a few hundred domains from one server to another using Plesk's Migration & Transfer Manager. The servers have the following name servers allocated:

Server 1: ns9.example.com & ns2.example.com
Server 2: ns1.example.com & ns2.example.com

In the DNS Zone Template in Tools & Settings on Server 2, can I just click Apply DNS Template Changes and change all migrated domains NS records to ns1/ns2? Will this affect custom DNS entries as a lot of the domains have DNS changes that need to remain. I'm just hoping that this might be a quicker way than going into each domains DNS zone and manually changing ns9 to ns1.

I just really don't want all the domains DNS zones to reset to the standard template on Server 2 ...

View 7 Replies View Related

Plesk 12.x / Linux :: PHP Custom Settings Does Not Apply

Sep 15, 2014

Ubuntu 12.04

Upgraded Plesk from 11.5 to 12.0.18 from panel.

I have installed PHP 5.3.29 (make from sources)

All smooth, added handler:

Code:
/usr/local/psa/bin/php_handler --add -displayname 5.3.29 -path /usr/local/php5329/bin/php-cgi -phpini /usr/local/php5329/etc/php.ini -type fastcgi -id php5329

App work ok after change to new php with hosting settings(change php handler Fast Cgi)

But php info shows that: Loaded Configuration File is /etc/php5/cgi/php.ini

This is not good as I checked should be for certain vhost cutsom php ini which is generated by PHP settings.

For example I changed in Plesk memory_limit to 333MB applied changes panel show successully, but still there is 128MB default value in phpinfo().

Am I missing sth ? Is there additional task needed expect adding handler? Or is there a known bug?

ps. after change handler back to 5.3.10, (default installation) there also custom PHP settings file seems not to be processed.

I did not tested earlier maybe upgrade Plesk to v12 broked sth? What should I check?

I have tried to delete (and let psa recreate) php.ini from vhost/system/mydomain.com/ but also did not worked...

View 15 Replies View Related

Iptables Restart

Jul 1, 2007

I have configured the iptables ruleset to fit my taste, however after I did a reboot, my server still loaded the old one, any steps did I missed ?

What i did was :

1. edit rules

2. iptables-save > firewall.log

3. service iptables save

4. reboot

View 2 Replies View Related

Plesk 12.x / Linux :: 502 Bad Gateway Using Nginx

Oct 30, 2014

Today at 12.50 pm my (ubuntu 14.04.1 LTS) server running plesk 12.0.18 suddenly stopped serving websites. Any attempts to access a webpage on any vhost returned the 502 bad gateway using Nginx error messsage.When I looked at the nginx logs, I found messages like:

2014/10/30 14:48:00 [error] 3099#0: *101 connect() failed (111:

Connection refused) while connecting to upstream, client: m.m.m.m, server: , request: "GET /server-status HTTP/1.0", upstream: URL....

Restarting apache & nginx (/etc/init.d/apache2 restart & /etc/init.d/nginx restart) made no difference and I had to reboot to restore http access.

Strangely if I browsed with port 7080 specified (i.e. http://n.n.n.n:7080), this worked fine for all vhosts, so apache (which I believe is listening on this port while nginx listens on port 80) is working fine - nginx is just not able to pass stuff to it?

View 15 Replies View Related

Plesk 12.x / Linux :: Bad Gateway Nginx

Jun 17, 2015

this is a fresh Plesk 12 installation on a Dedicated Server, on Debian 6. I haven't installed a License key yet.When i tried to run MIgration Manager, the loading was taking forever. Also, when i try to enter Webserver Configurations Troubleshooter, i get 502 Bad Gateway nginx error.In the /var/log/sw-cp-server/error_log i get this error:

Code:
2015/06/17 11:42:47 [error] 3918#0: *52 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: A.B.C.D, server: , request: "GET /modules/configurations-troubleshooter/index.php/index/list HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "X.X.X.X:8443", referrer: "https://X.X.X.X:8443/admin/module/list?context=modules"
When i try to insert a Plesk License, i also get this error:

Code:
2015/06/17 10:29:17 [error] 5643#0: *81 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: A.B.C.D., server: , request: "POST /server/
key_upload.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "X.X.X.X:8443", referrer: "https://X.X.X.X:8443/server/key_upload.php"

I followed this KB article 118757 but no luck. Also, the server resources are at the lowest usage and there is >2 TB disk space available.

View 2 Replies View Related

Plesk 12.x / Linux :: 502 Bad Gateway Nginx

Jun 23, 2015

We have a problem with a magento website. Often (perhaps when we use administration), we have the message "502 Bad Gateway nginx".

We have added server instructions in Plesk Nginx:
proxy_buffers 16 16k;
proxy_buffer_size 32k;
fastcgi_buffer_size 32k;
fastcgi_buffers 16 12k;

But we have still the problem.

We have tried :
[URL] ....
And
[URL] ....

Without results...

The log file say:

[client x.x.x.x] client denied by server configuration: /var/www/vhosts/domain.com/httpdocs/app/etc/local.xml

x.x.x.x is the website IP.

View 4 Replies View Related

CSF + IPTables, Have To Restart CSF After Reboot

Jun 3, 2008

We changed our SSH port (for the slight added security that this offers) and updated our CSF config with the new port so that we can accept connections on this port.

We restarted CSF and we could connect successfully on the new port. When the server is rebooted connections are refused on the port until we *RESTART* CSF then it's all good again.

I would think being that we opened the port in CSF's config that on reboot the port would be opened back up but this is not happening and any time the server is rebooted we have to restart the firewall.

Does anybody have any suggestions on how to "fix" this or at least make it so we don't have to manually restart the firewall?

View 6 Replies View Related

Can't Restart Iptables On My Dedi

May 5, 2009

I shut down iptables on my dedi to try to install Poweradmin but, when the install did not work (probably because DirectAdmin was controlling files and processes I needed for the package) I attempted to restart iptables by running "/etc/init.d/iptables restart" and "service iptables start". It didn't restart. I restarted the webserver running "/etc/init.d/httpd restart". I even rebooted the dedi. Still, no iptables.

View 11 Replies View Related

Plesk 12.x / Linux :: Application Vault 502 Bad Gateway

Jul 2, 2014

When i open the page i get the error: "502 Bad Gateway"with strace i get the following error:

Code:
connect(14, {sa_family=AF_FILE, path="/var/run/mysqld/mysqld.sock"}, 110) = 0
setsockopt(14, SOL_IP, IP_TOS, [8], 4) = -1 EOPNOTSUPP (Operation not supported)
setsockopt(14, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0

System: Debian 7.5
Mysql: 5.6.19
Plesk: 12.0.18

View 6 Replies View Related

Plesk 12.x / Linux :: Bad Gateway Nginx After Upgrade

Aug 18, 2014

I have upgraded from 10 to 12 and now I have "502 Bad Gateway nginx" error. I have atached logas..

View 1 Replies View Related

Plesk 12.x / Linux :: 502 Bad Gateway After Upgrade On Subscriptions

Sep 27, 2014

After upgrading (i know, i should not do this) from Squeeze to Wheezy i have got a problem with subscriptions.Plesk seems to work, but whein i want do manage a domain/hosting. i just see 502 Bad Gateway nginxClick to expand...

View 7 Replies View Related

Plesk 12.x / Linux :: 502 Bad Gateway Error When Use NGINX

Jan 14, 2015

I have a server with the latest version of plesk and centos.

The main site is Articoli Promozionali

Until now kept on the server active both apache and nginx.

Tonight I tried to disable apache leaving only nginx.

That raises the error: 502 bad gateway NGINX at all sites on that server.

To use nginx i need to keep active apache?

What can cause that error?

View 1 Replies View Related

Plesk 12.x / Linux :: Error 502 Bad Gateway After Upgrade

Jun 27, 2014

I have upgraded from 11.5 to 12, and now if I try to open Plesk on the port 8443 I have this error:

502 Bad Gateway

nginx

This is the log:
2014/06/27 18:25:13 [crit] 1629#0: *2 connect() to unix:/var/run/sw-engine.sock failed (2: No such file or directory) while connecting to upstream, client: 79.49.206.176, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "87.106.85.233:8443"

View 14 Replies View Related

Plesk 12.x / Linux :: 502 Bad Gateway Errors After Upgrading To 12.0.18

Aug 13, 2014

Yesterday I've upgraded the server to Plesk 12.0.18. After the upgrade, a WHMCS install has stopped working.

The only error logs where I found errors is the proxy_error_log. It contains this kind of lines (for the 502 error):

2014/08/13 08:13:45 [error] 2918#0: *400 upstream prematurely closed connection while reading response header from upstream, client: XX.XX.XX.XX, server: XXXXXXX.COM, request: "GET /knowledgebase.php HTTP/1.1", upstream: "http://XX.XX.XX.XX:7080/knowledgebase.php", host: "xxxxxxxxx.com"

View 9 Replies View Related

Plesk 12.x / Linux :: 502 Bad Gateway - Nginx After Update

Jul 21, 2014

i have plesk panel 12 ... in the last few days there was a automatically update from plesk for my strato v-server.

After this update i got the message: 502 Bad GateWay - nginx when I will connect to my plesk login ...

all websites etc works fine but i can't login ...

View 5 Replies View Related

Plesk 11.x / Linux :: 502 Bad Gateway While Click On Webspaces -> Add Webspace

Oct 7, 2013

Plesk 11.5.30 all latest updated installed is used with Power-User view on an Ubuntu 12.04 LTS 64 Bit system.

The Plesk Interface is working well in general. But if the customer clicks on "Webspaces" -> Add Webspace they run in a:

[URL] ....

Browser:
502 Bad Gateway
nginx

To try to fix it with:

/usr/local/psa/admin/bin/nginxmng --disable
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
/etc/init.d/apache2 restart
/etc/init.d/ngnix restart ( does not work anyway since the customer is not using it ) -> ngnix_enable=no

Which did not work ( ngnix is and was not active )

In the log /var/log/sw-cp-server/error.log

we can see:

[error] 1936#0: *180 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 84.177.142.220, server: , request: "GET /smb/account/create-subscription HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "server:8443", referrer: "https://server:8443/smb/account"

View 12 Replies View Related

Plesk 11.x / Linux :: Creating New Subscription - 502 Bad Gateway Error

Dec 10, 2013

I have a problem with "502 Bad Gateway" errore when I'm trying to create a new subscription.

Here my logfile:

/var/log/sw-cp-server/error_log:

2013/12/10 12:47:03 [error] 11827#0: *100 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: XX.XXX.XX.XXX, server: , request: "POST /admin/subscription/create HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "xxxxxxxxxxxxx.xx:8443", referrer: "https://xxxxxxxxxxxxx.xx:8443/admin/subscription/create"Click to expand...

View 8 Replies View Related

Plesk 12.x / Linux :: Nginx - 502 Bad Gateway With Every Domain Change

Mar 12, 2015

Since we switched to Plesk 12 and activated nginx the problem reoccurs reliably on every domain change.
As soon as a customer creates a new domain or alias and Apache restarts nginx delivers 502 errors for maybe 10 seconds. After that everything is fine again.

The system is Debian 6.0.10 with Plesk 12.0.18 Update #38

That might not be a problem in small environments, but with >100 domains the timeout is annoying enough for customers to pick up the phone.

Adding this to /etc/sw-cp-server/config did not do the trick.

http {
fastcgi_buffers 32 32k;
fastcgi_buffer_size 64k;
fastcgi_read_timeout 600;
fastcgi_send_timeout 600;
}

View 3 Replies View Related

Plesk 12.x / Linux :: Admin Area Shows 502 Bad Gateway?

May 28, 2015

After yesterday autoupdate (to Plesk 12.0.18 Update 48) admin area shows:

502 Bad Gateway
nginx

While navigating to Tools & Settings:

ERROR: Zend_Controller_Exception: SQLSTATE[HY000] [2002] Connection refused#0 /usr/local/psa/admin/externals/Zend/Db/Adapter/Pdo/Mysql.php(109): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /usr/local/psa/admin/externals/Zend/Db/Adapter/Abstract.php(459):

[Code]....

View 1 Replies View Related

Plesk 12.x / Linux :: Bad Gateway And Non Working Bootstrap Update?

Dec 4, 2014

this is my first thread because a big Problem after Plesk update from 10.2 to 12.0.8.

Always i got a bad gateway when i try to reach https://domain:8443

The only mistake i cam see is after /usr/local/psa/admin/sbin/httpdmng --reconfigure-all

is

root@xxxxxxx:~# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all.
sw-engine: /usr/include/libboost-plesk-1.54.0/boost/interprocess/mapped_region.hpp:820: void boost::interprocess::mapped_region:riv_close(): Assertion `ret == 0' failed.
Aborted

View 14 Replies View Related

Plesk 12.x / Linux :: OpenSuse 13.1 - 502 Bad Gateway Nginx Error

Jul 26, 2014

We are running Plesk 12 (latest version) on openSuse 13.1. The web server is nginx as a proxy in front of Apache. We are running into a 502 Bad Gateway nginx error when trying to send data from a simple form to a php script.

The log shows: upstream prematurely closed connection while reading response header from upstream

It seems that Plesk does not configure nginx properly as some pages, especially pages that are accessed via https have broken headers. The headers of a page that is displaying

HTTP/1.1 400 Bad Request =>
Server => nginx
Date => Sat, 26 Jul 2014 09:53:13 GMT
Content-Type => text/html
Content-Length => 166
Connection => close

View 2 Replies View Related

Plesk 12.x / Linux :: Login Failed With 502 Bad Gateway - Nginx

Feb 27, 2015

Today morning a logged in in plesk without problems and started Fail2Ban and closed it. Now I want logged in and get only 502 bad gateway. All Domains working fine and shell access working fine too.

What happen here? What can I do?

View 1 Replies View Related

Plesk 12.x / Linux :: 502 Bad Gateway Since Auto Update Failed

Dec 18, 2014

It seems last night Plesk ran any update and it failed. I received an mail with a link to the log, but I cant access Plesk Panel to see the log.

When trying to access Plesk, I get "502 Bad Gateway" Message.

Inside the Log there are many errors like:

Code:

2014/12/18 15:26:51 [crit] 14416#0: *3563 connect() to unix:/var/run/sw-engine.sock failed (2: No such file or directory) while connecting to upstream, client: xxx.xxx.xxx.xxx, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "xxxxx:8443"

Is there any way to disable auto updates for plesk?

View 3 Replies View Related

Plesk 12.x / Linux :: SSL Sites Receive 502 Bad Gateway When Nginx Is Enabled

Oct 22, 2014

When I turn on nginx for the server I am able to browse non SSL protected sites correctly. I receive a 502 Bad Gateway error on any sites that have an SSL certificate. Is there a fix for this? I have been unable to find one.

I am running Plesk 12 on an Ubuntu server.

View 6 Replies View Related

Plesk 12.x / Linux :: Error 505 Bad Gateway - When Importing SQL Dump Via PHPMyAdmin

May 26, 2015

under Plesk 12.0.18 PHPMyAdmin is failing to import a 3 MB SQL dump of a simple Joomla website. "Error 505 Bad Gateway", it says.It happens with other dumps too, some as small as ~500 KB. The format (SQL or ZIP) of the file uploaded doesn't seem to matter, because the upload itself seems to work; it seems it's the post-processing what is raising the error.

The funny thing is that the import itself seems to work (the contents of the SQL dump are imported), but the error message appears and causes confusion and support requests from our clients./var/log/sw-cp-server/error_log says:

2015/05/15 03:19:31 [error] 10215#0: *5 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: XX.XX. XXX. XXX, server: , request: "POST /domains/databases/phpMyAdmin/import.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "xxxx. xxxxxxx.com:8443", referrer: URL.....To me it sounds like a timeout.

This seems to be a "popular" error among Plesk users, and I have tried this, this and this with no luck.

View 1 Replies View Related

Plesk 12.x / Linux :: Page Not Found / Timeout / 502 Bad Gateway Error Creating Accounts

Jun 22, 2015

As I read, when Plesk and WHMCS are in the same server, you may have 502 bad gateway errors when creating an account through WHMCS..Page not Found/Timeout/502 Bad Gateway error creating accounts with Plesk 10+..By default Plesk 10 and above performs a forced restart of apache when an account is created or suspended which causes WHMCS to lose connection to the server, and if your WHMCS is on the same server, you will also lose connection to WHMCS at the same time.

In order to resolve this please refer to the following knowledgebase article for instructions on configuring Plesk to perform a graceful restart instead: URL..

But when I activate nginx in Plesk the 502 bad Gateway problem comes back.Is there an option to activate Nginx graceful restart in Plesk?

View 4 Replies View Related

Plesk 11.x / Linux :: Access To CPanel - 502 Bad Gateway Error Nginx On Multiple Domain

Feb 18, 2015

Our server : [URL] .....
plesk v11 (64BITS)

PROBLEM DESCRIPTION

We found 502 Bad Gateway error Nginx on multiple domain "currently troissoeursetunfrere.com is a wordpress site e-commerce" and also malittleboutique.com ecommerce wordpress, possibly to fix this problem we have followed this tutorial " [URL] ....

we perform the following operations:

sudo apt-get remove php5 php5-cgi php5-fpm
sudo apt-get install php5 php5-cgi php5-fpm

Following these operations we lost access to cpanel.

View 3 Replies View Related

Plesk 12.x / Linux :: How To Tell If Migration Is Still In Process

Jun 12, 2015

I'm migrating 11 domains from my old server to my new server, and it's been running now for 3 hours and the progress section shows 100% but it looks like it's still running.

And each time I check the "Domains" section I see a couple of my domains listed but not all of them yet, and the ones I do see the "Disk Usage" on one of my domains that I know is large shows the same figure each time I go to this page; it doesn't seem like it has increased at all.

How can I tell if the migration is still processing or if it has froze and I should restart the migration again?

View 1 Replies View Related

Plesk 12.x / Linux :: How To Add Multiple IPs To IPTables

Jun 22, 2015

I have a list of bad Ips and would like to add it into iptables, but I don't went to enter one-by-one or by command line, I would like to insert into list file of iptables editing a file or something like that, where and how I can procedure to do this?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved