OWASP-Benchmark/BenchmarkJava

GPG key error when building the latest version of ubuntu

christinahaig opened this issue · 1 comments

VMs/buildDockerImage.sh during 'apt-get update' stage yields GPG key error similar to https://bugs.launchpad.net/ubuntu/+bug/2007402

Moving backwards to starting FROM ubuntu:focal builds successfully, but other problems occur when using VMs/runDockerImage.sh
Tomcat never starts:

[INFO] --- cargo-maven3-plugin:1.10.3:run (default-cli) @ benchmark ---
[INFO]      [java] [Server@515f550a]: Startup sequence initiated from main() method
[INFO]      [java] [Server@515f550a]: Could not load properties from file
[INFO]      [java] [Server@515f550a]: Using cli/default properties only
[INFO]      [java] [Server@515f550a]: Initiating startup sequence...
[INFO]      [java] [Server@515f550a]: Server socket opened successfully in 11 ms.
[INFO]      [java] [Server@515f550a]: Database [index=0, id=0, db=file:target/db/benchmark.db, alias=benchmarkdatabase] opened successfully in 1238 ms.
[INFO]      [java] [Server@515f550a]: Startup sequence completed in 1250 ms.
[INFO]      [java] [Server@515f550a]: 2023-03-10 17:30:32.051 HSQLDB server 2.3.6 is online on port 9001
[INFO]      [java] [Server@515f550a]: To close normally, connect and execute SHUTDOWN SQL
[INFO]      [java] [Server@515f550a]: From command line, use [Ctrl]+[C] to abort abruptly
[INFO]      [java] 2023-03-10 17:30:36 ERROR DefaultServerAttribute:368 - ERR_04450 The value {0} is incorrect, it hasnt been added
[INFO]      [java] 2023-03-10 17:30:37 ERROR DefaultServerAttribute:368 - ERR_04450 The value {0} is incorrect, it hasnt been added
[INFO]      [java] ESAPI: WARNING: System property [org.owasp.esapi.opsteam] is not set
[INFO]      [java] ESAPI: WARNING: System property [org.owasp.esapi.devteam] is not set
[INFO]      [java] ESAPI: Attempting to load ESAPI.properties via file I/O.
[INFO]      [java] ESAPI: Attempting to load ESAPI.properties as resource file via file I/O.
[INFO]      [java] ESAPI: Not found in 'org.owasp.esapi.resources' directory or file not readable: /owasp/BenchmarkJava/ESAPI.properties
[INFO]      [java] ESAPI: Not found in SystemResource Directory/resourceDirectory: .esapi/ESAPI.properties
[INFO]      [java] ESAPI: Not found in 'user.home' (/root) directory: /root/esapi/ESAPI.properties
[INFO]      [java] ESAPI: Loading ESAPI.properties via file I/O failed. Exception was: java.io.FileNotFoundException
[INFO]      [java] ESAPI: Attempting to load ESAPI.properties via the classpath.
[INFO]      [java] ESAPI: SUCCESSFULLY LOADED ESAPI.properties via the CLASSPATH from '/ (root)' using current thread context class loader!
[INFO]      [java] ESAPI: SecurityConfiguration for Validator.ConfigurationFile.MultiValued not found in ESAPI.properties. Using default: false
[INFO]      [java] ESAPI: Attempting to load validation.properties via file I/O.
[INFO]      [java] ESAPI: Attempting to load validation.properties as resource file via file I/O.
[INFO]      [java] ESAPI: Not found in 'org.owasp.esapi.resources' directory or file not readable: /owasp/BenchmarkJava/validation.properties
[INFO]      [java] ESAPI: Not found in SystemResource Directory/resourceDirectory: .esapi/validation.properties
[INFO]      [java] ESAPI: Not found in 'user.home' (/root) directory: /root/esapi/validation.properties
[INFO]      [java] ESAPI: Loading validation.properties via file I/O failed.
[INFO]      [java] ESAPI: Attempting to load validation.properties via the classpath.
[INFO]      [java] ESAPI: SUCCESSFULLY LOADED validation.properties via the CLASSPATH from '/ (root)' using current thread context class loader!
[INFO] Press Ctrl-C to stop the container...

I just rebuilt and pushed new Docker images using these scripts and had no problem so I don't think this is a real issue. I was also able to launch and test Benchmark no problem. Reopen if you think there still is a problem.