Failed to replace /etc/resolv.conf with /etc/resolv.conf.webmintmp.27951

I am getting this error while installing VirtualMin on debian.

Thanks,

root@webserver:~# Configuration
[1/23] Configuring AWStats                                              [  ✔  ]
[2/23] Configuring Apache                                               [  ✔  ]
[3/23] Configuring Bind                                                 [  ✔  ]
[4/23] Configuring ClamAV                                               [  ✔  ]
[5/23] Configuring Dovecot                                              [  ✔  ]
[6/23] Configuring Firewalld                                            [  ✔  ]
[7/23] Configuring MySQL                                                [  ✔  ]
[8/23] Configuring NTP                                                  [  ✔  ]
[9/23] Configuring Net                                                  ▒▒▒▒▒▒▒Error: Failed to replace /etc/resolv.conf with /etc/resolv.conf.webmintmp.27951 : Device or resource busy
Error
-----
Failed to replace /etc/resolv.conf with /etc/resolv.conf.webmintmp.27951 : Device or resource busy
-----
▣▣▣ Cleaning up

[WARNING] The following errors occurred during installation:

  ◉ Postinstall configuration returned an error.

Never seen it, but maybe you have DHCP or something else managing your network? It’s best to have a static network configuration (though Virtualmin installer tries to detect DHCP and configure appropriately, if this is Debian 10, you might have the new network configuration system in place, which Webmin doesn’t support yet…I don’t think that new network system is the default yet, but we have heard of people having trouble with it).

I am running debian as container on docker, any suggestions?

Don’t do that. :wink:

You can’t (generally) control the network from within a container. The Virtualmin installer can’t run without full control over things. I’ve tinkered with running limited Virtualmin versions within Docker, and you could make a Docker image that provides Virtualmin plus a webserver and a database for configuring and running web apps within, but it’s not really gonna be easy…and it definitely can’t be done with the Virtualmin install script.

If you’re very technical and want to tinker with it, you should start by looking at the metapackages for the dependencies (but pick and choose the ones you need…you obviously can’t be planning to run the full Virtualmin stack within a single container…that’d completely defeat the purpose of containers). Probably just web server, database, and Virtualmin+Webmin module packages, and their dependencies.

Then look at the virtualmin config-system command plugins for which ones you want to run and replicate that behavior in your container build process. For some, you may be able to just run them, as-is (e.g. virtualmin config-system --include Apache), but some are gonna choke because they depend on network or other system-level tasks that can’t be run in a container.

But, this is not a currently supported type of deployment. You’re on your own, if you go this route, so you should be confident of your skills with Linux, all the services you’ll be running, and Docker before embarking on this path.

Alright advice taken,

Thanks,

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