Cannot access Plesk: 502 bad gateway

Created:

2017-05-28 18:10:33 UTC

Modified:

2017-08-16 16:36:11 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot access Plesk: 502 bad gateway

Applicable to:

  • Plesk for Linux

Symptoms

Cannot access Plesk, the following error occurs:

502 Bad Gateway

Service sw-engine cannot be started with the following error:

# systemctl status sw-engine.service
...
May 28 11:45:22 server.example.com systemd[1]: Starting Startup script for Panel sw-engine...
May 28 11:45:22 server.example.com sw-engine-fpm[9776]: /usr/sbin/sw-engine-fpm: error while loading shared libraries: liblog4cplus-1.1.so.9: cannot open shared object file: No such ...r directory

Symbolic link for /usr/lib64/liblog4cplus-1.1.so.9 library is broken and points to non-existent file:

# ls -l /usr/lib64/liblog4cplus-1.1.so.9
lrwxrwxrwx. 1 root root 15 May 26 16:32 /usr/lib64/liblog4cplus-1.1.so.9 -> liblog4cplus.so

Cause

Symbolic link for /usr/lib64/liblog4cplus-1.1.so.9 library is broken

Resolution

  1. Find shared liblog4cplus library:

    # locate liblog4cplus
    
    /usr/lib64/liblog4cplus-1.1.so.9
    /usr/lib64/liblog4cplus-1.1.so.9.0.0
  2. Re-create symbolic link to point to existent library:

    # cd /usr/lib64/
    
    # rm /usr/lib64/liblog4cplus-1.1.so.9
    # ln -s liblog4cplus-1.1.so.9.0.0 /usr/lib64/liblog4cplus-1.1.so.9
Have more questions? Submit a request
Please sign in to leave a comment.