Seite 1 von 2
Failed to install swaudit and hwaudit packages
Verfasst: 09 Apr 2014, 09:24
von opsiusermad
Hi,
Using opsi-configed, I choose the client and afterwards I switch to the tab Product configuration. I put action setup in this scoreboard.
I reboot my pc and an error appear when the pc try to install the packages.
The error is: Execution error: Host key for depot 'opsidemo.******.local' not found (JsonRpc.py|138)
Please have a look into it, and let me know if I can assist you any further.
best regards.
Re: Failed to install swaudit and hwaudit packages
Verfasst: 09 Apr 2014, 11:07
von n.wenselowski
Hello opsiusermad,
does the message also appear in the server logfiles (under /var/log/opsi/)?
If so it could be a problem with your opsi-server.
Have you tried to roll out the opsi-client-agent again on that client?
With kind regards
Niko
Re: Failed to install swaudit and hwaudit packages
Verfasst: 09 Apr 2014, 12:03
von opsiusermad
Hello Niko,
The message also appear in the serverlogfiles.
I rolled out the opsi-client-agent many times after this problem, but i can not solve the problem.
Have you any more suggestion?
Thanks for all
Re: Failed to install swaudit and hwaudit packages
Verfasst: 09 Apr 2014, 13:46
von n.wenselowski
Hello opsiusermad,
what is the output of the following command (with, of course your depot server as paramter):
My guess if it is empty is that you need to set a hostkey. But this is purely hypothetical right now.
With kind regards
Niko
Re: Failed to install swaudit and hwaudit packages
Verfasst: 09 Apr 2014, 16:50
von SisterOfMercy
opsiusermad hat geschrieben:Using opsi-configed, I choose the client and afterwards I switch to the tab Product configuration. I put action setup in this scoreboard.
I reboot my pc and an error appear when the pc try to install the packages.
You're not running OPSI in a VM on the same PC you're trying to install packages on, right?
What is the output of
hostname -f? Current distribution you are using with OPSI? Not much to go on, so I'm just guessing.
Re: Failed to install swaudit and hwaudit packages
Verfasst: 10 Apr 2014, 09:08
von opsiusermad
n.wenselowski hat geschrieben:Hello opsiusermad,
what is the output of the following command (with, of course your depot server as paramter):
My guess if it is empty is that you need to set a hostkey. But this is purely hypothetical right now.
With kind regards
Niko
When I use that command I do not obtain any output.
What is my problem? and how I can solve it?
Thanks
Re: Failed to install swaudit and hwaudit packages
Verfasst: 10 Apr 2014, 09:19
von opsiusermad
SisterOfMercy hat geschrieben:opsiusermad hat geschrieben:Using opsi-configed, I choose the client and afterwards I switch to the tab Product configuration. I put action setup in this scoreboard.
I reboot my pc and an error appear when the pc try to install the packages.
You're not running OPSI in a VM on the same PC you're trying to install packages on, right?
What is the output of
hostname -f? Current distribution you are using with OPSI? Not much to go on, so I'm just guessing.
You are right, I am running OPSI with a VM in a physical server (server LAN).
The output of this command is the same name that appear in the Execution error: 'opsidemo.******.local'
My current distribution is 4.0.4.1.3 (2014/02/03)
Re: Failed to install swaudit and hwaudit packages
Verfasst: 10 Apr 2014, 11:42
von n.wenselowski
Hello opsiusermad,
your problem is the missing Host Key for your depot. This should be automatically created during an installation.
Things that could prevent it are i.e. an empty HD or simply deleting config files.
To set a new host key you can try to do it with the following:
Code: Alles auswählen
opsi-admin -d method setOpsiHostKey your.opsi.depot $(< /dev/urandom tr -dc a-f0-9 | head -c32)
After this getting the opsi host key should give you an result.
With kind regards
Niko
Re: Failed to install swaudit and hwaudit packages
Verfasst: 10 Apr 2014, 16:33
von opsiusermad
n.wenselowski hat geschrieben:Hello opsiusermad,
your problem is the missing Host Key for your depot. This should be automatically created during an installation.
Things that could prevent it are i.e. an empty HD or simply deleting config files.
To set a new host key you can try to do it with the following:
Code: Alles auswählen
opsi-admin -d method setOpsiHostKey your.opsi.depot $(< /dev/urandom tr -dc a-f0-9 | head -c32)
After this getting the opsi host key should give you an result.
With kind regards
Niko
Thank you Niko
You are right. I had missed the host key. I used your command and i got a new host key for my depot server, but I have a new problem.
When I reboot my pc a new error appear when the pc try to install the packages.
In this case the error is:
Code: Alles auswählen
'utf8' codec can't decode byte 0xaf in position 0: invalid start byte (__init__.py|579)
Execution error: Failed to decrypt (JsonRpc.py|138)
It seems that the codec can not decode this new key.
Do you have any idea to resolve it?
Re: Failed to install swaudit and hwaudit packages
Verfasst: 11 Apr 2014, 14:47
von n.wenselowski
Hello opsiusermad,
what is surrounding this error message?
Are any non-ASCII-Characters in the new host key for your depot?
Kind regards
Niko