Backup restore bug
Posted: Tue Mar 29, 2016 12:01 pm
Still collecting more info so I can dump it here, but here's a possible bug I discovered.
WHen restoring a backup to a different server with a different username than source username, everything went fine, except for some reason /etc/nginx/conf.d/vesta.conf automatically loaded an httpd.conf as well as an nginx.conf, which caused nginx to throw this error:
nginx: [emerg] unexpected end of file, expecting ";" or "}" in /home/****/conf/web/httpd.conf:35
httpd.conf doesn't use } or ;. Removing the extra include in /etc/nginx/conf.d/vesta.conf fixes the problem.
It very well may be that the nginx/apache relationship is very different on the two servers.
If you are here because you had a similar issue, you do NOT remove any nginx.conf from /etc/nginx/conf.d/vesta.conf, there just shouldn't be any httpd.conf's listed in these includes. ONLY nginx.conf files are loaded in this file.. also do not mess with the httpd.conf throwing the error. Its just not suppose to be processed by nginx which that vesta.conf is telling it to
This issue aside, the restore process works extremely well. Brilliantly adjusts doc roots, DNS and other paths.
WHen restoring a backup to a different server with a different username than source username, everything went fine, except for some reason /etc/nginx/conf.d/vesta.conf automatically loaded an httpd.conf as well as an nginx.conf, which caused nginx to throw this error:
nginx: [emerg] unexpected end of file, expecting ";" or "}" in /home/****/conf/web/httpd.conf:35
httpd.conf doesn't use } or ;. Removing the extra include in /etc/nginx/conf.d/vesta.conf fixes the problem.
It very well may be that the nginx/apache relationship is very different on the two servers.
If you are here because you had a similar issue, you do NOT remove any nginx.conf from /etc/nginx/conf.d/vesta.conf, there just shouldn't be any httpd.conf's listed in these includes. ONLY nginx.conf files are loaded in this file.. also do not mess with the httpd.conf throwing the error. Its just not suppose to be processed by nginx which that vesta.conf is telling it to
This issue aside, the restore process works extremely well. Brilliantly adjusts doc roots, DNS and other paths.