[RESOLVED] Citrix packet error

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
scarf
Messages: 19
Registration: Nov 22, 2023 - 3:27 p.m.

December 19, 2023 - 09:03

WAPT Server: Debian 11 / version 2.2
Console: Windows 10


Hello,
I need your help.

The 'Citrix' package is failing to install on only a few machines; here is the error:

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 4035, in install_wapt
    exitstatus = setup.install()
  File "C:\WINDOWS\TEMP\waptfj48v7ws\setup.py", line 11, in install
  File "C:\Program Files (x86)\wapt\common.py", line 3990, in new_func
    return func(*args, **kwargs)
  File "C:\Program Files (x86)\wapt\setuphelpers_windows.py", line 1595, in install_exe_if_needed
    run(r'"%s" %s' % (exe, silentflags), accept_returncodes=accept_returncodes, timeout=timeout, pidlist=pidlist)
  File "C:\Program Files (x86)\wapt\waptutils.py", line 2123, in run
    raise CalledProcessErrorOutput(proc.returncode, cmd, ''.join(output))
waptutils.CalledProcessErrorOutput: Command '"CitrixWorkspaceApp.exe" /INCLUDESSON /ENABLE_SSON=Yes /SILENT /ALLOWADDSTORE=A /ALLOWSAVEPWD=A /STARTMENUDIR=Applications_Citrix /UseCategoryAsStartMenuPath=True STORE0="STORE_EU;https://xenappeu.republic.technologies.local/Citrix/STORE_EU/discovery;on;HR App"' returned non-zero exit status 40021.
Output:

CalledProcessErrorOutput: Command '"CitrixWorkspaceApp.exe" /INCLUDESSON /ENABLE_SSON=Yes /SILENT /ALLOWADDSTORE=A /ALLOWSAVEPWD=A /STARTMENUDIR=Applications_Citrix /UseCategoryAsStartMenuPath=True STORE0="STORE_EU;https://xenappeu.republic.technologies.local/Citrix/STORE_EU/discovery;on;HR App"' returned non-zero exit status 40021.
Output:

Regards
Last edited by rcharpeil on Dec 19, 2023 - 09:14, edited 1 time.
scarf
Messages: 19
Registration: Nov 22, 2023 - 3:27 p.m.

December 19, 2023 - 09:13

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connection.py", line 353, in connect
    conn = self._new_conn()
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connection.py", line 181, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x06EB0658>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\adapters.py", line 439, in send
    resp = conn.urlopen(
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\util\retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='debwapt.republic.technologies.local', port=443): Max retries exceeded with url: /wapt-host/0276C700-CA5F-11E4-B55D-8CDCD428740D.wapt (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x06EB0658>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1880, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 656, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1147, in _run
    self.result = self.wapt.download_packages(self.packagenames, usecache=self.usecache, printhook=self.printhook)
  File "C:\Program Files (x86)\wapt\common.py", line 5229, in download_packages
    res = self.get_repo(entry.repo).download_packages(entry,
  File "C:\Program Files (x86)\wapt\common.py", line 2557, in download_packages
    self._load_packages_index()
  File "C:\Program Files (x86)\wapt\common.py", line 2466, in _load_packages_index
    host_package = session.get(host_package_url,
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='debwapt.republic.technologies.local', port=443): Max retries exceeded with url: /wapt-host/0276C700-CA5F-11E4-B55D-8CDCD428740D.wapt (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x06EB0658>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

None : None
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connection.py", line 169, in _new_conn
    conn = connection.create_connection(
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\util\connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "socket.py", line 918, in getaddrinfo
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connection.py", line 353, in connect
    conn = self._new_conn()
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connection.py", line 181, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x06EB0658>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\adapters.py", line 439, in send
    resp = conn.urlopen(
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\util\retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='debwapt.republic.technologies.local', port=443): Max retries exceeded with url: /wapt-host/0276C700-CA5F-11E4-B55D-8CDCD428740D.wapt (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x06EB0658>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1880, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 656, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1147, in _run
    self.result = self.wapt.download_packages(self.packagenames, usecache=self.usecache, printhook=self.printhook)
  File "C:\Program Files (x86)\wapt\common.py", line 5229, in download_packages
    res = self.get_repo(entry.repo).download_packages(entry,
  File "C:\Program Files (x86)\wapt\common.py", line 2557, in download_packages
    self._load_packages_index()
  File "C:\Program Files (x86)\wapt\common.py", line 2466, in _load_packages_index
    host_package = session.get(host_package_url,
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='debwapt.republic.technologies.local', port=443): Max retries exceeded with url: /wapt-host/0276C700-CA5F-11E4-B55D-8CDCD428740D.wapt (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x06EB0658>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

December 19, 2023 - 9:40 AM

Hello rcharpeil,

Code: Select all

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='debwapt.republic.technologies.local', port=443): Max retries exceeded with url: /wapt-host/0276C700-CA5F-11E4-B55D-8CDCD428740D.wapt (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x06EB0658>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
As indicated by the error message (getaddrinfo failed), you probably have a DNS problem.

Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
scarf
Messages: 19
Registration: Nov 22, 2023 - 3:27 p.m.

December 19, 2023 - 10:01

Hi Denis,
I had the same thought, but I can indeed access the WAPT interface via this URL.
I can also push other packages; I just tested it.

Regards
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

December 19, 2023 - 10:33

Hi rcharpeil,

well, just because it works in a browser doesn't mean it will work in a Python requests script... It can depend on the user vs. system vs. service proxy configurations, it can depend on the type of DNS resolution (the .local suffix can cause problems on Linux due to Avahi-daemon), etc. So first, does a wget/curl command on the machine as root work?

Regards,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
scarf
Messages: 19
Registration: Nov 22, 2023 - 3:27 p.m.

December 19, 2023 - 12:06 PM

Re,

Problem solved,

I accessed the Citrix logs → C:\Program Files (x86)\Citrix\Logs\CTXReceiverInstallLogs-********\TrolleyExpress-********.log


11:05:26: Information - CApp::IsDotNetInstalled(2519) - Checking if .NET Framework is present with Min Release No 528040
11:05:26: Information - CApp::IsDotNetInstalled(2543) - The.NET Framework requirement satisfied
11:05:26: Information - CApp::IsRequireToInstallVCRedist(2556) - Checking for installed VC Redist
11:05:26: Information - CApp::IsRequireToInstallVCRedist(2561) - Found the installed VC Redist version details as 14.32.31332.00, 14.32.31332.00
11:05:26: Information - CApp::IsEdgeWebView2Installed(4181) - Checking if Microsoft Webview2 Runtime is present on the system.
11:05:26: Information - CApp::IsEdgeWebView2Installed(4202) - No existing MS Edge Runtime Found in HKLM.
11:05:26: Information - CApp::IsEdgeWebView2Installed(4246) - Status of Edge runtime on system: 0
11:05:26: Error - CApp::CheckIfInstallerCanProceed(874) - There is no network cannot initiate .NET or Edge webview2 installation
11:05:26: Information - CApp::MessageBoxSilentInstall(252) - Silent Message Box (Result = 1) - You must be connected to the Internet to download and install the following required package(s):
Edge Webview2 Runtime
11:05:26: Information - CApp::SetExitCode(155) - Exit code is 40021 (called with 40021)
11:05:26: Error - CApp::InitInstance(1125) - We got some failure, Returnig from installer.
11:05:26: Information - CApp::ExitInstance(1681) - Mark update installation complete in registry.
11:05:26: Information - CApp::ExitInstance(1695) - Update installation complete marked in registry with code: 2
11:05:26: Information - CApp::Remove_Reg_Uninstall(2087) - CApp::Remove_Reg_Uninstall
11:05:26: Information - CApp::ExitInstance(1723) - Exit Code = 40021

Manual INstall of webview2
Citrix package deployment


Have a nice day
cdt
Locked