Error launching services

Questions about WAPT Server / Requests and help related to the WAPT server
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
IiscsiI
Messages: 7
Registration: May 25, 2016 - 09:03

May 25, 2016 - 09:11

Good morning,

Since this morning I have been unable to launch the waptserver and waptapache services.
I have error messages in the log files

waptservice.log

Code: Select all

Traceback (most recent call last):
  File "C:\wapt\waptservice\waptservice.py", line 43, in <module>
    import requests
ImportError: No module named requests
2016-05-24 04:20:25,941 CRITICAL Unable to store status of update in DB : OperationalError: cannot rollback - no transaction is active
2016-05-24 04:20:26,017 CRITICAL Unable to store status of update in DB : OperationalError: cannot rollback - no transaction is active
2016-05-24 04:20:26,112 CRITICAL OperationalError: cannot rollback - no transaction is active
2016-05-24 06:20:28,022 CRITICAL Unable to store status of update in DB : OperationalError: cannot rollback - no transaction is active
2016-05-24 06:20:28,065 CRITICAL Unable to store status of update in DB : OperationalError: cannot rollback - no transaction is active
2016-05-24 06:20:28,071 CRITICAL OperationalError: cannot rollback - no transaction is active
2016-05-24 08:20:34,838 CRITICAL Unable to store status of update in DB : OperationalError: cannot rollback - no transaction is active
2016-05-24 08:20:34,884 CRITICAL Unable to store status of update in DB : OperationalError: cannot rollback - no transaction is active
2016-05-24 08:20:34,888 CRITICAL OperationalError: cannot rollback - no transaction is active
2016-05-24 09:57:16,726 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

Traceback (most recent call last):
  File "C:\wapt\waptservice\waptservice.py", line 45, in <module>
    from rocket import Rocket
  File "C:\wapt\lib\site-packages\rocket\__init__.py", line 7, in <module>
    import sys
KeyboardInterrupt
2016-05-25 08:23:41,561 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
nss_waptmongodb.log

Code: Select all

Traceback (most recent call last):
  File "C:\wapt\waptserver\mongodb\mongod.py", line 3, in <module>
    import iniparse
ImportError: No module named iniparse
C:\wapt\waptserver\mongodb\mongod.py trying to start mongodb
Traceback (most recent call last):
  File "C:\wapt\waptserver\mongodb\mongod.py", line 55, in <module>
    subprocess.check_output([sys.argv[1], '--config', sys.argv[2]])
  File "C:\wapt\lib\subprocess.py", line 567, in check_output
    output, unused_err = process.communicate()
  File "C:\wapt\lib\subprocess.py", line 791, in communicate
    stdout = _eintr_retry_call(self.stdout.read)
  File "C:\wapt\lib\subprocess.py", line 476, in _eintr_retry_call
    return func(*args)
waptserver.log

Code: Select all

2016-05-12 12:07:43,786 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
nssm_waptserver.log

Code: Select all

Traceback (most recent call last):
  File "C:\wapt\waptserver\waptserver.py", line 40, in <module>
    import pymongo
ImportError: No module named pymongo
How can I "fix" Wapt without modifying the database and security keys?
Thanks in advance
IiscsiI
Messages: 7
Registration: May 25, 2016 - 09:03

June 15, 2016 - 08:24

The installation was done under Windows alongside a WSUS server.
The documentation was followed to the letter, without Apache.

However, the Apache service is present, and it seems to be the source of the problem from time to time.

The only "solution" (if you can call it that) I've found is to back up the WAPT directories, uninstall it, reinstall it in the same directories, stop the WAPT services, and replace the folders with the backed-up ones (10-15 minutes in total).
Locked