Submitted by yngens on Wed, 04/04/2018 - 17:24
Steps to reproduce the error:
- Create couple custom templates on the Templates window (/10000/virtual-server/edit_newtmpl.cgi).
- Delete the first one remembering it's name.
- Edit the second one's name and try to give it the deleted template's name and you will get:
Failed to save server template : A template with the same name already exists
Now time to get hands dirty on CLI. Run virtualmin list-templates
to see all created templates are there intact:
virtualmin list-templates
ID Description
------------------ ------------------------------------------------------------
0 Default Settings
1 Settings For Sub-Domains
135550761415309 First one
141411764525137 Second one
Hmm, still there. Let's try to delete the fist one on CLI:
virtualmin delete-template --id 135550761415309
Deleted template First one with ID 135550761415309
Seems successful, but let's check again:
virtualmin list-templates
ID Description
------------------ ------------------------------------------------------------
0 Default Settings
1 Settings For Sub-Domains
135550761415309 First one
141411764525137 Second one
Still there!
Status:
Closed (fixed)
Comments
Submitted by yngens on Wed, 04/04/2018 - 17:25 Comment #1
Submitted by yngens on Wed, 04/04/2018 - 17:35 Comment #2
As a temporary solution for those who are seeing the same issue, you can run:
rm -rf /etc/webmin/virtual-server/templates/135550761415309
Submitted by JamieCameron on Wed, 04/04/2018 - 21:59 Comment #3
Thanks for reporting this - it will be fixed in the next Virtualmin release.
Submitted by IssueBot on Thu, 10/11/2018 - 20:07 Comment #4
Automatically closed - issue fixed for 2 weeks with no activity.