deleted a directory within virtfs,damaged cpanel , Help

musti19

Well-Known Member
Jan 20, 2013
110
1
68
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
 
Last edited:

cPanelPeter

Technical Analyst III
Staff member
Sep 23, 2013
574
17
143
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.
 

musti19

Well-Known Member
Jan 20, 2013
110
1
68
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, ...
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
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.
 

musti19

Well-Known Member
Jan 20, 2013
110
1
68
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
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.