Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rundeck not starting #372

Open
daylicron opened this issue Feb 14, 2018 · 0 comments
Open

Rundeck not starting #372

daylicron opened this issue Feb 14, 2018 · 0 comments

Comments

@daylicron
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.10
  • Ruby: not installed on Rundeck Server
  • Distribution: CentOS 7.4.1708
  • Module version: 5.1.0

How to reproduce (e.g Puppet code you use)

{
  #### Definition Parameter
  $framework_config = {
    'framework.server.name'     => $facts[fqdn],
    'framework.server.hostname' => $facts[fqdn],
    'framework.server.port'     => '443',
    'framework.server.url'      => "http://${url}:443",
    'framework.server.username' => $username,
    'framework.server.password' => $password,
    'rdeck.base'                => '/opt/rundeck',
    'framework.projects.dir'    => '/opt/rundeck/projects',
    'framework.etc.dir'         => '/etc/rundeck',
    'framework.var.dir'         => '/opt/rundeck/var',
    'framework.tmp.dir'         => '/opt/rundeck/var/tmp',
    'framework.logs.dir'        => '/var/log/rundeck',
    'framework.libext.dir'      => '/opt/rundeck/libext',
    'framework.ssh.keypath'     => '/etc/rundeck/.ssh/id_rsa',
    'framework.ssh.user'        => 'deploy',
    'framework.ssh.timeout'     => '0',
    'rundeck.server.uuid'       => $facts[fqdn],
  }

  #### Create Directories
  file {
    default:
      ensure => 'directory',
      owner  => 'rundeck',
      group  => 'rundeck',
      mode   => '0750',
      before => Class[ 'rundeck' ],
    ;
    '/opt/rundeck':
    ;
    '/opt/rundeck/cli':
    ;
    '/opt/rundeck/bootstrap':
    ;
  }

  #### Include Rundeck module
  class { 'rundeck':
    package_ensure      => $version,
    manage_repo         => false,
    user                => 'rundeck',
    group               => 'rundeck',
    file_keystorage_dir => '/etc/rundeck/ssl/keystore',
    key_password        => $key_password,
    keystore_password   => $keystore_password,
    truststore          => '/etc/rundeck/ssl/truststore',
    truststore_password => $truststore_password,
    framework_config    => $framework_config,
    ssl_enabled         => true,
    ssl_port            => 443,
    ssl_keyfile         => $ssl_key,
    ssl_certfile        => $ssl_cert,
  }

What are you seeing

systemctl status rundeckd.service 
● rundeckd.service - SYSV: rundeckd, providing rundeckd
   Loaded: loaded (/etc/rc.d/init.d/rundeckd; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2018-02-14 17:20:34 CET; 3min 29s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 9536 ExecStop=/etc/rc.d/init.d/rundeckd stop (code=exited, status=0/SUCCESS)
  Process: 9484 ExecStart=/etc/rc.d/init.d/rundeckd start (code=exited, status=0/SUCCESS)
 Main PID: 9492 (code=exited, status=1/FAILURE)

Feb 14 17:20:34 hostname systemd[1]: Starting SYSV: rundeckd, providing rundeckd...
Feb 14 17:20:34 hostname rundeckd[9484]: Starting rundeckd: [  OK  ]
Feb 14 17:20:34 hostname systemd[1]: Started SYSV: rundeckd, providing rundeckd.
Feb 14 17:20:34 hostname systemd[1]: rundeckd.service: main process exited, code=exited, status=1/FAILURE
Feb 14 17:20:34 hostname rundeckd[9536]: Stopping rundeckd: [FAILED]
Feb 14 17:20:34 hostname systemd[1]: Unit rundeckd.service entered failed state.
Feb 14 17:20:34 hostname systemd[1]: rundeckd.service failed.

What behaviour did you expect instead

Rundeck starting successfully

Output log

From /var/log/rundeck/service.log:
Error: Could not find or load main class .opt.rundeck

Any additional information you'd like to impart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant