apache / openwhisk-devtools

Development tools for building and deploying Apache OpenWhisk
https://openwhisk.apache.org/
Apache License 2.0
180 stars 126 forks source link

"waiting for the Whisk controller to come up ..." forever #219

Closed WalterFann closed 5 years ago

WalterFann commented 5 years ago

downloaded the latest version, still got this result.

rabbah commented 5 years ago

When this happens, it's like the controller crashed - there is a PR #155 to fix the forever part that you could try from @Juice10.

Can you check the controller logs in your tmp folder and post any errors that are logged there?

WalterFann commented 5 years ago

tried adding "wait-for-docker-compose-up" manually, yet got some bugs:

/bin/sh: 5: function: not found /bin/sh: 7: Syntax error: ";" unexpected Makefile:266: recipe for target 'wait-for-docker-compose-up' failed

could you please commit the verified changes?

Juice10 commented 5 years ago

I just pushed a fix, feel free to merge, should work now.

rabbah commented 5 years ago

155 now merged. @aBetterFun can you see if that helps?

WalterFann commented 5 years ago

Thank you so much, it finally works. And the reason it didn't work is probably not the script itself. Here is what I did. I created an EC2 server with only one vCPU. And I "make quick-start" with default configuration. I checked the log and found the limitation of CPU might cause the problem. So I created another one with multiple vCPUs, also pulled the latest version, and it worked. Thank you again, I have been stuck for days.

rabbah commented 5 years ago

Glad you’re unstuck. Sorry it took a bit of time.

aleks-myplanet commented 4 years ago

Hi, I'm getting this exact same issue since Mon Dec 9th 2019 (may have started sooner but was fine on Fri Dec 6th 2019). Was there any updates to the docker images that perhaps broken it once again?

arcsud91 commented 4 years ago

Hi, even I am facing the same since 9th Dec Morning. I believe some changes in the image has triggered this behavior.

VaguelySerious commented 4 years ago

Hi, I'm also facing the same issue and haven't been able to find a workaround. My system: Linux: 5.4.2-1 Distro: Manjaro KDE OpenWhisk Devtools: git master Python: 3.8 OpenJDK: 13 Docker: 19.03.5-ce docker-compose: 1.24.1

I had to wipe my drive and set it all up again two weeks ago, after which I couldn't get OpenWhisk to run anymore.

style95 commented 4 years ago

@VaguelySerious Could you share the controller logs? Generally, it would be located under ~/tmp/openwhisk/controller/logs/

VaguelySerious commented 4 years ago

@style95 I've searched through my past actions and it seems the original problem got resolved after I deleted all docker containers and images and reinstalled docker. For others with this problem, this might help. I did this before I got a chance to send the logs. Still not sure what the actual cause was.

style95 commented 4 years ago

@VaguelySerious ok. So are you still facing the issue or not? Would it be ok to keep this issue closed?

VaguelySerious commented 4 years ago

@style95 I'm not facing this issue anymore. You can keep it closed.