Missing template message in Server Templates -> Default Settings

I installed many times Virtualmin. The latest versions seems to have a problem with this issue, missing textarea content.

Steps to reproduce this issue:

1) Go to Virtualmin and choose System Settings -> Server Templates -> Default Settings

2) Choose from drop-down [Mail for domain].

3) See "Email message to send upon server creation" (just the very first option). By default it is setup to None. As I remember if I selected [Message bellow ..] radio option it was a template message down there. With the latest install it is only an empty textarea.

How do I get the template message from previous versions?

Status: 
Closed (fixed)

Comments

What does the file /etc/webmin/virtual-server/domain-template contain on your system? That is where the template message should be read from.

File content is empty.

How about the file /usr/{share,libexec}/webmin/virtual-server/domain-template ... is that also empty?

Here you go:

root@server1:~# cat /usr/share/webmin/virtual-server/domain-template
The following virtual server has been set up successfully :

Domain name: ${DOM}
Hosting server: ${HOSTNAME}
${IF-VIRT}
Virtual IP address: ${IP}
${ENDIF-VIRT}
Administration login: ${USER}
Administration password: ${PASS}
${IF-WEBMIN}
Administration URL: ${WEBMIN_PROTO}://www.${DOM}:${WEBMIN_PORT}/
${ENDIF-WEBMIN}

${IF-WEB}
Website: http://www.${DOM}/
${IF-WEBALIZER}
Webalizer log reporting: Enabled
${ELSE-WEBALIZER}
Webalizer log reporting: Disabled
${ENDIF-WEBALIZER}

${ENDIF-WEB}
${IF-MAIL}
Email domain: ${DOM}
SMTP server: mail.${DOM}
POP3 server: mail.${DOM}
${IF-MX_SLAVES}
Backup SMTP servers: ${MX_SLAVES}
${ENDIF-MX_SLAVES}

${ENDIF-MAIL}
${IF-DNS}
DNS domain: ${DOM}
Nameserver: ${DNS_SERVER}
${IF-DNS_SLAVES}
Slave nameservers: ${DNS_SLAVES}
${ENDIF-DNS_SLAVES}

${ENDIF-DNS}
${IF-MYSQL}
MySQL database: ${DB}
MySQL login: ${MYSQL_USER}
${IF-MYSQL_PASS}
MySQL password: ${MYSQL_PASS}
${ELSE-MYSQL_PASS}
MySQL password: ${PASS}
${ENDIF-MYSQL_PASS}

${ENDIF-MYSQL}
${IF-POSTGRES}
PostgreSQL database: ${DB}
PostgreSQL login: ${USER}
PostgreSQL password: ${PASS}

${ENDIF-POSTGRES}

root@server1:~# cat /usr/libexec/webmin/virtual-server/domain-template
cat: /usr/libexec/webmin/virtual-server/domain-template: No such file or directory

Ok, so the work-around is to copy /usr/share/webmin/virtual-server/domain-template to /etc/webmin/virtual-server/domain-template

This issue was not fixed yet. Please update it in the next Virtualmin versions

Are you seeing that the template is still missing when you do a fresh install of Virtualmin?

Themplate file is there in /etc folder, but it is empty like before. This is the latest Virtualmin version installed yesterday in a VM. As solution I did the same thing copying the file from /usr to /etc.

In my opinion something is happening in installer which is not filling up that file.

PS - I am checking all issues I posted in the last year.

Did you get any error messages during the install process? It's possible that the install failed part-way through, and didn't copy the default template file.

I checked the virtualmin.log file a few moment ago. No errors.

Meanwhile I installed 2 times the same combination Debian 7 Wheezy + Virtualmin. That file has empty content.

Ok, I have added a work-around for this which will be included in the next Virtualmin release.

Automatically closed -- issue fixed for 2 weeks with no activity.