Rebooted VPS and now PBX wont start

Discussion in '3CX Phone System - General' started by OCWI, Apr 14, 2018.

  1. OCWI

    OCWI New Member

    Joined:
    Jan 17, 2017
    Messages:
    155
    Likes Received:
    43
    My production PBX is hosted on OVH on debian jessie. I know very little about linux. Somehow the VPS restart and now the pbx wont come up. I can SSH into it and i can see the vps is running.

    Im not even sure what command to type to diagnose or what to try next - any help would be much appreciated.
     
  2. jimbo59

    jimbo59 Member

    Joined:
    Nov 17, 2017
    Messages:
    342
    Likes Received:
    75
    verify the IP hasn't changed
    ifconfig

    verify you can ping the outside world
    ping 8.8.8.8
    ctrl+c to stop the ping

    see what's running
    ps -ale

    restart services:
    service nginx restart
    service 3cxPhoneSystem restart
    service ManagementConso restart
    service 3cxSystemService restart

    if no results...

    reboot
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 jimbo59, Apr 14, 2018
    Last edited: Apr 14, 2018
  3. OCWI

    OCWI New Member

    Joined:
    Jan 17, 2017
    Messages:
    155
    Likes Received:
    43
    much appreciate the reply.

    I can indeed ping google

    restarting nginx produced no errors, but the other ones all say no such file or directory. Eek!!
     
  4. jimbo59

    jimbo59 Member

    Joined:
    Nov 17, 2017
    Messages:
    342
    Likes Received:
    75
    ouch

    ls /var/lib/3cxpbx

    anything there?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. OCWI

    OCWI New Member

    Joined:
    Jan 17, 2017
    Messages:
    155
    Likes Received:
    43
    Yikes....nothing!!!
     
  6. jimbo59

    jimbo59 Member

    Joined:
    Nov 17, 2017
    Messages:
    342
    Likes Received:
    75
    Do you have a backup?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. OCWI

    OCWI New Member

    Joined:
    Jan 17, 2017
    Messages:
    155
    Likes Received:
    43
    a very old one - looks like im in the restoring stage!! CRAP!

    THANK YOU for walking me through it though @jimbo59
     
  8. jimbo59

    jimbo59 Member

    Joined:
    Nov 17, 2017
    Messages:
    342
    Likes Received:
    75
    You need to use that backup
    echo 'deb http://ftp.de.debian.org/debian/ jessie main' | tee -a /etc/apt/sources.list
    apt-get update
    apt-get install libicu52 libssl1.0.0 libcurl3=7.38.0-4+deb8u5

    wget -O- http://downloads.3cx.com/downloads/3cxpbx/public.key | apt-key add -
    echo "deb http://downloads.3cx.com/downloads/3cxpbx/ /" | tee /etc/apt/sources.list.d/3cxpbx.list
    apt-get update
    apt-get install 3cxpbx

    After the last command it will take you to the install where you will use the backup for restore.

    https://www.3cx.com/blog/docs/linux-version-9-stretch/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. OCWI

    OCWI New Member

    Joined:
    Jan 17, 2017
    Messages:
    155
    Likes Received:
    43
    good to know, in the meantime i think i found /var/lib/3cxbx i read the output wrong before, when i type that in it says "/var/lib/3cxpbx: Is a directory"
     
  10. jimbo59

    jimbo59 Member

    Joined:
    Nov 17, 2017
    Messages:
    342
    Likes Received:
    75
    good. It doesn't make sense the system was removed.

    Try using those service commands with start instead of restart.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. OCWI

    OCWI New Member

    Joined:
    Jan 17, 2017
    Messages:
    155
    Likes Received:
    43
    hmm, still same output, no such file or directory
     
  12. OCWI

    OCWI New Member

    Joined:
    Jan 17, 2017
    Messages:
    155
    Likes Received:
    43
    when i ls in that directory i dont see 3cxphonesystem , is that relevant?
     
  13. jimbo59

    jimbo59 Member

    Joined:
    Nov 17, 2017
    Messages:
    342
    Likes Received:
    75
    did you reboot the system
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. OCWI

    OCWI New Member

    Joined:
    Jan 17, 2017
    Messages:
    155
    Likes Received:
    43
    yes, i can again though
     
  15. jimbo59

    jimbo59 Member

    Joined:
    Nov 17, 2017
    Messages:
    342
    Likes Received:
    75
    3 directories in /var/lib/3cxpbx
    Bin Data Instance1
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. jimbo59

    jimbo59 Member

    Joined:
    Nov 17, 2017
    Messages:
    342
    Likes Received:
    75
    cd /var/lib/3cxpbx
    ls -l

    cd Instance1/Bin
    ls -l

    cat 3CXPhoneSystem.ini

    cd ..
    (backup one directory)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. OCWI

    OCWI New Member

    Joined:
    Jan 17, 2017
    Messages:
    155
    Likes Received:
    43
    confirmed, 3 directories
     
  18. OCWI

    OCWI New Member

    Joined:
    Jan 17, 2017
    Messages:
    155
    Likes Received:
    43
  19. OCWI

    OCWI New Member

    Joined:
    Jan 17, 2017
    Messages:
    155
    Likes Received:
    43
  20. jimbo59

    jimbo59 Member

    Joined:
    Nov 17, 2017
    Messages:
    342
    Likes Received:
    75
    what about when you do a ps -e
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...