Page 1 of 1

Problem deploying packets

Published: January 5, 2018 - 11:08 AM
by Jack
Good morning,

I have a problem with the automatic deployment of packages when the Windows session is closed.
I am using wapt version 1.3.13.0 on a Windows 2012 server with Windows 7/10 clients.

This worked during my testing phase, but when launching the wapt client across the entire network, I noticed that some workstations did not install the packages when sessions were closed.

Here is what I find in the waptservice.log file on a client machine.

Code: Select all

2018-01-05 10:22:06,528 CRITICAL Error downloading package from http repository, please update... error : ConnectTimeout: HTTPConnectionPool(host='serveur.domaine.local', port=80): Max retries exceeded with url: /wapt/sog-flashplayer_27.0.0.130-2_all.wapt (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x0352A2D0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))

2018-01-05 10:22:06,762 CRITICAL Error downloading package from http repository, please update... error : ConnectTimeout: HTTPConnectionPool(host='serveur.domaine.local', port=80): Max retries exceeded with url: /wapt-host/machine.domaine.local.wapt (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x034370F0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))

2018-01-05 10:22:06,762 CRITICAL Error downloading some files : [(u'http://serveur.domaine.local/wapt/sog-flashplayer_27.0.0.130-2_all.wapt', u"ConnectTimeout: HTTPConnectionPool(host='serveur.domaine.local', port=80): Max retries exceeded with url: /wapt/sog-flashplayer_27.0.0.130-2_all.wapt (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x0352A2D0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))"), (u'http://serveur.domaine.local/wapt-host/machine.domaine.local.wapt', u"ConnectTimeout: HTTPConnectionPool(host='serveur.domaine.local', port=80): Max retries exceeded with url: /wapt-host/machine.domaine.local.wapt (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x034370F0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))")]

2018-01-05 10:22:06,762 CRITICAL Package sog-flashplayer not installed due to errors : Exception: No control found for c:\wapt\cache\sog-flashplayer_27.0.0.130-2_all.wapt

2018-01-05 10:22:06,762 CRITICAL Package machine.domaine.local (=3) not installed due to errors : Exception: No control found for c:\wapt\cache\machine.domaine.local.wapt

2018-01-05 10:22:06,762 CRITICAL Exception: Error during install of machine.domaine.local (=3): errors in packages [[(u'http://serveur.domaine.local/wapt/sog-flashplayer_27.0.0.130-2_all.wapt', u"ConnectTimeout: HTTPConnectionPool(host='serveur.domaine.local', port=80): Max retries exceeded with url: /wapt/sog-flashplayer_27.0.0.130-2_all.wapt (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x0352A2D0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))"), None], [(u'http://serveur.domaine.local/wapt-host/machine.domaine.local.wapt', u"ConnectTimeout: HTTPConnectionPool(host='serveur.domaine.local', port=80): Max retries exceeded with url: /wapt-host/machine.domaine.local.wapt (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x034370F0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))"), None], [u'sog-flashplayer', PackageEntry('sog-flashplayer','27.0.0.130-2')], [u'machine.domaine.local (=3)', PackageEntry('machine.domaine.local','3')]]

2018-01-05 10:22:07,135 CRITICAL Error downloading package from http repository, please update... error : ConnectTimeout: HTTPConnectionPool(host='serveur.domaine.local', port=80): Max retries exceeded with url: /wapt/sog-flashplayer_27.0.0.130-2_all.wapt (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x03437B30>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))

2018-01-05 10:22:07,135 CRITICAL Error downloading some files : [(u'http://serveur.domaine.local/wapt/sog-flashplayer_27.0.0.130-2_all.wapt', u"ConnectTimeout: HTTPConnectionPool(host='serveur.domaine.local', port=80): Max retries exceeded with url: /wapt/sog-flashplayer_27.0.0.130-2_all.wapt (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x03437B30>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))")]

2018-01-05 10:22:07,135 CRITICAL Package sog-flashplayer (=27.0.0.130-2) not installed due to errors : Exception: No control found for c:\wapt\cache\sog-flashplayer_27.0.0.130-2_all.wapt

2018-01-05 10:22:07,135 CRITICAL Exception: Error during install of sog-flashplayer (=27.0.0.130-2): errors in packages [[(u'http://serveur.domaine.local/wapt/sog-flashplayer_27.0.0.130-2_all.wapt', u"ConnectTimeout: HTTPConnectionPool(host='serveur.domaine.local', port=80): Max retries exceeded with url: /wapt/sog-flashplayer_27.0.0.130-2_all.wapt (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x03437B30>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))"), None], [u'sog-flashplayer (=27.0.0.130-2)', PackageEntry('sog-flashplayer','27.0.0.130-2')]]

2018-01-05 10:22:08,569 ERROR Traceback (most recent call last):
  File "c:\wapt\lib\site-packages\rocket\main.py", line 143, in start
    time.sleep(THREAD_STOP_CHECK_INTERVAL)
IOError: [Errno 4] Interrupted function call

The package installation works if I launch it from the machine in question with the commands wapt-get upgrade.

The flashplayer package is used as an example, but it's the same with other packages, most of which are imports of packages from the wapt-tranquil.it website.

I don't think the control file is the problem since the CLI installation works on the client.
A connection problem, perhaps?
Is the problem because the computer is connected via Wi-Fi?
However, I had tested it on non-administrator machines and over Wi-Fi with a user certificate and I had no problems.

Re: Package deployment problem

Published: January 5, 2018 - 11:47 AM
by agauvrit
The package does not appear to be available; try forcing the update:

Code: Select all

wapt-get update -f


To resolve this issue, you can lower the agent update interval in the configuration file wapt-get.ini at 1 minute:

https://www.wapt.fr/fr/doc-1.5/Configur ... pt-get-ini

Code: Select all

waptupdate_task_period=1
With this setting, the agent will preload the WAPT package into the cache if an update is available

Regarding the packet availability issue, it may indeed be a network connectivity problem; by reducing the refresh time interval on these mobile devices, we ensure that we have the packets cached locally.

One last thing, on Windows 10 machines remember to disable Hiberboot: https://www.wapt.fr/fr/doc-1.5/Frequent ... d-shutdown

Last resort We sell support contracts for WAPT, call us on 0240975755!

Alexander

Re: Package deployment problem

Published: January 5, 2018 - 3:04 PM
by Jack
Hello,
Thank you for the information.
Indeed, it must be an issue with the agent update period, because after waiting a while while reading the documentation on wapt-get.ini, for example, the problem disappeared for the affected machine.

The default time for waptupdate_task_period is 120 minutes; I suppose that's what resolved the situation.
Reducing this time for my Wi-Fi machines is the solution I will use.

Thank you for your quick help... and especially for the Hiberboot tip, which will surely solve other problems for me.

Best regards.

Re: Package deployment problem

Published: January 5, 2018 - 3:28 PM
by agauvrit
Just a quick note: setting the value to 1 (every minute) might be quite intensive for the WAPT server; every 20 or 30 minutes might be a good compromise,

Alexandre.