Skip to content

[BUG] Development setup fails #32

@fkohrt

Description

@fkohrt

Summary

Setting up a development instance fails, either due to a DB connection issue or due to an allegedly missing configuration file.

Steps to reproduce

I have followed the setup instructions to spin up a local development instance, but the last step mvn clean install always fails. When I am root, it fails with the following message:

Connection refused
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  30:43 min
[INFO] Finished at: 2021-02-13T00:49:27+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.2.2.Final:deploy (default) on project authoring-server: Failed to execute goal deploy.: java.net.ConnectException: WFLYPRT0053: Could not connect to remote+http://localhost:9110. The connection failed: Connection refused -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[1]+  Exit 137                yarn run dev  (wd: ~/oli/sources/authoring-client)
(wd now: ~/oli/sources/authoring-server)

Otherwise it fails with the following error:

FileNotFoundException: /oli/service_config/content-service-conf.json
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:13 min
[INFO] Finished at: 2021-02-13T03:47:54+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.2.2.Final:deploy (default) on project authoring-server: Failed to execute goal deploy: {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"content-service.war\".undertow-deployment" => "java.lang.RuntimeException: javax.ejb.EJBException: java.lang.RuntimeException: java.lang.RuntimeException: java.io.FileNotFoundException: /oli/service_config/content-service-conf.json (No such file or directory)
[ERROR]     Caused by: java.lang.RuntimeException: javax.ejb.EJBException: java.lang.RuntimeException: java.lang.RuntimeException: java.io.FileNotFoundException: /oli/service_config/content-service-conf.json (No such file or directory)
[ERROR]     Caused by: javax.ejb.EJBException: java.lang.RuntimeException: java.lang.RuntimeException: java.io.FileNotFoundException: /oli/service_config/content-service-conf.json (No such file or directory)
[ERROR]     Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.io.FileNotFoundException: /oli/service_config/content-service-conf.json (No such file or directory)
[ERROR]     Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: /oli/service_config/content-service-conf.json (No such file or directory)
[ERROR]     Caused by: java.io.FileNotFoundException: /oli/service_config/content-service-conf.json (No such file or directory)"}}}}
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

I have adjusted...

  • content-service-conf.json from the template as well as
  • service.envs from the template

...to use my domain and replaced those xxxxxxx inside the dataset_db string with values from MYSQL_USER and MYSQL_PASSWORD. What might be missing? The file ~/oli/service_config/content-service-conf.json exists with a chmod setting of 777.

Software information

  • OS: Ubuntu 20.04.1
  • Node.js: v14.15.5
  • yarn: v1.22.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions