• Web GUI 502 error after upgrade


    sup3rb0wlz
    • Closed

    I've been going through trying to diagnose some crashes with my unraid server. See the below link. But after updating to 6.5.1 I get a 502 bad gateway response from nginx after successfully loging in with BASIC auth. Below is a line from the nginx log and an last of /var/run. It looks to me like php5.sock is missing. Any idea why?

     

     

     

    Apr  3 00:16:01 tower nginx: 2018/04/03 00:16:01 [crit] 15952#15952: *793 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.200, server: , request: "POST /plugins/unassigned.devices/UnassignedDevices.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.1.250", referrer: "http://192.168.1.250/Main"

     

     


    root@tower:/var/log# ls /var/run
    acpid.pid      docker.sock=     nginx.origin   ntpd.pid       rsyslogd.pid   syslogd.pid
    acpid.socket=  dockerd.pid      nginx.pid      rpc.statd.pid  samba/         ttyd.sock=
    atd.pid        emhttpd.socket=  nginx.socket=  rpcbind/       sm-notify.pid  utmp
    dbus/          inetd.pid        nmbd.pid       rpcbind.lock   smbd.pid       winbindd.pid
    docker/        libvirt/         nscd/          rpcbind.sock=  sshd.pid




    User Feedback

    Recommended Comments

    For some reason php-fpm isn't running.  Try running this command to manually start it up:

    /etc/rc.d/rc.php-fpm start

     

    Link to comment
    5 hours ago, eschultz said:

    For some reason php-fpm isn't running.  Try running this command to manually start it up:

    
    /etc/rc.d/rc.php-fpm start

     

    That failed with this error

     

    /etc/rc.d/rc.php-fpm start
    Starting php-fpm /usr/sbin/php-fpm: error while loading shared libraries: libicui18n.so.56: cannot open shared object file: No such file or directory
     failed

     

    (Side note: is there a guide anywhere on forum formatting?)

    Edited by sup3rb0wlz
    Link to comment

    root@tower:~# diagnostics
    /usr/bin/php: error while loading shared libraries: libicui18n.so.56: cannot open shared object file: No such file or directory

     

    See the dilema? haha.

    Edited by sup3rb0wlz
    Link to comment

    How did you do the upgrade?

     

    System log is what I really need to see.  You can copy to root of flash device like this:

    cp /var/log/syslog /boot/syslog.txt

    Then get syslog.txt off the flash device.

    Link to comment

     

     

    I upgraded from the web gui, update OS in tools i believe and selected "Next" 

    Edited by sup3rb0wlz
    Link to comment

    Thanks for the log but it doesn't tell me anything because it's filled with error messages.  Probably in /var/log there are other syslog files, ie, syslog.1 maybe even syslog.2.

     

    But no matter, probably one of the bz* files in the root of the flash got corrupted.  To fix this unfortunately, you need to plug flash device into PC, download the release zip file, and then manually copy over all the files that start with 'bz' in the zip to the flash device.  Here's the direct link to the release zip:

    https://s3.amazonaws.com/dnld.lime-technology.com/next/unRAIDServer-6.5.1-rc3-x86_64.zip

     

    While you have the flash plugged in PC it's a good idea to right-click/Tools and check the file system.

    Link to comment

    After manually copying over the bz I still get the 502 

     

    If I copy /boot/previous back to /boot and reboot everything works great.

     

    Here's the log after restoring to previous too

     

     

    Edited by sup3rb0wlz
    Link to comment

    Please try either removing that DevPack plguin or boot in 'safe mode' (which will prevent plugin from installing) and see if that solves the problem.

    Link to comment


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.