Page 1 of 2
[SOLVED] Problem installing Wapt server 1.7.4 (waptcosole 504)
Published: August 23, 2019 - 10:34
by gpat
Hello,
I'm not sure whether to create a new post or use an existing one, but I'm trying a new request.
Following the installation of Wapt 1.7.4.6165 on a Windows Server 2012, I can't launch the Wapt console.
To give you some background, I had a Wapt 1.5.21 system on another Windows Server 2012 that worked perfectly until it crashed. I had to rebuild another Server 2012 on different hardware, but with the new version of Wapt.
The installation goes smoothly until I try to connect to the console.
The waptnginx and waptservices services are running.
I only have ports 80 and 443 open for waptserver.
I'm getting the error: "Error on Wapt server
HTTP 1.1 504 Gateway Time-out".
I should also mention that I tried reverting to version 1.5.21 and I also had a connection problem with the waptconsole (same error). So, I might as well use the latest release.
Thank you in advance for your solutions, as I use it extensively to deploy applications in my lab and I'd like to continue using it.
Patrick
Re: Problem installing Wapt server 1.7.4 (waptcosole 504)
Published: August 23, 2019 - 6:09 PM
by sfonteneau
Is the waptserver service running?
Re: Problem installing Wapt server 1.7.4 (waptcosole 504)
Published: August 25, 2019 - 10:24
by gpat
Hello,
I have the WaptService and WaptNginx services
running, but I don't know if there's a WaptServer that needs to be started, and if so, how to start it manually and/or find it, since nothing else was added during installation.

Thank you,
Patrick
Re: Problem installing Wapt server 1.7.4 (waptcosole 504)
Published: August 25, 2019 - 10:11 PM
by sfonteneau
Re: Problem installing Wapt server 1.7.4 (waptcosole 504)
Published: August 26, 2019 - 11:39
by gpat
Hello,
I'm still having the same problem launching the console, even though I now have the waptserver service installed using your command line
and the resulting installation file (with an error at the end)
is: c:\wapt\waptpython.exe c:\wapt\waptserver\winsetup.py -ldebug install_waptserver
-cc:\wapt\conf\waptserver.ini
Installing WAPT Server as a service managed by nssm
install waptserver
2019-08-26 10:58:00,630 INFO Register service "WAPTServer" with nssm
2019-08-26 10:58:00,630 INFO running command : "c:\wapt\waptservice\win64\nssm.exe
" install "WAPTServer" "c:\wapt\waptpython.exe" "c:\wapt\waptserver\server.py"
2019-08-26 10:58:00,661 INFO Register dependencies for service "WAPTServer" with
nssm: WAPTPostgresql
2019-08-26 10:58:00,663 INFO running command: "c:\wapt\waptservice\win64\nssm.e
xe" set "WAPTServer" DependOnService WAPTPostgresql
Traceback (most recent call last):
File "c:\wapt\waptserver\winsetup.py", line 544, in
install_waptserver_service(options,conf)
File "c:\wapt\waptserver\winsetup.py", line 417, in install_waptserver_service
install_windows_nssm_service('WAPTServer',service_binary,service_parameters,
service_logfile,service_dependencies)
File "c:\wapt\waptserver\winsetup.py", line 167, in install_windows_nssm_servi
ce
setuphelpers.run(cmd)
File "c:\wapt\setuphelpers.py", line 1061, in run
raise CalledProcessErrorOutput(proc.returncode,cmd,''.join(output))
setuphelpers.CalledProcessErrorOutput: Command '"c:\\wapt\\waptservice\\win64\\n
ssm.exe" set "WAPTServer" DependOnService WAPTPostgresql' returned Non-zero exit
status 6.
Output: Unable to open the service!
OpenService(): The service sp+®cifi+® does not exist as a service install+
®.
WAPTPostgresql: The dependency service does not exist or has been marked for
deletion.
Error writing parameter "DependOnService" for service "WAPTServer"!
At this point, I'm completely lost; I really don't know why the web server won't work.
I'll test all the suggestions, as this is becoming somewhat urgent for us.
Thanks,
Patrick
Re: Problem installing Wapt server 1.7.4 (waptcosole 504)
Published: August 26, 2019 - 1:35 PM
by sfonteneau
Re: Problem installing Wapt server 1.7.4 (waptcosole 504)
Published: August 26, 2019 - 2:17 PM
by gpat
I tried, but I couldn't find the wapttask and waptpostgresql services.
Are they necessary?
During installation, it doesn't create the waptserver service (which I have to manually set up), nor wapttask and waptpostgresql.
So I'm still getting error 504.
Any other ideas?
Re: Problem installing Wapt server 1.7.4 (waptcosole 504)
Published: August 26, 2019 - 3:22 PM
by sfonteneau
Since the normal installation doesn't work, you can run:
Code: Select all
c:\wapt\waptpython.exe c:\wapt\waptserver\winsetup.py -ldebug install_waptserver -c c:\wapt\conf\waptserver.ini
c:\wapt\waptpython.exe c:\wapt\waptserver\winsetup.py -ldebug install_postgresql -c c:\wapt\conf\waptserver.ini
c:\wapt\waptpython.exe c:\wapt\waptserver\winsetup.py -ldebug install_nginx -c c:\wapt\conf\waptserver.ini
Then
Code: Select all
net start waptservice
net start waptpostgresql
net start waptserver
net start wapttasks
Re: Problem installing Wapt server 1.7.4 (waptcosole 504)
Published: August 26, 2019 - 4:10 PM
by gpat
I can't find waptpython.exe. Is it an external executable, or do I need to do a normal installation and then run your commands?
Re: Problem installing Wapt server 1.7.4 (waptcosole 504)
Published: August 26, 2019 - 4:59 PM
by sfonteneau
Waptpython is installed by default.
Given your various problems, in my opinion, there's an antivirus program running that's performing cleanup...