Koozali.org: home of the SME Server

Cannot delete old Hostname after renaming server [SOLVED]

Offline compdoc

  • *
  • 226
  • +0/-0
Cannot delete old Hostname after renaming server [SOLVED]
« 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

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Cannot delete old Hostname after renaming server
« Reply #1 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

Offline compdoc

  • *
  • 226
  • +0/-0
Re: Cannot delete old Hostname after renaming server
« Reply #2 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.



 

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Cannot delete old Hostname after renaming server
« Reply #3 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.

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: Cannot delete old Hostname after renaming server
« Reply #4 on: July 29, 2012, 09:25:20 AM »
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.