Running on 1.1.0-rc4.4
I've been playing with the custom DNS system, trying to get a mailing list working, and managed to put the system into an unsupported state
I did not play with any "subdomain" features... however, after adding MX and A and CNAME entries, the one subdoman I had got put into an error state, and all the other custom DNS entries became unavailable to edit.
Looking at the subdoman table, the status of this subdomain is
This occurred after a manual database change of an MX record from "domain.tld" to "lists.domain.tld" (because the GUI doesnt support that, and I need that functionality - Nuxwin is on a separate thread about this) and then adding new custom DNS record to have the domain.db file regenerated.
Let me know if I can be of more help.
[hr]
Ok - this has got bigger than a simple "oops"
When the domain became unstable I deleted it, and tried to recreate it. No dice. It started ok, but then as I tried to add different things, it too became unstable. I deleted that domain as well.
Then I got notice that 1.1.0-rc4.5 was released. I figured I would install that to see if that solved the problems.
nope... installer runs, and tries to rebuild the sites and ends up throwing a pile of errors
- [ERROR]
- main::setupRebuildCustomerFiles:
- [ERROR]
- iMSCP::Debug::__ANON__: Use of uninitialized value in concatenation (.) or
- string at /var/www/imscp/engine/PerlLib/Modules/Alias.pm line 190, <CATCHERR>
- line 6.
- [ERROR]
- iMSCP::Debug::__ANON__: Use of uninitialized value in concatenation (.) or
- string at /var/www/imscp/engine/PerlLib/Modules/Domain.pm line 363, <CATCHERR>
- line 6.
- [ERROR]
- iMSCP::Debug::__ANON__: Use of uninitialized value in concatenation (.) or
- string at /var/www/imscp/engine/PerlLib/Modules/Domain.pm line 363, <CATCHERR>
- line 6.
- [ERROR]
- iMSCP::Debug::__ANON__: Use of uninitialized value in concatenation (.) or
- string at /var/www/imscp/engine/PerlLib/Modules/Alias.pm line 190, <CATCHERR>
- line 6.
- [ERROR]
- iMSCP::Debug::__ANON__: Use of uninitialized value in concatenation (.) or
- string at /var/www/imscp/engine/PerlLib/Modules/Domain.pm line 363, <CATCHERR>
- line 6.
- [ERROR]
- iMSCP::Debug::__ANON__: Use of uninitialized value in concatenation (.) or
- string at /var/www/imscp/engine/PerlLib/Modules/Domain.pm line 363, <CATCHERR>
- line 6.
- [ERROR]
- iMSCP::Debug::__ANON__: Use of uninitialized value in concatenation (.) or
- string at /var/www/imscp/engine/PerlLib/Modules/Domain.pm line 363, <CATCHERR>
- line 6.
- [ERROR]
- iMSCP::Debug::__ANON__: Use of uninitialized value in concatenation (.) or
- string at /var/www/imscp/engine/PerlLib/Modules/Alias.pm line 190, <CATCHERR>
- line 6.
- [ERROR]
- Servers::httpd::apache_fcgi::restart: Warning: DocumentRoot
- [/var/www/virtual/domain.tld/blog/htdocs] does not exist
- apache2: bad user name vu2010
- iMSCP::Debug::END: Exit code: 1
- [ERROR]
- iMSCP::Debug::__ANON__: Use of uninitialized value in concatenation (.) or
- string at /var/www/imscp/engine/PerlLib/Modules/Alias.pm line 190, <CATCHERR>
- line 6.
- [ERROR]
- iMSCP::Debug::__ANON__: Use of uninitialized value in concatenation (.) or
- string at /var/www/imscp/engine/PerlLib/Modules/Domain.pm line 363, <CATCHERR>
- line 6.
- Servers::httpd::apache_fcgi::start: Warning: DocumentRoot
- [/var/www/virtual/domain.tld/blog/htdocs] does not exist
- apache2: bad user name vu2010
- iMSCP::Debug::END: Exit code: 1
Now, apache isnt running, which makes finding the errors in the db a lot harder
The last domain in the 'domains' table has an ID of 7 - so I'm not sure where the vu2010 reference is from. It can only be from an incomplete deletion of the domain earlier today.
I also cant go back to 1.1.0-rc4.4 - it looks like the same errors are being thrown (which leads me to believe it's the database being in a corrupted state)
Still - it would be nice rather than to crash the entire system like this, if the rebuild process just disabled the domain in question, rather than everything
It looks like the perl modules are trying to build $self in Domain.pm and Alias.pm - but there's data coming from all over to build that object.
I've dumped the entire imscp database to a text file, and searched for vu2010 - and it doesnt exist. The only references to '10' in the database (I'm assuming you'll build a vu2010 dynamically) seem to be key ids, not domain ids...
I dont see a domain in the /etc/apache2/imscp folder .. or the /etc/apache2/sites-available folder but running an apache2ctl -t definitely shows that it's picking up a config for the domain that was deleted, and when I search the filesystem for references to the deleted domain, there are a ton of them there, log files, bind files, error logs from apache... fcgi folders...
My first reactopn was that if you can identify what need to be cleaned on the database, I can manually clean it - but this looks like it goes a lot deeper than database cleanup.
I've attached a list of files on the file system that remained after the domain was deleted.
I'm going to fix apache so that it comes up - but there's something that needs to be corrected in the deletion process...