-
Notifications
You must be signed in to change notification settings - Fork 41
guestbook example is broken #520
Comments
Ummm. Confused what example you're using. It says: Yet our folder-name is https://github.com/kedgeproject/kedge/tree/master/examples/guestbook-demo |
Nvm, I am getting the same error too: ▶ kubectl logs mongodb-2659439370-1vmwl
=> sourcing 10-check-env-vars.sh ...
=> sourcing 20-setup-wiredtiger-cache.sh ...
=> sourcing 30-set-config-file.sh ...
=> sourcing 35-setup-default-datadir.sh ...
ERROR: Couldn't write into /var/lib/mongodb/data
CAUSE: current user doesn't have permissions for writing to /var/lib/mongodb/data directory
DETAILS: current user id = 184, user groups: 997 0
stat: failed to get security context of '/var/lib/mongodb/data': No data available
DETAILS: directory permissions: drwxr-xr-x owned by 0:0, SELinux: ? |
@containscafeine The old-example works (using the bitnami container). We'll have to trouble-shoot this and fix up the current container we use. ▶ ./kedge apply -f backend.yaml -f frontend.yaml -f db.yaml
service "backend" configured
deployment "backend" configured
service "frontend" configured
deployment "frontend" configured
persistentvolumeclaim "mongodb-data" configured
service "mongodb" configured
secret "mongodb-admin" configured
secret "mongodb-user" configured
configmap "mongodb-user" configured
deployment "mongodb" configured
github.com/kedgeproject/kedge master ✗ 18h55m ◒ ⍉
▶ kubectl get po -w
NAME READY STATUS RESTARTS AGE
backend-2776521642-zf5kl 1/1 Running 0 2m
frontend-2675451940-nq6d6 1/1 Running 0 2m
mongodb-3720339234-1njhr 1/1 Running 0 34s |
hmm, that is strange it works on OpenShift but not on Kubernetes (minishift/minikube). We should report it so it can be fixed. Those CentOS images are in really bad shape. |
Hey @kadel I was toying the idea of changing our Guestbook-go example to reflect the official one (using redis + redis clusters, go application rather than PHP, etc.). Have you already begun work on this, and if not, mind if I take up this issue? |
Nevermind, I see @surajnarwade has already began that. What's the status of your work @surajnarwade ? I could provide some help. |
@cdrage @kadel @containscafeine , I have started working on it. |
Okay! Push to a fork or GitHub PR if you need help. I started on it for a
bit before I realized that you had already began.
|
The text was updated successfully, but these errors were encountered: