Uploaded image for project: 'Insights Experiences'
  1. Insights Experiences
  2. HMS-1976

IdP registry service - error in local infra logs (dev tooling)

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • hms-0.7
    • None
    • Identity Management
    • None
    • IdM Insights Sprint 42
    • 3
    • 3
    • None

      Description

      I can see some error entries into the logs for the local infrastructure started by 'make compose-up'.

      Steps

      • make compose-clean clean build compose-build compose-up
      • make compose-logs

      Current result

       

      f84d0647b1ba 2023-06-19 08:09:18.785 UTC [1] LOG:  starting PostgreSQL 13.11 (Debian 13.11-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
      f84d0647b1ba 2023-06-19 08:09:18.785 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
      f84d0647b1ba 2023-06-19 08:09:18.785 UTC [1] LOG:  listening on IPv6 address "::", port 5432
      f84d0647b1ba 2023-06-19 08:09:18.787 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
      f84d0647b1ba 2023-06-19 08:09:18.790 UTC [61] LOG:  database system was shut down at 2023-06-19 08:09:18 UTC
      f84d0647b1ba 2023-06-19 08:09:18.793 UTC [1] LOG:  database system is ready to accept connections
      f84d0647b1ba 2023-06-19 08:09:23.313 UTC [71] FATAL:  role "root" does not exist
      f84d0647b1ba 2023-06-19 08:09:29.370 UTC [76] FATAL:  role "root" does not exist
      f84d0647b1ba 2023-06-19 08:09:35.352 UTC [80] FATAL:  role "root" does not exist
      f84d0647b1ba 2023-06-19 08:09:41.369 UTC [86] FATAL:  role "root" does not exist

       

       

      For the mock server we get the below

       

      7a103c783afc 2023-06-19 08:22:46 5.14.0 WARNING exception while loading JSON initialization file, ignoring file:
      7a103c783afc 
      7a103c783afc   /config/expectationInitialiser.json
      7a103c783afc  
      7a103c783afc java.lang.RuntimeException: Exception while loading "/config/expectationInitialiser.json"
      7a103c783afc    at org.mockserver.file.FileReader.readFileFromClassPathOrPath(FileReader.java:37)
      7a103c783afc    at org.mockserver.server.initialize.ExpectationInitializerLoader.lambda$retrieveExpectationsFromFile$1(ExpectationInitializerLoader.java:137)
      7a103c783afc    at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273)
      7a103c783afc    at java.base/java.util.Collections$2.tryAdvance(Collections.java:4853)
      7a103c783afc    at java.base/java.util.Collections$2.forEachRemaining(Collections.java:4861)
      7a103c783afc    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
      7a103c783afc    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
      7a103c783afc    at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
      7a103c783afc    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      7a103c783afc    at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
      7a103c783afc    at org.mockserver.server.initialize.ExpectationInitializerLoader.retrieveExpectationsFromFile(ExpectationInitializerLoader.java:176)
      7a103c783afc    at org.mockserver.server.initialize.ExpectationInitializerLoader.retrieveExpectationsFromJson(ExpectationInitializerLoader.java:116)
      7a103c783afc    at org.mockserver.server.initialize.ExpectationInitializerLoader.addExpectationsFromInitializer(ExpectationInitializerLoader.java:60)
      7a103c783afc    at org.mockserver.server.initialize.ExpectationInitializerLoader.<init>(ExpectationInitializerLoader.java:43)
      7a103c783afc    at org.mockserver.mock.HttpState.<init>(HttpState.java:126)
      7a103c783afc    at org.mockserver.lifecycle.LifeCycle.<init>(LifeCycle.java:55)
      7a103c783afc    at org.mockserver.netty.MockServer.<init>(MockServer.java:77)
      7a103c783afc    at org.mockserver.netty.MockServer.<init>(MockServer.java:48)
      7a103c783afc    at org.mockserver.cli.Main.main(Main.java:149)
      7a103c783afc Caused by: java.io.FileNotFoundException: /config/expectationInitialiser.json (No such file or directory)
      7a103c783afc    at java.base/java.io.FileInputStream.open0(Native Method)
      7a103c783afc    at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
      7a103c783afc    at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
      7a103c783afc    at java.base/java.io.FileInputStream.<init>(FileInputStream.java:111)
      7a103c783afc    at org.mockserver.file.FileReader.openStreamToFileFromClassPathOrPath(FileReader.java:45)
      7a103c783afc    at org.mockserver.file.FileReader.readFileFromClassPathOrPath(FileReader.java:34)
      7a103c783afc    ... 18 more
      7a103c783afc 
      7a103c783afc 2023-06-19 08:22:46 5.14.0 FINE logger level is DEBUG, change using:
      7a103c783afc  - 'ConfigurationProperties.logLevel(String level)' in Java code, 7a103c783afc  - '-logLevel' command line argument,
      7a103c783afc  - 'mockserver.logLevel' JVM system property or,
      7a103c783afc  - 'mockserver.logLevel' property value in 'mockserver.properties' 
      7a103c783afc 2023-06-19 08:22:46 5.14.0 INFO 8010 started on port: 8010 
      

       

      Expected result

      No that error messages

       

      Additional Information:

      • It does not blocking the process of the database and it is not blocking the access to the database when running locally by using the local infra.
      • The mock server is not used currently; probably something wrong into the configuration files injected, but if it is not used so far, better to comment the docker-compose section, until it is needed.

       

              Unassigned Unassigned
              avisiedo@redhat.com Alejandro Visiedo
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: