[SOLVED] Installation on Windows Server 2016

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
LePoPeye
Messages: 4
Registration: January 3, 2020 - 9:47 AM

January 3, 2020 - 10:06 AM

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 :)
LePoPeye
Messages: 4
Registration: January 3, 2020 - 9:47 AM

January 3, 2020 - 10:19

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!
LePoPeye
Messages: 4
Registration: January 3, 2020 - 9:47 AM

January 3, 2020 - 11:38

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 :/
LePoPeye
Messages: 4
Registration: January 3, 2020 - 9:47 AM

January 3, 2020 - 2:36 PM

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

January 7, 2020 - 10:48 PM

The nginx configuration that waptserver installs on Windows uses port 80, even though it's not strictly necessary for wapt to function correctly :roll:
Locked