Page 1 of 1

500 Internal Error

Posted: Tue Nov 07, 2017 6:31 am
by amaisonneuve
Well, i'm not to sure what went on but my site went down this morning at 3:15am.

I'm looking in all of the usual places and can't really get any thoughts going on how to fix this.

I'm running 16.04 with PHP7. this has be running smooth for 3mths

Now all i get is a 500 error.. The CP itselft is working fine and can manage domains and settings.

I have 1 domain currently on the system. its running apache and proxy default templates for both.

I tried to turn off ngix, but i get a 502, so thats confusing.

Also logs are showing to much, but

- 57 connect() failed (111: Connection refused) while connecting to upstream,

any thoughts on how i can debug this?

What i've done:

- ensure all of the latest software updates apt-get
- restarted the entire box
- disabled letsencrypt
- deleted and re-added the domain
-tried different templates.
- checked all the permissions
- checked ownership

Re: 500 Internal Error

Posted: Tue Nov 07, 2017 5:54 pm
by mehargags
Error 500 means when Nginx is Working but Apache is NOT
restart services in this order:

Code: Select all

systemctl restart mysql
systemctl restart apache2
systemctl restart nginx
if you get any error while restarting anything, just do an update

Code: Select all

apt update && apt full-upgrade -y
then REBOOT your server and see.

If Apache still fails by any chance, we will need /var/log/apache/error.log
& output of

Code: Select all

apachectl configtest

Re: 500 Internal Error

Posted: Tue Nov 07, 2017 8:15 pm
by amaisonneuve
Apache is fine. and Running, and the config test is OK, the NGINXs test is ok also.
I have all of the latest and greatest via Apt-get
The only hint i'm seeing is this connection refused.

If i turn off the Proxy via Vesta why the 502?

again, this is an out of the box setup running vesta on ubuntu 16.04 with the latest apt-get.. working for 3mths and now its down with a 500 error thats no spitting out anything to the logs other than this 511 connection refused.

Running PHP 7, anyone?

FYI, i'm about to wipe and re-install.. but i would love to get to the root of this one.

Re: 500 Internal Error

Posted: Tue Nov 07, 2017 8:44 pm
by mehargags
I know its like emergency for you but trying to find the problem would be a good gesture.

can you paste out put of

Code: Select all

netstat -tulpn | grep apache
&

Code: Select all

netstat -tulpn | grep apache
Just trying to see if apache is listening on 8080 and nginx on 80

I'd like to check your nginx / apache conf's and make sure the virtual host is listening on 8080

for each virtual host in your apache conf you should have
<VirtualHost 1xx.1xx.1xx.2xx:8080>

I feel apache is not being reachable by Nginx and so it is giving out error 500