[SOLVED] Problem installing Wapt server 1.7.4 (waptcosole 504)

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
gpat
Messages: 7
Registration: August 22, 2019 - 9:00 PM

August 23, 2019 - 10:34

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".

Picture
Picture

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
Last edited by gpat on August 31, 2019 - 17:54, edited 1 time.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 23, 2019 - 6:09 PM

Is the waptserver service running?
gpat
Messages: 7
Registration: August 22, 2019 - 9:00 PM

August 25, 2019 - 10:24

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.


Picture
Thank you,

Patrick
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 25, 2019 - 10:11 PM

You can try this:

viewtopic.php?p=4981#p4981
gpat
Messages: 7
Registration: August 22, 2019 - 9:00 PM

August 26, 2019 - 11:39

Hello,

I'm still having the same problem launching the console, even though I now have the waptserver service installed using your command line

Picture

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

August 26, 2019 - 1:35 PM

And if you try this:
viewtopic.php?p=4973#p4973
gpat
Messages: 7
Registration: August 22, 2019 - 9:00 PM

August 26, 2019 - 2:17 PM

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

August 26, 2019 - 3:22 PM

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
gpat
Messages: 7
Registration: August 22, 2019 - 9:00 PM

August 26, 2019 - 4:10 PM

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

August 26, 2019 - 4:59 PM

Waptpython is installed by default.

Given your various problems, in my opinion, there's an antivirus program running that's performing cleanup...
Locked