Page 1 of 1

[RESOLVED] Citrix packet error

Published: Dec 19, 2023 - 09:03
by rcharpeil
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

Re: Citrix packet error

Published: Dec 19, 2023 - 09:13
by rcharpeil

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'))

Re: Citrix packet error

Published: Dec 19, 2023 - 09:40
by dcardon
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

Re: Citrix packet error

Published: Dec 19, 2023 - 10:01
by rcharpeil
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

Re: Citrix packet error

Published: Dec 19, 2023 - 10:33
by dcardon
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

Re: Citrix packet error

Published: Dec 19, 2023 - 12:06 PM
by rcharpeil
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