java.lang.AssertionError: Assert failed: (keyword? kw), compiling:(/private/var/folders/y5/24bhmms53nv2b4g8gyq6tl340000gn/T/form-init2323869083754856717.clj:1:125)

JIRA | russ | 4 months ago
  1. 0

    Puppet Server's CA service maintains a list of the oid to mnemonic mappings in the {{puppet-short-names}} function, duplicating the same list from the `Puppet::SSL::Oids` namespace in Puppet Ruby code. Several OIDs were added to the Puppet Ruby list in PUP-5355 - see [here|https://github.com/puppetlabs/puppet/blob/4.7.0/lib/puppet/ssl/oids.rb#L56-L63] for the list as of Puppet 4.7.0 - but were not added to the corresponding Puppet Server CA list - see [here|https://github.com/puppetlabs/puppetserver/blob/2.6.0/src/clj/puppetlabs/puppetserver/certificate_authority.clj#L141-L162] for the list as of Puppet Server 2.6.0. This makes it not possible to use the names in a csr_attributes.yaml file when Puppet Server's CA creates the master certificate and in any Trapperkeeper Authorization rules which reference the names in certificate extensions. The missing mappings should be added to the Puppet Server CA service. Along with doing this work, we should also consider improving the behavior that you see when the csr_attributes.yaml file contains a name that does not match the list. Currently you see a startup error like this: {noformat} Exception in thread "main" java.lang.AssertionError: Assert failed: (keyword? kw), compiling:(/private/var/folders/y5/24bhmms53nv2b4g8gyq6tl340000gn/T/form-init2323869083754856717.clj:1:125) at clojure.lang.Compiler.load(Compiler.java:7239) at clojure.lang.Compiler.loadFile(Compiler.java:7165) at clojure.main$load_script.invoke(main.clj:275) ... Caused by: java.lang.AssertionError: Assert failed: (keyword? kw) at puppetlabs.kitchensink.core$without_ns.invoke(core.clj:566) at puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:175) at clojure.lang.RestFn.invoke(RestFn.java:421) at clojure.lang.Var.invoke(Var.java:383) at clojure.lang.AFn.applyToHelper(AFn.java:156) at clojure.lang.Var.applyTo(Var.java:700) at clojure.core$apply.invoke(core.clj:630) at puppetlabs.trapperkeeper.main$_main.doInvoke(main.clj:7) at clojure.lang.RestFn.invoke(RestFn.java:421) at clojure.lang.Var.invoke(Var.java:383) at user$eval5609.invoke(form-init2323869083754856717.clj:1) at clojure.lang.Compiler.eval(Compiler.java:6782) at clojure.lang.Compiler.eval(Compiler.java:6772) at clojure.lang.Compiler.load(Compiler.java:7227) ... 11 more {noformat} Erroring out at startup rather than creating a certificate / auth rule with unintended content seems reasonable. We should come up with a more descriptive error message than this which highlights what the problem is.

    JIRA | 4 months ago | russ
    java.lang.AssertionError: Assert failed: (keyword? kw), compiling:(/private/var/folders/y5/24bhmms53nv2b4g8gyq6tl340000gn/T/form-init2323869083754856717.clj:1:125)
  2. 0

    When one of the CLI subcommands is run and a puppetserver config file which has content that violates a schema is parsed, the resulting failure shown on the command line does not give any indication of what the real error is. For example, I ran the following steps in Puppet Server at the 2.7.1 tag, from source: 1) Set the following bogus variable value in the {{./dev/puppetserver.conf}} file: {noformat} jruby-puppet: { ... master-conf-dir: 0 ... } {noformat} 2) Ran the gem subcommand as follows: {noformat} lein gem env {noformat} *Expected Result:* An error message indicating something about the corrupt {{master-conf-dir}} variable value. *Actual Result:* {noformat} Exception in thread "main" java.lang.AssertionError: Assert failed: (keyword? kw), compiling:(/private/var/folders/y5/24bhmms53nv2b4g8gyq6tl340000gn/T/form-init6633389292647995039.clj:1:125) at clojure.lang.Compiler.load(Compiler.java:7391) at clojure.lang.Compiler.loadFile(Compiler.java:7317) at clojure.main$load_script.invokeStatic(main.clj:275) at clojure.main$init_opt.invokeStatic(main.clj:277) at clojure.main$init_opt.invoke(main.clj:277) at clojure.main$initialize.invokeStatic(main.clj:308) at clojure.main$null_opt.invokeStatic(main.clj:342) at clojure.main$null_opt.invoke(main.clj:339) at clojure.main$main.invokeStatic(main.clj:421) at clojure.main$main.doInvoke(main.clj:384) at clojure.lang.RestFn.invoke(RestFn.java:421) at clojure.lang.Var.invoke(Var.java:383) at clojure.lang.AFn.applyToHelper(AFn.java:156) at clojure.lang.Var.applyTo(Var.java:700) at clojure.main.main(main.java:37) Caused by: java.lang.AssertionError: Assert failed: (keyword? kw) at puppetlabs.kitchensink.core$without_ns.invokeStatic(core.clj:572) at puppetlabs.kitchensink.core$without_ns.invoke(core.clj:572) at puppetlabs.puppetserver.cli.subcommand$run.invokeStatic(subcommand.clj:40) at puppetlabs.puppetserver.cli.subcommand$run.invoke(subcommand.clj:26) at puppetlabs.puppetserver.cli.gem$_main.invokeStatic(gem.clj:13) at puppetlabs.puppetserver.cli.gem$_main.doInvoke(gem.clj:11) at clojure.lang.RestFn.invoke(RestFn.java:457) at clojure.lang.Var.invoke(Var.java:394) at user$eval5.invokeStatic(form-init6633389292647995039.clj:1) at user$eval5.invoke(form-init6633389292647995039.clj:1) at clojure.lang.Compiler.eval(Compiler.java:6927) at clojure.lang.Compiler.eval(Compiler.java:6917) at clojure.lang.Compiler.load(Compiler.java:7379) ... 14 more {noformat}

    JIRA | 2 months ago | Jeremy Barlow
    java.lang.AssertionError: Assert failed: (keyword? kw), compiling:(/private/var/folders/y5/24bhmms53nv2b4g8gyq6tl340000gn/T/form-init6633389292647995039.clj:1:125)
  3. 0
    samebug tip
    Check if you use the right path
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 5#50166468

    GitHub | 3 years ago | agillan
    java.lang.AssertionError: Expected: <{/var/folders/j4/m8f6sqzd3fv1k134pbqkf7j80000gn/T/junit9031605743255637183/in/2-1=0, /var/folders/j4/m8f6sqzd3fv1k134pbqkf7j80000gn/T/junit9031605743255637183/in/2/2.4/2.4.2-0=1, /var/folders/j4/m8f6sqzd3fv1k134pbqkf7j80000gn/T/junit9031605743255637183/in/1/1.1-2=4, /var/folders/j4/m8f6sqzd3fv1k134pbqkf7j80000gn/T/junit9031605743255637183/in/2/2.2-1=3, /var/folders/j4/m8f6sqzd3fv1k134pbqkf7j80000gn/T/junit9031605743255637183/in/1/1.1-0=2, /var/folders/j4/m8f6sqzd3fv1k134pbqkf7j80000gn/T/junit9031605743255637183/in/1/1.1-1=3, /var/folders/j4/m8f6sqzd3fv1k134pbqkf7j80000gn/T/junit9031605743255637183/in/1/1.2-0=4}> got: <{/var/folders/j4/m8f6sqzd3fv1k134pbqkf7j80000gn/T/junit9031605743255637183/in/2-1=0, /var/folders/j4/m8f6sqzd3fv1k134pbqkf7j80000gn/T/junit9031605743255637183/in/2/2.4/2.4.2-0=1, /var/folders/j4/m8f6sqzd3fv1k134pbqkf7j80000gn/T/junit9031605743255637183/in/1/1.1-2=3, /var/folders/j4/m8f6sqzd3fv1k134pbqkf7j80000gn/T/junit9031605743255637183/in/2/2.2-1=3, /var/folders/j4/m8f6sqzd3fv1k134pbqkf7j80000gn/T/junit9031605743255637183/in/1/1.1-0=2, /var/folders/j4/m8f6sqzd3fv1k134pbqkf7j80000gn/T/junit9031605743255637183/in/1/1.1-1=4, /var/folders/j4/m8f6sqzd3fv1k134pbqkf7j80000gn/T/junit9031605743255637183/in/1/1.2-0=4}>
  6. 0

    Assertion failure

    GitHub | 3 years ago | benson-basis
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.goldin:copy-maven-plugin:0.2.5:copy (copy-root) on project rws-bt-root: Processing <resource> [Target path(s) [/Users/benson/.m2/repository/bt/jug/bt_root-7.10.0-7.10.0-jug1], directory [scp://souvenir:/basis/products/releases/rlp/Release/7.10.0/rlp-7.10.0-sdk-universal-darwin9-gcc40.tar.gz], dependencies []] failed with [java.lang.AssertionError]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.AssertionError

      Assert failed: (keyword? kw), compiling:(/private/var/folders/y5/24bhmms53nv2b4g8gyq6tl340000gn/T/form-init2323869083754856717.clj:1:125)

      at clojure.lang.Compiler.load()
    2. Clojure
      main$load_script.invoke
      1. clojure.lang.Compiler.load(Compiler.java:7239)
      2. clojure.lang.Compiler.loadFile(Compiler.java:7165)
      3. clojure.main$load_script.invoke(main.clj:275)
      3 frames