Closed Sandeep10parmar closed 4 years ago
py stacktrace
File "recommendation_server.py", line 127
except Exception, err:
^
SyntaxError: invalid syntax
cc @Daniel-Sanche
I am able to run this app locally from master and haven’t hit this today.
cc @Daniel-Sanche
I am able to run this app locally from master and haven’t hit this today.
thanks for quick response @ahmetb ..I'll test that.
@Sandeep10parmar Is that stacktrace from running the file locally (not the container itself)? That error makes it seem like it's being run on Python 3 instead of 2.7, but that wouldn't make sense when using the container
I don't actually see anything in the logs that would cause a failure, and I can't reproduce anything on my end. What are you using for your local cluster? Minkube? Kind? Docker for Desktop?
If you just want to get things working, you should try un-commenting these fields in the recommendation deployment:
# - name: DISABLE_TRACING
# value: "1"
# - name: DISABLE_PROFILER
# value: "1"
# - name: DISABLE_DEBUGGER
# value: "1"
You may also want to try removing the liveness probe to see if that helps
@Daniel-Sanche
You're right, I was trying to run python on vm vs. container which explains the failure. I did try with un-commenting these fields.
Trying to run app on 3 node Ubuntu Cluster running on virtual box (ubuntuinstall)
cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.4 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
kubectl get nodes
NAME STATUS ROLES AGE VERSION
ubs1 Ready master 3d11h v1.12.7
ubs2 Ready <none> 3d11h v1.12.7
ubs3 Ready <none> 3d11h v1.12.7
kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.7", GitCommit:"6f482974b76db3f1e0f5d24605a9d1d38fad9a2b", GitTreeState:"clean", BuildDate:"2019-03-25T02:49:02Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}
docker version
Client:
Version: 18.06.1-ce
API version: 1.38
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:24:51 2018
OS/Arch: linux/amd64
Experimental: false
Server:
Engine:
Version: 18.06.1-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:23:15 2018
OS/Arch: linux/amd64
Experimental: false
kubelet --version
Kubernetes v1.12.7
kubectl version
Client Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.7", GitCommit:"6f482974b76db3f1e0f5d24605a9d1d38fad9a2b", GitTreeState:"clean", BuildDate:"2019-03-25T02:52:13Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.10", GitCommit:"e3c134023df5dea457638b614ee17ef234dc34a6", GitTreeState:"clean", BuildDate:"2019-07-08T03:40:54Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}
Removing liveness probes on recommendationservice did help to get all pods running.
# livenessProbe:
# periodSeconds: 5
# exec:
# command: ["/bin/grpc_health_probe", "-addr=:8080"]
kubectl get pods -n hipster-shop
NAME READY STATUS RESTARTS AGE
adservice-7bddd55c58-knspz 1/1 Running 0 8h
cartservice-7fd6df59f7-f9bsr 1/1 Running 2 8h
checkoutservice-686fb854f6-5f88v 1/1 Running 0 8h
currencyservice-74b598c8-5kmsj 1/1 Running 0 8h
emailservice-869f4fdc96-wc4xj 1/1 Running 0 8h
frontend-5b7d6d8f7d-842dx 1/1 Running 0 8h
loadgenerator-5c5d7585c6-wkj9h 1/1 Running 3 8h
paymentservice-7bbd4cc8cb-96j8p 1/1 Running 0 8h
productcatalogservice-7b7bdb85b4-t6lmw 1/1 Running 0 8h
recommendationservice-546fb5949d-cpqcl 1/1 Running 0 8h
redis-cart-d999c4589-zd6pc 1/1 Running 0 8h
shippingservice-74f6d5dd4d-dbm5q 1/1 Running 0 8h
For some reasons External IP on Front-end External LB is not publishing. This is probably because my environment is not using GCP.
kubectl get svc frontend-external -n hipster-shop
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
frontend-external LoadBalancer 10.100.0.6 <pending> 80:30704/TCP 8h
Patched frontend-external svc to include externalIPs to access applications outside the k8cluster.
kubectl patch svc frontend-external -n hipster-shop -p '{"spec": {"type": "LoadBalancer", "externalIPs":["<ip-address of masternode>"]}}'
kubectl get svc frontend-external -n hipster-shop
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
frontend-external LoadBalancer 10.100.0.6 10.0.0.240 80:30704/TCP 40h
Thanks for your help! @Daniel-Sanche
TTTTThank uuuuuuu!!!!!@Daniel-Sanche
I expected this issue to be already resolved #318 Still getting this issue when deploying to local cluster v1.12.7 Deployed using:
get pods
logs pod
Describe pod