DirectAdmin v1.650 has been released

Not sure if this is related to this specific version of DA, but we encountered a strange bug when changing PHP-versions in custombuild/options.conf:

When php2_release is set to no, but php3_release is set, a rewrite_confs switches all sites that have php1_select set to 3 or 4 back to the version defined as the primary version. If i'm correctly, we didn't have this issue before, and were able to remove the version set as '2', but keep 3 & 4.

I think it would be better to check if php3 & php4 are set, even if php2 is set to no. That would make it easier to remove an unused php version, without having to change the users config-files.

Current version on server: DirectAdmin 1.650 build ce51baa892c8b90004807fd1a8610294655d4c35
 
An update is released with:
  • removed permanent confirmation box, thanks @phamtrong204 for report, this happens on old browsers (for example Safari 14) which does not support newer web standards. We ensured it will not pop up even on old browsers.
  • a security fix that affects only Enhanced skin users.

Think I found a bug.. If you login as admin, then login as a user. click on 'installatron' or the associated app.

The option to quickly select between users at the top stops working.
We were not able to reproduce the installatron issue.

When php2_release is set to no, but php3_release is set, a rewrite_confs switches all sites that have php1_select set to 3 or 4 back to the version defined as the primary version. If i'm correctly, we didn't have this issue before, and were able to remove the version set as '2', but keep 3 & 4.
This is not something that changed recently, but we will need a further investigation.
 
@Jayjayuk
I suggest to take picture step by step or take video when reporting bug. Dev Team can easy reproduce step by step.

because it hard to identify issued when have too many feature.
 
Admin Backups are not working...

Unable to create path '/home/admin/admin_backups/testuser/backup/testuser.com/email': mkdir(/home/admin/admin_backups) error: Permission denied

lstat('/home/admin/admin_backups/testuser/backup/testuser.com/email'): No such file or directory
lstat('/home/admin/admin_backups/testuser/backup/testuser.com'): No such file or directory
drwx--x--- admin access /home/admin

/home/admin/admin_backups/testuser/backup/testuser.com/email: No such file or directory
/home/admin/admin_backups/testuser/backup/testuser.com: No such file or directory
/home/admin/admin_backups/testuser/backup: 'testuser:testuser' drwx------, viewed as testuser:root
/home/admin/admin_backups/testuser: 'testuser:testuser' drwx------, viewed as testuser:root
/home/admin/admin_backups: 'admin:admin' drwx--x--x, viewed as testuser:root
/home/admin: 'admin:access' drwx--x---, viewed as testuser:root
/home: 'root:root' drwx--x--x, viewed as testuser:root
/: 'root:root' drwxr-xr-x, viewed as testuser:root

Unable to create path '/home/admin/admin_backups/testuser/backup/emoncms.testuser.com/email': mkdir(/home/admin/admin_backups) error: Permission denied

lstat('/home/admin/admin_backups/testuser/backup/emoncms.testuser.com/email'): No such file or directory
lstat('/home/admin/admin_backups/testuser/backup/emoncms.testuser.com'): No such file or directory
drwx--x--- admin access /home/admin

/home/admin/admin_backups/testuser/backup/emoncms.testuser.com/email: No such file or directory
/home/admin/admin_backups/testuser/backup/emoncms.testuser.com: No such file or directory
/home/admin/admin_backups/testuser/backup: 'testuser:testuser' drwx------, viewed as testuser:root
/home/admin/admin_backups/testuser: 'testuser:testuser' drwx------, viewed as testuser:root
/home/admin/admin_backups: 'admin:admin' drwx--x--x, viewed as testuser:root
/home/admin: 'admin:access' drwx--x---, viewed as testuser:root
/home: 'root:root' drwx--x--x, viewed as testuser:root
/: 'root:root' drwxr-xr-x, viewed as testuser:root

Unable to create path '/home/admin/admin_backups/testuser/backup/gogshub.testuser.com/email': mkdir(/home/admin/admin_backups) error: Permission denied

lstat('/home/admin/admin_backups/testuser/backup/gogshub.testuser.com/email'): No such file or directory
lstat('/home/admin/admin_backups/testuser/backup/gogshub.testuser.com'): No such file or directory
drwx--x--- admin access /home/admin

/home/admin/admin_backups/testuser/backup/gogshub.testuser.com/email: No such file or directory
/home/admin/admin_backups/testuser/backup/gogshub.testuser.com: No such file or directory
/home/admin/admin_backups/testuser/backup: 'testuser:testuser' drwx------, viewed as testuser:root
/home/admin/admin_backups/testuser: 'testuser:testuser' drwx------, viewed as testuser:root
/home/admin/admin_backups: 'admin:admin' drwx--x--x, viewed as testuser:root
/home/admin: 'admin:access' drwx--x---, viewed as testuser:root
/home: 'root:root' drwx--x--x, viewed as testuser:root
/: 'root:root' drwxr-xr-x, viewed as testuser:root

Unable to create path '/home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/email': mkdir(/home/admin/admin_backups) error: Permission denied

lstat('/home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/email'): No such file or directory
lstat('/home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com'): No such file or directory
drwx--x--- admin access /home/admin

/home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/email: No such file or directory
/home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com: No such file or directory
/home/admin/admin_backups/testuser/backup: 'testuser:testuser' drwx------, viewed as testuser:root
/home/admin/admin_backups/testuser: 'testuser:testuser' drwx------, viewed as testuser:root
/home/admin/admin_backups: 'admin:admin' drwx--x--x, viewed as testuser:root
/home/admin: 'admin:access' drwx--x---, viewed as testuser:root
/home: 'root:root' drwx--x--x, viewed as testuser:root
/: 'root:root' drwxr-xr-x, viewed as testuser:root

Unable to create path '/home/admin/admin_backups/testuser/backup/sklad.testuser.com/email': mkdir(/home/admin/admin_backups) error: Permission denied

lstat('/home/admin/admin_backups/testuser/backup/sklad.testuser.com/email'): No such file or directory
lstat('/home/admin/admin_backups/testuser/backup/sklad.testuser.com'): No such file or directory
drwx--x--- admin access /home/admin

/home/admin/admin_backups/testuser/backup/sklad.testuser.com/email: No such file or directory
/home/admin/admin_backups/testuser/backup/sklad.testuser.com: No such file or directory
/home/admin/admin_backups/testuser/backup: 'testuser:testuser' drwx------, viewed as testuser:root
/home/admin/admin_backups/testuser: 'testuser:testuser' drwx------, viewed as testuser:root
/home/admin/admin_backups: 'admin:admin' drwx--x--x, viewed as testuser:root
/home/admin: 'admin:access' drwx--x---, viewed as testuser:root
/home: 'root:root' drwx--x--x, viewed as testuser:root
/: 'root:root' drwxr-xr-x, viewed as testuser:root

Unable to create path '/home/admin/admin_backups/testuser/backup/sosplatform.testuser.com/email': mkdir(/home/admin/admin_backups) error: Permission denied

lstat('/home/admin/admin_backups/testuser/backup/sosplatform.testuser.com/email'): No such file or directory
lstat('/home/admin/admin_backups/testuser/backup/sosplatform.testuser.com'): No such file or directory
drwx--x--- admin access /home/admin

/home/admin/admin_backups/testuser/backup/sosplatform.testuser.com/email: No such file or directory
/home/admin/admin_backups/testuser/backup/sosplatform.testuser.com: No such file or directory
/home/admin/admin_backups/testuser/backup: 'testuser:testuser' drwx------, viewed as testuser:root
/home/admin/admin_backups/testuser: 'testuser:testuser' drwx------, viewed as testuser:root
/home/admin/admin_backups: 'admin:admin' drwx--x--x, viewed as testuser:root
/home/admin: 'admin:access' drwx--x---, viewed as testuser:root
/home: 'root:root' drwx--x--x, viewed as testuser:root
/: 'root:root' drwxr-xr-x, viewed as testuser:root


Error copying ./data/users/testuser/user.history to /home/admin/admin_backups/testuser/backup/user.history : Unable to open /home/admin/admin_backups/testuser/backup/user.history3MAXmV for writing

Error copying ./data/users/testuser/crontab.conf to /home/admin/admin_backups/testuser/backup/crontab.conf : Unable to open /home/admin/admin_backups/testuser/backup/crontab.confMEeTcs for writing

Error copying ./data/users/testuser/bandwidth.tally to /home/admin/admin_backups/testuser/backup/bandwidth.tally : Unable to open /home/admin/admin_backups/testuser/backup/bandwidth.tallyjIcY2Y for writing

Error copying ./data/users/testuser/ticket.conf to /home/admin/admin_backups/testuser/backup/ticket.conf : Unable to open /home/admin/admin_backups/testuser/backup/ticket.confqbOgTv for writing

Error copying /home/testuser/.shadow to /home/admin/admin_backups/testuser/backup/.shadow : Unable to open /home/admin/admin_backups/testuser/backup/.shadowFu1NJ2 for writing

Error copying ./data/users/testuser/history to /home/admin/admin_backups/testuser/backup/history : mkdir(/home/admin/admin_backups/testuser/backup/history) error: Permission denied
Unable to create the directory /home/admin/admin_backups/testuser/backup/history

Error copying ./data/users/testuser/domains/testuser.com.conf to /home/admin/admin_backups/testuser/backup/testuser.com/domain.conf : Unable to open /home/admin/admin_backups/testuser/backup/testuser.com/domain.confiltbBz for writing

Error reading /home/admin/admin_backups/testuser/backup/testuser.com/domain.conf to insert local_domain & private_html_is_link: Unable to open /home/admin/admin_backups/testuser/backup/testuser.com/domain.conf for reading.
Permission denied

Error copying ./data/users/testuser/domains/testuser.com.usage to /home/admin/admin_backups/testuser/backup/testuser.com/domain.usage : Unable to open /home/admin/admin_backups/testuser/backup/testuser.com/domain.usagepuZRs6 for writing

Error copying ./data/users/testuser/domains/testuser.com.cacert to /home/admin/admin_backups/testuser/backup/testuser.com/domain.cacert : Unable to open /home/admin/admin_backups/testuser/backup/testuser.com/domain.cacert29sLkD for writing

Error copying ./data/users/testuser/domains/testuser.com.cert to /home/admin/admin_backups/testuser/backup/testuser.com/domain.cert : Unable to open /home/admin/admin_backups/testuser/backup/testuser.com/domain.certFZLSca for writing

Error copying ./data/users/testuser/domains/testuser.com.key to /home/admin/admin_backups/testuser/backup/testuser.com/domain.key : Unable to open /home/admin/admin_backups/testuser/backup/testuser.com/domain.keyIgib5G for writing

Error copying ./data/users/testuser/domains/testuser.com.ip_list to /home/admin/admin_backups/testuser/backup/testuser.com/domain.ip_list : Unable to open /home/admin/admin_backups/testuser/backup/testuser.com/domain.ip_listHFiIXd for writing

Error copying ./data/users/testuser/domains/testuser.com.cert.creation_time to /home/admin/admin_backups/testuser/backup/testuser.com/domain.cert.creation_time : Unable to open /home/admin/admin_backups/testuser/backup/testuser.com/domain.cert.creation_timew9aqQK for writing

Error copying ./data/users/testuser/domains/testuser.com.san_config to /home/admin/admin_backups/testuser/backup/testuser.com/domain.san_config : Unable to open /home/admin/admin_backups/testuser/backup/testuser.com/domain.san_configpUajJh for writing

Error copying ./data/users/testuser/domains/testuser.com.dnsprovider to /home/admin/admin_backups/testuser/backup/testuser.com/domain.dnsprovider : Unable to open /home/admin/admin_backups/testuser/backup/testuser.com/domain.dnsprovideri3onCO for writing

Error copying ./data/users/testuser/domains/testuser.com.handlers to /home/admin/admin_backups/testuser/backup/testuser.com/domain.handlers : Unable to open /home/admin/admin_backups/testuser/backup/testuser.com/domain.handlerst8K8wl for writing

Error copying ./data/users/testuser/domains/testuser.com.mime.types to /home/admin/admin_backups/testuser/backup/testuser.com/domain.mime.types : Unable to open /home/admin/admin_backups/testuser/backup/testuser.com/domain.mime.typesqop5rS for writing

Error copying ./data/users/testuser/domains/testuser.com.subdomains.docroot.override to /home/admin/admin_backups/testuser/backup/testuser.com/domain.subdomains.docroot.override : Unable to open /home/admin/admin_backups/testuser/backup/testuser.com/domain.subdomains.docroot.overrideTfshnp for writing

Error copying ./data/users/testuser/domains/emoncms.testuser.com.conf to /home/admin/admin_backups/testuser/backup/emoncms.testuser.com/domain.conf : Unable to open /home/admin/admin_backups/testuser/backup/emoncms.testuser.com/domain.confeDPjjW for writing

Error reading /home/admin/admin_backups/testuser/backup/emoncms.testuser.com/domain.conf to insert local_domain & private_html_is_link: Unable to open /home/admin/admin_backups/testuser/backup/emoncms.testuser.com/domain.conf for reading.
Permission denied

Error copying ./data/users/testuser/domains/emoncms.testuser.com.usage to /home/admin/admin_backups/testuser/backup/emoncms.testuser.com/domain.usage : Unable to open /home/admin/admin_backups/testuser/backup/emoncms.testuser.com/domain.usageVKxGft for writing

Error copying ./data/users/testuser/domains/emoncms.testuser.com.ip_list to /home/admin/admin_backups/testuser/backup/emoncms.testuser.com/domain.ip_list : Unable to open /home/admin/admin_backups/testuser/backup/emoncms.testuser.com/domain.ip_listQqsrc0 for writing

Error copying ./data/users/testuser/domains/gogshub.testuser.com.conf to /home/admin/admin_backups/testuser/backup/gogshub.testuser.com/domain.conf : Unable to open /home/admin/admin_backups/testuser/backup/gogshub.testuser.com/domain.conf3Dxrbx for writing

Error reading /home/admin/admin_backups/testuser/backup/gogshub.testuser.com/domain.conf to insert local_domain & private_html_is_link: Unable to open /home/admin/admin_backups/testuser/backup/gogshub.testuser.com/domain.conf for reading.
Permission denied

Error copying ./data/users/testuser/domains/gogshub.testuser.com.usage to /home/admin/admin_backups/testuser/backup/gogshub.testuser.com/domain.usage : Unable to open /home/admin/admin_backups/testuser/backup/gogshub.testuser.com/domain.usageczPEa4 for writing

Error copying ./data/users/testuser/domains/gogshub.testuser.com.cacert to /home/admin/admin_backups/testuser/backup/gogshub.testuser.com/domain.cacert : Unable to open /home/admin/admin_backups/testuser/backup/gogshub.testuser.com/domain.cacertjRp39A for writing

Error copying ./data/users/testuser/domains/gogshub.testuser.com.cert to /home/admin/admin_backups/testuser/backup/gogshub.testuser.com/domain.cert : Unable to open /home/admin/admin_backups/testuser/backup/gogshub.testuser.com/domain.certEykC97 for writing

Error copying ./data/users/testuser/domains/gogshub.testuser.com.key to /home/admin/admin_backups/testuser/backup/gogshub.testuser.com/domain.key : Unable to open /home/admin/admin_backups/testuser/backup/gogshub.testuser.com/domain.keybRok9E for writing

Error copying ./data/users/testuser/domains/gogshub.testuser.com.ip_list to /home/admin/admin_backups/testuser/backup/gogshub.testuser.com/domain.ip_list : Unable to open /home/admin/admin_backups/testuser/backup/gogshub.testuser.com/domain.ip_listUxFe9b for writing

Error copying ./data/users/testuser/domains/gogshub.testuser.com.cert.creation_time to /home/admin/admin_backups/testuser/backup/gogshub.testuser.com/domain.cert.creation_time : Unable to open /home/admin/admin_backups/testuser/backup/gogshub.testuser.com/domain.cert.creation_timenTri9I for writing

Error copying ./data/users/testuser/domains/palace-hotspot.testuser.com.conf to /home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/domain.conf : Unable to open /home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/domain.confcW37bg for writing

Error reading /home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/domain.conf to insert local_domain & private_html_is_link: Unable to open /home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/domain.conf for reading.
Permission denied

Error copying ./data/users/testuser/domains/palace-hotspot.testuser.com.usage to /home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/domain.usage : Unable to open /home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/domain.usageRGBkfN for writing

Error copying ./data/users/testuser/domains/palace-hotspot.testuser.com.cacert to /home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/domain.cacert : Unable to open /home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/domain.cacertwBfMik for writing

Error copying ./data/users/testuser/domains/palace-hotspot.testuser.com.cert to /home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/domain.cert : Unable to open /home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/domain.certZpotmR for writing

Error copying ./data/users/testuser/domains/palace-hotspot.testuser.com.key to /home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/domain.key : Unable to open /home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/domain.keyoymoqo for writing

Error copying ./data/users/testuser/domains/palace-hotspot.testuser.com.ip_list to /home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/domain.ip_list : Unable to open /home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/domain.ip_listlroBuV for writing

Error copying ./data/users/testuser/domains/palace-hotspot.testuser.com.cert.creation_time to /home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/domain.cert.creation_time : Unable to open /home/admin/admin_backups/testuser/backup/palace-hotspot.testuser.com/domain.cert.creation_timee7K2ys for writing

Error copying ./data/users/testuser/domains/sklad.testuser.com.conf to /home/admin/admin_backups/testuser/backup/sklad.testuser.com/domain.conf : Unable to open /home/admin/admin_backups/testuser/backup/sklad.testuser.com/domain.confN3NvGZ for writing

Error reading /home/admin/admin_backups/testuser/backup/sklad.testuser.com/domain.conf to insert local_domain & private_html_is_link: Unable to open /home/admin/admin_backups/testuser/backup/sklad.testuser.com/domain.conf for reading.
Permission denied

Error copying ./data/users/testuser/domains/sklad.testuser.com.usage to /home/admin/admin_backups/testuser/backup/sklad.testuser.com/domain.usage : Unable to open /home/admin/admin_backups/testuser/backup/sklad.testuser.com/domain.usageILMcOw for writing

Error copying ./data/users/testuser/domains/sklad.testuser.com.cacert to /home/admin/admin_backups/testuser/backup/sklad.testuser.com/domain.cacert : Unable to open /home/admin/admin_backups/testuser/backup/sklad.testuser.com/domain.cacertJI62V3 for writing

Error copying ./data/users/testuser/domains/sklad.testuser.com.cert to /home/admin/admin_backups/testuser/backup/sklad.testuser.com/domain.cert : Unable to open /home/admin/admin_backups/testuser/backup/sklad.testuser.com/domain.certAEr23A for writing

Error copying ./data/users/testuser/domains/sklad.testuser.com.key to /home/admin/admin_backups/testuser/backup/sklad.testuser.com/domain.key : Unable to open /home/admin/admin_backups/testuser/backup/sklad.testuser.com/domain.keylEOcc8 for writing

Error copying ./data/users/testuser/domains/sklad.testuser.com.ip_list to /home/admin/admin_backups/testuser/backup/sklad.testuser.com/domain.ip_list : Unable to open /home/admin/admin_backups/testuser/backup/sklad.testuser.com/domain.ip_listUklCkF for writing

Error copying ./data/users/testuser/domains/sklad.testuser.com.cert.creation_time to /home/admin/admin_backups/testuser/backup/sklad.testuser.com/domain.cert.creation_time : Unable to open /home/admin/admin_backups/testuser/backup/sklad.testuser.com/domain.cert.creation_timeFmuotc for writing

Error copying ./data/users/testuser/domains/sosplatform.testuser.com.conf to /home/admin/admin_backups/testuser/backup/sosplatform.testuser.com/domain.conf : Unable to open /home/admin/admin_backups/testuser/backup/sosplatform.testuser.com/domain.confuZ0NEJ for writing

Error reading /home/admin/admin_backups/testuser/backup/sosplatform.testuser.com/domain.conf to insert local_domain & private_html_is_link: Unable to open /home/admin/admin_backups/testuser/backup/sosplatform.testuser.com/domain.conf for reading.
Permission denied

Error copying ./data/users/testuser/domains/sosplatform.testuser.com.usage to /home/admin/admin_backups/testuser/backup/sosplatform.testuser.com/domain.usage : Unable to open /home/admin/admin_backups/testuser/backup/sosplatform.testuser.com/domain.usageFeLBQg for writing

Error copying ./data/users/testuser/domains/sosplatform.testuser.com.ip_list to /home/admin/admin_backups/testuser/backup/sosplatform.testuser.com/domain.ip_list : Unable to open /home/admin/admin_backups/testuser/backup/sosplatform.testuser.com/domain.ip_listoWsQ2N for writing

Error copying ./data/users/testuser/domains/sosplatform.testuser.com.cust_httpd to /home/admin/admin_backups/testuser/backup/sosplatform.testuser.com/domain.cust_httpd : Unable to open /home/admin/admin_backups/testuser/backup/sosplatform.testuser.com/domain.cust_httpd36Vqfl for writing

Error writing /home/admin/admin_backups/testuser/backup/apache_owned_files.list : Unable to open file for writing
Permission denied

Could not read /home/admin/admin_backups/testuser/backup as testuser
Info as root: /home/admin/admin_backups/testuser/backup: 'testuser:testuser' drwx------, viewed as root:root
Error renaming /home/admin/admin_backups/testuser/user.admin.testuser.tar.gz to /home/admin/admin_backups/user.admin.testuser.tar.gz : Unable to move /home/admin/admin_backups/testuser/user.admin.testuser.tar.gz to /home/admin/admin_backups/user.admin.testuser.tar.gz:
A directory component in oldpath or newpath does not exist or is a dangling symbolic link.

<21:57:24>
 
@d.dobrev please open a support ticket, this looks like a miss-configuration issue on your server.

A new update is released, that has a fix for backuping users where Maildir in user home dir is a symlink. Without the fix creating home dir backup file fails. This should affect a rather small set of servers.
 
  • Like
Reactions: jca
@d.dobrev please open a support ticket, this looks like a miss-configuration issue on your server.

A new update is released, that has a fix for backuping users where Maildir in user home dir is a symlink. Without the fix creating home dir backup file fails. This should affect a rather small set of servers.

The Maildir is not a symlink. Also, I upgraded (012240df134922e26c50eb42161af66e4f9d3d59) and tested the backup - the error persists.
I don't have extended support, so opening a ticket is not an option.

root@srv01:/home/testuser # ls -lah
total 164K
drwx--x--- 10 testuser access 4.0K Jun 14 22:29 .
drwx--x--x 22 root root 4.0K May 9 17:53 ..
drwx------ 2 testuser testuser 4.0K Jun 14 22:30 backups
-rw-r--r-- 1 testuser testuser 220 Apr 18 2019 .bash_logout
-rw-r--r-- 1 testuser testuser 44 Dec 24 2021 .bash_profile
-rw-r--r-- 1 testuser testuser 3.5K Apr 18 2019 .bashrc
drwx--x--x 3 testuser testuser 4.0K Jul 11 2020 domains
drwx------ 3 testuser testuser 4.0K Jul 11 2020 .gnupg
drwxrwx--- 3 testuser mail 4.0K Jul 11 2020 imap
drwxrwx--- 6 testuser mail 4.0K Jan 19 17:20 Maildir
drwxrwx--- 2 testuser apache 4.0K Jun 15 00:10 .php
-rw-r--r-- 1 testuser testuser 807 Apr 18 2019 .profile
lrwxrwxrwx 1 testuser testuser 42 Jul 11 2020 public_html -> ./domains/testdomain.com/public_html
-rw-r----- 1 testuser mail 98 Jul 11 2020 .shadow
drwxrwx--x 2 testuser mail 4.0K Jan 19 17:20 .spamassassin
drwx------ 2 testuser testuser 104K May 6 2022 tmp
root@srv01:/home/testuser # ls -lah Maildir/
total 40K
drwxrwx--- 6 testuser mail 4.0K Jan 19 17:20 .
drwx--x--- 10 testuser access 4.0K Jun 14 22:29 ..
drwxrwx--- 2 testuser mail 4.0K Jul 13 2020 cur
drwxrwx--- 3 testuser mail 4.0K Feb 4 2021 .INBOX.spam
drwxrwx--- 2 testuser mail 16K Mar 13 2021 new
-rw-rw---- 1 testuser mail 11 Jan 19 17:20 subscriptions
drwxrwx--- 2 testuser mail 4.0K Mar 13 2021 tmp
root@srv01:/home/testuser #
 
Last edited:
No issues here
Try admin backups, see if it works... @ 012240df134922e26c50eb42161af66e4f9d3d59 it doesn't - spits errors. Who knows.. maybe only "lifetime license" holders have this issue, and it's ok for the "normal" monthly-fee ones.
 
Just checked my admin backups this morning look fine, checked a few servers and some are lifetime. Maybe need to check your logs and see if there are any messages.
 
Admin Backups are not working...

A quick read of the logs you provided seems like a permission issue...

Check the following path: /home/admin/admin_backups and try some troubleshooting, does not look like a bug.
 
In debian 12, scheduled admin level backups do not run. If i run them manualy, they do run.

No errors that i can see either

it's a fresh box btw
 
Last edited:
Well, the permissions are the same as they've always been. I haven't changed anything.
Tried removing the "admin_backups" folder and ran a new backup - the folder got created but the backup failed with the same error as before.

What user/group does the backup run as?
 
Last edited:
We noticed lately that when ImageMagick is being updated, not all PHP-versions are being compiled after the update. This causes the logs to flood with the following error:

PHP Warning: Version warning: Imagick was compiled against ImageMagick version 1808 but version 1809 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0

We can manually fix this by running ./build php n and rebuilding all installed versions, but ideally this should be done automaticly by the update_versions command. Can you implement a fix that automaticly rebuilds all PHP-versions installed by custombuild when ImageMagick is being updated?
 
Since the update of DirectAdmin to version 1.650, all weekly backups on our servers have encountered some kind of error. Below, I provide the logs from some of the servers that are experiencing issues (they don't occur on all accounts, just on a few - at most 2-3 accounts).

------
Error Compressing the backup file /home/tmp/admin.2738945.f6AhwJFVrz9wARpcvGVsABMt1eOgPyi3/KVaz8UoiQhZG8o8zvtHAVATmaKndze5K/<<USER>>/backup/home.tar.zst : /bin/tar: .pki: Cannot open: Permission denied.
/bin/tar: Exiting with failure status due to previous errors

>> The following accounts do not show any errors...

Another server:

Error Compressing the backup file /tmp_backups/admin.3970799.UM3MtgWqq8wIC1ZO2Vs7GU1JI8tSvI6P/udu66Lt4hneHrLoFUSVZN8GBnHiW8Zf2/<<USER>>/backup/home.tar.zst : /bin/tar: You may not specify more than one `-Acdtrux' or `--test-label' option
Try `/bin/tar --help' or `/bin/tar --usage' for more information.

lstat('/tmp_backups/admin.3970799.UM3MtgWqq8wIC1ZO2Vs7GU1JI8tSvI6P/udu66Lt4hneHrLoFUSVZN8GBnHiW8Zf2/<<USER>>/backup/home.tar.zst'): No such file or directory

>> The following accounts do not show any errors...

Another server:

Error Compressing the backup file /home/tmp/admin.966442.MI1fF4ZNEV6EkGh4yrePUTKHb48jZzlt/KxHjUryWiaIncjtUfLbkAjYIm2Kw3HJN/<<USER>>/backup/home.tar.zst : /bin/tar: .cpguard: Function open failed: Permission denied
/bin/tar: Exiting with failure status due to previous errors

>> The following accounts do not show any errors...

---

I'm not sure if this is a bug, but since the last DirectAdmin update, all backups have been showing errors (7 different servers and all with errors).
Thanks!
 
@paulonichio thanks for the feedback. Starting DA 1.650 the backuping procedure became very careful about failures creating home dir backup. Previous versions would silently ignore errors and would create backups without home dir files.

Right now instead of silently creating a partial backup (where we backup config files but not home dir file) we fail the whole backup operation. One quite common problem revealed by this change is that user having root owned files in its home dir will fail the whole backup. This is the case in your first example:

/home/tmp/admin.2738945.f6AhwJFVrz9wARpcvGVsABMt1eOgPyi3/KVaz8UoiQhZG8o8zvtHAVATmaKndze5K/<<USER>>/backup/home.tar.zst : /bin/tar: .pki: Cannot open: Permission denied.
I think /home/<<USER>>/.pki is owned by root.

An ideal solution would be to investigate it case by case and and fix permissions for the reported directories or files. So that files inside user home dir would be owned by that user.

This error is most likely running DA 1.651 (alpha channel), there was a temporary bug introduced there that would cause such errors but it is fixed for quite some time now:
Error Compressing the backup file /tmp_backups/admin.3970799.UM3MtgWqq8wIC1ZO2Vs7GU1JI8tSvI6P/udu66Lt4hneHrLoFUSVZN8GBnHiW8Zf2/<<USER>>/backup/home.tar.zst : /bin/tar: You may not specify more than one `-Acdtrux' or `--test-label' option
Try `/bin/tar --help' or `/bin/tar --usage' for more information.

In DA 1.651 we are planning to add extra compression flags to ignore not accessible files, so these errors should go away. However I think this is not a great compromise, as the best solution would be to fix the permission of the files rather than have incomplete backup.
 
@SanderJ when main MageMAgick library is upgraded, updates to the PHP imagic extension should be visible in the CustomBuild software updates for each installed PHP version. Example:

1687785743050.png
This allows you to rebuild the extension to be linked with the latest ImageMagick libs without having to rebuild whole PHP.
 
So that files inside user home dir would be owned by that user.
That shouldn't be necessary.
Isn't it possible (and a better solution) to just backup files owned by root again? Because we also sometimes make a change in some customers home dir to fix a problem and to prevent him from doing the same mistake again, just don't chown it to the user and leave it as root.

So in fact that is a good method from preventing the user doing stupid or odd things and a backup should not interfere with that imho and just backup what is present, unless stated otherwise by the .backup_exclude_paths file.

I don't know of any backup system which looks if files are owned or not, backup is a seperate thing and should just backup what's there. Ignoring files would also prevent adding these fixes, while in the older version this is no issue at all.
 
@SanderJ when main MageMAgick library is upgraded, updates to the PHP imagic extension should be visible in the CustomBuild software updates for each installed PHP version. Example:

View attachment 6963
This allows you to rebuild the extension to be linked with the latest ImageMagick libs without having to rebuild whole PHP.

The problem is when using the CLI. Running ./build update_versions will only rebuild the PHP-versions that have updates themselves. For example: if 8.1 has an updated, it will be updates. Should 7.4 (like in your example) have no updates pending, it would indeed cause the message "Linked with old ImageMagick". This will only show up when opening the controlpanel. No message is given in the CLI, nor is the PHP-version being rebuild.
 
Back
Top