Agent does not start on station

Share your tips or issues concerning the WAPT Console or WAPT Agent here
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
admgautier
Messages: 45
Registration: Sep 24, 2018 - 4:48 p.m.

June 2, 2022 - 09:01

Hello,

after several searches, I haven't found anything on this topic, so here's my problem:

The WAPT agent was successfully deployed via GPO, no issues there.
However, some agents don't start when the computer boots. We have to start this agent manually using the `runwaptservice` command line.

Do you know why this agent doesn't start automatically when the session is opened?

Thank you in advance for your help.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

June 2, 2022 - 09:44

Never encountered this issue.

Is the waptservice running?

Is the service paused?

Is the service set to automatic?

Is the file C:\Program Files (x86)\wapt\waptservice\win32\nssm.exe present?
smandel
Messages: 111
Registration: May 5, 2022 - 11:30

June 2, 2022 - 11:00

Hello,

I had this problem and it was caused by the "tis-schedule-wapt-upgrade-on-boot" package.
Once the task was removed, the problem was solved.
admgautier
Messages: 45
Registration: Sep 24, 2018 - 4:48 p.m.

June 2, 2022 - 4:27 PM

Hi Simon,

Yes, the Wapt Service agent is installed.

How can I tell if the service is paused? And in automatic mode?
Is the file C:\Program Files (x86)\wapt\waptservice\win32\nssm.exe present? YES.

Thanks @smandel, I'll look into that, but I don't know if the "tis-schedule-wapt-upgrade-on-boot" package is running.

I have to start the service from the command line for the agent to start.

Thanks in advance for your help.
Attachments
wapt agent.png
wapt agent.png (11.96 KB) Viewed 4925 times
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

June 2, 2022 - 5:07 PM

admgautier wrote: June 2, 2022 - 4:27 PM How can I tell if the service is paused? And in automatic mode?
In services.msc
admgautier
Messages: 45
Registration: Sep 24, 2018 - 4:48 p.m.

June 2, 2022 - 5:13 PM

The agent isn't showing up in services.msc... so it hasn't started, which is normal since that was my initial problem.

On the old machines, there's no problem; the agent starts up correctly on startup. Not on the new ones, even though it's enabled in the "Startup" service in Task Manager.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

June 2, 2022 - 5:19 PM

This means that when the WaptAgent installed, the "WaptService" failed to install.

I've seen this before when antivirus software blocks the nssm.exe file.

Nssm is a service manager in Windows.

nssm.exe has been used by viruses in the past, and as a result, some antivirus programs don't question this and block it.

However, nssm is not inherently dangerous; it all depends on what you run it.
admgautier
Messages: 45
Registration: Sep 24, 2018 - 4:48 p.m.

June 2, 2022 - 5:35 PM

What's strange is that nssm.exe is indeed present in the folder C:\Program Files (x86)\wapt\waptservice\win32\nssm.exe... so it must have installed correctly.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

June 3, 2022 - 10:55

When Simon talks about installation, he means that the service is properly registered

Does it work if you launch the service from the command line (with elevated privileges)?

Code: Select all

net start waptservice
What's in the event viewer?

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
admgautier
Messages: 45
Registration: Sep 24, 2018 - 4:48 p.m.

June 3, 2022 - 4:37 PM

Hi Denis,

When I run `net start waptservice`, I get the message: "The service name is not valid" (see attached image).

To start the WAPT agent via cmd, I usually use `runwaptservice`, and I get the same error message, but the service starts.

I don't see anything unusual in the Event Viewer. Where should I look for any information?

Thanks for your help.

Anthony
Attachments
cmd wapt run.jpg
cmd wapt run.jpg (171.72 KB) Viewed 4870 times
wapt-agent-cmd.png
wapt-agent-cmd.png (27.82 KB) Viewed 4870 times
Locked