WaptServer crashes unexpectedly on Debian

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
Fabien LAMAISON
Messages: 4
Registration: March 21, 2017 - 09:11

March 21, 2017 - 09:33

Hello everyone,

I've been testing Wapt for about a week now using a Debian VM I recently installed for this purpose. Everything works perfectly, but the Wapt server keeps stopping unexpectedly, and I have to restart it using /etc/init.d/waptserver restart (or start).
I checked the log file, but there wasn't much information. I've included the log at the end of this post. I had to restart the service at 7:35 AM and then again at 8:11 AM. Sometimes everything works fine for the day and then stops in the evening. Other times, I have to restart the service three times during the day (when I realize it's stopped running; I'm not constantly using it). I checked the sleep settings and disabled them. I restarted the VM several times to verify, but there was no change. The service starts correctly with the machine and then stops after a while.

I admit to having rather limited knowledge of Linux to know how to find the cause of the process stopping, does anyone have any idea where to look?

As additional information, the VM has 2 cores, 1GB of RAM and 80GB of HDD, I think that's enough to ensure distribution across 30-35 client workstations (currently only 15 workstations connected)?

Thank you in advance for your help.

Code: Select all

*** Starting uWSGI 2.0.7-debian (64bit) on [Tue Mar 21 07:35:06 2017] ***
compiled with version: 4.9.1 on 25 October 2014 19:17:54
os: Linux-3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07)
nodename: serveur-wapt
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 2
current working directory: /
writing pidfile to /var/run/waptserver.pid
detected binary path: /usr/bin/uwsgi-core
setgid() to 33
setuid() to 117
your processes number limit is 3908
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to TCP address 127.0.0.1:8080 fd 3
Python version: 2.7.9 (default, Jun 29 2016, 13:11:10)  [GCC 4.9.2]
Python main interpreter initialized at 0xb4e6d0
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 1237056 bytes (1208 KB) for 16 cores
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 3 seconds on interpreter 0xb4e6d0 pid: 21354 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 21354)
spawned uWSGI worker 1 (pid: 21379, cores: 1)
spawned uWSGI worker 2 (pid: 21380, cores: 1)
spawned uWSGI worker 3 (pid: 21381, cores: 1)
spawned uWSGI worker 4 (pid: 21382, cores: 1)
spawned uWSGI worker 5 (pid: 21383, cores: 1)
spawned uWSGI worker 6 (pid: 21384, cores: 1)
spawned uWSGI worker 7 (pid: 21385, cores: 1)
spawned uWSGI worker 8 (pid: 21386, cores: 1)
spawned uWSGI worker 9 (pid: 21387, cores: 1)
spawned uWSGI worker 10 (pid: 21388, cores: 1)
spawned uWSGI worker 11 (pid: 21389, cores: 1)
spawned uWSGI worker 12 (pid: 21390, cores: 1)
spawned uWSGI worker 13 (pid: 21391, cores: 1)
spawned uWSGI worker 14 (pid: 21392, cores: 1)
spawned uWSGI worker 15 (pid: 21393, cores: 1)
spawned uWSGI worker 16 (pid: 21394, cores: 1)
*** Starting uWSGI 2.0.7-debian (64bit) on [Tue Mar 21 08:11:00 2017] ***
compiled with version: 4.9.1 on 25 October 2014 19:17:54
os: Linux-3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07)
nodename: serveur-wapt
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 2
current working directory: /home/fabien
writing pidfile to /var/run/waptserver.pid
detected binary path: /usr/bin/uwsgi-core
setgid() to 33
setuid() to 117
your processes number limit is 3908
your memory page size is 4096 bytes
detected max file descriptor number: 65536
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to TCP address 127.0.0.1:8080 fd 3
Python version: 2.7.9 (default, Jun 29 2016, 13:11:10)  [GCC 4.9.2]
Python main interpreter initialized at 0x2596440
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 1237056 bytes (1208 KB) for 16 cores
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x2596440 pid: 21504 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 21504)
spawned uWSGI worker 1 (pid: 21509, cores: 1)
spawned uWSGI worker 2 (pid: 21510, cores: 1)
spawned uWSGI worker 3 (pid: 21511, cores: 1)
spawned uWSGI worker 4 (pid: 21512, cores: 1)
spawned uWSGI worker 5 (pid: 21513, cores: 1)
spawned uWSGI worker 6 (pid: 21514, cores: 1)
spawned uWSGI worker 7 (pid: 21515, cores: 1)
spawned uWSGI worker 8 (pid: 21516, cores: 1)
spawned uWSGI worker 9 (pid: 21517, cores: 1)
spawned uWSGI worker 10 (pid: 21518, cores: 1)
spawned uWSGI worker 11 (pid: 21519, cores: 1)
spawned uWSGI worker 12 (pid: 21520, cores: 1)
spawned uWSGI worker 13 (pid: 21521, cores: 1)
spawned uWSGI worker 14 (pid: 21522, cores: 1)
spawned uWSGI worker 15 (pid: 21523, cores: 1)
spawned uWSGI worker 16 (pid: 21524, cores: 1)
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 22, 2017 - 08:31

Is it a Debian system with a graphical environment?
Fabien LAMAISON
Messages: 4
Registration: March 21, 2017 - 09:11

March 22, 2017 - 09:00

Indeed, with the default graphical environment
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 22, 2017 - 10:00

Hello

, as indicated in the documentation

https://www.wapt.fr/fr/doc/Installation ... index.html,

the graphical environment must be disabled;

I advise you to reinstall Debian without a graphical environment.
Fabien LAMAISON
Messages: 4
Registration: March 21, 2017 - 09:11

March 23, 2017 - 08:03

OK, I hadn't noticed that...

I uninstalled GMD3:

Code: Select all

apt-get remove --auto-remove gdm3
apt-get purge --auto-remove gdm3
The problem persists, I'm going to have to reset and reinstall... Ugh!!
Silly question, but does reinstalling the server necessarily mean generating a new certificate, or can I reuse the certificates generated previously?
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 23, 2017 - 11:54

Hello,

no, you absolutely must not regenerate a new certificate :o , otherwise you will have to redeploy your new public key on all your machines!

Simon
Fabien LAMAISON
Messages: 4
Registration: March 21, 2017 - 09:11

March 25, 2017 - 10:41

Hello everyone,

after reinstalling everything is OK. I regenerated my agent with the existing certificate, I successfully reused the same hash for the installation, and my workstations reconnected automatically. I re-imported my packages into my repository, and everything is working correctly.

So, thank you for the reminder: please read the tutorials carefully before starting... :oops:
User avatar
vcardon
WAPT Expert
Messages: 278
Registration: Oct 06, 2017 - 10:55 p.m.
Location: Nantes, France

October 7, 2017 - 12:25 AM

sfonteneau wrote: March 22, 2017 - 10:00 AM Hello

As indicated in the documentation

https://www.wapt.fr/fr/doc/Installation ... index.html

The graphical environment must be deactivated;
Simon, in the documentation, could you add a warning block to highlight the fact that Debian must be installed without a graphical interface because graphical interfaces mess up network settings (it's a bit like browsers today that redirect you to a search engine when you've typed a good URL, it's just annoying)

Vincent
Vincent CARDON
Tranquil IT
fludo67
Messages: 21
Registration: Sep 13, 2016 - 2:23 p.m.

November 30, 2017 - 4:28 PM

Good morning,

Without having to reinstall the entire server, does restarting the server in runlevel 3 (network mode, without a graphical server) work? (Type `init 3` in a terminal window; this will take you to the command-line console.)

To force the server to start in runlevel3, you can type the following command in a terminal window (root account):

Code: Select all

sudo systemctl set-default runlevel3.target 
Locked