Skip to content

need help with setting up worker #977

@b4nds

Description

@b4nds

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior.

Expected behavior
A clear and concise description of what you expected to happen.

Environment

  • PowerJob Version: The Server is on latest version with docker-compose
  • Java Version: OpenJDK11
  • OS: Ubuntu 22.04.4 LTS

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

I have the powerjob-server, mysql and the powerjob-agent running with docker. I am using docker-compose for all of it. and I tried to set it all up with maven repository but I failed even after looking at the documentation and also after trying to build my own springboot app, making the directorys myself and making all the files mysqlf using chatgpt forr help. I have tried cloning the github page and setting it up with that but it also wouldn't work. I have also tried to setup the worker with the documentation but im getting error after error.

After trying again, PowerJob-Server running with Docker and MySQL running with Docker all withtin a docker-compose file, I used the powerjob-worker-spring-boot-starter from the maven repository and im stuck on this error:

[main] ERROR tech.powerjob.worker.PowerJobWorker - [PowerJobWorker] initialize PowerJobWorker failed, using 1.852 s.
com.typesafe.config.ConfigException$Missing: merge of hardcoded value,powerjob.akka.conf @ jar:file:/powerjob-worker/target/powerjob-worker-app-1.0.0-jar-with-dependencies.jar!/powerjob.akka.conf: 20: No configuration setting found for key 'enabled'
at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:156)
at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:174)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:188)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:193)
at com.typesafe.config.impl.SimpleConfig.getBoolean(SimpleConfig.java:218)
at akka.remote.artery.ArterySettings.(ArterySettings.scala:36)
at akka.remote.artery.ArterySettings$.apply(ArterySettings.scala:257)
at akka.remote.RemoteSettings.(RemoteSettings.scala:28)
at akka.remote.RemoteActorRefProvider.(RemoteActorRefProvider.scala:160)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at akka.actor.ReflectiveDynamicAccess.$anonfun$createInstanceFor$1(ReflectiveDynamicAccess.scala:40)
at scala.util.Try$.apply(Try.scala:210)
at akka.actor.ReflectiveDynamicAccess.createInstanceFor(ReflectiveDynamicAccess.scala:35)
at akka.actor.ReflectiveDynamicAccess.$anonfun$createInstanceFor$5(ReflectiveDynamicAccess.scala:48)
at scala.util.Success.flatMap(Try.scala:258)
at akka.actor.ReflectiveDynamicAccess.createInstanceFor(ReflectiveDynamicAccess.scala:47)
at akka.actor.ActorSystemImpl.liftedTree1$1(ActorSystem.scala:938)
at akka.actor.ActorSystemImpl.(ActorSystem.scala:931)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:272)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:316)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:290)
at akka.actor.ActorSystem$.create(ActorSystem.scala:213)
at akka.actor.ActorSystem.create(ActorSystem.scala)
at tech.powerjob.remote.akka.AkkaCSInitializer.init(AkkaCSInitializer.java:75)
at tech.powerjob.remote.framework.engine.impl.PowerJobRemoteEngine.start(PowerJobRemoteEngine.java:42)
at tech.powerjob.worker.PowerJobWorker.init(PowerJobWorker.java:120)
at com.example.myapp.PowerJobWorkerApp.main(PowerJobWorkerApp.java:17)
com.typesafe.config.ConfigException$Missing: merge of hardcoded value,powerjob.akka.conf @ jar:file:/powerjob-worker/target/powerjob-worker-app-1.0.0-jar-with-dependencies.jar!/powerjob.akka.conf: 20: No configuration setting found for key 'enabled'
at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:156)
at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:174)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:188)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:193)
at com.typesafe.config.impl.SimpleConfig.getBoolean(SimpleConfig.java:218)
at akka.remote.artery.ArterySettings.(ArterySettings.scala:36)
at akka.remote.artery.ArterySettings$.apply(ArterySettings.scala:257)
at akka.remote.RemoteSettings.(RemoteSettings.scala:28)
at akka.remote.RemoteActorRefProvider.(RemoteActorRefProvider.scala:160)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at akka.actor.ReflectiveDynamicAccess.$anonfun$createInstanceFor$1(ReflectiveDynamicAccess.scala:40)
at scala.util.Try$.apply(Try.scala:210)
at akka.actor.ReflectiveDynamicAccess.createInstanceFor(ReflectiveDynamicAccess.scala:35)
at akka.actor.ReflectiveDynamicAccess.$anonfun$createInstanceFor$5(ReflectiveDynamicAccess.scala:48)
at scala.util.Success.flatMap(Try.scala:258)
at akka.actor.ReflectiveDynamicAccess.createInstanceFor(ReflectiveDynamicAccess.scala:47)
at akka.actor.ActorSystemImpl.liftedTree1$1(ActorSystem.scala:938)
at akka.actor.ActorSystemImpl.(ActorSystem.scala:931)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:272)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:316)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:290)
at akka.actor.ActorSystem$.create(ActorSystem.scala:213)
at akka.actor.ActorSystem.create(ActorSystem.scala)
at tech.powerjob.remote.akka.AkkaCSInitializer.init(AkkaCSInitializer.java:75)
at tech.powerjob.remote.framework.engine.impl.PowerJobRemoteEngine.start(PowerJobRemoteEngine.java:42)
at tech.powerjob.worker.PowerJobWorker.init(PowerJobWorker.java:120)
at com.example.myapp.PowerJobWorkerApp.main(PowerJobWorkerApp.java:17)
Failed to start PowerJobWorker.

I really need help from someone. Does it have to do with the powerjob-server being run with docker or is there an alternative so I dont have to run it with docker because I would like to use PowerJob in my company.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

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