Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-10443

Tomcat : Debian 10 is currently failing it's test's

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • None
    • tomcat
    • None
    • Needs Assessment

    Description

      Basic Info
      Module Version: Master
      Puppet Version: 5 + 6
      OS Name/Version: Debian 10

      The `acceptance_1b_spec.rb` file is currently failing when run against Debian 10, both locally and when run against travis. From a cursory look through the error log the failures seem to originate from failed dependencies.

      Failures:  1) Acceptance case one Initial install Tomcat and verification applies the manifest without error
           On host `localhost:2224'
           Failure/Error: idempotent_apply(pp)
           RuntimeError:
             apply manifest expected no changes
             ` puppet apply /tmp/manifest_20200114_51729_em611e.pp --detailed-exitcodes`
             ====== Start output of Puppet apply with unexpected changes ======
             Error: 'JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 configure --with-java=/usr/lib/jvm/java-7-openjdk-amd64' returned 1 instead of one of [0]
             Error: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: change from 'notrun' to ['0'] failed: 'JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 configure --with-java=/usr/lib/jvm/java-7-openjdk-amd64' returned 1 instead of one of [0]
             Warning: /Stage[main]/Jsvc/Exec[make jsvc]: Skipping because of failed dependencies
             Warning: /Stage[main]/Jsvc/File[jsvc]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Instance[tomcat_one]/File[/opt/apache-tomcat/tomcat8-jsvc]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Instance[tomcat_one]/File[/opt/apache-tomcat/tomcat8-jsvc/bin]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Instance[tomcat_one]/File[/opt/apache-tomcat/tomcat8-jsvc/conf]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Instance[tomcat_one]/File[/opt/apache-tomcat/tomcat8-jsvc/lib]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Instance[tomcat_one]/File[/opt/apache-tomcat/tomcat8-jsvc/logs]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Instance[tomcat_one]/File[/opt/apache-tomcat/tomcat8-jsvc/temp]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Instance[tomcat_one]/File[/opt/apache-tomcat/tomcat8-jsvc/webapps]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Instance[tomcat_one]/File[/opt/apache-tomcat/tomcat8-jsvc/work]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::War[war_one.war]/Archive[tomcat::war war_one.war]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::War[war_one.war]/File[tomcat::war war_one.war]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Instance[tomcat_one]/Tomcat::Instance::Copy_from_home[/opt/apache-tomcat/tomcat8-jsvc/conf/catalina.policy]/File[/opt/apache-tomcat/tomcat8-jsvc/conf/catalina.policy]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Instance[tomcat_one]/Tomcat::Instance::Copy_from_home[/opt/apache-tomcat/tomcat8-jsvc/conf/context.xml]/File[/opt/apache-tomcat/tomcat8-jsvc/conf/context.xml]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Instance[tomcat_one]/Tomcat::Instance::Copy_from_home[/opt/apache-tomcat/tomcat8-jsvc/conf/logging.properties]/File[/opt/apache-tomcat/tomcat8-jsvc/conf/logging.properties]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Instance[tomcat_one]/Tomcat::Instance::Copy_from_home[/opt/apache-tomcat/tomcat8-jsvc/conf/server.xml]/File[/opt/apache-tomcat/tomcat8-jsvc/conf/server.xml]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Instance[tomcat_one]/Tomcat::Instance::Copy_from_home[/opt/apache-tomcat/tomcat8-jsvc/conf/web.xml]/File[/opt/apache-tomcat/tomcat8-jsvc/conf/web.xml]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Config::Server[tomcat8-jsvc]/Augeas[server-/opt/apache-tomcat/tomcat8-jsvc]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Config::Server::Connector[tomcat8-jsvc]/Augeas[server-/opt/apache-tomcat/tomcat8-jsvc-Catalina-connector-80]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Config::Server::Connector[tomcat8-jsvc-8080]/Augeas[server-/opt/apache-tomcat/tomcat8-jsvc-Catalina-connector-8080]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Config::Server::Connector[tomcat8-ajp]/Augeas[server-/opt/apache-tomcat/tomcat8-jsvc-Catalina-connector-8309]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Instance[tomcat_one]/Tomcat::Service[tomcat_one]/Service[tomcat-tomcat_one]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Instance[tomcat_one]/Tomcat::Config::Properties[/opt/apache-tomcat/tomcat8-jsvc catalina.properties]/Concat[/opt/apache-tomcat/tomcat8-jsvc/conf/catalina.properties]/Concat_file[/opt/apache-tomcat/tomcat8-jsvc/conf/catalina.properties]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Instance[tomcat_one]/Tomcat::Config::Properties[/opt/apache-tomcat/tomcat8-jsvc catalina.properties]/Concat[/opt/apache-tomcat/tomcat8-jsvc/conf/catalina.properties]/File[/opt/apache-tomcat/tomcat8-jsvc/conf/catalina.properties]: Skipping because of failed dependencies
             Warning: /Stage[main]/Main/Tomcat::Instance[tomcat_one]/Tomcat::Config::Properties[/opt/apache-tomcat/tomcat8-jsvc catalina.properties]/Concat::Fragment[/opt/apache-tomcat/tomcat8-jsvc properties base file from catalina_home /opt/apache-tomcat/conf/catalina.properties]/Concat_fragment[/opt/apache-tomcat/tomcat8-jsvc properties base file from catalina_home /opt/apache-tomcat/conf/catalina.properties]: Skipping because of failed dependencies
             Notice: Compiled catalog for f180d61a0e4d in environment production in 0.62 seconds
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: *** Current host ***
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: checking build system type... x86_64-pc-linux-gnu
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: checking host system type... x86_64-pc-linux-gnu
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: checking cached host system type... ok
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: *** C-Language compilation tools ***
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: checking for gcc... gcc
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: checking whether the C compiler works... yes
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: checking for C compiler default output file name... a.out
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: checking for suffix of executables...
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: checking whether we are cross compiling... no
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: checking for suffix of object files... o
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: checking whether we are using the GNU C compiler... yes
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: checking whether gcc accepts -g... yes
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: checking for gcc option to accept ISO C89... none needed
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: checking for ranlib... ranlib
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: checking for strip... strip
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: *** Host support ***
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: checking C flags dependant on host system type... ok
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: *** Java compilation tools ***
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: checking JAVA_HOME... failed
             Notice: /Stage[main]/Jsvc/Exec[configure jsvc]/returns: configure: error: /usr/lib/jvm/java-7-openjdk-amd64 is not a directory
             Notice: /Stage[main]/Jsvc/Exec[make jsvc]: Dependency Exec[configure jsvc] has failures: true
             Notice: Applied catalog in 0.70 seconds       ====== End output of Puppet apply with unexpected changes ======     # ./.bundle/gems/ruby/2.5.0/gems/puppet_litmus-0.13.1/lib/puppet_litmus/puppet_helpers.rb:293:in `report_puppet_apply_change'
           # ./.bundle/gems/ruby/2.5.0/gems/puppet_litmus-0.13.1/lib/puppet_litmus/puppet_helpers.rb:77:in `apply_manifest'
           # ./.bundle/gems/ruby/2.5.0/gems/puppet_litmus-0.13.1/lib/puppet_litmus/puppet_helpers.rb:13:in `idempotent_apply'
           # ./spec/acceptance/acceptance_1b_spec.rb:119:in `block (3 levels) in <top (required)>'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'  2) Acceptance case one Initial install Tomcat and verification is serving a page on port 80
           On host `localhost:2224'
           Failure/Error:
             run_shell('curl --retry 10 --retry-delay 15 localhost:80/war_one/hello.jsp') do |r|
               r.stdout.should match(%r{Sample Application JSP Page})
             end
           RuntimeError:
             shell failed
             `curl --retry 10 --retry-delay 15 localhost:80/war_one/hello.jsp`
             ======
             [{"target"=>"localhost:2224", "action"=>"command", "object"=>"curl --retry 10 --retry-delay 15 localhost:80/war_one/hello.jsp", "status"=>"failure", "result"=>{"stdout"=>"", "stderr"=>"  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to localhost port 80: Connection refused\n", "exit_code"=>7, "_error"=>{"kind"=>"puppetlabs.tasks/command-error", "issue_code"=>"COMMAND_ERROR", "msg"=>"The command failed with exit code 7", "details"=>{"exit_code"=>7}}}, "node"=>"localhost:2224"}]     # ./.bundle/gems/ruby/2.5.0/gems/puppet_litmus-0.13.1/lib/puppet_litmus/puppet_helpers.rb:130:in `run_shell'
           # ./spec/acceptance/acceptance_1b_spec.rb:122:in `block (3 levels) in <top (required)>'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'  3) Acceptance case one Initial install Tomcat and verification is serving a page on port 8080
           On host `localhost:2224'
           Failure/Error:
             run_shell('curl --retry 10 --retry-delay 15 localhost:8080/war_one/hello.jsp') do |r|
               r.stdout.should match(%r{Sample Application JSP Page})
             end
           RuntimeError:
             shell failed
             `curl --retry 10 --retry-delay 15 localhost:8080/war_one/hello.jsp`
             ======
             [{"target"=>"localhost:2224", "action"=>"command", "object"=>"curl --retry 10 --retry-delay 15 localhost:8080/war_one/hello.jsp", "status"=>"failure", "result"=>{"stdout"=>"", "stderr"=>"  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to localhost port 8080: Connection refused\n", "exit_code"=>7, "_error"=>{"kind"=>"puppetlabs.tasks/command-error", "issue_code"=>"COMMAND_ERROR", "msg"=>"The command failed with exit code 7", "details"=>{"exit_code"=>7}}}, "node"=>"localhost:2224"}]     # ./.bundle/gems/ruby/2.5.0/gems/puppet_litmus-0.13.1/lib/puppet_litmus/puppet_helpers.rb:130:in `run_shell'
           # ./spec/acceptance/acceptance_1b_spec.rb:127:in `block (3 levels) in <top (required)>'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'  4) Acceptance case one Start Tomcat with verification applies the manifest without error
           On host `localhost:2224'
           Failure/Error: apply_manifest(pp, catch_failures: true, acceptable_exit_codes: [0, 2])
           RuntimeError:
             apply manifest failed
             ` puppet apply /tmp/manifest_20200114_51729_15zjedr.pp --detailed-exitcodes`
             with exit code 4 (expected: [0, 2])
             ====== Start output of failed Puppet apply ======
             Error: Could not start Service[tomcat-jsvc-default]: Execution of 'export CATALINA_HOME=/opt/apache-tomcat; export CATALINA_BASE=/opt/apache-tomcat/tomcat8-jsvc;                  $CATALINA_HOME/bin/jsvc                    -home /usr/lib/jvm/java-7-openjdk-amd64 -user tomcat8                    -classpath $CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar                    -outfile $CATALINA_BASE/logs/catalina.out                    -errfile $CATALINA_BASE/logs/catalina.err                    -pidfile $CATALINA_BASE/logs/jsvc.pid                    -Dcatalina.home=$CATALINA_HOME                    -Dcatalina.base=$CATALINA_BASE                    -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager                    -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties                    org.apache.catalina.startup.Bootstrap' returned 127: sh: 1: /opt/apache-tomcat/bin/jsvc: not found
             Error: /Stage[main]/Main/Tomcat::Service[jsvc-default]/Service[tomcat-jsvc-default]/ensure: change from 'stopped' to 'running' failed: Could not start Service[tomcat-jsvc-default]: Execution of 'export CATALINA_HOME=/opt/apache-tomcat; export CATALINA_BASE=/opt/apache-tomcat/tomcat8-jsvc;                  $CATALINA_HOME/bin/jsvc                    -home /usr/lib/jvm/java-7-openjdk-amd64 -user tomcat8                    -classpath $CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar                    -outfile $CATALINA_BASE/logs/catalina.out                    -errfile $CATALINA_BASE/logs/catalina.err                    -pidfile $CATALINA_BASE/logs/jsvc.pid                    -Dcatalina.home=$CATALINA_HOME                    -Dcatalina.base=$CATALINA_BASE                    -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager                    -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties                    org.apache.catalina.startup.Bootstrap' returned 127: sh: 1: /opt/apache-tomcat/bin/jsvc: not found
             Notice: Compiled catalog for f180d61a0e4d in environment production in 0.06 seconds
             Notice: Applied catalog in 0.06 seconds       ====== End output of failed Puppet apply ======     # ./.bundle/gems/ruby/2.5.0/gems/puppet_litmus-0.13.1/lib/puppet_litmus/puppet_helpers.rb:278:in `report_puppet_apply_error'
           # ./.bundle/gems/ruby/2.5.0/gems/puppet_litmus-0.13.1/lib/puppet_litmus/puppet_helpers.rb:79:in `apply_manifest'
           # ./spec/acceptance/acceptance_1b_spec.rb:170:in `block (3 levels) in <top (required)>'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'  5) Acceptance case one Start Tomcat with verification is serving a page on port 80
           On host `localhost:2224'
           Failure/Error:
             run_shell('curl --retry 10 --retry-delay 15 localhost:80/war_one/hello.jsp') do |r|
               r.stdout.should match(%r{Sample Application JSP Page})
             end
           RuntimeError:
             shell failed
             `curl --retry 10 --retry-delay 15 localhost:80/war_one/hello.jsp`
             ======
             [{"target"=>"localhost:2224", "action"=>"command", "object"=>"curl --retry 10 --retry-delay 15 localhost:80/war_one/hello.jsp", "status"=>"failure", "result"=>{"stdout"=>"", "stderr"=>"  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to localhost port 80: Connection refused\n", "exit_code"=>7, "_error"=>{"kind"=>"puppetlabs.tasks/command-error", "issue_code"=>"COMMAND_ERROR", "msg"=>"The command failed with exit code 7", "details"=>{"exit_code"=>7}}}, "node"=>"localhost:2224"}]     # ./.bundle/gems/ruby/2.5.0/gems/puppet_litmus-0.13.1/lib/puppet_litmus/puppet_helpers.rb:130:in `run_shell'
           # ./spec/acceptance/acceptance_1b_spec.rb:173:in `block (3 levels) in <top (required)>'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'  6) Acceptance case one un-deploy the war with verification does not have deployed the war
           On host `localhost:2224'
           Failure/Error:
             run_shell('curl localhost:80/war_one/hello.jsp') do |r|
               r.stdout.should match(%r{The origin server did not find a current representation for the target resource})
             end
           RuntimeError:
             shell failed
             `curl localhost:80/war_one/hello.jsp`
             ======
             [{"target"=>"localhost:2224", "action"=>"command", "object"=>"curl localhost:80/war_one/hello.jsp", "status"=>"failure", "result"=>{"stdout"=>"", "stderr"=>"  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to localhost port 80: Connection refused\n", "exit_code"=>7, "_error"=>{"kind"=>"puppetlabs.tasks/command-error", "issue_code"=>"COMMAND_ERROR", "msg"=>"The command failed with exit code 7", "details"=>{"exit_code"=>7}}}, "node"=>"localhost:2224"}]     # ./.bundle/gems/ruby/2.5.0/gems/puppet_litmus-0.13.1/lib/puppet_litmus/puppet_helpers.rb:130:in `run_shell'
           # ./spec/acceptance/acceptance_1b_spec.rb:191:in `block (3 levels) in <top (required)>'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'  7) Acceptance case one remove the connector with verification applies the manifest without error
           On host `localhost:2224'
           Failure/Error: apply_manifest(pp, catch_failures: true, acceptable_exit_codes: [0, 2])
           RuntimeError:
             apply manifest failed
             ` puppet apply /tmp/manifest_20200114_51729_91x70o.pp --detailed-exitcodes`
             with exit code 4 (expected: [0, 2])
             ====== Start output of failed Puppet apply ======
             Error: Could not start Service[tomcat-jsvc-default]: Execution of 'export CATALINA_HOME=/opt/apache-tomcat; export CATALINA_BASE=/opt/apache-tomcat/tomcat8-jsvc;                  $CATALINA_HOME/bin/jsvc                    -home /usr/lib/jvm/java-7-openjdk-amd64 -user tomcat8                    -classpath $CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar                    -outfile $CATALINA_BASE/logs/catalina.out                    -errfile $CATALINA_BASE/logs/catalina.err                    -pidfile $CATALINA_BASE/logs/jsvc.pid                    -Dcatalina.home=$CATALINA_HOME                    -Dcatalina.base=$CATALINA_BASE                    -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager                    -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties                    org.apache.catalina.startup.Bootstrap' returned 127: sh: 1: /opt/apache-tomcat/bin/jsvc: not found
             Error: /Stage[main]/Main/Tomcat::Service[jsvc-default]/Service[tomcat-jsvc-default]/ensure: change from 'stopped' to 'running' failed: Could not start Service[tomcat-jsvc-default]: Execution of 'export CATALINA_HOME=/opt/apache-tomcat; export CATALINA_BASE=/opt/apache-tomcat/tomcat8-jsvc;                  $CATALINA_HOME/bin/jsvc                    -home /usr/lib/jvm/java-7-openjdk-amd64 -user tomcat8                    -classpath $CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar                    -outfile $CATALINA_BASE/logs/catalina.out                    -errfile $CATALINA_BASE/logs/catalina.err                    -pidfile $CATALINA_BASE/logs/jsvc.pid                    -Dcatalina.home=$CATALINA_HOME                    -Dcatalina.base=$CATALINA_BASE                    -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager                    -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties                    org.apache.catalina.startup.Bootstrap' returned 127: sh: 1: /opt/apache-tomcat/bin/jsvc: not found
             Notice: Compiled catalog for f180d61a0e4d in environment production in 0.13 seconds
             Notice: Applied catalog in 0.14 seconds       ====== End output of failed Puppet apply ======     # ./.bundle/gems/ruby/2.5.0/gems/puppet_litmus-0.13.1/lib/puppet_litmus/puppet_helpers.rb:278:in `report_puppet_apply_error'
           # ./.bundle/gems/ruby/2.5.0/gems/puppet_litmus-0.13.1/lib/puppet_litmus/puppet_helpers.rb:79:in `apply_manifest'
           # ./spec/acceptance/acceptance_1b_spec.rb:217:in `block (3 levels) in <top (required)>'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
           # ./.bundle/gems/ruby/2.5.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
      

      Attachments

        Activity

          People

            david.swan David Swan
            david.swan David Swan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support