opsi-client-agent installation failed

Antworten
XavierLEHO
Beiträge: 1
Registriert: 12 Okt 2017, 14:45

opsi-client-agent installation failed

Beitrag von XavierLEHO »

Hello
On windows 7 64 bits, i have instaled the opsi-client-agent (4.0.7.23)
After the reboot, the service opsiclientd is not started.

When i read the logs of the installation, i found :

Code: Alles auswählen

 DosInAnIcon_opsiclientd_register_service_exe
[7] [oct. 12 14:30:19:357]   Save to file with encoding: system
[8] [oct. 12 14:30:19:357]   Will save (system) to file: c:\opsi.org\tmp\_opsiscript_Es69Rv69.cmd :
[8] [oct. 12 14:30:19:357]   Encodings are different so we have to reencode from utf8 to cp1252
[8] [oct. 12 14:30:19:357]   We encode directly from or to utf8.
[8] [oct. 12 14:30:19:357]   Reencoding from utf8 to cp1252
[8] [oct. 12 14:30:19:357]   Encodings are different so we have to reencode from utf8 to cp1252
[8] [oct. 12 14:30:19:357]   We encode directly from or to utf8.
[8] [oct. 12 14:30:19:357]   Reencoding from utf8 to cp1252
[6] [oct. 12 14:30:19:357]   c:\opsi.org\tmp\_opsiscript_Es69Rv69.cmd saved back with encoding: system
[6] [oct. 12 14:30:19:357]   Executing "cmd.exe" /C c:\opsi.org\tmp\_opsiscript_Es69Rv69.cmd
[6] [oct. 12 14:30:20:692]   ExitCode 255
[6] [oct. 12 14:30:20:692]               
[6] [oct. 12 14:30:20:692]               output:
[6] [oct. 12 14:30:20:692]               --------------
[6] [oct. 12 14:30:20:692]               
[6] [oct. 12 14:30:20:692]               P:\opsi\opsi_depot\opsi-client-agent>"C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd.exe" -auto -install 
[6] [oct. 12 14:30:20:692]               Traceback (most recent call last):
[6] [oct. 12 14:30:20:692]                 File "boot_service.py", line 22, in <module>
[6] [oct. 12 14:30:20:692]                 File "opsiclientd.pyo", line 44, in <module>
[6] [oct. 12 14:30:20:692]                 File "ocdlib\Windows.pyo", line 46, in <module>
[6] [oct. 12 14:30:20:692]                 File "ocdlib\Opsiclientd.pyo", line 51, in <module>
[6] [oct. 12 14:30:20:692]                 File "ocdlib\ControlServer.pyo", line 60, in <module>
[6] [oct. 12 14:30:20:692]                 File "ocdlib\SoftwareOnDemand.pyo", line 55, in <module>
[6] [oct. 12 14:30:20:692]                 File "ocdlib\Timeline.pyo", line 291, in __init__
[6] [oct. 12 14:30:20:692]                 File "ocdlib\Timeline.pyo", line 132, in __init__
[6] [oct. 12 14:30:20:692]                 File "ocdlib\Timeline.pyo", line 208, in _createDatabase
[6] [oct. 12 14:30:20:692]                 File "OPSI\Backend\SQLite.pyo", line 233, in getTables
[6] [oct. 12 14:30:20:692]                 File "OPSI\Backend\SQLite.pyo", line 104, in getSet
[6] [oct. 12 14:30:20:692]                 File "OPSI\Backend\SQLite.pyo", line 89, in connect
[6] [oct. 12 14:30:20:692]                 File "c:\apsw\src\cursor.c", line 1019, in APSWCursor_execute.sqlite3_prepare
[6] [oct. 12 14:30:20:692]                 File "c:\apsw\src\statementcache.c", line 386, in sqlite3_prepare
[6] [oct. 12 14:30:20:692]               apsw.CorruptError: CorruptError: database disk image is malformed
[6] [oct. 12 14:30:20:692]   
[7] [oct. 12 14:30:20:696]   The file: c:\opsi.org\tmp\_opsiscript_Es69Rv69.cmd has been deleted
[6] [oct. 12 14:30:20:696]   Delete "c:\opsi.org\tmp\_opsiscript_*"
[6] [oct. 12 14:30:20:696]     Search "c:\opsi.org\tmp\"
[6] [oct. 12 14:30:20:696]     Search "c:\opsi.org\tmp\_opsiscript_*"
[5] [oct. 12 14:30:20:697]   comment: set start to auto (2) if it was deactivated (4)
Do you know what is the problem and how to resolv it ?

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

Re: opsi-client-agent installation failed

Beitrag von n.wenselowski »

Hi,

Can you tell me a little bit about the client. Was there an older version of opsi-client-agent installed? If yes: what version?
Does it have a current patchlevel?
Does it use the WAN extension?
Does it affect only one client or more?

From the error message I have to assume that it is a problem with the sqlite files. Deleting them could fix things but for now I'd only do so in case of a non-WAN-client.


Kind regards

Niko

Code: Alles auswählen

import OPSI
nicolaslebrun
Beiträge: 107
Registriert: 18 Apr 2011, 11:43

Re: opsi-client-agent installation failed

Beitrag von nicolaslebrun »

Hi Niko,

Thanks for your answer !
Does it have a current patchlevel?
We don't understand the question... I suppose not (I'll read the doc to understand your question :-) )
Does it use the WAN extension?
No
Does it affect only one client or more?
It seems to be more frequent recently
From the error message I have to assume that it is a problem with the sqlite files. Deleting them could fix things but for now I'd only do so in case of a non-WAN-client.
Could you tell us where they are stored ?

Best regards,

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

Re: opsi-client-agent installation failed

Beitrag von n.wenselowski »

Hi Nico,
nicolaslebrun hat geschrieben:
Does it have a current patchlevel?
We don't understand the question... I suppose not (I'll read the doc to understand your question :-) )
Let me pose the question differently:
Is it a plain Windows installation or has it received updates after the installation?
If it has received updates: are the clients always running with the latest updates for Windows?

nicolaslebrun hat geschrieben:
From the error message I have to assume that it is a problem with the sqlite files. Deleting them could fix things but for now I'd only do so in case of a non-WAN-client.
Could you tell us where they are stored ?
Please look at C:\opsi.org\opsiclientd\ where you will find a timeline.sqlite.


Kind regards

Niko

Code: Alles auswählen

import OPSI
nicolaslebrun
Beiträge: 107
Registriert: 18 Apr 2011, 11:43

Re: opsi-client-agent installation failed

Beitrag von nicolaslebrun »

Hi everybody ! Happy new year !

On two computers, I just did an deactivate, then reboot, totally removed c:\opsi.org then reinstall the client agent ... and it seems to be OK.

Thanks for the advices.

Nico
nicolaslebrun
Beiträge: 107
Registriert: 18 Apr 2011, 11:43

Re: opsi-client-agent installation failed / problem

Beitrag von nicolaslebrun »

Hi,

New problem on a quiet fresh install of opsi-client-agent 4.0.7.24 after a win7-x-64 install.
We deployed twenty machines.
On three of them, opsiclientd refuses to start.

Code: Alles auswählen

C:\Program Files (x86)\opsi.org\opsi-client-agent>opsiclientd.exe
Traceback (most recent call last):
  File "boot_service.py", line 22, in <module>
  File "opsiclientd.pyo", line 44, in <module>
  File "ocdlib\Windows.pyo", line 46, in <module>
  File "ocdlib\Opsiclientd.pyo", line 51, in <module>
  File "ocdlib\ControlServer.pyo", line 60, in <module>
  File "ocdlib\SoftwareOnDemand.pyo", line 55, in <module>
  File "ocdlib\Timeline.pyo", line 291, in __init__
  File "ocdlib\Timeline.pyo", line 132, in __init__
  File "ocdlib\Timeline.pyo", line 208, in _createDatabase
  File "OPSI\Backend\SQLite.pyo", line 233, in getTables
  File "OPSI\Backend\SQLite.pyo", line 104, in getSet
  File "OPSI\Backend\SQLite.pyo", line 89, in connect
  File "c:\apsw\src\cursor.c", line 1019, in APSWCursor_execute.sqlite3_prepare
  File "c:\apsw\src\statementcache.c", line 386, in sqlite3_prepare
apsw.CorruptError: CorruptError: database disk image is malformed
We erased c:\opsi.org\opsiclientd\timeline.sqlite
and restarted the service without any problem.

Is there a known problem ? a way to avoid that ?

Greetings,

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

Re: opsi-client-agent installation failed

Beitrag von n.wenselowski »

Hi Nico,
n.wenselowski hat geschrieben:
nicolaslebrun hat geschrieben:
Does it have a current patchlevel?
We don't understand the question... I suppose not (I'll read the doc to understand your question :-) )
Let me pose the question differently:
Is it a plain Windows installation or has it received updates after the installation?
If it has received updates: are the clients always running with the latest updates for Windows?
Could you tell us a little bit more about the configuration and software on the client?
Can you reproduce problems with the installation on those clients?

We run tests with opsi-client-agent all the time but we can't test every possible setting out there so we need a little bit of help on this front ;)
Also: is there some kind of AD integration / GPO / security setting / antivirus that may interfere with the installation of opsi-client-agent?


Kind regards

Niko

Code: Alles auswählen

import OPSI
Antworten