openwhisk icon indicating copy to clipboard operation
openwhisk copied to clipboard

Unable to connect to controller0 while running openwhisk.yml (local deployment), Connection refused!

Open alibanaei opened this issue 7 years ago • 7 comments

I have an issue like https://github.com/apache/incubator-openwhisk/issues/4303 when I run ansible-playbook openwhisk.yml but I got this Error in the controller log file I asked there but got no answer What should I do?


Picked up JAVA_TOOL_OPTIONS: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap Error: Password file not found: /home/owuser/jmxremote.password sun.management.AgentConfigurationError at sun.management.jmxremote.ConnectorBootstrap.checkPasswordFile(ConnectorBootstrap.java:563) at sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:426) at sun.management.Agent.startAgent(Agent.java:262) at sun.management.Agent.startAgent(Agent.java:452)

and when I use "wskdev controller", it didn't create the log file

alibanaei avatar May 19 '19 04:05 alibanaei

It seems it could not find the password file for jmxremote.

Isn't there the file in your setup?

Outside of the controller container: ${OPENWHISK_CONF_DIR}/${controllerN}/ or Inside of the controller container: /home/owuser/

That file is supposed to be generated based on the ansible template while deploying controllers. https://github.com/apache/incubator-openwhisk/blob/master/ansible/roles/controller/tasks/deploy.yml#L46

style95 avatar May 20 '19 02:05 style95

Actually these files exist in "/config/wskconf/controller/controller0" directory

  • controller-openwhisk-keystore.p12
  • controller-openwhisk-server-cert.pem
  • controller-openwhisk-server-key.pem
  • jmxremote.access
  • jmxremote.password

and the status of "controller container" is "Restarting (1) 14 seconds ago" It's just restarting again and again And Config directory has 0777 permission Is there anything that I should do inside of the controller container or somewhere else?

alibanaei avatar May 20 '19 05:05 alibanaei

ok then, is the volume properly mapped for controller0? And what is the file permission of the files?

style95 avatar May 20 '19 05:05 style95

Could you please explain more detail? I didn't find any problem with volume and permission. I've installed OpenWhisk on two different systems before, but I didn't have this problem Why it's looking for "jmxremote.password" in "home/owuser" directory? I think it should look for in "Config Directory", shouldn't it?

alibanaei avatar May 22 '19 05:05 alibanaei

Yes. That's right. But the controller process will look for the file from /home/owsuer. https://github.com/apache/incubator-openwhisk/blob/master/ansible/group_vars/all#L114

~~And "Config directory" is mapped into /home/owuser directory in a container.~~ My bad it's not true

style95 avatar May 22 '19 06:05 style95

It's copied at bootup time. https://github.com/apache/incubator-openwhisk/blob/master/common/scala/copyJMXFiles.sh#L21

style95 avatar May 22 '19 06:05 style95

Thank you for all your help I reinstalled docker and it's worked

alibanaei avatar May 25 '19 05:05 alibanaei