Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-5609

Crowd Docker throws error logs about crowdopenidserverdb.properties file

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • None
    • 3.7.0, 3.7.1, 4.0.0, 4.1.0
    • Installation/Setup, OpenID
    • None

      Issue Summary

      Crowd logs are showing the following error for OpenID after a fresh install.

      Caused by: java.sql.SQLException: File input/output error /opt/atlassian/crowd/apache-tomcat/../database/crowdopenidserverdb.properties java.io.FileNotFoundException: /opt/atlassian/crowd/apache-tomcat/../database/crowdopenidserverdb.properties.new (No such file or directory)
      

      Steps to Reproduce

      1. Install Crowd 4.1.0 via Docker.
      2. Use our official repo.
      3. Inspect Tomcat logs (usually localhost.* file).
      4. Check if the OpenID Server is accessible via <base-url>/openidserver (e.g. http://localhost:8095/openidserver).

      Expected Results

      There should be no errors in the logs out of the box and OpenID should work fine.

      Actual Results

      The below exception is thrown in the localhost.<date>.log file:

      21-Jul-2020 01:18:48.730 SEVERE [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log
      	java.lang.reflect.InvocationTargetException
      		at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      		at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      		at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      		at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      .
      	Caused by: org.hibernate.exception.GenericJDBCException: Unable to open JDBC Connection for DDL execution
      .
      	Caused by: java.sql.SQLException: File input/output error /opt/atlassian/crowd/apache-tomcat/../database/crowdopenidserverdb.properties java.io.FileNotFoundException: /opt/atlassian/crowd/apache-tomcat/../database/crowdopenidserverdb.properties.new (No such file or directory)
      		at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
      		at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
      		at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
      		at org.hsqldb.jdbcDriver.connect(Unknown Source)
      		at org.apache.tomcat.dbcp.dbcp2.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:55)
      		at org.apache.tomcat.dbcp.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:355)
      

      When trying to access OpenID using <base-url>/openidserver, we see a 404 - Not Found Tomcat error instead.

      Note

      This only occurs when Crowd is installed in Docker. When Crowd is locally hosted and installed in a server, OpenID works fine and there are no errors.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available.

            [CWD-5609] Crowd Docker throws error logs about crowdopenidserverdb.properties file

            No work has yet been logged on this issue.

              dchevell Dave Chevell
              haftab Hassan Aftab
              Affected customers:
              4 This affects my team
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: