Directadmin deleted itself?

klasje

Verified User
Joined
Jan 5, 2008
Messages
67
Something horribly went wrong, I think that a directadmin auto-update went beserk!

My directadmin installation has 0b files.
directadmin: 0 bytes

root@server5:/usr/local/directadmin# ls -la /usr/local/directadmin/
total 32
drwxr-xr-x 8 diradmin diradmin 4096 Feb 12 00:10 .
drwxr-xr-x 17 root root 4096 Jan 31 11:09 ..
drwx------ 2 diradmin diradmin 4096 Jan 28 21:48 conf
drwx------ 7 root root 4096 Feb 12 00:10 custombuild
drwx--x--x 10 diradmin diradmin 4096 Feb 12 00:10 data
lrwxrwxrwx 1 root root 11 Aug 7 2025 dataskq -> directadmin
-rwxr-xr-x 1 root root 0 Feb 12 00:10 directadmin
drwx--x--x 3 diradmin diradmin 4096 Aug 7 2025 plugins
drwxr-xr-x 3 root root 4096 Feb 27 12:36 scripts
drwxr-xr-x 3 root root 4096 Feb 12 00:10 shared
-rw------- 1 root root 0 Feb 12 00:10 update-731917673.tar.gz


scripts folder, all 0 bytes:

root@server5:/usr/local/directadmin# ls -la /usr/local/directadmin/scripts/
total 12
drwxr-xr-x 3 root root 4096 Feb 27 12:36 .
drwxr-xr-x 8 diradmin diradmin 4096 Feb 12 00:10 ..
-rwxr-xr-x 1 root root 0 Feb 12 00:10 add_email.sh
-rwxr-xr-x 1 root root 0 Feb 12 00:10 addip
-rwxr-xr-x 1 root root 0 Feb 12 00:10 awstats_process.sh
-rwxr-xr-x 1 root root 0 Feb 12 00:10 backup_roundcube.php
-rwxr-xr-x 1 root root 0 Feb 12 00:10 change_database_username.php
-rwxr-xr-x 1 root root 0 Feb 12 00:10 change_username.sh
-rwxr-xr-x 1 root root 0 Feb 12 00:10 connection_info.sh
-rwxr-xr-x 1 root root 0 Feb 12 00:10 cron_deny.sh
drwx--x--x 2 root root 4096 Feb 12 00:10 custom
-rwxr-xr-x 1 root root 0 Feb 12 00:10 decrypt_file.sh
-rw-r--r-- 1 root root 0 Feb 12 00:10 directadmin_cron
-rw-r--r-- 1 root root 0 Feb 12 00:10 directadmin.rotate
-rw-r--r-- 1 root root 0 Feb 12 00:10 directadmin.service
-rw-r--r-- 1 root root 0 Feb 12 00:10 [email protected]
-rw-r--r-- 1 root root 0 Feb 12 00:10 [email protected]

My entire directadmin seems just gone?
I'm not on the wrong server, I'm 100% confident this was a working installation 2 weeks ago...

Inodes and df -h show no errors.
 
Last edited:
Yes, that was not the issue.

Reply from da support ticket:
Please use this article to manually update your DA and get it working back: https://docs.directadmin.com/direct...ng-da.html#manual-update-using-cli-commandsIt will restore your DA files in /usr/local/directadmin/ folder.


Resolved
@DA: This was very very scary, can't you fix your code to never install an update if the file size is 0 bytes or if the hash is incorrect after download. Updating with 0 bytes files is very risky...
 
Back
Top