Ask Your Question
0

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at 'String'

asked 2017-11-06 06:43:20 -0600

updated 2017-11-06 14:15:49 -0600

DarylW gravatar image

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at 'String'; expected ')' at /etc/puppet/modules/java/manifests/init.pp:49

I am using 3.8.7

Below is my site.pp

class { 'java' :
        package => 'java-1.6.0-openjdk-devel',
}
tomcat::install { '/opt/tomcat':
source_url => 'https://archive.apache.org/dist/tomcat/tomcat-6/v6.0.35/bin/apache-tomcat-6.0.35.tar.gz',
}
tomcat::instance { 'default':
        catalina_home => '/opt/tomcat',
}
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-11-06 09:14:47 -0600

csharpsteen gravatar image

updated 2017-11-06 14:16:13 -0600

DarylW gravatar image

The error is coming from Puppet 4 type hints that were added to version 2.0.0 of the puppetlabs/java module:

https://github.com/puppetlabs/puppetl...

Version 2.0.0 of the module also dropped support for Puppet 3:

https://forge.puppet.com/puppetlabs/j...

Some options:

  • Upgrade from Puppet 3.8.7 to the latest Puppet 4.10.x or Puppet 5.x.

  • Downgrade puppetlabs/java to 1.6.0, the last release to support Puppet 3.

Puppet 3 has reached end of life, so upgrading to 4.10 or 5 is the only viable long-term solution. A workflow for the upgrade can be found here:

https://puppet.com/docs/puppet/4.10/upgrade_major_pre.html

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

Stats

Asked: 2017-11-06 06:43:20 -0600

Seen: 25 times

Last updated: Nov 06