The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

deleted a directory within virtfs,damaged cpanel , Help

Discussion in 'General Discussion' started by musti19, May 18, 2014.

  1. musti19

    musti19 Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello,
    i deleted a user directory within /home/virtfs without thinking.
    My cpanel system "was" broken.

    I do then run : /scripts/upcp --force,
    which repaired my cpanel.

    Except SSH and Quota, other services are working.
    SSH Problem: "Server refused to allocate pty"
    (This is a dedicated Server)

    How can i fix this both problems and can be other problems in future?



    thank you
     
    #1 musti19, May 18, 2014
    Last edited: May 18, 2014
  2. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You're going to need to log onto the console (or get your data center to assist if you don't have access to it). Then run the following:

    Code:
    /sbin/MAKEDEV pty
    /sbin/MAKEDEV tty
    
    That should solve the issue.
     
  3. musti19

    musti19 Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    i had a opened ssh session, i execute the commands without results.
    Then i tried with: scripts2/doautofixer?autofix=safesshrestart
    Output:
    --------
    Attempting to locate sshd binaries installed on the system ...
    Located /usr/sbin/sshd
    Done.
    Killing exisiting sshd processes...
    Done.
    configuring sshd to run on port 22
    /usr/sbin/sshd successfully started!
    --
    without results.

    Now i have no SSH Connection more, but can execute commands via webmin.

    Is the ssh server seperate from whm? So i can try to reinstall ssh..

    And there is a quota problem, all users disk are "unlimited",
    would "Initial Quota Setup" help, or can damage my system?

    thank you

    EDIT:
    I see now, that system can not found the disk, ...
     
    #3 musti19, May 18, 2014
    Last edited: May 18, 2014
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please keep in mind that using the "rm" command on any file or directory within /home/virtfs that is still mounted will likely render your server nonfunctional. Typically, the best way to proceed is to reinstall the Operating System/cPanel and then restore the accounts from backups.

    Thank you.
     
  5. musti19

    musti19 Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Before i reinstalled my system, i want show if the problem can be fixed with the shell command:
    udevadm trigger
    and yes, all files in /dev are new generated and everything worked fine.
    After restart, also no problems.

    short feedback about cpanel Backup system:
    I had configured the incremental backup (without tar.gz), and must before transfer create tar.gz files,
    and restored via shell command. But the restore system of cpanel was very slow ! I had big down times,
    and must write bash script to restore all accounts.that means that was not easy,
    It must be easier. And the documentation of cpanel do not describe how can the system files and dirs
    can be restored (that is created by inc. backup system).
    Also apache-configuration and php.ini is not stored with the system files. Please include it.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I am happy to hear you were able resolve the issue. Note that you must restore configuration files and directories manually. Also, please ensure you submit feature requests via:

    Submit A Feature Request

    Thank you.
     
Loading...

Share This Page