Bonjour tout le monde.
J'utilise les paquets du dépôt TIS pour déployer Google Chrome sur un parc. Dans l'ensemble, ça fonctionne bien, mais pour un petit nombre de postes (8 sur 86, tous en Win 10 Pro), le paquet échoue avec cette erreur :
installing fws-chrome(=78.0.3904.108-4) Traceback (most recent call last): File "C:\Program Files (x86)\wapt\common.py", line 3851, in install_wapt exitstatus = setup.install() File "c:\windows\temp\wapttc2iq_\setup.py", line 39, in install File "C:\Program Files (x86)\wapt\setuphelpers.py", line 3750, in disable_task return ensure_unicode(run(ur'schtasks /Change /TN "%s" /DISABLE' % name)) File "C:\Program Files (x86)\wapt\setuphelpers.py", line 1068, in run raise CalledProcessErrorOutput(proc.returncode,cmd,''.join(output)) CalledProcessErrorOutput: Command 'schtasks /Change /TN "GoogleUpdateTaskMachineCore" /DISABLE' returned non-zero exit status 1. Output:Erreur : le nom de la tâche spécifiée "GoogleUpdateTaskMachineCore" n'existe pas dans le système.
CalledProcessErrorOutput: Command 'schtasks /Change /TN "GoogleUpdateTaskMachineCore" /DISABLE' returned non-zero exit status 1. Output:Erreur : le nom de la tâche spécifiée "GoogleUpdateTaskMachineCore" n'existe pas dans le système.
Dans le setup.py, ça correspond donc à :
# Disabling Google Chrome auto updates disable_task('GoogleUpdateTaskMachineCore') disable_task('GoogleUpdateTaskMachineUA')
Il semblerait que sur certaines machines (pour une raison que j'ignore), l'installation de Google Chrome ne crée pas la tâche planifiée, et donc sa suppression échoue. Est-ce qu'il serait possible de modifier le paquet comme ça :
for task in [' GoogleUpdateTaskMachineCore', 'GoogleUpdateTaskMachineUA']: if task_exists(task): disable_task(task)
Ce qui permettrait d'ignorer ces cas là où la tâche n'existe pas.
Je pourrais forker ce paquet et le maintenir moi (c'est peut être ce que je vais faire d'ailleurs), mais si le paquet WAPT du dépôt TIS est ajusté, tout le monde en profitera ;-)
Cordialement, Daniel, pour l'équipe technique de Firewall Services
Bonjour Daniel,
Merci pour l'information, le code source à bien été modifié et sera présent dans les prochaines versions du paquet Chrome.
Cordialement, Jimmy
----- Mail original ----- De: "Daniel Berteaud" daniel@firewall-services.com À: "wapt" wapt@lists.tranquil.it Envoyé: Jeudi 21 Novembre 2019 09:30:33 Objet: [Wapt] Erreur installation Chrome
Bonjour tout le monde.
J'utilise les paquets du dépôt TIS pour déployer Google Chrome sur un parc. Dans l'ensemble, ça fonctionne bien, mais pour un petit nombre de postes (8 sur 86, tous en Win 10 Pro), le paquet échoue avec cette erreur :
installing fws-chrome(=78.0.3904.108-4) Traceback (most recent call last): File "C:\Program Files (x86)\wapt\common.py", line 3851, in install_wapt exitstatus = setup.install() File "c:\windows\temp\wapttc2iq_\setup.py", line 39, in install File "C:\Program Files (x86)\wapt\setuphelpers.py", line 3750, in disable_task return ensure_unicode(run(ur'schtasks /Change /TN "%s" /DISABLE' % name)) File "C:\Program Files (x86)\wapt\setuphelpers.py", line 1068, in run raise CalledProcessErrorOutput(proc.returncode,cmd,''.join(output)) CalledProcessErrorOutput: Command 'schtasks /Change /TN "GoogleUpdateTaskMachineCore" /DISABLE' returned non-zero exit status 1. Output:Erreur : le nom de la tâche spécifiée "GoogleUpdateTaskMachineCore" n'existe pas dans le système.
CalledProcessErrorOutput: Command 'schtasks /Change /TN "GoogleUpdateTaskMachineCore" /DISABLE' returned non-zero exit status 1. Output:Erreur : le nom de la tâche spécifiée "GoogleUpdateTaskMachineCore" n'existe pas dans le système.
Dans le setup.py, ça correspond donc à :
# Disabling Google Chrome auto updates disable_task('GoogleUpdateTaskMachineCore') disable_task('GoogleUpdateTaskMachineUA')
Il semblerait que sur certaines machines (pour une raison que j'ignore), l'installation de Google Chrome ne crée pas la tâche planifiée, et donc sa suppression échoue. Est-ce qu'il serait possible de modifier le paquet comme ça :
for task in [' GoogleUpdateTaskMachineCore', 'GoogleUpdateTaskMachineUA']: if task_exists(task): disable_task(task)
Ce qui permettrait d'ignorer ces cas là où la tâche n'existe pas.
Je pourrais forker ce paquet et le maintenir moi (c'est peut être ce que je vais faire d'ailleurs), mais si le paquet WAPT du dépôt TIS est ajusté, tout le monde en profitera ;-)
Cordialement, Daniel, pour l'équipe technique de Firewall Services
----- Le 21 Nov 19, à 16:08, Jimmy Pele jpele@tranquil.it a écrit :
Bonjour Daniel,
Merci pour l'information, le code source à bien été modifié et sera présent dans les prochaines versions du paquet Chrome.
Super :-)
J'ai forké [0] le paquet pour tester, et ça résout le pb pour certains postes. Par contre, sur d'autres, j'ai encore une autre erreur avec ces tâches, mais cette fois, un permission denied
Installing fws-chrome(=78.0.3904.108-6) File C:\Program Files (x86)\Google\Chrome\Application\chrome.exe version is : 78.0.3904.108 Package version is : 78.0.3904.108 Traceback (most recent call last): File "C:\Program Files (x86)\wapt\common.py", line 3851, in install_wapt exitstatus = setup.install() File "c:\windows\temp\waptqlygnf\setup.py", line 53, in install File "C:\Program Files (x86)\wapt\setuphelpers.py", line 3750, in disable_task return ensure_unicode(run(ur'schtasks /Change /TN "%s" /DISABLE' % name)) File "C:\Program Files (x86)\wapt\setuphelpers.py", line 1068, in run raise CalledProcessErrorOutput(proc.returncode,cmd,''.join(output)) CalledProcessErrorOutput: Command 'schtasks /Change /TN "GoogleUpdateTaskMachineCore" /DISABLE' returned non-zero exit status 1. Output:Erreur : Accès refusé.
Analyse encore en cours (j'ai pas encore eu l'occasion de redémarrer ces postes, peut être que via waptexit ça passe), je reporterai ici quand j'aurai trouvé ;-)
[0] : https://git.fws.fr/fws/wapt-chrome/src/branch/master/setup.py
Cordialement, Daniel, pour l'équipe technique de Firewall Services