Ask Your Question
0

The specified service does not exist as an installed service -Why?

asked 2018-03-14 07:05:28 -0500

Ansi gravatar image

updated 2018-03-14 09:16:17 -0500

DarylW gravatar image

I'm trying to install mysql on windows using puppet so i did the following in master.I installed mysql module from puppetforge

class mysql{  
package {'mysql':  
  ensure          => installed,  
  provider        => 'chocolatey',  
  install_options => ['-override', '-installArgs',
    '"/INSTALLDIR=""C:\Program', 'Files"""'],  
}  
service { 'mysql':  
    ensure  => true,  
    enable  => true,  
    require => Package['mysql'],  
  }

On Agent - puppet agent -t I got mysql folder on my agent but service dosen't exist and i'm getting following error

Error: /Stage[main]/Mysql/Service[mysql]: Could not evaluate: Cannot get status of mysql, error was: The specified service does not exist as an installed service. - OpenService: The specified service does not exist as an installed service.
Wrapped exception:
The specified service does not exist as an installed service. - OpenService: The specified service does not exist as an installed service.

My Master is Ubuntu 16.04

My agent is Windows Server 2016 Datacenter

MySql version is 5.7

My Puppet version is 3.8.5

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2018-03-15 00:05:29 -0500

Ansi gravatar image

mysql service is not there in services.msc

edit flag offensive delete link more
0

answered 2018-03-14 19:22:23 -0500

natemccurdy gravatar image

It's very likely that mysql is not actually the name of the service.

After installing MySQL, manually open up services.msc and look for the real name of the mysql service.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-03-14 07:05:28 -0500

Seen: 50 times

Last updated: Mar 15