helpchrisplz
Basic Pleskian
Hi UFHH01
I ran
plesk installer --select-product-id plesk --select-release-current --reinstall-patch --install-component base
and it ended with
Patches were installed successfully.
The changes were applied successfully.
It did many PSA_17.0.17 micro updates
However I can't load Plesk as its giving a 500 error. I have tried stopping and starting psa but that didn't work
so i tried following this https://support.plesk.com/hc/en-us/articles/213955585--HUB-500-Internal-Server-Error#plesk_linux_500
but the tail command only output this:
# tail -fn0 /var/log/sw-cp-server/error_log
2017/03/20 07:15:04 [error] 12637#0: *21361 [lua] access_by_lua(plesk_site_preview.conf:15):7: Forbidden for IP: <MY SERVER IP>, client: 127.0.0.1, server: plesk-site-preview.local, request: "GET /plesk-site-preview/ffk.couk/<MY SERVER IP>/ HTTP/1.0", host: "plesk-site-preview.local"
When opening the error_log from SFTP I get this: (i removed duplicated errors)
2017/03/19 08:52:58 [error] 12637#0: *19629 [lua] access_by_lua(plesk_site_preview.conf:15):7: Forbidden for IP: <MY SERVER IP>, client: 127.0.0.1, server: plesk-site-preview.local, request: "GET /plesk-site-preview/domain_subscription.com/<MY SERVER IP>/ HTTP/1.0", host: "plesk-site-preview.local"
2017/03/19 10:03:00 [error] 12637#0: *19713 open() "/usr/local/psa/admin/htdocs/robots.txt" failed (2: No such file or directory), client: 178.154.149.5, server: , request: "GET /robots.txt HTTP/1.1", host: "surgems.co.uk:8443"
2017/03/20 00:03:02 [error] 12637#0: *20715 [lua] access_by_lua(plesk_site_preview.conf:15):7: Forbidden for IP: <MY SERVER IP>, client: 127.0.0.1, server: plesk-site-preview.local, request: "POST /plesk-site-preview/domain_subscription.co.uk/<MY SERVER IP>/wordpress/wp-cron.php?doing_wp_cron=1489968182.3722479343414306640625 HTTP/1.0", host: "plesk-site-preview.local"
2017/03/20 06:56:24 [error] 12637#0: *21220 FastCGI sent in stderr: "PHP message: PHP Warning: psasem_rinit(): failed to open semaphore file: /usr/local/psa/var/psasem.sem: Permission denied in Unknown on line 0" while reading response header from upstream, client: 82.26.243.170, server: , request: "POST /relay HTTP/1.1", upstream: "fastcgi://127.0.0.1:19001", host: "server.pleskserver.co.uk:8443", referrer: "https://server.pleskserver.co.uk:84...b842-160d-e2ca-20f6-2f467bdafcf3&return_host="3"
2017/03/20 06:56:35 [error] 12637#0: *21247 open() "/usr/local/psa/admin/htdocs/modules/website-virus-check/images/home-promo.png" failed (2: No such file or directory), client: 82.26.243.170, server: , request: "GET /modules/website-virus-check//images/home-promo.png HTTP/1.1", host: "server.pleskserver.co.uk:8443", referrer: "https://server.pleskserver.co.uk:8443/admin/home/admin"
2017/03/20 07:01:46 [error] 12637#0: *21283 access forbidden by rule, client: 82.26.243.170, server: , request: "GET /theme-skins/heavy-metal/fonts/open-sans-regular.woff2 HTTP/1.1", host: "server.pleskserver.co.uk:8443", referrer: "https://server.pleskserver.co.uk:8443/theme-skins/heavy-metal/css/main.css?1471927183"
2017/03/20 07:15:04 [error] 12637#0: *21361 [lua] access_by_lua(plesk_site_preview.conf:15):7: Forbidden for IP: <MY SERVER IP>, client: 127.0.0.1, server: plesk-site-preview.local, request: "GET /plesk-site-preview/ffk.couk/<MY SERVER IP>/ HTTP/1.0", host: "plesk-site-preview.local"
It seems my server ip is coming up as forbidden
# service fail2ban status
fail2ban-server dead but pid file exists
/etc/init.d/fail2ban stop
Stopping fail2ban: ERROR Unable to contact server. Is it running?
[FAILED]
# for pid in $(ps -ef | awk '/fail2ban/ {print $2}'); do kill -9 $pid; done
-bash: kill: (12802) - No such process
Not sure what else to try. Please can you suggest what to do?
Thanks.
I ran
plesk installer --select-product-id plesk --select-release-current --reinstall-patch --install-component base
and it ended with
Patches were installed successfully.
The changes were applied successfully.
It did many PSA_17.0.17 micro updates
However I can't load Plesk as its giving a 500 error. I have tried stopping and starting psa but that didn't work
so i tried following this https://support.plesk.com/hc/en-us/articles/213955585--HUB-500-Internal-Server-Error#plesk_linux_500
but the tail command only output this:
# tail -fn0 /var/log/sw-cp-server/error_log
2017/03/20 07:15:04 [error] 12637#0: *21361 [lua] access_by_lua(plesk_site_preview.conf:15):7: Forbidden for IP: <MY SERVER IP>, client: 127.0.0.1, server: plesk-site-preview.local, request: "GET /plesk-site-preview/ffk.couk/<MY SERVER IP>/ HTTP/1.0", host: "plesk-site-preview.local"
When opening the error_log from SFTP I get this: (i removed duplicated errors)
2017/03/19 08:52:58 [error] 12637#0: *19629 [lua] access_by_lua(plesk_site_preview.conf:15):7: Forbidden for IP: <MY SERVER IP>, client: 127.0.0.1, server: plesk-site-preview.local, request: "GET /plesk-site-preview/domain_subscription.com/<MY SERVER IP>/ HTTP/1.0", host: "plesk-site-preview.local"
2017/03/19 10:03:00 [error] 12637#0: *19713 open() "/usr/local/psa/admin/htdocs/robots.txt" failed (2: No such file or directory), client: 178.154.149.5, server: , request: "GET /robots.txt HTTP/1.1", host: "surgems.co.uk:8443"
2017/03/20 00:03:02 [error] 12637#0: *20715 [lua] access_by_lua(plesk_site_preview.conf:15):7: Forbidden for IP: <MY SERVER IP>, client: 127.0.0.1, server: plesk-site-preview.local, request: "POST /plesk-site-preview/domain_subscription.co.uk/<MY SERVER IP>/wordpress/wp-cron.php?doing_wp_cron=1489968182.3722479343414306640625 HTTP/1.0", host: "plesk-site-preview.local"
2017/03/20 06:56:24 [error] 12637#0: *21220 FastCGI sent in stderr: "PHP message: PHP Warning: psasem_rinit(): failed to open semaphore file: /usr/local/psa/var/psasem.sem: Permission denied in Unknown on line 0" while reading response header from upstream, client: 82.26.243.170, server: , request: "POST /relay HTTP/1.1", upstream: "fastcgi://127.0.0.1:19001", host: "server.pleskserver.co.uk:8443", referrer: "https://server.pleskserver.co.uk:84...b842-160d-e2ca-20f6-2f467bdafcf3&return_host="3"
2017/03/20 06:56:35 [error] 12637#0: *21247 open() "/usr/local/psa/admin/htdocs/modules/website-virus-check/images/home-promo.png" failed (2: No such file or directory), client: 82.26.243.170, server: , request: "GET /modules/website-virus-check//images/home-promo.png HTTP/1.1", host: "server.pleskserver.co.uk:8443", referrer: "https://server.pleskserver.co.uk:8443/admin/home/admin"
2017/03/20 07:01:46 [error] 12637#0: *21283 access forbidden by rule, client: 82.26.243.170, server: , request: "GET /theme-skins/heavy-metal/fonts/open-sans-regular.woff2 HTTP/1.1", host: "server.pleskserver.co.uk:8443", referrer: "https://server.pleskserver.co.uk:8443/theme-skins/heavy-metal/css/main.css?1471927183"
2017/03/20 07:15:04 [error] 12637#0: *21361 [lua] access_by_lua(plesk_site_preview.conf:15):7: Forbidden for IP: <MY SERVER IP>, client: 127.0.0.1, server: plesk-site-preview.local, request: "GET /plesk-site-preview/ffk.couk/<MY SERVER IP>/ HTTP/1.0", host: "plesk-site-preview.local"
It seems my server ip is coming up as forbidden
# service fail2ban status
fail2ban-server dead but pid file exists
/etc/init.d/fail2ban stop
Stopping fail2ban: ERROR Unable to contact server. Is it running?
[FAILED]
# for pid in $(ps -ef | awk '/fail2ban/ {print $2}'); do kill -9 $pid; done
-bash: kill: (12802) - No such process
Not sure what else to try. Please can you suggest what to do?
Thanks.