Netboot and backend error on Ubuntu

Antworten
kazso
Beiträge: 3
Registriert: 07 Jul 2011, 11:08

Netboot and backend error on Ubuntu

Beitrag von kazso »

Hi,

I've installed Opsi 4.0 on Ubuntu 10.04.2, following the steps in the Opsi pdf manual.
Opsi seems to work (i can run the web based configed, i can boot machines using various bootimages), however i get an error, when i want to install Windows XP with Netboot:
[5] [Jul 07 10:16:39] Fetching pcpatch password... (master.py|1206)
[7] [Jul 07 10:16:39] Executing jsonrpc method 'user_getCredentials' on host 10.6.2.11 (JSONRPC.py|104)
[7] [Jul 07 10:16:39] Starting new HTTPS connection (0) to 10.6.2.11:4447 (HTTP.py|493)
[7] [Jul 07 10:16:39] Connection established to: 10.6.2.11 (HTTP.py|496)
[7] [Jul 07 10:16:39] Closing connection: <httplib.HTTPSConnection instance at 0x8c35b6c> (HTTP.py|425)
[7] [Jul 07 10:16:39] Content-Type: gzip-application/json;charset=utf-8, Content-Encoding: gzip (JSONRPC.py|635)
[7] [Jul 07 10:16:39] Expecting compressed data from server (JSONRPC.py|639)
[6] [Jul 07 10:16:39] Decrypting password... (master.py|1213)
[7] [Jul 07 10:16:39] Executing jsonrpc method 'host_getObjects' on host 10.6.2.11 (JSONRPC.py|104)
[7] [Jul 07 10:16:39] Starting new HTTPS connection (0) to 10.6.2.11:4447 (HTTP.py|493)
[7] [Jul 07 10:16:39] Connection established to: 10.6.2.11 (HTTP.py|496)
[7] [Jul 07 10:16:39] Closing connection: <httplib.HTTPSConnection instance at 0x8c3b3cc> (HTTP.py|425)
[7] [Jul 07 10:16:39] Content-Type: gzip-application/json;charset=utf-8, Content-Encoding: gzip (JSONRPC.py|635)
[7] [Jul 07 10:16:39] Expecting compressed data from server (JSONRPC.py|639)
[6] [Jul 07 10:16:39] Mounting 'smb://opsi/opsi_depot' to '/mnt/opsi' (Repository.py|1132)
[2] [Jul 07 10:16:40] Traceback: (Logger.py|721)
[2] [Jul 07 10:16:40] line 1284 in '<module>' in file '/usr/local/bin/master.py' (Logger.py|721)
[2] [Jul 07 10:16:40] line 70 in 'getRepository' in file '/usr/lib/pymodules/python2.6/OPSI/Util/Repository.py' (Logger.py|721)
[2] [Jul 07 10:16:40] line 1118 in '__init__' in file '/usr/lib/pymodules/python2.6/OPSI/Util/Repository.py' (Logger.py|721)
[2] [Jul 07 10:16:40] line 1148 in '_mount' in file '/usr/lib/pymodules/python2.6/OPSI/Util/Repository.py' (Logger.py|721)
[2] [Jul 07 10:16:40] ==>>> 'charmap' codec can't encode character u'\u0151' in position 17: character maps to <undefined> (master.py|1429)

[7] [Jul 07 10:16:40] Backend: <OPSI.Backend.JSONRPC.JSONRPCBackend instance at 0x8a8516c> (master.py|1432)
[7] [Jul 07 10:16:40] ProductId: winxppro (master.py|1433)
I see the 'charmap' error on the computer where i want to install WinXP. The only option is to press on 'OK' and the install stops after that.

Also there is another error i get when i use the command opsi-admin -d method backend_info :
[2] Traceback: (Logger.py|742)
[2] line 1516 in '<module>' in file '/usr/bin/opsi-admin' (Logger.py|742)
[2] line 301 in 'main' in file '/usr/bin/opsi-admin' (Logger.py|742)
[2] line 669 in 'execute' in file '/usr/bin/opsi-admin' (Logger.py|742)
[2] ==>>> Failed to execute 'method backend_info': 'ascii' codec can't decode byte 0xc3 in position 19: ordinal not in range(128) (opsi-admin|1526)
I didn't change anything in the backend config, using the default one.
Both errors seems to be related to python configuration, but i can't figure out, what could be the problem.
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3319
Registriert: 04 Jun 2008, 14:27

Re: Netboot and backend error on Ubuntu

Beitrag von d.oertel »

Hi,

did you run:

Code: Alles auswählen

opsi-setup --init-current-config
opsi-setup --set-rights
/etc/init.d/opsiconfd restart
/etc/init.d/opsipxeconfd restart
?

regards

d.oertel
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
kazso
Beiträge: 3
Registriert: 07 Jul 2011, 11:08

Re: Netboot and backend error on Ubuntu

Beitrag von kazso »

Yes, i did run those commands.
Benutzeravatar
c.kampka
Ex-uib-Team
Beiträge: 87
Registriert: 09 Aug 2010, 16:27
Kontaktdaten:

Re: Netboot and backend error on Ubuntu

Beitrag von c.kampka »

Hi,

please set the opsiconfd log level to 8 in /etc/opsi/opsiconfd.conf and run opsi-admin with '--loglevel 8 --log-file opsi-admin.log' and please post the resulting log file plus /var/log/opsi/opsiconfd/opsiconfd.log

If you're uncomfortable with posting verbose logs in public, feel free to mail the to c.kampka@uib.de

Cheers,
Christian Kampka
opsi support - uib gmbh
For productive opsi installations we recommend support contracts.
http://uib.de
http://opsi.org
kazso
Beiträge: 3
Registriert: 07 Jul 2011, 11:08

Re: Netboot and backend error on Ubuntu

Beitrag von kazso »

Netboot is working now. I don't know, how i fixed it, but here are the steps i made:

1. Set log level 8 in /etc/opsi/opsiconfd.conf
2. Run the 4 commands mentioned above:

Code: Alles auswählen

opsi-setup --init-current-config
opsi-setup --set-rights
/etc/init.d/opsiconfd restart
/etc/init.d/opsipxeconfd restart
3. Restart the server
4. Run those 4 commands again

The 'opsi-admin --loglevel8 --log-file opsi-admin.log' command generates a 0 length file only, and gives the exact same error, that i got with 'opsi-admin -d method backend_info' too:

Code: Alles auswählen

[2] Traceback: (Logger.py|742)
[2] line 1516 in '<module>' in file '/usr/bin/opsi-admin' (Logger.py|742)
[2] line 301 in 'main' in file '/usr/bin/opsi-admin' (Logger.py|742)
[2] line 669 in 'execute' in file '/usr/bin/opsi-admin' (Logger.py|742)
[2] ==>>> Failed to execute 'method backend_info': 'ascii' codec can't decode byte 0xc3 in position 19: ordinal not in range(128) (opsi-admin|1526)
duda
Beiträge: 24
Registriert: 31 Mai 2011, 11:50

Re: Netboot and backend error on Ubuntu

Beitrag von duda »

37] Starting opsiconfd main thread (opsiconfd.py|430)
[5] [Oct 18 14:14:37] Opening socket /var/run/opsiconfd/opsiconfd.socket for interprocess communication. (opsiconfd.py|414)
[6] [Oct 18 14:14:37] Creating backend instance (opsiconfd.py|250)
[6] [Oct 18 14:14:37] * BackendManager is creating BackendDispatcher (BackendManager.py|139)
[6] [Oct 18 14:14:37] Backend context was set to <OPSI.Backend.BackendManager.BackendManager instance at 0x2627290> (Backend.py|171)
[6] [Oct 18 14:14:37] Loading dispatch config file '/etc/opsi/backendManager/dispatch.conf' (BackendManager.py|220)
[6] [Oct 18 14:14:37] Loading backend config '/etc/opsi/backends/file.conf' (BackendManager.py|261)
[6] [Oct 18 14:14:37] Backend context was set to <OPSI.Backend.BackendManager.BackendDispatcher instance at 0x2627320> (Backend.py|171)
[6] [Oct 18 14:14:37] Loading backend config '/etc/opsi/backends/mysql.conf' (BackendManager.py|261)
[6] [Oct 18 14:14:37] Backend context was set to <OPSI.Backend.BackendManager.BackendDispatcher instance at 0x2627320> (Backend.py|171)
[6] [Oct 18 14:14:37] Creating ConnectionPool instance (MySQL.py|68)
[4] [Oct 18 14:14:37] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|356)
[5] [Oct 18 14:14:37] Disabling mysql backend and license management module: no customer in modules file (MySQL.py|389)
[6] [Oct 18 14:14:37] Loading backend config '/etc/opsi/backends/opsipxeconfd.conf' (BackendManager.py|261)
[6] [Oct 18 14:14:37] Backend context was set to <OPSI.Backend.BackendManager.BackendDispatcher instance at 0x2627320> (Backend.py|171)
[6] [Oct 18 14:14:37] * BackendManager is creating ExtendedConfigDataBackend (BackendManager.py|143)
[6] [Oct 18 14:14:37] Setting context to backend <OPSI.Backend.Backend.ExtendedConfigDataBackend instance at 0x29e8680> (Backend.py|379)
[6] [Oct 18 14:14:38] * BackendManager is creating BackendExtender (BackendManager.py|162)
[6] [Oct 18 14:14:38] Setting context to backend <OPSI.Backend.BackendManager.BackendExtender instance at 0x29fd9e0> (Backend.py|379)
[6] [Oct 18 14:14:38] Reading config file '/etc/opsi/backendManager/extend.d/10_opsi.conf' (BackendManager.py|415)
[6] [Oct 18 14:14:38] Reading config file '/etc/opsi/backendManager/extend.d/20_legacy.conf' (BackendManager.py|415)
[6] [Oct 18 14:14:38] Reading config file '/etc/opsi/backendManager/extend.d/70_dynamic_depot.conf' (BackendManager.py|415)
[6] [Oct 18 14:14:38] Creating site (opsiconfd.py|259)
[5] [Oct 18 14:14:38] Added static content '/' which points to directory '/usr/share/opsiconfd/static' (opsiconfd.py|273)
[5] [Oct 18 14:14:38] Running on depot server 'pattex.cst.cwi.nl', exporting repository directory (opsiconfd.py|290)
[5] [Oct 18 14:14:38] Running on depot server 'pattex.cst.cwi.nl', exporting depot directory (opsiconfd.py|303)
[5] [Oct 18 14:14:38] Added webdav content 'repository' which points to directory '/var/lib/opsi/repository' () (opsiconfd.py|336)
[5] [Oct 18 14:14:38] Added webdav content 'depot' which points to directory '/var/lib/opsi/depot' () (opsiconfd.py|336)
[5] [Oct 18 14:14:38] Added webdav content 'configed' which points to directory '/usr/lib/configed' (u'noauth',) (opsiconfd.py|336)
[6] [Oct 18 14:14:38] Creating ports (opsiconfd.py|341)
[2] [Oct 18 14:14:38] Traceback: (Logger.py|742)
[2] [Oct 18 14:14:38] line 438 in 'run' in file '/usr/lib/python2.6/site-packages/opsiconfd/opsiconfd.py' (Logger.py|742)
[2] [Oct 18 14:14:38] line 343 in '_startListening' in file '/usr/lib/python2.6/site-packages/opsiconfd/opsiconfd.py' (Logger.py|742)
[2] [Oct 18 14:14:38] line 373 in '_startListeningHTTPS' in file '/usr/lib/python2.6/site-packages/opsiconfd/opsiconfd.py' (Logger.py|742)
[2] [Oct 18 14:14:38] line 381 in 'listenSSL' in file '/usr/lib64/python2.6/site-packages/twisted/internet/posixbase.py' (Logger.py|742)
[2] [Oct 18 14:14:38] line 858 in 'startListening' in file '/usr/lib64/python2.6/site-packages/twisted/internet/tcp.py' (Logger.py|742)
[2] [Oct 18 14:14:38] ==>>> Couldn't listen on any:4447: [Errno 98] Address already in use. (opsiconfd.py|449)
Benutzeravatar
ueluekmen
uib-Team
Beiträge: 1939
Registriert: 28 Mai 2008, 10:53

Re: Netboot and backend error on Ubuntu

Beitrag von ueluekmen »

Hi,

please try the testing version from opsiconfd.

Therefor please download and install the package manually from:
http://download.opensuse.org/repositori ... 0-testing/

When you have installed the new package, try to stop the opsiconfd-service

Code: Alles auswählen

/etc/init.d/opsiconfd stop
Check if all instances of opsiconfd are stopped, if not kill them. Then start the opsiconfd-Deamon again.

Code: Alles auswählen

/etc/init.d/opsiconfd start
Regards
E. Ueluekmen
opsi support - uib gmbh
For productive opsi installations we recommend support contracts.
http://www.uib.de
Antworten