I am moving my virtualmin sites from a Centos 7 server to a Rocky 9 server.
I am getting this error message
Checking contents of the backup …
… found 1 virtual servers
Starting restore of 1 domains from local file /backup/mysite.com.tar.gz …
Extracting backup archive file …
… done
Re-creating virtual server mysite.com …
… the domain owner Unix group xyz does not exist
… failed! See the progress output above for the reason why.
xyz is not the domain owner. this user, xyz, did exist previously, but I renamed it when moving servers before.
SYSTEM INFORMATION
OS type and version
Rocky Linux 9.4
Webmin version
2.202
—
—
Virtualmin version
7.30.4
I tried playing with but no luck
**[Re-allocate user and group names]
The backup was extracted so can you look in it and see what users and groups there are? May be numeric. The only thing I can think of is to create group xyz.
I’ve got the same problem on Ubuntu servers. Transferring a previously rename (or cloned, I don’t really remember) site across servers.
I was lucky that I had not yet deleted the site, when starting the restore, therefore I was able to run a grep for the old group name in /etc/webmin
There was a whole list of files still referring to the old domain, home-folder, user/group names.
In /etc/webmin/virtual-server/domains/<virtulaminid> there was one line ugroup=xyz where I changed xyz to the correct group-name. Made a new backup and the restore succeeded.
If you already deleted the old site, you might need to manually edit the file in the backup tar.gz