-1

Pupppetserver service is not coming up after fresh installation. It is showing the following error

 Exception in thread "main" java.lang.ClassNotFoundException: java.nio.file.Files, compiling:(puppetlabs/puppetserver/certificate_authority.clj:1:1)
    at clojure.lang.Compiler.load(Compiler.java:7391)
    at clojure.lang.RT.loadResourceScript(RT.java:372)
......
......
    at clojure.main.main(main.java:37)
 Caused by: java.lang.ClassNotFoundException: java.nio.file.Files

The system has 2G of memory. I changed the memory settings to 1G from 2G , but the service is still not coming up.

  JAVA_ARGS="-Xms1g -Xmx1g -XX:MaxPermSize=256m"

  $ cat /etc/redhat-release
  CentOS release 6.7 (Final)

  $ rpm -q puppetserver
   puppetserver-2.7.2-1.el6.noarch

Please suggest.

Zama Ques
  • 523
  • 1
  • 9
  • 24

1 Answers1

3

It looks like you are trying to run the puppetmaster using Java 6, and it needs a more recent version. Install a newer version of java ( yum install java-1.8.0-openjdk-headless ) and try again.

Laikulo
  • 300
  • 1
  • 4