DirectAdmin v1.63.4 RC After restore a backup from another server a nginx function normaly white page

HageHosting

Verified User
Joined
Sep 25, 2006
Messages
74
When i restore a backup from another server i get a nginx message on the website from the domain.
After a manualy ./build rewrite_confs the webpage wil be back. Is there something wrong with the restore function?

Thanks for any help its a Directadmin v1.63.5 RC Pro alpha version
 
Hmmm.. check:
Code:
/var/log/directadmin/system.log
to see if an nginx restart/reload was attempted.
Hard to say beyond that if the nginx.conf was already rewritten... as the next thing to check would be if the nginx.conf had the correct data in it.

I've just tested here, but was unable to reproduce the issue.
I did see the correct data in the nginx.conf (without the need for rewrite_confs), and did see a "reload" in the system.log.

If anyone else is noticing this too, please let us know.
If not, if the system.log does not have it, check if the /usr/local/directadmin/data/task.queue is being processed (it likely is, as the restore did "happen").... so it could also be a pid/sync issue, or some other issue with the reload itself. If that's the case, check the /var/log/nginx/error_log for the same timestamp that the reload attempted in the system.log, to see if nginx was having some sort of issue.

Another guess, if there was some syntax issue in the nginx configs somewhere, the "pre-check" could have aborted the reload, hence the white page.. and that would also explain why the rewite_confs solved it (overwrote any errors). If that was the case, then only if we know what the errors were could we dig further.. eg: they're overwritten/gone now.. making it tricky to debug. The /var/log/nginx/error_log might have more information on that.. so that's definitely worth checking out.

Hope that helps. Let me know if you do not see the nginx reload in the system.log after the restore was done (would be odd).

John
 
/var/log/directadmin/system.log

16-06:15:17: User id892 is being created by admin.
16-06:15:27: Domain duijnsteemakelaardij.nl is being created via restore of User account 'id892'
16-06:15:57: Ssl::save_cert_post: swapping snidomains: duijnsteemakelaardij.nl=(null) with duijnsteemakelaard
16-06:15:57: Ssl::save_cert_post: swapping snidomains: ftp.duijnsteemakelaardij.nl=(null) with ftp.duijnsteem
16-06:15:57: Ssl::save_cert_post: swapping snidomains: mail.duijnsteemakelaardij.nl=(null) with mail.duijnste
16-06:15:57: Ssl::save_cert_post: swapping snidomains: pop.duijnsteemakelaardij.nl=(null) with pop.duijnsteem
16-06:15:57: Ssl::save_cert_post: swapping snidomains: smtp.duijnsteemakelaardij.nl=(null) with smtp.duijnste
16-06:15:57: Ssl::save_cert_post: swapping snidomains: test.duijnsteemakelaardij.nl=(null) with test.duijnste
16-06:15:57: Ssl::save_cert_post: swapping snidomains: www.duijnsteemakelaardij.nl=(null) with www.duijnsteem
16-06:15:57: Ssl::save_cert_post: swapping snidomains: www.test.duijnsteemakelaardij.nl=(null) with www.test.
16-06:15:58: Account id892 has been restored from user.admin.id892.tar.gz under admin
16-06:15:59: Ssl::retry_domain:id892:test.duijnsteemakelaardij.nl: requesting certificate
16-06:15:59: LetsEncrypt(110236): /usr/local/directadmin/scripts/letsencrypt.sh request 'test.duijnsteemakela
16-06:16:01: LetsEncrypt(110236): exit code: 1 for domain='test.duijnsteemakelaardij.nl'
16-06:16:01: Ssl::retry_domain:id892:test.duijnsteemakelaardij.nl: will retry again at 1639632056

/var/log/directadmin/errortaskq.log

2021:12:16-06:15:58: ConfigFile::writeFile(./data/users/admin/reseller.usage) : Timestamp from when it was read is different, overwriting anyway
2021:12:16-06:16:01: LetsEncrypt(110236): exit code: 1 for domain='test.duijnsteemakelaardij.nl' : test.duijnsteemakelaardij.nl was skipped due to unreachable http://test.duijnstee
www.test.duijnsteemakelaardij.nl was skipped due to unreachable http://www.test.duijnsteemakelaardij.nl/.well-known/acme-challenge/ file.
No domains pointing to this server to generate the certificate for.

2021:12:16-06:16:01: Cannot find /usr/local/directadmin/data/users/diradmin/nginx.conf so it will not be added to /etc/nginx/directadmin-vhosts.conf.
2021:12:16-06:21:03: LetsEncrypt(128869): exit code: 1 for domain='test.duijnsteemakelaardij.nl' : test.duijnsteemakelaardij.nl was skipped due to unreachable http://test.duijnstee
www.test.duijnsteemakelaardij.nl was skipped due to unreachable http://www.test.duijnsteemakelaardij.nl/.well-known/acme-challenge/ file.
No domains pointing to this server to generate the certificate for.

2021:12:16-06:23:52: Unable to delete bytes log: /var/log/httpd/domains/duijnsteemakelaardij.nl.test.bytes : Error truncating /var/log/httpd/domains/duijnsteemakelaardij.nl.test.by

2021:12:16-06:23:52: Unable to delete bytes log: /var/log/nginx/domains/duijnsteemakelaardij.nl.test.bytes : Error truncating /var/log/nginx/domains/duijnsteemakelaardij.nl.test.by

2021:12:16-06:26:02: LetsEncrypt(147522): exit code: 1 for domain='test.duijnsteemakelaardij.nl' : test.duijnsteemakelaardij.nl was skipped due to unreachable http://test.duijnstee
File errortaskq.log not changed so no update needed

Nothing in the error log from nginxl
 
Back
Top