" /> Services Shows Stopped in windows whereas in SCI it is showing up and Running. - Genesys CTI User Forum

Author Topic: Services Shows Stopped in windows whereas in SCI it is showing up and Running.  (Read 6504 times)

Offline kamalnba

  • Newbie
  • *
  • Posts: 35
  • Karma: 0
Advertisement
Hi All,

I have bit confused we have one server where we have multiple DB servers and on stat server. In SCI DB server & Stat server applications are showing started whereas in Services Shows manual and Stopped state.

Applications are working fine but it is bit confusing. What is the logic behind it.

From CME command line has a Batch file address which has same location as mentioned in Path to executable in services.

Can somebody help and please explain how this working?

Thanks
Kamal Goswami
« Last Edit: June 07, 2015, 03:53:20 PM by kamalnba »

Adam G

  • Guest
If SCI/SCS is mis-reporting the status of an Application running on a Server, you should check that the Local Control Agent (LCA) is running on the same Server and that it is reporting the status of all Applications correctly.  Also check that the "path" you have in CME/CIM corresponds with the Executable on the Server - perhaps use another "working" Application on the same Server to compare with it.

If you don't use SCI to Start/Stop an Application it may not effectively capture the Applications' Status.

Best Practice is to use SCI to Start/Stop Platform Applications - not Batch files or Local/OS Commands.

If you want to "fix" it, irrespective of the State of your Application; Hit "Stop" in SCI and then wait at least 15 minutes before hitting "Start" again.  If that doesn't fix it, restart LCA and repeat this process.  If that doesn't work, restart the Server, completely.

« Last Edit: June 08, 2015, 07:57:00 AM by adamgill »

Offline kamalnba

  • Newbie
  • *
  • Posts: 35
  • Karma: 0
Thanks adam for your valuable inputs... In actual situation is that genesys application on server is running fine and it shows correct status in SCI but when I go to services.msc same services is showing stopped and in manual mode...

Sent from my SM-N910C using Tapatalk


Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
And the services, which are in "stopped" state, appear within CME as running/started?

Adam G

  • Guest
[quote author=kamalnba link=topic=8897.msg39735#msg39735 date=1433769575]
Thanks adam for your valuable inputs... In actual situation is that genesys application on server is running fine and it shows correct status in SCI but when I go to services.msc same services is showing stopped and in manual mode...

Sent from my SM-N910C using Tapatalk
[/quote]

Then I can't see how this is a Genesys problem?

Offline kamalnba

  • Newbie
  • *
  • Posts: 35
  • Karma: 0
It may not be genesys one... but very confused if application services is showing stopped but in SCI it is showing started. Not sure how to check if it is running in background and not showing in services.

Sent from my SM-N910C using Tapatalk


Offline kamalnba

  • Newbie
  • *
  • Posts: 35
  • Karma: 0
@kubig yes in services it is showing stopped but in SCI it running and started. Is there a way to check if it is working background but not showing in services. Tried 'sc query' it doesn't shows the genesys services running...

Sent from my SM-N910C using Tapatalk


Adam G

  • Guest
If it is showing as [i]Started [/i]in SCI - and it [i]is [/i]Started. And if it is showing as [i]Stopped [/i]in SCI - and it[i] is [/i]Stopped... then use SCI to confirm the running status.

Otherwise, you need to troubleshoot Windoze .msc Services, not Genesys.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
It can be caused by incorrect configuration of application startup properties, where the service name should be defined. If the name of the service will be incorrect, the service will not run, but you will be able to start the application itself manually. As first, check the configuration or .bat files and find out if the service name are equals.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
App can be running as BAT (usually used for debug purposes) and service stopped.
Then SCI sees app running correctly but not as Windows service.

I found on some 3rd party installations they left running processes like this because they couldn't make it work as service (always a configuration error). So they left a nice black screen running waiting for someone to close it...


Adam G

  • Guest
As Kubig says, plus....

Check how the Application [i]Template [/i]was introduced in CME/CIM - make sure you have the right Version and Application - and make sure you didn't use the wrong Template!

Offline kamalnba

  • Newbie
  • *
  • Posts: 35
  • Karma: 0
Looks like what cavagnaro is saying making more sense for this... installation is done by somebody else and now when I check application is working fine and service status is correct in SCI whereas in services it shows manual stopped.

Not sure how this works. Can you please share if you have this information somewhere more elaborated.

Thanks Adam kubig as well for valuable remarks... :)

Sent from my SM-N910C using Tapatalk


Adam G

  • Guest
The Application(s) should be set to run as a Service, so that msc can show it.  The Service name is set within the Options of the Application, in CME/CIM.  When you start/stop in SCS/SCI, the Service name should be reflected in msc., because the Application is running as a Service.  Check your Application settings in CME/CIM.

cav says; if you start/stop the Application through a .bat file, the Service Name may not be applied, so msc may not report it correctly.  If you run it directly as an executable, unless you also start it with /switch Options to apply a Service Name, it will definitely not be running as a Service and msc will mis-report it.  Check how the App is stopped/started locally and make sure the Service name you are using is the same as the one in use within CIM/CME.

I [i]think [/i]that's about it...

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Basically for us, good installers, but I have found in years of installation some shitty installations where only could start app as BAT but not as service. Java related stuff usually.
So I needed to fix server to app start and keep running as service.
Easy way is to see tasks running on your server and search for the main exe. Probably will be there loaded on some session.

Offline kamalnba

  • Newbie
  • *
  • Posts: 35
  • Karma: 0
Hey thanks all for your guidance. Quick question: how I can find services running as a batch file on windows 2003?

Sent from my SM-N910C using Tapatalk