Just a random thought: Does the directory /neo4jEfs/conf/ exist? If not, 
you have to create it before you can write a file into it.


On Sunday, September 24, 2017 at 3:15:46 PM UTC+2, shivani...@gmail.com 
wrote:
>
> I am trying to setup Neo4jDB with EFS on a specific conf directory.
> Using InitContainer when I push config to subdirectory in EFS I get below 
> error in pod deployment as seen from /var/log/syslog for that particular 
> node instance having the pod. I do not see the mounting error details  - 
> just the message : ""install exited with 1" . Please guide where to get 
> details on init + mount errors in this case.
>
> The init container  config in the deployment yaml is as below:
>
>  annotations:
>         pod.beta.kubernetes.io/init-containers: '[
>         {
>                 "name": "install",
>                 "image": "gcr.io/google_containers/busybox:1.24",
>                 "command": ["/bin/sh","-x",  "-c", "echo \"
>                     dbms.connector.bolt.listen_address=0.0.0.0:7687\n
>                     dbms.directories.data=/neo4jEfs/data\n
>                     dbms.directories.logs=/neo4jEfs/logs\n
>                     dbms.connector.http.enabled=true\n
>                     dbms.connector.http.listen_address=0.0.0.0:7474\n
>                      \" > /neo4jEfs/conf/neo4j.conf" ],
>                 "volumeMounts": [
>                  {
>                         "name": "datadir",
>                         "mountPath": "/neo4jEfs"
>                  }
>               ]
>             }
>         ]'
>
>
> Back-off 2m40s restarting failed container=install 
> pod=neo4jdb-1498810968-2ffql_default 
>
> Error syncing pod 7747070b-a128-11e7-baea-0290680fe9e2 
> ("neo4jdb-1498810968-2ffql_default(7747070b-a128-11e7-baea-0290680fe9e2)"), 
> skipping: [failed to "InitContainer" for "install" with 
> RunInitContainerError: "init container \"install\" exited with 1"
>
>
> Sep 24 13:05:22  snap[7832]: , failed to "StartContainer" for "install" 
> with CrashLoopBackOff: "Back-off 2m40s restarting failed container=install 
> pod=neo4jdb-1498810968-2ffql_default(7747070b-a128-11e7-baea-0290680fe9e2)"
> Sep 24 13:05:22 ip-172-31-37-29 snap[7832]: ]
>
>
> Sep 24 13:05:30  snap[7871]: E0924 13:05:30.743608    7871 
> streamwatcher.go:109] Unable to decode an event from the watch stream: 
> stream error: stream ID 5; INTERNAL_ERROR
>
>
> Sep 24 13:05:30   snap[7871]: W0924 13:05:30.743685    7871 
> reflector.go:323] 
> k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:72:
>  
> watch of *api.Service ended with: very short watch
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to