Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Erreur <EXIT_CODE_1> not a success [closed]

Version ocsreports : 2.11.1

Version de l'agent 2.9.2

Bonjour,

Lorsque je veux déployer une installation via le télédéploiement d'Ocs, j'ai toujours l'erreur  suivante et l'application ne s'installe pas.

"ERROR *** DOWNLOAD => Will not register package <1670248197> in history: result <EXIT_CODE_1> not a success"

Avez-vous des informations pour résoudre ça ?

Je joins les 2 fichiers logs d'OcsAgent :

DOWNLOAD.LOG

==============================================================================
Starting OCS Inventory Package Download and Setup Tool on Monday, December 05, 2022 14:50:57.
DOWNLOAD => Running OCS Inventory Download Version 2.9.2.0
DOWNLOAD => Using OCS Inventory FrameWork Version 2.9.2.0
DOWNLOAD => Using network connection with Communication Server
DOWNLOAD => Using Communication Provider <OCS Inventory cURL Communication Provider> Version <2.9.2.0>
DOWNLOAD => Starting new period of 10 cycles
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => Package <1670248197> verified and added to process queue
DOWNLOAD => Downloading package fragment <1670248197-1>
DOWNLOAD => Building package <1670248197>
DOWNLOAD => Executing action <LAUNCH> for package <1670248197>
ERROR *** DOWNLOAD => Will not register package <1670248197> in history: result <EXIT_CODE_1> not a success
DOWNLOAD => Sending result code <EXIT_CODE_1> for package <1670248197>
DOWNLOAD => Starting new period of 10 cycles
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => No package found, exiting
DOWNLOAD => Unloading communication provider
DOWNLOAD => Execution duration: 00:10:29.

ET OCSINVENTORY.LOG

==============================================================================
Starting OCS Inventory Agent on Monday, December 05, 2022 14:50:42.
AGENT => Running OCS Inventory Agent Version 2.9.2.0
AGENT => Using OCS Inventory FrameWork Version 2.9.2.0
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory cURL Communication Provider> Version <2.9.2.0>
AGENT => Sending Prolog
AGENT => Prolog successfully sent
AGENT => Inventory required
AGENT => Launching hardware and software checks
AGENT => Sending Inventory
INVENTORY => Inventory changed since last run
AGENT => Inventory successfully sent
AGENT =>  Communication Server asked for Package Download
DOWNLOAD => Package <1670248197> added to download queue
DOWNLOAD => Download and setup tool successfully started
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:14.

Merci d'avance pour votre aide

Cordialement,
closed with the note: Solution expliquée par l'utilisateur à la fin du post
in OCS Inventory NG agent for Windows by (1.4k points)
closed by

26 Answers

0 votes
Bonjour,

Merci de votre réponse

Auparavant, j'avais un autre serveur linux sous centos 8 avec ocsinventory, et j'utilisais l'agent ocs en version 2.8.0.0. J'ai dû tout réinstaller sur un autre serveur parce que Centos n'était plus mis à jour depuis le 31/12/2021.

Tout fonctionnait correctement. Il y avait une différence toutefois dans la création d'un paquet à télédéployer : Je ne zippais pas celui-ci.

J'ai essayai de réinstaller l'agent 2.8.0.0  sur le poste client à la place de l'agent 2.9.2.0 mais cela donne la même erreur.

Bonne journée
by (1.4k points)
edited by
0 votes
J'ai souvent eu cette erreur. Une des causes peut être que les chemins d'accès ne sont pas trouvés lors de l'exécution du paquet.
J'utilise toujours un script (comme fichier cmd) et je mets les lignes suivantes au début du script
@echo off
SETLOCAL EnableDelayedExpansion
path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\

S'il te plaît, essaie ceci

cela peut aussi être lié à 32 et 64 bits, mais c'est plus compliqué
by (22.6k points)
0 votes
Merci de ta réponse Sokatra,

J'ai ajouté en tête de fichier ce que tu me demandais de mettre, mais j'ai toujours ce message d'erreur Exit_code_1.

En faite le fichier BAT ou CMD n'est pas du tout exécuté et ce sur une version 32 ou 64 bit de Windows....
by (1.4k points)
0 votes
je ne suis pas un locuteur natif, je serai donc bref. Si un paquet n'a jamais fonctionné ... c'est parfois parce que certaines personnes n'ont pas placé leur fichier cmd au premier niveau du fichier zip.
Je n'ai jamais utilisé que des fichiers zip.
by (22.6k points)
0 votes
by (22.6k points)
0 votes
Mon fichier zip ne contient qu'un fichier CMD et un fichier EXE... aucun dossier
by (1.4k points)
0 votes
peux-tu faire un exemple de ce à quoi ressemble ta commande "launch" ?

donc j'utilise par exemple install.cmd
dans celle-ci, il y a l'instruction
par exemple.
gimp-2.10.x-setup.exe /VERYSILENT /NORESTART

mais sans chemin d'accès ...
by (22.6k points)
0 votes
Voici mon fichier cmd ...

@echo off
Set LogOcs="%temp%"\ocs.log
Echo =====================================>> "%LogOcs%"
Echo ==== Le %date% a %time% ====>> %LogOcs%
Echo.>> %LogOcs%
call "%~dp0fichier.exe" /s /v/qn
Echo Etape 1 : %errorlevel%>> %LogOcs%
exit /B 0

Mais celui-ci ne s'exécute pas ! donc ce n'est pas un problème du fichier cmd
by (1.4k points)
0 votes
Bonjour,

Pour clarifier le problème, dans mon cas, tout ce passe bien jusqu'à l'exécution du fichier .CMD ou .EXE qui ne ce fait pas !

Hors ce fichier se lance bien lorsque je le fais manuellement avec les droits system en faisant ceci : psexec.exe /s /i cmd

Dans cette fenêtre DOS je vais dans le dossier "C:\ProgramData\OCS Inventory NG\Agent\Download" (là où j'ai copié le ZIP décompressé), et lance le .CMD sans problème.
by (1.4k points)
edited by
0 votes
Bonjour,

Je reviens vers vous concernant mon problème de déploiement non résolu.

Bonne journée
by (1.4k points)
 
Powered by Question2Answer
...