Ask Your Question
0

I am looking for good documentation on the following error. "pe-razor-server.service failed to run 'start' task: No such file or directory" Razor worked fine for 2017.1 -> upgrade to 2017.2.1 -> Razor will not restart.

asked 2017-06-20 06:52:53 -0600

greynolds gravatar image

Notice: /Stage[main]/Perazor/Perazor::Server[razor]/Perazor::Server::Torquebox[razor]/File[/opt/puppetlabs/server/apps/razor-server/share/torquebox/jboss/standalone/configuration/standalone.xml]/content: content changed '{md5}35c86c34b69379823ead6d3909ab63c5' to '{md5}06fd9244e85c5adc95ee6a7b567f49c7' Notice: /Stage[main]/Perazor/Perazor::Server[razor]/Perazor::Server::Torquebox[razor]/Exec[deploy the razor application to torquebox]/returns: executed successfully Error: Systemd start for pe-razor-server failed! journalctl log for pe-razor-server: -- Logs begin at Mon 2017-06-19 16:35:00 PDT, end at Tue 2017-06-20 04:42:23 PDT. -- Jun 20 04:42:23 razor.prod.localdomain systemd[1]: Failed to load environment files: No such file or directory Jun 20 04:42:23 razor.prod.localdomain systemd[1]: pe-razor-server.service failed to run 'start' task: No such file or directory Jun 20 04:42:23 razor.prod.localdomain systemd[1]: Failed to start Puppet Enterprise Razor Server. Jun 20 04:42:23 razor.prod.localdomain systemd[1]: pe-razor-server.service failed. Jun 20 04:42:23 razor.prod.localdomain systemd[1]: Starting Puppet Enterprise Razor Server...

Error: /Stage[main]/Perazor/Perazor::Server[razor]/Service[pe-razor-server]/ensure: change from stopped to running failed: Systemd start for pe-razor-server failed! journalctl log for pe-razor-server: -- Logs begin at Mon 2017-06-19 16:35:00 PDT, end at Tue 2017-06-20 04:42:23 PDT. -- Jun 20 04:42:23 razor.prod.localdomain systemd[1]: Failed to load environment files: No such file or directory Jun 20 04:42:23 razor.prod.localdomain systemd[1]: pe-razor-server.service failed to run 'start' task: No such file or directory Jun 20 04:42:23 razor.prod.localdomain systemd[1]: Failed to start Puppet Enterprise Razor Server. Jun 20 04:42:23 razor.prod.localdomain systemd[1]: pe-razor-server.service failed. Jun 20 04:42:23 razor.prod.localdomain systemd[1]: Starting Puppet Enterprise Razor Server...

edit retag flag offensive close merge delete

Comments

I don't see many changes from 2017.1 to 2017.2.1 in the changelogs for razor except for a few added tasks. Is there anything in the razor logs them self? Prob in /var/log/pe-razor-server/.. ?

negast gravatar imagenegast ( 2017-06-21 07:22:58 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-09-01 22:53:01 -0600

greynolds gravatar image

I should have updated this over a month ago, sorry for the late response. The upgrade from 2017.1 to 2017.2, which I think I over looked, has an increase in the use of Java. Not sure how much but without increasing the physical memory of the razor-server it caused the torquebox configuration not to migrate correctly. During installation, if the migration does not occur the openJDK server will not start.

Root cause -> insufficient memory on the razor server to instal pe-razor-server. Solution -> increase memory by 4GB (total 10GB -> virtual)

It now works correctly!

JAVA=/opt/puppetlabs/server/bin/java JAVA_OPTS="-Xms128m -Xmx1024m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true" register-node reinstall-node remove-node-metadata remove-policy-tag run-hook set-node-desired-power-state set-node-hw-info set-node-ipmi-credentials update-broker-configuration update-hook-configuration update-node-metadata update-policy-broker update-policy-node-metadata update-policy-repo update-policy-task update-repo-task update-tag-rule

  Pass arguments to commands either directly by name ('--name=NAME')
  or save the JSON body for the  command  in a file and pass it with
  '--json FILE'.  Using --json is the only way to pass  arguments in
  nested structures such as the configuration for a broker.

pe-razor 53160 1.7 12.4 4853520 747192 ? Sl 18:00 2:49 /opt/puppetlabs/server/bin/java -D[Standalone] -server -XX:+UseCompressedOops -Xms128m -Xmx1024m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.boot.log.file=/var/log/puppetlabs/razor-server/server.log -Dlogging.configuration=file:/opt/puppetlabs/server/apps/razor-server/share/torquebox/jboss/standalone/configuration/logging.properties -jar /opt/puppetlabs/server/apps/razor-server/share/torquebox/jboss/jboss-modules.jar -mp /opt/puppetlabs/server/apps/razor-server/share/torquebox/jboss/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=/opt/puppetlabs/server/apps/razor-server/share/torquebox/jboss -Djboss.server.base.dir=/opt/puppetlabs/server/apps/razor-server/share/torquebox/jboss/standalone -Djboss.server.log.dir=/var/log/puppetlabs/razor-server -Dhttp.port=8150 -Dhttps.port=8151 -b 0.0.0.0

gems instaled

colored-1.2.gem multijson-1.11.2.gem commandlinereporter-3.3.6.gem pe-razor-client-1.1.0.gem jsonpure-2.0.3.gem rest-client-1.6.9.gem mime-types-1.25.1.gem

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: 2017-06-20 06:52:53 -0600

Seen: 174 times

Last updated: Sep 01