Closed erclu closed 3 years ago
@erclu is your machine a VM or running directly on bare metal? Regardless, what type/model CPU is installed?
the windows machine is a dell inspiron with an intel i7 8565U, 8 GB ram DDR4. Docker Desktop runs on WSL2 so i guess that counts as a VM.
the ubuntu machine is a physical computer with microk8s installed through snap. I think microk8s itself does not run on a VM but i'm not 100% sure on that. the processor is an older one, Intel® Pentium® Processor E5700 @ 3.00GHz with 8 GB ram DDR2
OK, this makes sense now, and yes--likely the same problem as #333 (though we never got to the bottom of that one with the person reporting it).
Your Windows machine is a relatively modern, 8th-gen Core i7, whereas your Ubuntu machine is running on a processor that's over ten years old. I think the issue is likely that your CPU doesn't support SSE 4.2 and/or AVX, which weren't introduced until 2011. The OpenResty binaries are expecting those extensions to exist, but they don't.
You can likely re-compile and get a container that works, but I haven't tried it to know for sure. Searching around on the internet will probably help. You could try running docker build .
against the API Gateway on your Ubuntu machine and perhaps you'd have success that simply, but again--not sure. :-)
Good luck!
@mhamann thank you SO MUCH for the insight, I had been dealing with this for like 2 weeks. I managed to fix pretty much everything by adding the parameter --with-luajit-xcflags='-mno-sse4.2'
inside the Dockerfile. It should have some performance issues but it's not really relevant in a non-production environment which is my case.
thanks again!
When following the instructions detailed in https://github.com/apache/openwhisk-apigateway#quick-start the container crashes with this error:
I'm talking about these lines specifically:
this is the output when running a shell inside the container:
Meaning (i guess) that the apigateway has not even started...
I'm using docker on ubuntu 20.04 server. The same problem also appears when running the openwhisk-apigateway on a microk8s kube cluster with a different container runtime, which is how I initially encountered the issue. Though strangely the whole thing works smoothly (at least regarding the apigateway) when deploying on the kubernetes cluster included with docker desktop for windows.
It could be helpful to know that the most recent tagged version that works in my docker environment is the one tagged with
0.9.0
(though using that one is not a viable solution because of another separate bug)Might be correlated with #333 .
Version information
docker on ubuntu:
kubectl on ubuntu:
same bug happens with microk8s v 1.18. I've tried after i saw that it worked on docker desktop for windows.
docker on windows:
kubectl on windows: