I am trying to migrate to a new server, I have done this many times before. But for some reason, now I keep hitting error after error.
Following:
When I get my backups in admin_backups, when I try to open the admint tools-> admin backups. I'm always greeted with this error:
"An error has occurred"
"You do not own any IPs"
And the admin backup page doesn't open. I would expect this to be always available, can't find anything in the logs, and nothing found on Google with a good explanation.
Found one forum post suggesting something to do with IP address. I have IP address in there but still doesn't work.
Then found a post somewhere that you might need to use "build rewriet_confs" so I'm trying that, but that fails as well.
I have configured an IPv4 and the first IPv6 as a server address, and want both active, but also adding IPv6 gives the following errors
root@da001:/usr/local/directadmin# da build rewrite_confs
2025/03/30 12:06:40 info executing task task=action=rewrite&value=ips
2025/03/30 12:07:33 info finished task duration=53.523323172s task=action=rewrite&value=ips
Using [xxxx:xxxx:xxxx:xxxx:0:0:0:1
xxx.xxx.xxx.206] for your server IP
/proc/self/fd/3: line 6915: [: /usr/local/directadmin/data/admin/ips/[xxxx:xxxx:xxxx:xxxx:0:0:0:1: binary operator expected
Installing OWASP Core Rule Set for ModSecurity...
download_cached: using cached '/usr/local/directadmin/custombuild/cache/owasp-modsecurity-crs-4.12.0.tar.gz' file
Installation of ModSecurity Rule Set has been finished.
2025/03/30 12:07:38 info executing task task=action=rewrite&value=httpd
2025/03/30 12:07:38 info finished task duration=86.375693ms task=action=rewrite&value=httpd
Restarting apache.
Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xeu httpd.service" for details.
root@da001:/usr/local/directadmin/data/templates/custom# systemctl status httpd.service
× httpd.service - The Apache HTTP Server
Loaded: loaded (/etc/systemd/system/httpd.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sun 2025-03-30 12:07:56 CEST; 5s ago
Duration: 18min 45.364s
Process: 26036 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 26036 (code=exited, status=1/FAILURE)
Status: "Reading configuration..."
CPU: 405ms
Mar 30 12:07:56 da001 systemd[1]: Starting httpd.service - The Apache HTTP Server...
Mar 30 12:07:56 da001 (httpd)[26036]: httpd.service: Referenced but unset environment variable evaluates to an empty string: OPTIONS
Mar 30 12:07:56 da001 httpd[26036]: AH00526: Syntax error on line 31 of /etc/httpd/conf/extra/httpd-vhosts.conf:
Mar 30 12:07:56 da001 httpd[26036]: <VirtualHost> directive missing closing '>'
Mar 30 12:07:56 da001 systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
Mar 30 12:07:56 da001 systemd[1]: httpd.service: Failed with result 'exit-code'.
Mar 30 12:07:56 da001 systemd[1]: Failed to start httpd.service - The Apache HTTP Server.
Now Apache won't start.... as rewrite_confs fails because it's creating wrong configs.
<VirtualHost [xxxx:xxxx:xxxx:xxxx:0:0:0:1
xxx.xxx.xxx.206]:80>
--------
</VirtualHost>
<VirtualHost [xxxx:xxxx:xxxx:xxxx:0:0:0:1
xxx.xxx.xxx.206]:443>
--------
</VirtualHost>
If I change this config for both lines to:
<VirtualHost xxx.xxx.xxx.206:80 [xxxx:xxxx:xxxx:xxxx:0:0:0:1]:80>
It works, ipv6 in front still gives the error.
But admin-tools -> admin backup continues
So the set server to free in the IPv6 address so basically removing it, finally fixes that issue with re rewrite_confs.
But would be nice if rewrite_confs didn't mess this up.
root@da001:/usr/local/directadmin/data/admin/ips# da build rewrite_confs
2025/03/30 12:31:10 info executing task task=action=rewrite&value=ips
2025/03/30 12:32:09 info finished task duration=59.174423453s task=action=rewrite&value=ips
Using 38.242.244.206 for your server IP
Installing OWASP Core Rule Set for ModSecurity...
download_cached: using cached '/usr/local/directadmin/custombuild/cache/owasp-modsecurity-crs-4.12.0.tar.gz' file
Installation of ModSecurity Rule Set has been finished.
2025/03/30 12:32:14 info executing task task=action=rewrite&value=httpd
2025/03/30 12:32:14 info finished task duration=151.51698ms task=action=rewrite&value=httpd
Restarting apache.
But I still can't get into admin tools -Admin Backup.
"An error has occurred"
"You do not own any IPs"
Maybe start loosing these cryptic messages and actually add meaningful messages.
It's my second weekend trying to migrate this server. And now have spent many hours trying migrating, while I never had these kinds of issues before. Really starting to dislike Directadmin and the road they started on with the lifetime license. Not being to update to latest mariadb, while the last available option is EoL next year. So basically forcing us to buy new license to continue.
Following:
When I get my backups in admin_backups, when I try to open the admint tools-> admin backups. I'm always greeted with this error:
"An error has occurred"
"You do not own any IPs"
And the admin backup page doesn't open. I would expect this to be always available, can't find anything in the logs, and nothing found on Google with a good explanation.
Found one forum post suggesting something to do with IP address. I have IP address in there but still doesn't work.
Then found a post somewhere that you might need to use "build rewriet_confs" so I'm trying that, but that fails as well.
I have configured an IPv4 and the first IPv6 as a server address, and want both active, but also adding IPv6 gives the following errors
root@da001:/usr/local/directadmin# da build rewrite_confs
2025/03/30 12:06:40 info executing task task=action=rewrite&value=ips
2025/03/30 12:07:33 info finished task duration=53.523323172s task=action=rewrite&value=ips
Using [xxxx:xxxx:xxxx:xxxx:0:0:0:1
xxx.xxx.xxx.206] for your server IP
/proc/self/fd/3: line 6915: [: /usr/local/directadmin/data/admin/ips/[xxxx:xxxx:xxxx:xxxx:0:0:0:1: binary operator expected
Installing OWASP Core Rule Set for ModSecurity...
download_cached: using cached '/usr/local/directadmin/custombuild/cache/owasp-modsecurity-crs-4.12.0.tar.gz' file
Installation of ModSecurity Rule Set has been finished.
2025/03/30 12:07:38 info executing task task=action=rewrite&value=httpd
2025/03/30 12:07:38 info finished task duration=86.375693ms task=action=rewrite&value=httpd
Restarting apache.
Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xeu httpd.service" for details.
root@da001:/usr/local/directadmin/data/templates/custom# systemctl status httpd.service
× httpd.service - The Apache HTTP Server
Loaded: loaded (/etc/systemd/system/httpd.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sun 2025-03-30 12:07:56 CEST; 5s ago
Duration: 18min 45.364s
Process: 26036 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 26036 (code=exited, status=1/FAILURE)
Status: "Reading configuration..."
CPU: 405ms
Mar 30 12:07:56 da001 systemd[1]: Starting httpd.service - The Apache HTTP Server...
Mar 30 12:07:56 da001 (httpd)[26036]: httpd.service: Referenced but unset environment variable evaluates to an empty string: OPTIONS
Mar 30 12:07:56 da001 httpd[26036]: AH00526: Syntax error on line 31 of /etc/httpd/conf/extra/httpd-vhosts.conf:
Mar 30 12:07:56 da001 httpd[26036]: <VirtualHost> directive missing closing '>'
Mar 30 12:07:56 da001 systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
Mar 30 12:07:56 da001 systemd[1]: httpd.service: Failed with result 'exit-code'.
Mar 30 12:07:56 da001 systemd[1]: Failed to start httpd.service - The Apache HTTP Server.
Now Apache won't start.... as rewrite_confs fails because it's creating wrong configs.
<VirtualHost [xxxx:xxxx:xxxx:xxxx:0:0:0:1
xxx.xxx.xxx.206]:80>
--------
</VirtualHost>
<VirtualHost [xxxx:xxxx:xxxx:xxxx:0:0:0:1
xxx.xxx.xxx.206]:443>
--------
</VirtualHost>
If I change this config for both lines to:
<VirtualHost xxx.xxx.xxx.206:80 [xxxx:xxxx:xxxx:xxxx:0:0:0:1]:80>
It works, ipv6 in front still gives the error.
But admin-tools -> admin backup continues
So the set server to free in the IPv6 address so basically removing it, finally fixes that issue with re rewrite_confs.
But would be nice if rewrite_confs didn't mess this up.
root@da001:/usr/local/directadmin/data/admin/ips# da build rewrite_confs
2025/03/30 12:31:10 info executing task task=action=rewrite&value=ips
2025/03/30 12:32:09 info finished task duration=59.174423453s task=action=rewrite&value=ips
Using 38.242.244.206 for your server IP
Installing OWASP Core Rule Set for ModSecurity...
download_cached: using cached '/usr/local/directadmin/custombuild/cache/owasp-modsecurity-crs-4.12.0.tar.gz' file
Installation of ModSecurity Rule Set has been finished.
2025/03/30 12:32:14 info executing task task=action=rewrite&value=httpd
2025/03/30 12:32:14 info finished task duration=151.51698ms task=action=rewrite&value=httpd
Restarting apache.
But I still can't get into admin tools -Admin Backup.
"An error has occurred"
"You do not own any IPs"
Maybe start loosing these cryptic messages and actually add meaningful messages.
It's my second weekend trying to migrate this server. And now have spent many hours trying migrating, while I never had these kinds of issues before. Really starting to dislike Directadmin and the road they started on with the lifetime license. Not being to update to latest mariadb, while the last available option is EoL next year. So basically forcing us to buy new license to continue.