Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


VPS stopped working. Not booting properly
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

VPS stopped working. Not booting properly

dexterxdexterx Member
edited November 2011 in Help

Hi

My VPS stopped working 10 hours ago.
I tried to restart, shutdown and boot for several times. But it's not booting properly.
I submitted several tickets but they can't/don't want to help.
Could somebody help me with a direction where to start troubleshooting ?
My linux knowledge is basic.

from "ps aux" i can see only:

[root@vps tmp]# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1   2156   664 ?        Ss   12:10   0:00 init [3]
root      1501  0.0  0.1  11232   480 ?        Ss   12:11   0:00 vzctl: pts/0
root      1502  0.0  0.2   2548  1372 pts/0    Ss   12:11   0:00 -bash
root      1745  0.0  0.1   2268   844 pts/0    R+   12:46   0:00 ps aux

for me seems that its not loaded everything what should load at startup.

This is from console connection.

No ssh/http/ftp

when I try "top" I get this message:

-bash: top: command not found

I should mention that I did not make any modification to linux since 2 months ago.
Everything was perfect till today.

«13

Comments

  • Have you tried contacting support?
    If your linux knowledge is basic and you don't have any valuable data on your VPS you should just reinstall the OS.

  • Hmmm, I guess you are using the console from SolusVM?

    What about

    /etc/init.d/ssh start
    

    You have connectivity? ping something

    Maybe you can take a backup of your data and reinstall if you get ssh working

  • @breton

    @dexterx said: I submitted several tickets but they can't/don't want to help

    ¬_¬!!

  • Yes I tried to contact support but they can't help.
    I wouldn't like to reinstall everything. It took me 3 weeks till I made everything perfect.
    So reinstall is not an option.
    My skills aren't that basic. I installed everything after reading over and over.
    I hoped that some of you could help me with an idea.

  • yomero: yes i can ping the vps. But just Ping.
    and yes is from solusvm console

  • dexterxdexterx Member
    edited November 2011
    [root@vps /]# /etc/init.d/ssh start
    -bash: /etc/init.d/ssh: No such file or directory
    

    and

    [root@vps init.d]# /etc/init.d/sshd start
    cp: cannot create symbolic link `/var/empty/sshd/etc': No such file or directory
    Starting sshd: /etc/init.d/sshd: line 114: /usr/sbin/sshd: No such file or directory
                                                               [FAILED]
    
  • Damn...

    What do you have in /etc/init.d ?

    ls -al /etc/init.d

    Also, is a debian based distro? ubuntu? Can you run apt-get?

  • Isn't the # in the command line a sign that he isn't at root?

  • KairusKairus Member
    edited November 2011

    Hmm, what's the output of "ls /" and "ls /etc/init.d"

    Maybe you're in some sort of recovery?

    @drmike, that shouldn't be a problem. Pretty sure it would throw a different error if he tried to do that without privs.

  • dexterxdexterx Member
    edited November 2011
    [root@vps /]# ls -al /etc/init.d
    lrwxrwxrwx 1 root root 11 Nov  4 10:08 /etc/init.d -> rc.d/init.d
    

    Centos

    Could be a virus ? or maybe somebody hacked in to the vps ?

  • Hmm, I am not expert with EL based distros.. Someone else? I guess this is screwed xD

  • bretonbreton Member
    edited November 2011

    @yomero:
    oh, my bad.

    @drmike:

    Isn't the # in the command line a sign that he isn't at root?

    # in my debians is root, don't know about centos.

    @dexterx, what were your last actions?

  • Where can i find the log file with the boot process ?
    Maybe there is some error that can help.

  • @dexterx said: Where can i find the log file with the boot process ? Maybe there is some error that can help.

    In /var/log

  • Where can i find the log file with the boot process ? Maybe there is some error that can help.

    dmesg. But I don't think it has something to do with it.

  • /var is empty. Does that mean something ?

  • Hmmm, Can you autocomplete with tab? I mean, do you have commands? :P

    Have the commands scp or rsync? Probably you can move your data in some way. Also, maybe we can look for a webserver to host your data (do you have wget/curl?).

  • bretonbreton Member
    edited November 2011

    /var is empty.

    post output of "mount", "cat /etc/fstab" and "cat /etc/mtab" to some pastebin

  • i can complete most of the commands but they are not working.
    If i type yu and tab I get yum. But if i hit enter i get:

    [root@vps etc]# yum
    -bash: yum: command not found
    [root@vps etc]# wget -c
    -bash: wget: command not found
    [root@vps etc]# ping google.com
    PING google.com (74.125.224.48) 56(84) bytes of data.
    64 bytes from nuq04s06-in-f16.1e100.net (74.125.224.48): icmp_seq=1 ttl=54 time=20.3 ms
    64 bytes from nuq04s06-in-f16.1e100.net (74.125.224.48): icmp_seq=2 ttl=55 time=19.5 ms
    64 bytes from nuq04s06-in-f16.1e100.net (74.125.224.48): icmp_seq=3 ttl=55 time=19.5 ms
    
    
  • dexterxdexterx Member
    edited November 2011
    [root@vps etc]# mount
    /dev/simfs on / type simfs (rw,relatime,usrquota,grpquota)
    proc on /proc type proc (rw,relatime)
    sysfs on /sys type sysfs (rw,relatime)
    none on /dev/pts type devpts (rw,relatime)
    none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
    
    
    [root@vps etc]# cat /etc/fstab
    none    /dev/pts        devpts  rw      0       0
    
    
    [root@vps etc]# cat /etc/mtab
    /dev/simfs / simfs rw,relatime,usrquota,grpquota 0 0
    proc /proc proc rw,relatime 0 0
    sysfs /sys sysfs rw,relatime 0 0
    none /dev/pts devpts rw,relatime 0 0
    none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
    
    
  • that openvz feel.

    openvz-pros, is fstab ok?

  • Ok, you have access to your data right? Somewhere in your box. Can you use tar to compress it? And I guess you don't have scp or rsync.

    Someone knows about an static build of wget/curl and a static tiny webserver? Lol, I know, is funny, but is the only way that comes to my mind to retrieve the data.

    PS: Is very important your data? xD

  • $ cat /etc/fstab
    proc  /proc       proc    defaults    0    0
    none  /dev/pts    devpts  rw          0    0
    

    Hehe

  • the data is not that important
    For most of thefiles i have backups and daily backup of sql to email.
    The configuration was important.
    Installing and configuring every program is the pain.

  • @dexterx, try

    echo "proc  /proc       proc    defaults    0    0" >> /etc/fstab
  • yomeroyomero Member
    edited November 2011

    I guess someone like Fran can help more :P (complicated VZ stuff)

    But well, if your data isn't important, I suggest you to copy paste your config files and reinstall. Is more complicated trying to fix this mess...

  • dexterxdexterx Member
    edited November 2011

    What could cause this ? I didn't change anything on the vps for more than a month.
    Everything was perfect till today.

    I added that line and restarted

    [root@vps /]# ps aux
    USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
    root         1  0.4  0.1   2156   660 ?        Ss   22:09   0:00 init [3]
    root      1148  0.0  0.2   2660  1284 ?        Ss   22:09   0:00 /bin/bash /etc/
    root      1443  0.0  0.2   2676  1284 ?        S    22:09   0:00 /bin/bash /etc/
    root      1446  0.0  0.2   2540  1076 ?        S    22:09   0:00 /bin/bash -c ul
    root      1447  0.0  0.0   1760   396 ?        S    22:09   0:00 syslogd -m 0
    root      1448  0.0  0.0      0     0 ?        Zs   22:09   0:00 [sys] 
    root      1473  0.0  0.1  11232   484 ?        Ss   22:10   0:00 vzctl: pts/0
    root      1474  0.0  0.2   2548  1344 pts/0    Ss   22:10   0:00 -bash
    root      1498  0.0  0.1   2268   848 pts/0    R+   22:10   0:00 ps aux
    [root@vps /]# cat /etc/fstab
    none    /dev/pts        devpts  rw      0       0
    proc  /proc       proc    defaults    0    0
    
    
  • Still no commands?

    What caused? Dunno, if nobody touched it, something is bad from the provider side I guess.

  • The provider changed from centos 6 to centos 5.7 in the last days.
    I exchanged 14 messages trough tickets with them but they are not even reading what i write.
    I asked 6 times what happend and no real answer.
    It looks that i have to reinstall everything.

    Many thanks anyway for your time :)

  • If I were you, I quit with them ASAP

Sign In or Register to comment.