Unable to connect to controller0 while running openwhisk.yml (local deployment), Connection refused!
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
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
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?
ok then, is the volume properly mapped for controller0? And what is the file permission of the files?
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?
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
It's copied at bootup time. https://github.com/apache/incubator-openwhisk/blob/master/common/scala/copyJMXFiles.sh#L21
Thank you for all your help I reinstalled docker and it's worked