Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] configuration file does not exist #3053

Closed
2 tasks done
koonchen opened this issue Feb 6, 2023 · 3 comments · Fixed by #3023
Closed
2 tasks done

[Bug] configuration file does not exist #3053

koonchen opened this issue Feb 6, 2023 · 3 comments · Fixed by #3023
Assignees
Labels
bug Something isn't working

Comments

@koonchen
Copy link
Contributor

koonchen commented Feb 6, 2023

Search before asking

  • I had searched in the issues and found no similar issues.

Environment

Mac

EventMesh version

master

What happened

I failed to start in standalone mode

How to reproduce

  1. add env properties
-Dlog4j.configurationFile=eventmesh-runtime/conf/log4j2.xml
-Deventmesh.log.home=eventmesh-runtime/logs
-Deventmesh.home=eventmesh-runtime
-DconfPath=eventmesh-runtime/conf
  1. run starter

Debug logs

java.lang.RuntimeException: configuration file does not exist
	at org.apache.eventmesh.common.config.ConfigService.getConfig(ConfigService.java:142) ~[eventmesh-common-1.8.0-release.jar:1.8.0-release]
	at org.apache.eventmesh.common.config.ConfigService.setRootConfig(ConfigService.java:69) ~[eventmesh-common-1.8.0-release.jar:1.8.0-release]
	at org.apache.eventmesh.runtime.boot.EventMeshStartup.main(EventMeshStartup.java:36) [eventmesh-runtime-1.8.0-release.jar:1.8.0-release]
	at org.apache.eventmesh.starter.StartUp.main(StartUp.java:24) [main/:?]
> Task :eventmesh-starter:StartUp.main() FAILED

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@koonchen koonchen added the bug Something isn't working label Feb 6, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2023

Welcome to the Apache EventMesh (incubating) community!!
We are glad that you are contributing by opening this issue. :D

Please make sure to include all the relevant context.
We will be here shortly.

If you are interested in contributing to our project, please let us know!
You can check out our contributing guide on contributing to EventMesh.

Want to get closer to the community?

WeChat Group:
wechat_qr

Mailing Lists:

Name Description Subscribe Unsubscribe Archive
Users User support and questions mailing list Subscribe Unsubscribe Mail Archives
Development Development related discussions Subscribe Unsubscribe Mail Archives
Commits All commits to repositories Subscribe Unsubscribe Mail Archives

@xwm1992
Copy link
Contributor

xwm1992 commented Feb 6, 2023

sorry, I can't reproduce your problem, I just use the latest code in master branch, please describe the detail steps thanks.

@koonchen
Copy link
Contributor Author

koonchen commented Feb 6, 2023

@xwm1992

  1. git clone [email protected]:apache/incubator-eventmesh.git
  2. open with IDEA
  3. add vm properties
-Dlog4j.configurationFile=eventmesh-runtime/conf/log4j2.xml
-Deventmesh.log.home=eventmesh-runtime/logs
-Deventmesh.home=eventmesh-runtime
-DconfPath=eventmesh-runtime/conf
  1. run org.apache.eventmesh.starter.StartUp
  2. error happened
...
> Task :eventmesh-starter:StartUp.main() FAILED
2023-02-06 17:52:11,936 main ERROR Unable to locate appender "retryAppender" for logger config "retry"
2023-02-06 17:52:12,044 ERROR [main] EventMeshStartup(EventMeshStartup.java:56) - EventMesh start fail.
java.lang.RuntimeException: configuration file does not exist
	at org.apache.eventmesh.common.config.ConfigService.getConfig(ConfigService.java:142) ~[eventmesh-common-1.8.0-release.jar:1.8.0-release]
	at org.apache.eventmesh.common.config.ConfigService.setRootConfig(ConfigService.java:69) ~[eventmesh-common-1.8.0-release.jar:1.8.0-release]
	at org.apache.eventmesh.runtime.boot.EventMeshStartup.main(EventMeshStartup.java:36) [eventmesh-runtime-1.8.0-release.jar:1.8.0-release]
	at org.apache.eventmesh.starter.StartUp.main(StartUp.java:24) [main/:?]
65 actionable tasks: 38 executed, 27 up-to-date

FAILURE: Build failed with an exception.
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants