depot server issues

inszekt_
Beiträge: 65
Registriert: 15 Sep 2009, 11:06

Re: depot server issues

Beitrag von inszekt_ »

on the central server I found the following lines in the logs:

[4] [Nov 17 16:28:58] Client '10.0.10.146' did not send cookie (opsiconfd|261)
[4] [Nov 17 16:28:58] New session created (opsiconfd|950)
[4] [Nov 17 16:28:58] Authorization request from remotedepot.branchoffice.hu@10.0.10.146 (opsiconfd|354)
[3] [Nov 17 16:28:58] Failed to resolve hostname 'remotedepot.branchoffice.hu': (-2, 'Name or service not known') (opsiconfd|371)
[4] [Nov 17 16:28:58] Host login attempt with username 'remotedepot.branchoffice.hu' from ip '10.0.10.146', but name resolves to '[]', ip verification is disabled (access granted) (opsiconfd|384)
[4] [Nov 17 16:28:58] BackendManager created. (opsiconfd|391)
[4] [Nov 17 16:28:58] Session 'Vw9d6ELb7fh48n7NjkRS7WGrJ2Fiz1Op' deleted (opsiconfd|984)
[4] [Nov 17 16:28:58] Client '10.0.10.146' did not send cookie (opsiconfd|261)
[4] [Nov 17 16:28:58] New session created (opsiconfd|950)
[4] [Nov 17 16:28:58] Authorization request from remotedepot.branchoffice.hu@10.0.10.146 (opsiconfd|354)
[3] [Nov 17 16:28:58] Failed to resolve hostname 'remotedepot.branchoffice.hu': (-2, 'Name or service not known') (opsiconfd|371)
[4] [Nov 17 16:28:58] Host login attempt with username 'remotedepot.branchoffice.hu' from ip '10.0.10.146', but name resolves to '[]', ip verification is disabled (access granted) (opsiconfd|384)
[4] [Nov 17 16:28:58] BackendManager created. (opsiconfd|391)
[4] [Nov 17 16:28:58] Session 'uw51Is4bVNWrXlswQvylv6oWcc7TLhkz' deleted (opsiconfd|984)
[4] [Nov 17 16:28:59] Client '10.0.10.146' did not send cookie (opsiconfd|261)
[4] [Nov 17 16:28:59] New session created (opsiconfd|950)
[4] [Nov 17 16:28:59] Authorization request from remotedepot.branchoffice.hu@10.0.10.146 (opsiconfd|354)
[3] [Nov 17 16:28:59] Failed to resolve hostname 'remotedepot.branchoffice.hu': (-2, 'Name or service not known') (opsiconfd|371)
[4] [Nov 17 16:28:59] Host login attempt with username 'remotedepot.branchoffice.hu' from ip '10.0.10.146', but name resolves to '[]', ip verification is disabled (access granted) (opsiconfd|384)
[4] [Nov 17 16:28:59] BackendManager created. (opsiconfd|391)
[1] [Nov 17 16:28:59] Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.5/site-packages/twisted/python/threadpool.py", line 161, in _worker
context.call(ctx, function, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/twisted/python/context.py", line 59, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib/python2.5/site-packages/twisted/python/context.py", line 37, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
File "/usr/lib/python2.5/site-packages/twisted/internet/threads.py", line 24, in _putResultInDeferred
result = f(*args, **kwargs)
File "/usr/sbin/opsiconfd", line 527, in _realRpc
self.result['result'] = eval( "bm.%s(*params)" % method )
File "<string>", line 1, in <module>

File "/etc/opsi/backendManager.d/50_interface.conf", line 672, in getDepot_hash
depot['ip'] = socket.gethostbyname(depotId)
socket.gaierror: (-2, 'Name or service not known')
(opsiconfd|619)
[2] [Nov 17 16:28:59] Failed to process rpc: (-2, 'Name or service not known') (opsiconfd|623)

np
Benutzeravatar
j.schneider
uib-Team
Beiträge: 1819
Registriert: 29 Mai 2008, 15:14

Re: depot server issues

Beitrag von j.schneider »

Hi,

all the opsi depotservers/configserver need a working name resolution.
If you do not have a working DNS server please edit the /etc/hosts on ALL your opsi servers.
Append a line to it for EVERY opsi server.
An entry should look like:
<ipaddress> <fqdn> <hostname>
i.e.:
10.0.10.146 remotedepot.branchoffice.hu remotedepot

Greetings
Jan Schneider
Antworten