Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: compdoc on July 26, 2012, 10:54:14 PM

Title: Cannot delete old Hostname after renaming server [SOLVED]
Post by: compdoc on July 26, 2012, 10:54:14 PM
I have two entries in 'Hostnames and addresses' that I cannot delete. They are no longer names I use for my SME server.

I'm assuming the reason that I cannot delete them is because one or both of them are the 'default', which were defined back when I installed a previous version of SME and then upgraded.
 
If thats the case, I'd like to know how to set another name as the default and delete the two names (webserv & webservnew) that are no longer valid, since they dont have the 'Modify Remove' options:

ftp.domain.com              Self   192.168.32.6   Modify  Remove
mail.domain.com             Self   192.168.32.6   Modify  Remove
phone.domain.com          Local  192.168.32.100 Modify  Remove
webserv.domain.com       Self  192.168.32.6
webservnew.domain.com  Self  192.168.32.6
www.domain.com            Self  192.168.32.6   Modify  Remove

Thanks
Title: Re: Cannot delete old Hostname after renaming server
Post by: CharlieBrady on July 27, 2012, 01:22:08 AM
You set a new default name by renaming the server using option 2. of the admin console menu.

You can just ignore those two other names. But if they really bother you, you can do this at the command line:

db hosts delete webserv.domain.com
db hosts delete webservnew.domain.com
signal-event post-upgrade
signal-event reboot
Title: Re: Cannot delete old Hostname after renaming server
Post by: compdoc on July 27, 2012, 01:51:51 AM
These things accumulate as you move from release to release. Programs like Wordpress get installed and removed, leaving behind entries in config that are propagated for years past their usefulness.



 
Title: Re: Cannot delete old Hostname after renaming server
Post by: CharlieBrady on July 27, 2012, 05:42:42 AM
These things accumulate as you move from release to release. Programs like Wordpress get installed and removed, leaving behind entries in config that are propagated for years past their usefulness.

Doesn't matter. Those entries are unused and harmless.
Title: Re: Cannot delete old Hostname after renaming server
Post by: chris burnat on July 29, 2012, 09:25:20 AM
Final solution is here:
http://bugs.contribs.org/show_bug.cgi?id=5953