[Solved]global name PROTOCOL_TLS is not defined

rmtevesjr
Beiträge: 73
Registriert: 12 Jul 2012, 14:57

[Solved]global name PROTOCOL_TLS is not defined

Beitrag von rmtevesjr »

I encounter this error when i tried to send a test message to a client from configed " global name PROTOCOL_TLS is not defined". Anyone encounter this?
Zuletzt geändert von rmtevesjr am 22 Feb 2017, 05:23, insgesamt 1-mal geändert.
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: global name PROTOCOL_TLS is not defined

Beitrag von n.wenselowski »

Hi,

please make sure that you are running the latest localboot version of Configed and then try again.

Does the error still persist?


Kind regards

Niko

Code: Alles auswählen

import OPSI
rmtevesjr
Beiträge: 73
Registriert: 12 Jul 2012, 14:57

Re: global name PROTOCOL_TLS is not defined

Beitrag von rmtevesjr »

Hi Niko, Thanks for the reply. The error still persist. Do I just need to run this aptitude install opsi-configed ? Thanks again.
rmtevesjr
Beiträge: 73
Registriert: 12 Jul 2012, 14:57

Re: global name PROTOCOL_TLS is not defined

Beitrag von rmtevesjr »

Benutzeravatar
ngbr
Ex-uib-Team
Beiträge: 130
Registriert: 27 Sep 2010, 11:41

Re: global name PROTOCOL_TLS is not defined

Beitrag von ngbr »

Hi rmtevesjr,

yes pls install the opsi-package you mentioned onto a client (that's what is meant by 'localboot' installation) .

in order to install the configed package onto a client without using a graphical interface (i.e. from CLI), use:

Code: Alles auswählen

opsi-admin -d method setProductActionRequest[WithDependencies] opsi-configed <client-fqdn> setup 
followed by an on-demand push

Code: Alles auswählen

 opsi-admin -d method hostControl_fireEvent on_demand <client-fqdn> 
---
hoping to help :)

if your problem was solved, pls mark this thread as 'SOLVED'. thank you .

-- no PN support --

Andre
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: global name PROTOCOL_TLS is not defined

Beitrag von n.wenselowski »

Hi,

please do as suggested by ngbr. If the problem persists it is important to use what you do when the error comes up so we can narrow it done easily.

With kind regards

Niko

Code: Alles auswählen

import OPSI
rmtevesjr
Beiträge: 73
Registriert: 12 Jul 2012, 14:57

Re: global name PROTOCOL_TLS is not defined

Beitrag von rmtevesjr »

I encountered the error both in GUI and in command line. Any suggestion?
[2] File "/usr/bin/opsi-admin", line 279, in main
sessionId=sessionId
(Logger.py|753)
[2] File "/usr/lib/python2.7/dist-packages/OPSI/Backend/JSONRPC.py", line 362, in __init__
self.connect()
(Logger.py|753)
[2] File "/usr/lib/python2.7/dist-packages/OPSI/Backend/JSONRPC.py", line 485, in connect
self._interface = self._jsonRPC(u'getPossibleMethods_listOfHashes')
(Logger.py|753)
[2] File "/usr/lib/python2.7/dist-packages/OPSI/Backend/JSONRPC.py", line 679, in _jsonRPC
return jsonrpc.execute()
(Logger.py|753)
[2] File "/usr/lib/python2.7/dist-packages/OPSI/Backend/JSONRPC.py", line 148, in execute
return self.waitForResult()
(Logger.py|753)
[2] File "/usr/lib/python2.7/dist-packages/OPSI/Backend/Backend.py", line 148, in waitForResult
raise self.error # pylint: disable=raising-bad-type
(Logger.py|753)
[2] ==>>> global name 'PROTOCOL_TLS' is not defined (opsi-admin|1682)
[3] Error during execution: global name 'PROTOCOL_TLS' is not defined (opsi-admin|1683)





Thanks.
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: global name PROTOCOL_TLS is not defined

Beitrag von n.wenselowski »

Hi,

I think this may come from OpenSSL or one of its bindings.
What command are you running?
On what OS?

Please try to update openssl and relevant packages on your server and then restart opsiconfd.
Does the error persist?


Kind regards

Niko

Code: Alles auswählen

import OPSI
rmtevesjr
Beiträge: 73
Registriert: 12 Jul 2012, 14:57

Re: global name PROTOCOL_TLS is not defined

Beitrag von rmtevesjr »

I ran opsi-admin from command line and if I push a software to a client from OPSI Configed. I will try it and will let you know of the result. Thank you
rmtevesjr
Beiträge: 73
Registriert: 12 Jul 2012, 14:57

Re: global name PROTOCOL_TLS is not defined

Beitrag von rmtevesjr »

I still encounter the error - The version of openssl we have is 1.0.1t-1+deb8u6. The error was encountered also when installing a product using "opsi-packagemanager -i packagename.opsi" command.
Antworten