gethostname failed

F. Prefect
F. Prefect
Joined: 7 Nov 05
Posts: 135
Credit: 1016868
RAC: 0

RE: i will re-install the

Message 60238 in response to message 60237

Quote:
i will re-install the system software.

If your plans to re-install the software in an attempt to correct the current problems with reporting uploaded jobs, and in some cases downloading new work, it won't help. If you fell like the stats are incorrect, I would wait until sometime in the next millinium before uploading any additional data when they will hopefully by that time give us some word as to how we should proceed.

F. Prefect

In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move.....Douglas Adams

Gary Roberts
Gary Roberts
Moderator
Joined: 9 Feb 05
Posts: 5888
Credit: 119845412709
RAC: 25901594

RE: i will re-install the

Message 60239 in response to message 60237

Quote:
i will re-install the system software.

Your machine is actually crunching very well at the moment. The hostname issue is not affecting it at all in terms of its contribution to the project. You have a nice cache of work that is likely to be wasted unless you take some precautions. Reinstallation is like using a sledgehammer to crush a cottonball :).

If you could just run the programs I asked you to and let us know the output I'm sure your problem is easily solvable. I've asked a number of questions in previous messages. Without some answers I can't help as I have no access to any machine running any version of a Mac OS. If you do a "man hostname" it will probably tell you where the hostname is supposed to be stored. You have a perfect opportunity to learn a little bit about your system by working out how to fix this.

Cheers,
Gary.

Gary Roberts
Gary Roberts
Moderator
Joined: 9 Feb 05
Posts: 5888
Credit: 119845412709
RAC: 25901594

RE: If your plans to

Message 60240 in response to message 60238

Quote:
If your plans to re-install the software in an attempt to correct the current problems with reporting uploaded jobs ...

Please try reading the entire thread before making silly assumptions. This problem has absolutely nothing to do with the current server issues. Please do not hijack someone else's thread which is trying to deal with a genuine problem in order to further your own particular (unrelated) rant.

Cheers,
Gary.

Odysseus
Odysseus
Joined: 17 Dec 05
Posts: 372
Credit: 21169142
RAC: 7994

RE: AFAICT the etc/hosts

Message 60241 in response to message 60218

Quote:
AFAICT the etc/hosts files are absolutely identical between the system on which BOINC says “gethostbyname failed� and another on the same LAN that reports its name correctly. The content of the files seems very generic; it certainly makes no reference to the systems’ actual IP addresses or names:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost

This was copy-&-pasted from the system I’m on now, which AFAIK has always shown its name on project sites and has never logged the “gethostbyname failed� error.


Just adding that my G5 at home, running OS 10.4.8, has an identical “hosts� file to the above. Its name is also recognized by BOINC and all project websites.

Gary Roberts
Gary Roberts
Moderator
Joined: 9 Feb 05
Posts: 5888
Credit: 119845412709
RAC: 25901594

RE: Just adding that my G5

Message 60242 in response to message 60241

Quote:
Just adding that my G5 at home, running OS 10.4.8, has an identical “hosts� file....

I'd really appreciate it if you could do a "man hostname" on one of your "Unix" systems. Here's the relevant portion of what I get on a FreeBSD 6.1 system:-

Quote:

The hostname utility prints the name of the current host. The super-user can set the hostname by supplying an argument; this is usually done in the network initialization script /etc/rc.d/hostname, normally run at boot time. This script uses the hostname variable in /etc/rc.conf.

This was why I mentioned the rc.conf file in an earlier message. There must be an equivalent file somewhere on the Mac and hopefully the manual page will document exactly what happens at boot time just like the above snippet does for FreeBSD.

Thanks for your assistance.

Cheers,
Gary.

Odysseus
Odysseus
Joined: 17 Dec 05
Posts: 372
Credit: 21169142
RAC: 7994

RE: I'd really appreciate

Message 60243 in response to message 60242

Quote:
I'd really appreciate it if you could do a "man hostname" […] hopefully the manual page will document exactly what happens at boot time just like the above snippet does for FreeBSD.


Here’s the whole thing FWIW; it doesn’t look terrbly helpful.

HOSTNAME(1) BSD General Commands Manual HOSTNAME(1)

NAME
hostname -- set or print name of current host system

SYNOPSIS
hostname [-s] [name-of-host]

DESCRIPTION
The hostname utility prints the name of the current host. The super-user
can set the hostname by supplying an argument.

Options:

-s Trim off any domain information from the printed name.

SEE ALSO
gethostname(3)

HISTORY
The hostname command appeared in 4.2BSD.

BSD April 28, 1995 BSD

I did some hunting in the system Help files, but couldn’t find a reference to anything ‘under the hood’—typical of Apple’s approach—they say how to check or set the system’s name through the GUI (System Preferences – Sharing) but nothing about where it’s stored.

I typed “hostname� and “hostname -s� into the Terminal on this G5 and got the expected responses. When I’m at work tomorrow I’ll try doing the same on the G4 server that doesn’t tell BOINC its name.

obsidian
obsidian
Joined: 8 May 05
Posts: 55
Credit: 2250121
RAC: 0

RE: I'd really appreciate

Message 60244 in response to message 60242

Quote:
I'd really appreciate it if you could do a "man hostname" on one of your "Unix" systems.

HOSTNAME(1) BSD General Commands Manual HOSTNAME(1)

NAME
hostname -- set or print name of current host system

SYNOPSIS
hostname [-s] [name-of-host]

DESCRIPTION
The hostname utility prints the name of the current host. The super-user
can set the hostname by supplying an argument.

Options:

-s Trim off any domain information from the printed name.

SEE ALSO
gethostname(3)

HISTORY
The hostname command appeared in 4.2BSD.

BSD April 28, 1995 BSD

obsidian
obsidian
Joined: 8 May 05
Posts: 55
Credit: 2250121
RAC: 0

RE: Your machine is

Message 60245 in response to message 60239

Quote:
Your machine is actually crunching very well at the moment. The hostname issue is not affecting it at all in terms of its contribution to the project. You have a nice cache of work that is likely to be wasted unless you take some precautions.

i know BOINCManager is working. my pending credit is rising faster than my granted credit.

i talked to someone at apple. i need to re-install the system software because i replaced the two folders improperly. i do not have to erase the disc. i can re-install but save everything already on the disc and keep what i want.

obsidian
obsidian
Joined: 8 May 05
Posts: 55
Credit: 2250121
RAC: 0

GETHOSTNAME(3) BSD

Message 60246 in response to message 60242

GETHOSTNAME(3) BSD Library Functions Manual GETHOSTNAME(3)

NAME
gethostname, sethostname -- get/set name of current host

LIBRARY
Standard C Library (libc, -lc)

SYNOPSIS
#include

int
gethostname(char *name, size_t namelen);

int
sethostname(const char *name, int namelen);

DESCRIPTION
The gethostname() function returns the standard host name for the current
processor, as previously set by sethostname(). The namelen argument
specifies the size of the name array. The returned name is null-termi-
nated unless insufficient space is provided.

obsidian
obsidian
Joined: 8 May 05
Posts: 55
Credit: 2250121
RAC: 0

i do see a file called "rc"

Message 60247 in response to message 60242

i do see a file called "rc" in the "etc" folder, but when i try to open it, i get "There is no default application specified to open the document 'rc'."

incidentally, which should i do with the other computer on my account, merge or delete?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.