aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Cannot get the official hostname -- how to get rid off this?  (Read 4072 times)

macias

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 110
Cannot get the official hostname -- how to get rid off this?
« on: January 09, 2006, 10:27:52 AM »

Hi there,

  aMule 2.0.3 -- no problems. I've just upgraded to aMule 2.1.0 and when I am starting it there is a message saying "Cannot get the official hostname". What does that mean and how I can fix it?
  OSSuSE 10.1A3.

thanks for your help
bye

PS. Besides that everything works fine.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Cannot get the official hostname -- how to get rid off this?
« Reply #1 on: January 09, 2006, 02:52:15 PM »

Set a hostname for your box?
Logged

macias

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 110
Re: Cannot get the official hostname -- how to get rid off this?
« Reply #2 on: January 09, 2006, 03:16:31 PM »

Quote
Originally posted by Kry
Set a hostname for your box?

You mean:

macias@flatline:~> hostname
flatline

? So, it was and it is set. As I said, with aMule 2.0.3 no such problems.

have a nice day
bye
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Cannot get the official hostname -- how to get rid off this?
« Reply #3 on: January 09, 2006, 04:09:19 PM »

Yeah well 2.0.3 is not the same as 2.1.0. the wxWdigets wxGetFullHostname call is obviously failing in your box for some reason.
Logged

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: Cannot get the official hostname -- how to get rid off this?
« Reply #4 on: January 09, 2006, 08:19:18 PM »

*shamelessly copy'n'pasting*

Quote
lionel77 wrote somewhere else:

The "Cannot get the official hostname" error seems to only show up on a small number of machines and we haven't figured out yet what the reason for this is (see here).

For now I would suggest the following temporary workaround:
- open the Terminal (in /Applications/Utilities)
- paste "sudo hostname mydnsdomain" and hit return
- then enter your admin password and hit return again
Unfortunately, you have to do this after each reboot of OS X until we provide a fixed version. On the positive side you are not making any permanent changes to your system with this workaround.
Logged
Current aMule CVS builds for OS X can be found here.

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Cannot get the official hostname -- how to get rid off this?
« Reply #5 on: January 09, 2006, 09:09:54 PM »

The problem is that wxGetFullHostname requires that the hostname be a fully-qualified domain name.  So, instead of "flatline", it would have to be "flatline.somedomain.sometld".

And, by the way Kry, eat your words.  :P
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Cannot get the official hostname -- how to get rid off this?
« Reply #6 on: January 09, 2006, 10:08:37 PM »

I don't have a FQDN and it works here.
Logged

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: Cannot get the official hostname -- how to get rid off this?
« Reply #7 on: January 09, 2006, 10:28:37 PM »

Quote
Originally posted by ken
The problem is that wxGetFullHostname requires that the hostname be a fully-qualified domain name.  So, instead of "flatline", it would have to be "flatline.somedomain.sometld".
Wait, why does the "sudo hostname mydnsdomain" workaround work then? That's not a FQDN, right?
Logged
Current aMule CVS builds for OS X can be found here.

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Cannot get the official hostname -- how to get rid off this?
« Reply #8 on: January 10, 2006, 04:20:11 AM »

I don't think "mydnsdomain" was meant to be taken literally.  The user who issues this command is meant to substitute their computer's (fully-qualified) domain name.
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Cannot get the official hostname -- how to get rid off this?
« Reply #9 on: January 10, 2006, 04:53:59 AM »

OK, I've reduced the severity of this problem.  The message should now just print to the aMule log instead of putting up a dialog box.
Logged