[RESOLVED] Error on server 1.6

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
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

October 12, 2018 - 11:42

Could it be an antivirus blocking the installation?
Roman
Messages: 4
Registration: Oct 05, 2018 - 11:07

October 12, 2018 - 12:18

sfonteneau wrote: Oct 12, 2018 - 11:42 Could it be an antivirus blocking the installation?
No, I even uninstalled it to be sure.
The waptservice service is correctly deleted and recreated during installation, but not the waptserver service.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

October 12, 2018 - 1:19 PM

Can you try rebooting the server?.

Sometimes the waptserver service is checked for deletion but remains (a ghost service)

So after rebooting, you need to try a new installation



Alternatively, can you launch:

Code: Select all

c:\wapt\waptpython.exe c:\wapt\waptserver\winsetup.py -ldebug  install_waptserver -c c:\wapt\conf\waptserver.ini
Christophe
Messages: 85
Registration: June 5, 2018 - 8:31 AM
Location: Arras (62)
Contact :

October 12, 2018 - 2:42 PM

Thanks for the tip, sfonteneau.

I successfully installed version 1.6.

However, when I connect to the server address from a browser, I get:
WAPT server version: 1.6.2.7
WAPT agent version: 1.6.2.7
WAPT Setup version: 1.3.13.0
WAPT Deploy version: 1.6.2.7
Database status: OK (1.6.2.4)

I don't understand why WAPT Setup is still showing as 1.3.13?
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

October 12, 2018 - 4:54 PM

Christophe wrote: Oct 12, 2018 - 2:42 PM Thanks for the tip, sfonteneau.

I successfully installed version 1.6.

However, when I connect to the server address from a browser, I get:
WAPT server version: 1.6.2.7
WAPT agent version: 1.6.2.7
WAPT Setup version: 1.3.13.0
WAPT Deploy version: 1.6.2.7
Database status: OK (1.6.2.4)

I don't understand why I still have WAPT Setup at 1.3.13?
If you are using a Windows version of the WAPT server, there is no need to update the waptsetup.exe file

Indeed, it's often the server that builds the agent. So it's normal; you can even delete the waptsetup.exe file

Simon
impulse
Messages: 4
Registration: Oct 08, 2018 - 09:06

October 15, 2018 - 9:00 AM

It's resolved, thank you sfonteneau ;)
Roman
Messages: 4
Registration: Oct 05, 2018 - 11:07

October 15, 2018 - 2:30 PM

sfonteneau wrote: Oct 12, 2018 - 1:19 PM Can you try rebooting the server?.

Sometimes the waptserver service is checked for deletion but remains (a ghost service)

So after rebooting, you need to try a new installation



Alternatively, can you launch:

Code: Select all

c:\wapt\waptpython.exe c:\wapt\waptserver\winsetup.py -ldebug  install_waptserver -c c:\wapt\conf\waptserver.ini
Thank you very much, it works for me too thanks to the command.
User avatar
dcardon
WAPT Expert
Messages: 1930
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 15, 2018 - 7:31 PM

Hello Romain,
Romain wrote: Oct 15, 2018 - 2:30 PM
sfonteneau wrote: Oct 12, 2018 - 1:19 PM Can you try rebooting the server?.

Sometimes the waptserver service is checked for deletion but remains (a ghost service)

So after rebooting, you need to try a new installation



Alternatively, can you launch:

Code: Select all

c:\wapt\waptpython.exe c:\wapt\waptserver\winsetup.py -ldebug  install_waptserver -c c:\wapt\conf\waptserver.ini
Thank you very much, it works for me too thanks to the command.
After your feedback, it seems that there is a "race condition" between stopping, deleting, and then recreating the waptserver service (the corresponding python file has been renamed from waptserver/waptserver.py to waptserver/server.py in the nssm conf).

I'll talk to Hubert about adding a timer and a check in the installer to prevent this from happening.

Thank you for your feedback, I'm closing the topic.

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
root2.0
Messages: 6
Registration: June 18, 2018 - 11:35

November 8, 2018 - 2:44 PM

Thanks, it's working again with your
reinstallation
@cidflash
Messages: 5
Registration: Oct 25, 2019 - 08:45

November 9, 2019 - 4:49 PM

Good morning,

I got the same error message with the waptservice not existing… Despite the magic command that works for everyone else, it didn't work for me! Here's the code below:

Code: Select all

C:\Windows\system32>c:\wapt\waptpython.exe c:\wapt\waptserver\winsetup.py -ldebug  install_waptserver -c c:\wapt\conf\waptserver.ini
Installing WAPT Server as a service managed by nssm
install waptserver
2019-11-09 16:43:36,674 INFO Register service "WAPTServer" with nssm
2019-11-09 16:43:36,674 INFO running command : "c:\wapt\waptservice\win64\nssm.exe" install "WAPTServer" "c:\wapt\waptpython.exe" "c:\wapt\waptserver\server.py"
2019-11-09 16:43:36,861 INFO Register dependencies for service "WAPTServer" with nssm : WAPTPostgresql
2019-11-09 16:43:36,861 INFO running command : "c:\wapt\waptservice\win64\nssm.exe" set "WAPTServer" DependOnService WAPTPostgresql
Traceback (most recent call last):
  File "c:\wapt\waptserver\winsetup.py", line 549, in <module>
    install_waptserver_service(options,conf)
  File "c:\wapt\waptserver\winsetup.py", line 422, in install_waptserver_service
    install_windows_nssm_service('WAPTServer',service_binary,service_parameters,service_logfile,service_dependencies)
  File "c:\wapt\waptserver\winsetup.py", line 168, in install_windows_nssm_service
    setuphelpers.run(cmd)
  File "c:\wapt\setuphelpers.py", line 1068, in run
    raise CalledProcessErrorOutput(proc.returncode,cmd,''.join(output))
setuphelpers.CalledProcessErrorOutput: Command '"c:\\wapt\\waptservice\\win64\\nssm.exe" set "WAPTServer" DependOnService WAPTPostgresql' returned non-zero exit status 6.
Output:Impossible d'ouvrir le service!
OpenService(): Le service sp├®cifi├® nÔÇÖexiste pas en tant que service install├®.

WAPTPostgresql: Le service de d├®pendance nÔÇÖexiste pas ou a ├®t├® marqu├® pour suppression.
Erreur ├á l'├®criture du param├¿tre "DependOnService" du service "WAPTServer"!


C:\Windows\system32>
Do you have any further ideas?

THANKS
Locked