Agent service stops immediately after starting

  • 222Views
  • Last Post 04 May 2022
0
votes
Niels Rossel posted this 02 May 2022

Normally installing Skyvia is a breeze. Install Skyvia, create the security key file, install Skyvia as service and then start the service.

However, this time the Skyvia service won't run. After starting the service, it STOPS IMMEDIATELY.

I can start Skyvia manually without issue:

 

Logging also says installing as service was correct:

Installing service Skyvia.Agents.Client...

Service Skyvia.Agents.Client has been successfully installed.

Creating EventLog source Skyvia.Agents.Client in log Application...

Committing assembly 'C:\Program Files (x86)\Skyvia Agent\Skyvia.Agent.Client.exe'.

Affected parameters are:

   logtoconsole = 

   logfile = C:\Program Files (x86)\Skyvia Agent\Skyvia.Agent.Client.InstallLog

   assemblypath = C:\Program Files (x86)\Skyvia Agent\Skyvia.Agent.Client.exe

 

I also saw this post: https://support.skyvia.com/thread/run-agent-as-a-service/

But the two listed cases are not at play here:

Such an issue may occur in the following cases:

- agent s already installed as a service;

- you are running this command in the wrong directory (the command has to be performed in the folder where the agent is installed.).

Skyvia was not present and did stop immediately after first installation
The commandline has been ran from the appropiate directory:

C:\Program Files (x86)\Skyvia Agent\Skyvia.Agent.Client.exe -i

 

I had a case almost similar like this before, but that was caused by the security key not named properly (skyvia_security_agent.key.txt instead of skyvia_security_agent.key)
In this case, Skyvia couldn't start manually either.

But this case is new. 

Things we tried:

- Uninstall Skyvia service and reinstall it
- Create a new Security Agent key
- Install and Start the service under a different window user
- Start the service with an admin account attached to it
- No helpful Event logs, it just says that the service was stopped. No errors, no warnings
- Skyvia can be started manually and connects

And for clarification: Commandlines have been run from cmd prompt with "Run as administrator"

I have currently no more ideas what to try. Please advice.

0
votes
Olena Romanchuk posted this 04 May 2022

Hello Niels,

 

Please try the following:

Open the Start menu, search for Services, and click the top result to open the console.
Double-click Skyvia Agent service 
Click the Start button.
Use the "Start type" drop-down menu and select the Automatic option
Click the Apply button. Click the OK button.

Generally, the issue is related to local server configuration, not to Skyvia.

There is no specific recommendation on how to configure your server not to stop the service after the start.

 

You can try to search the solution here: https://www.google.com/search?q=windows+service+stops+immediately+after+starting



Best regards,

Olena

Technical Support Engineer

 

Close