We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
500 error but I have no idea how to fix them
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
500 error but I have no idea how to fix them
Recently I re-installed my whole VPS server, use Ubuntu server 16.04.1 as the OS, and then installed VestaCP 0.98-17 by the default installing method, and then enabled SSL and implemented Let's Encrypt certificates. Everything seems OK until there appears "500 — Internal Sever Error" now and then without any other error message, so I have no clue to solve this.
I checked those log files in /var/log/nginx, they are clean. Then I checked the log files in /var/log/apache2, I found following records in log files:
For the file joomlagate.com.error.log :
Thank you.
I checked those log files in /var/log/nginx, they are clean. Then I checked the log files in /var/log/apache2, I found following records in log files:
For the file joomlagate.com.error.log :
For the file "joomlagate.com.log":# tail joomlagate.com.error.log
2017/01/27 09:14:01 [crit] 31151#31151: *632969 SSL_do_handshake() failed (SSL: error:14094085:SSL routines:ssl3_read_bytes:ccs received early) while SSL handshaking, client: 64.41.200.104, server: 120.27.137.71:443
2017/01/27 09:14:02 [crit] 31151#31151: *632972 SSL_do_handshake() failed (SSL: error:14094085:SSL routines:ssl3_read_bytes:ccs received early) while SSL handshaking, client: 64.41.200.104, server: 120.27.137.71:443
2017/01/27 09:21:57 [crit] 31151#31151: *633675 SSL_do_handshake() failed (SSL: error:14094085:SSL routines:ssl3_read_bytes:ccs received early) while SSL handshaking, client: 64.41.200.104, server: 120.27.137.71:443
2017/01/27 09:21:58 [crit] 31151#31151: *633676 SSL_do_handshake() failed (SSL: error:14094085:SSL routines:ssl3_read_bytes:ccs received early) while SSL handshaking, client: 64.41.200.104, server: 120.27.137.71:443
2017/01/27 09:45:32 [crit] 31151#31151: *634817 SSL_do_handshake() failed (SSL: error:1414F178:SSL routines:tls1_set_server_sigalgs:no shared sigature algorithms error:1408A0E2:SSL routines:ssl3_get_client_hello:clienthello tlsext) while SSL handshaking, client: 207.244.75.231, server: 120.27.137.71:443
2017/01/27 10:16:12 [error] 31151#31151: *636509 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 42.89.18.131, server: joomlagate.com, request: "POST /?option=com_komento HTTP/2.0", upstream: "https://120.27.137.71:8443/?option=com_komento", host: "www.joomlagate.com", referrer: "https://www.joomlagate.com/"
2017/01/27 10:16:13 [error] 31151#31151: *636509 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 42.89.18.131, server: joomlagate.com, request: "POST /?option=com_komento HTTP/2.0", upstream: "https://120.27.137.71:8443/?option=com_komento", host: "www.joomlagate.com", referrer: "https://www.joomlagate.com/"
2017/01/27 10:16:42 [error] 31151#31151: *636509 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 42.89.18.131, server: joomlagate.com, request: "POST /?option=com_komento HTTP/2.0", upstream: "https://120.27.137.71:8443/?option=com_komento", host: "www.joomlagate.com", referrer: "https://www.joomlagate.com/"
2017/01/27 10:16:53 [error] 31151#31151: *636509 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 42.89.18.131, server: joomlagate.com, request: "GET /index.php?option=com_remository&Itemid=517&func=startdown&id=338 HTTP/2.0", upstream: "https://120.27.137.71:8443/index.php?op ... own&id=338", host: "www.joomlagate.com", referrer: "https://www.joomlagate.com/"
[Fri Jan 27 10:17:25.809558 2017] [core:error] [pid 5659] [client 120.27.137.71:45596] AH00037: Symbolic link not allowed or link target not accessible: /home/bjpla/web/joomlagate.com/public_html/images/multithumb_thumbs
I don't know how to fix this. Hope someone here will help me to solve this problem.# tail joomlagate.com.log
123.125.71.43 - - [27/Jan/2017:10:21:39 +0800] "GET /index.php?option=com_remository&Itemid=632&func=fileinfo&id=1524 HTTP/1.0" 200 65662 "-" "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)"
203.208.60.199 - - [27/Jan/2017:10:21:40 +0800] "GET /media/plg_jchoptimize/assets/gz/1/0/d2b7b823e563cabdac6077b370be1279.js HTTP/1.0" 200 178685 "https://www.joomlagate.com/" "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
58.241.30.188 - - [27/Jan/2017:10:21:58 +0800] "GET /images/logo.png HTTP/1.1" 200 2038 "-" "ChinaCache"
79.6.209.185 - - [27/Jan/2017:10:22:00 +0800] "POST /?option=com_komento HTTP/1.0" 200 591 "https://www.joomlagate.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
203.208.60.198 - - [27/Jan/2017:10:22:00 +0800] "GET /index.php?option=com_kunena&view=topic&Itemid=154&catid=59&id=62286 HTTP/1.0" 200 21344 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
61.163.164.236 - - [27/Jan/2017:10:22:02 +0800] "GET /index.php?option=com_ajax&format=json HTTP/1.0" 200 801 "https://www.joomlagate.com/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.22 Safari/537.36 SE 2.X MetaSr 1.0"
146.227.159.60 - - [27/Jan/2017:10:22:05 +0800] "POST /?option=com_komento HTTP/1.0" 200 591 "https://www.joomlagate.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
61.163.164.236 - - [27/Jan/2017:10:22:08 +0800] "GET /index.php?option=com_ajax&format=json HTTP/1.0" 200 801 "https://www.joomlagate.com/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.22 Safari/537.36 SE 2.X MetaSr 1.0"
203.208.60.202 - - [27/Jan/2017:10:22:09 +0800] "GET /images/multithumb_thumbs/b_600_0_16777215_00_images_stories_article_joomla25-tutorials_Komento-settings-joomla-article.png HTTP/1.0" 404 731 "-" "Googlebot-Image/1.0"
203.208.60.202 - - [27/Jan/2017:10:22:11 +0800] "GET /index.php?option=com_kunena&view=category&Itemid=154&catid=35&id=27169&limitstart=4500 HTTP/1.0" 200 25549 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
Thank you.
Re: 500 error but I have no idea how to fix them
Is there any htaccess file in the root directory of the website? delete it. And did you make any changes to php.ini?
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: 500 error but I have no idea how to fix them
Yes, there is a htaccess file named ".htaccess" which is the must of Joomla. Why should I delete it?
I had modified php.ini only to change the settings for "error_reporting" and "max_execution_time" and similar time limits.
I had modified php.ini only to change the settings for "error_reporting" and "max_execution_time" and similar time limits.
Re: 500 error but I have no idea how to fix them
There might be some codes clashing and creating the problem. let me know if the problem still happens even after deleting .htaccess
Re: 500 error but I have no idea how to fix them
and can you post your php.ini file?
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: 500 error but I have no idea how to fix them
I had changed some value in Nginx configuration ( I forgot which ones, just followed forum posts), now my website seldom shows 500 error.
But when I check the error log, I see following records:
You can see that each record has a "upstream prematurely closed connection" description.
Why this happened? How to fix this?
Thank you.
But when I check the error log, I see following records:
Code: Select all
root@mail:/var/log/apache2/domains# tail joomlagate.com.error.log
2017/02/20 08:04:42 [error] 988#988: *304364 upstream prematurely closed connection while reading response header from upstream, client: 203.208.60.200, server: joomlagate.com, request: "GET /media/plg_jchoptimize/assets/gz/1/0/391b90ff2ad5386a5f90d4f7dbca42ab.js HTTP/1.1", upstream: "https://120.27.137.71:8443/media/plg_jchoptimize/assets/gz/1/0/391b90ff2ad5386a5f90d4f7dbca42ab.js", host: "www.joomlagate.com", referrer: "https://www.joomlagate.com/"
2017/02/20 08:32:07 [error] 988#988: *305142 upstream prematurely closed connection while reading response header from upstream, client: 62.210.215.109, server: joomlagate.com, request: "GET /download/free-joomla-templates/site-templates/rss/ HTTP/1.1", upstream: "http://120.27.137.71:8080/download/free-joomla-templates/site-templates/rss/", host: "www.joomlagate.com"
2017/02/20 08:32:08 [error] 988#988: *305144 upstream prematurely closed connection while reading response header from upstream, client: 106.120.173.159, server: joomlagate.com, request: "GET /index.php?option=com_kunena&view=topic&catid=35&id=24213&Itemid=154 HTTP/1.1", upstream: "https://120.27.137.71:8443/index.php?option=com_kunena&view=topic&catid=35&id=24213&Itemid=154", host: "www.joomlagate.com"
Why this happened? How to fix this?
Thank you.
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: 500 error but I have no idea how to fix them
Error 500 is when Nginx (running in Rev. Proxy) doesn't receive anything from underlying Apache.
So either you are running Apache on a port other than 8080 or in your Nginx conf you changed the proxy port 8080 to something else.
Rebuild web should fix this for you.
So either you are running Apache on a port other than 8080 or in your Nginx conf you changed the proxy port 8080 to something else.
Rebuild web should fix this for you.