Virtualmin can't create virtual server

Hi,
I’ve deleted a virtual server and now when i’m trying to recreate it, the system says:

Failed to create virtual server : AWStats reporting is already enabled for this domain How can i solve ?

Thanks

SYSTEM INFORMATION
OS type and version CentOS Linux 7.9.2009
Webmin version 7.2
Virtualmin version 2.001
Related packages SUGGESTED

Hello,

I don’t see this issue happening on my side.

By going to Webmin / Servers ⇾ AWStats Reporting and manually remove log file.

What was the domain name that you deleted and which didn’t clear AWStats log file automatically? What matters here is not the exact domain name but if it had any special characters in it.

Hi,
I’ve delete manually and now can i create the new virtual server, but there’s an issue i can’t see the let’s encrypt section under SSL Certificate.

I’ve retried the steps, deleting a virtual server is as if it were not completely deleted, in fact it remains both inside the apache server and awstats.

What errors do you get when deleting the domain? It shouldn’t silently leave behind stuff after a domain deletion…something is going wrong, but I’m having a hard time guessing what.

No errors :frowning:

Can you paste the text from the output of a domain deletion that leaves stuff behind? I guess it stops before it actually finishes deleting for some reason?

Deleting mail aliases ..
.. done
Removing DAV directives from website configuration ..
.. done
Deleting Webmin login ..
.. done
Deleting MariaDB database dbtest ..
.. done
Deleting MariaDB login ..
.. done
Disabling log file rotation ..
.. done
Deleting SSL virtual website ..
.. done
Removing from email domains list ..
.. done
Deleting home directory ..
.. done
Deleting administration user ..
.. done
Deleting administration group ..
.. done
Deleting server details for test.domain.com ..
.. done
Re-loading Webmin ..
.. done
Re-starting Usermin ..
.. done
Applying web server configuration ..
.. done

After delete i try to recreate the virtual server:

Failed to create virtual server : The domain test.domain.com is already hosted by your Apache webserver

That means that AWStats feature was disassociated with that virtual server somehow. A feature can be re-associated with a virtual server using Disable and Delete ⇾ Disassociate Features page.

It’s the first time that i’ve this type of error, and i’ve always created virtual server with that options.

And after deleting by hand from awstat, it tells me that the domain is already managed by apache. I had to delete both by hand, otherwise it won’t let you create the new virtual server.

Maybe it’s some bug with the subdomain on virtualmin ?

It again means that a feature was dis-associated with Virtualmin.

What are we discussing in this topic? The solution for the problem you’re having is to re-associate missing features before deleting a whole domain. Although, we cannot know a reason why some features were disassociated with a domain config at the first place.

Ok, but before yesterday he had never given me this problem and he gave it to me after updating virtualmin and webmin.

We cannot reproduce this problem. Also, no one else reported it.

If you wish, you can write us a private message to @staff group with your server’s login credentials, and we will login to have a closer look. Please reference this ticket, name the exact domain name that is failing and what isn’t working exactly, and what you wish to achieve. Be concise.

1 Like

I’ve created a new server, this is the output

Creating administration group testing ..
.. done

Creating administration user testing ..
.. done

Creating aliases for administration user ..
.. done

Adding administration user to groups ..
.. done

Creating home directory ..
.. done

Creating mailbox for administration user ..
.. done

Adding new DNS zone ..
.. DNS domain failed! : Failed to open /var/named/chroot/etc/named.conf for writing : No such file or directory

Adding to email domains list ..
.. done

Adding default mail aliases ..
.. done

Adding new virtual website ..
.. Apache website failed! : Failed to open /var/named/chroot/etc/named.conf for writing : No such file or directory

Setting up scheduled Webalizer reporting ..
.. no logging directive found in webserver configuration!

Creating SSL certificate and private key ..
.. done

Adding new SSL virtual website ..
.. done

Setting up log file rotation ..
.. done

Creating MariaDB login ..
.. done

Creating MariaDB database testing ..
.. done

Setting up spam filtering ..
.. Spam filtering failed! : Failed to open /var/named/chroot/etc/named.conf for writing : No such file or directory

Setting up virus filtering ..
.. Virus filtering failed! : Failed to open /var/named/chroot/etc/named.conf for writing : No such file or directory

Setting up AWStats reporting ..
.. AWStats reporting failed! : virtualmin-awstats::feature_setup failed : Failed to open /var/named/chroot/etc/named.conf for writing : No such file or directory

Adding DAV directives to website configuration ..
.. done

Adding DAV account for server administrator ..
.. done

Creating Webmin user ..
.. done

Saving server details ..
.. done

Re-loading Webmin ..
.. done

Re-starting Usermin ..
.. done

Applying web server configuration ..
.. done

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.