Page 1 of 1

[SOLVED]: Waptexit won't start

Published: October 31, 2024 - 9:30 AM
by t.heroult
Good morning
I have a problem with a workstation; waptexit does not start even though there are pending installations.
I completely uninstalled and reinstalled the agent, but it didn't change anything.
The workstation is a Windows 11 IoT Enterprise (23H2)

Here is the part of the log that corresponds to this step:

Code: Select all

2024-10-31 09:16:33,558 [wapttasks MainThread 7032] INFO Service Configuration: {'config_filename': 'C:\\Program Files (x86)\\wapt\\wapt-get.ini', 'waptservice_user': None, 'waptservice_password': None, 'MAX_HISTORY': 30, 'waptservice_port': 8088, 'dbpath': 'C:\\Program Files (x86)\\wapt\\db\\waptdb.sqlite', 'loglevel': 'warning', 'log_directory': 'C:\\Program Files (x86)\\wapt\\log', 'waptserver': <WaptServer https://srvwapt.MONDOMAINE.local verify_cert=False client_cert_path=None>, 'hiberboot_enabled': False, 'max_gpo_script_wait': 180, 'pre_shutdown_timeout': 180, 'log_to_windows_events': False, 'allow_user_service_restart': False, 'signature_clockskew': 21600, 'notify_user': False, 'waptservice_admin_filter': True, 'enable_remote_repo': False, 'local_repo_path': 'C:\\Program Files (x86)\\wapt\\repository', 'local_repo_sync_task_period': '2h', 'local_repo_time_for_sync_start': None, 'local_repo_time_for_sync_end': None, 'local_repo_limit_bandwidth': None, 'wol_port': '7,9', 'wol_relay': False, 'service_auth_type': 'waptserver-ldap', 'verify_cert_ldap': False, 'waptservice_poll_timeout': 10, 'waptupdate_task_period': '120m', 'download_after_update_with_waptupdate_task_period': True, 'forced_installs_task_period': '2m', 'reconfig_on_network_change': False, 'websockets_verify_cert': False, 'update_server_status_on_connect': False, 'loglevel_waptcore': None, 'loglevel_waptservice': None, 'loglevel_waptws': None, 'loglevel_waptdb': None, 'loglevel_websocket': None, 'loglevel_waitress': None, 'loglevel_wapttasks': None}
2024-10-31 09:16:33,558 [wapttasks MainThread 7032] INFO Starting task queue
2024-10-31 09:16:33,558 [wapttasks WaptTaskManager 5100] INFO Wapt tasks management initialized with C:\Program Files (x86)\wapt\wapt-get.ini configuration
2024-10-31 09:16:33,559 [wapttasks MainThread 7032] INFO Tasks queue running
2024-10-31 09:16:33,560 [wapttasks MainThread 7032] INFO Starting waitress waptservice on port 8088
2024-10-31 09:16:33,571 [wapttasks MainThread 7032] INFO Waptservice stopped
Traceback (most recent call last):
  File "<string>", line 2304, in <module>
  File "C:\Program Files (x86)\wapt\lib\site-packages\waitress\__init__.py", line 13, in serve
    server = _server(app, **kw)
  File "C:\Program Files (x86)\wapt\lib\site-packages\waitress\server.py", line 78, in create_server
    last_serv = TcpWSGIServer(
  File "C:\Program Files (x86)\wapt\lib\site-packages\waitress\server.py", line 244, in __init__
    self.bind_server_socket()
  File "C:\Program Files (x86)\wapt\lib\site-packages\waitress\server.py", line 361, in bind_server_socket
    self.bind(sockaddr)
  File "C:\Program Files (x86)\wapt\lib\site-packages\waitress\wasyncore.py", line 396, in bind
    return self.socket.bind(addr)
OSError: [WinError 10013] Une tentative d’accès à un socket de manière interdite par ses autorisations d’accès a été tentée
Exception at 01082433: EPyWindowsError:
OSError: [WinError 10013] Une tentative d’accès à un socket de manière interdite par ses autorisations d’accès a été tentée.
2024-10-31 09:16:33,577 [wapttasks SocketIOClient 4768] INFO Starting socketio on "https://srvwapt.MONDOMAINE.local:443" Thread id 4768
2024-10-31 09:16:33,580 [wapttasks SocketIOClient 4768] INFO Socketio connection params have changed. Socketio needs reconnect
2024-10-31 09:16:33,580 [wapttasks SocketIOClient 4768] INFO Creating socketio client: https://srvwapt.MONDOMAINE.local:443 client auth cert: ('C:\\Program Files (x86)\\wapt\\private\\ln2380.MONDOMAINE.local.crt', 'C:\\Program Files (x86)\\wapt\\private\\ln2380.MONDOMAINE.local.pem') proxies: None verify_cert: False
2024-10-31 09:16:33,581 [wapttasks SocketIOClient 4768] INFO Connecting Socketio to https://srvwapt.MONDOMAINE.local:443
2024-10-31 09:16:33,600 [wapttasks WaptTaskManager 5100] INFO Core Configuration: {'wapt_base_dir': 'C:\\Program Files (x86)\\wapt', 'waptserver': <WaptServer https://srvwapt.MONDOMAINE.local verify_cert=False client_cert_path=C:\Program Files (x86)\wapt\private\ln2380.MONDOMAINE.local.crt>, 'config_filename': 'C:\\Program Files (x86)\\wapt\\wapt-get.ini', 'proxies': {'http': '', 'https': ''}, 'repositories': [<WaptRepo https://srvwapt.MONDOMAINE.local/wapt verify_cert=False client_cert_path=C:\Program Files (x86)\wapt\private\ln2380.MONDOMAINE.local.crt>, <WaptHostRepo https://srvwapt.MONDOMAINE.local/wapt-host for host_id ln2380.MONDOMAINE.local >], 'personal_certificate_path': '', 'public_certs_dir': 'C:\\Program Files (x86)\\wapt\\ssl', 'packages_cache_dir': 'C:\\Program Files (x86)\\wapt\\cache', 'dbpath': 'C:\\Program Files (x86)\\wapt\\db\\waptdb.sqlite', 'use_http_proxy_for_repo': False, 'use_http_proxy_for_server': False, 'limit_bandwidth': None, 'locales': ['fr'], 'custom_tags': [], 'packages_whitelist': None, 'packages_blacklist': None, 'maturities': ['PROD'], 'host_uuid': 'ln2380.MONDOMAINE.local', 'use_fqdn_as_uuid': True, 'use_hostpackages': True, 'use_ad_groups': False, 'use_repo_rules': True, 'host_profiles': [], 'host_organizational_unit_dn': 'OU=PG,OU=AUTOMATICIENS,OU=MAUPAS,OU=LA NORMANDISE,DC=MONDOMAINE,DC=local', 'host_ad_site': None, 'waptaudit_task_period': '1d', 'hiberboot_enabled': 0, 'max_gpo_script_wait': 180.0, 'pre_shutdown_timeout': 180.0, 'uninstallkey_timeout': 120, 'check_certificates_validity': True, 'token_lifetime': 86400, 'trust_all_certs_in_pems': False, 'include_dmi_inventory': True, 'include_wmi_inventory': True, 'wapt_temp_dir': None}
2024-10-31 09:16:33,600 [wapttasks WaptTaskManager 5100] INFO Wapt tasks queue started
2024-10-31 09:16:33,628 [wapttasks SocketIOClient 4768] INFO WS read loop for 120s
Thank you for your help

Re: Problem: Waptexit won't start

Published: October 31, 2024 - 10:12 AM
by htouvet
Apparently, the wapt service cannot open port 8088 for local listening (no permission)
Waptexit communicates with the local service using this port
If it is not open, waptexit starts and shuts down immediately.

Does this station have a specific protection system in place that would prevent a process from opening this port?
Is the waptservice properly installed to work with a system account?

If you try to launch the service in debug mode from an elevated command prompt, do you still encounter the same port 8088 blocking issue?

Code: Select all

net stop waptservice
runwaptservice --loglevel=debug

Re: Problem: Waptexit won't start

Published: October 31, 2024 - 11:39 AM
by t.heroult
Thank you for this feedback, I will check all of this and get back to you.

Re: Problem: Waptexit won't start

Published: October 31, 2024 - 11:58 AM
by t.heroult
OK, I understand.
I ran netstat and saw that there's an industrial application listening on port 8088.
I modified the "waptservice_port" parameter and it's working!

Thanks for pointing me in the right direction!