Page 2 of 2

Re: Error on server 1.6

Published: October 12, 2018 - 11:42 AM
by sfonteneau
Could it be an antivirus blocking the installation?

Re: Error on server 1.6

Published: October 12, 2018 - 12:18 PM
by Romain
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.

Re: Error on server 1.6

Published: October 12, 2018 - 1:19 PM
by sfonteneau
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

Re: Error on server 1.6

Published: October 12, 2018 - 2:42 PM
by Christophe
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?

Re: Error on server 1.6

Published: October 12, 2018 - 4:54 PM
by sfonteneau
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

Re: Error on server 1.6

Published: October 15, 2018 - 09:00
by impulse
It's resolved, thank you sfonteneau ;)

Re: Error on server 1.6

Published: October 15, 2018 - 2:30 PM
by Romain
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.

Re: Error on server 1.6

Published: October 15, 2018 - 7:31 PM
by dcardon
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

Re: [RESOLVED] Error on server 1.6

Published: November 8, 2018 - 2:44 PM
by root2.0
Thanks, it's working again with your
reinstallation

Re: [RESOLVED] Error on server 1.6

Published: November 9, 2019 - 4:49 PM
by @cidflash
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