Page 1 of 1

[SOLVED] Installation on Windows Server 2016

Published: January 3, 2020 - 10:06 AM
by LePoPeye
Good morning,

After a testing phase on a basic office workstation, I am trying to validate WAPT in order to continue my tests in a pre-production environment, before I can validate WAPT for my company.

But I'm stuck on a problem for which I haven't found a solution in the forum

Code: Select all

Installing WAPT Server as a service managed by nssm
install waptserver
2020-01-03 09:58:04,226 INFO Register service "WAPTServer" with nssm
2020-01-03 09:58:04,226 INFO running command : "g:\wapt\waptservice\win64\nssm.exe" install "WAPTServer" "g:\wapt\waptpython.exe" "g:\wapt\waptserver\server.py"
2020-01-03 09:58:04,273 INFO Register dependencies for service "WAPTServer" with nssm : WAPTPostgresql
2020-01-03 09:58:04,273 INFO running command : "g:\wapt\waptservice\win64\nssm.exe" set "WAPTServer" DependOnService WAPTPostgresql
Traceback (most recent call last):
  File "g:\wapt\waptserver\winsetup.py", line 549, in <module>
    install_waptserver_service(options,conf)
  File "g:\wapt\waptserver\winsetup.py", line 422, in install_waptserver_service
    install_windows_nssm_service('WAPTServer',service_binary,service_parameters,service_logfile,service_dependencies)
  File "g:\wapt\waptserver\winsetup.py", line 168, in install_windows_nssm_service
    setuphelpers.run(cmd)
  File "g:\wapt\setuphelpers.py", line 1068, in run
    raise CalledProcessErrorOutput(proc.returncode,cmd,''.join(output))
setuphelpers.CalledProcessErrorOutput: Command '"g:\\wapt\\waptservice\\win64\\nssm.exe" set "WAPTServer" DependOnService WAPTPostgresql' returned non-zero exit status 6.
Output:Can't open service!
OpenService(): The specified service does not exist as an installed service.

WAPTPostgresql: The dependency service does not exist or has been marked for deletion.
Error setting parameter "DependOnService" for service "WAPTServer"!
The WAPTNginx service remains paused during installation; I have to change port 80 in the Nginx.conf configuration to be able to start it (even though I don't have any other software/wsus/IIS installed)
Once restarted with a port other than 80 this service starts, but I still get a 504 error on the "WAPT Server URL" line in the console.

I've searched everywhere without success, hence my plea for help :)

Re: Installation on Windows Server 2016

Published: January 3, 2020 - 10:19 AM
by LePoPeye
I'm replying to myself in case it's helpful to someone

I launched the command:

Code: Select all

g:\wapt\waptpython.exe g:\wapt\waptserver\winsetup.py -ldebug  install_postgresql -c g:\wapt\conf\waptserver.ini
because I didn't have the service postgresq Present after a normal installation, I restarted the services and miraculously everything is OK in the console...

I can finally move on to the next step!

Re: Installation on Windows Server 2016

Published: January 3, 2020 - 11:38 AM
by LePoPeye
New problem: I can't connect to the console. I enter the correct password, but I'm redirected to the login screen. And I'm 100% sure it's the password

Code: Select all

nginx: [emerg] bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
However, I did change port 80 to another one :/

[SOLVED] Re: Installation on Windows Server 2016

Published: January 3, 2020 - 2:36 PM
by LePoPeye
Okay, so you really need to read the documentation and not try to ignore it.

You have to install WAPT with the default ports 80/443 (as written in the documentation, otherwise the installation will fail).

I was able to free up port 80, which was being used by Windows PID 4, using the command `net stop http` as administrator.

Then I restarted the console setup
> OK.
I changed port 80,
restarted the WAPT Ginx service,
restarted the console > OK.

That's great...

Re: Installation on Windows Server 2016

Published: January 7, 2020 - 10:48 PM
by sfonteneau
The nginx configuration that waptserver installs on Windows uses port 80, even though it's not strictly necessary for wapt to function correctly :roll: