Koozali.org: home of the SME Server

Cannot change servername

Offline portedaix

  • **
  • 54
  • +0/-0
Cannot change servername
« on: September 11, 2010, 02:03:22 PM »
Hello,

I changed my servername to a new one, from the admin console login. Even after reboot, it happens that I still connect to https://oldservername/server-manager. https://newservername/server-manager does not work. So reboot is done as I mentionned. I tried to pass the instrunction "signal-event domain-modify" without success.

vpn is not working anymore, I suspect this servername mismatch to be resposible of it.

Any hint ?

Thanks

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Cannot change servername
« Reply #1 on: September 11, 2010, 04:32:35 PM »
portedaix

signal-event post-upgrade
signal-event reboot

If that does not fix your issues, please report a bug.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline portedaix

  • **
  • 54
  • +0/-0
Re: Cannot change servername
« Reply #2 on: September 11, 2010, 06:02:28 PM »
Hello,

Thanks for the answer. But I tried it already. Did not work.

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Cannot change servername
« Reply #3 on: September 11, 2010, 06:48:21 PM »
so please report a bug, thank you

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Cannot change servername
« Reply #4 on: September 11, 2010, 11:34:28 PM »
Hello,

Thanks for the answer. But I tried it already. Did not work.

Before rise a new bug try change it on server-manager, configuration, workgroup

I think is from there the https/smb name cames from!

...

Offline portedaix

  • **
  • 54
  • +0/-0
Re: Cannot change servername
« Reply #5 on: September 12, 2010, 05:33:32 PM »
Hello,

I fixed it by removing vpn rpms. "yum remove pptpd"
Then of course I had "Removing for dependencies: e-smith-pptpd noarch  2.0.0-1.el4.sme installed 28 k"
And I finished by
"signal-event post-upgrade && signal-event reboot"

I reinstalled pptpd after that. I had a problem with it. It was somethnig else. Thunder recently -> wan card dead -> new eth1 nic -> new mac address -> new sme wan wan address because behind my internet box -> vpn redirection not functionning.

I did not see it immediatly. At least, by luck, I fixed this servername thing.

I am note ure at all it a bug. I do not file it.

Salut

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Cannot change servername
« Reply #6 on: September 13, 2010, 11:11:36 AM »
I fixed it by removing vpn rpms. "yum remove pptpd"

That is very bad practice and will remove other packages unnecessarily. You may also find problems upgrading in future using the above procedure.

Quote

Then of course I had "Removing for dependencies: e-smith-pptpd noarch  2.0.0-1.el4.sme installed 28 k"
And I finished by
"signal-event post-upgrade && signal-event reboot"

I reinstalled pptpd after that. I had a problem with it. It was somethnig else. Thunder recently -> wan card dead -> new eth1 nic -> new mac address -> new sme wan wan address because behind my internet box -> vpn redirection not functionning.

I did not see it immediatly. At least, by luck, I fixed this servername thing.

I am note ure at all it a bug. I do not file it.

You have probably removed any trace of the potential bug by doing what you did and have probably left your system in an unknown state, you would have helped us more by reporting (as mentioned earlier) a bug.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Cannot change servername
« Reply #7 on: September 13, 2010, 11:18:59 AM »
Before rise a new bug try change it on server-manager, configuration, workgroup

jader, please don't make such a suggestion in the future.. everything that is not working out of the box is a bug and should be posted in bugzilla

Quote
I think is from there the https/smb name cames from!

sorry, but you are wrong :-)

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Cannot change servername
« Reply #8 on: September 13, 2010, 01:05:13 PM »
Stefano

Thank by your tip... I promise do not say "do not open a bug" anymore

Could someone explain what is the source of name as seen by SMB and HTTP: the host name or  workgroup name ?

I use to  name host after an animal (to name the hardware and be able to find out any docs/drivers about  it) and a logical name (server) to workgroup... but I admit to use allways the hostname to map SMB drives... and now I'd like to change that behaviour because this way I can change HW without change anything on client side!

...

Offline portedaix

  • **
  • 54
  • +0/-0
Re: Cannot change servername
« Reply #9 on: September 13, 2010, 06:55:54 PM »
That is very bad practice and will remove other packages unnecessarily. You may also find problems upgrading in future using the above procedure.
Only uninstalled "pptpd" and "e-smith-pptpd". No other packages were uninstalled. I reinstalled those two afterwards.

You have probably removed any trace of the potential bug by doing what you did and have probably left your system in an unknown state, you would have helped us more by reporting (as mentioned earlier) a bug.
I cannot afford to wait on my production server for a solution to come. Hence a question I raised previously : is it possible to have a clone sme server, to test anychanges before applying to the production server ?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Cannot change servername
« Reply #10 on: September 13, 2010, 07:10:43 PM »
Yes, perhaps Affa might be worth investigating, have a search for it in the wiki. You can also try and use VMWare or any other virtualisation software and experiment with SME Server in there, the latter also facilitates in making snapshots (restore points), making it easier to revert to a previous state while experimenting.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Cannot change servername
« Reply #11 on: September 13, 2010, 09:18:28 PM »
Only uninstalled "pptpd" and "e-smith-pptpd". No other packages were uninstalled. I reinstalled those two afterwards.

as Byte said, this is definitely a bad practice

Quote
I cannot afford to wait on my production server for a solution to come. Hence a question I raised previously : is it possible to have a clone sme server, to test anychanges before applying to the production server ?

I usually clone my production servers (to make some tests) in this way:
- setup a real or virtual machine.. virtual one is a better choice
- if necessary, update it
- install all the contribs
- create a backup on the original server with a custom procedure:

+ create a file include.txt in /root/ with this content:
Code: [Select]
home/e-smith/
etc/e-smith/
etc/group
etc/gshadow
etc/passwd
etc/samba/secrets.tdb
etc/samba/smbpasswd
etc/shadow
etc/smbpasswd
etc/ssh
etc/sudoers

+ create a file exclude.txt in /root/ with this content:
Code: [Select]
home/e-smith/files/ibays/*/files/*
home/e-smith/files/users/*/home/*

+ launch the pre-backup event
Code: [Select]
signal-event pre-backup

+ create the smeserver.tgz  backup with
Code: [Select]
tar -cz --totals -vvp  --directory / --exclude-from=./exclude.txt --files-from=./include.txt   -f /tmp/smeserver.tgz

note: the --totals directive is not necessary

- copy the smeserver.tgz file on the "new" server or to a usb disk and follow this wiki page

in this way I have a clone of the server without user data and files in ibays.. I still have users' emails

NOTE: this is only for testing purpose, use it at your own risk