# Help on getting NFS working - it seems impossible

**URL:** <https://forums.suse.com/t/help-on-getting-nfs-working-it-seems-impossible/6361>\
**Category:** General\
**Created:** [May 12, 2017, 2:04am UTC](https://forums.suse.com/t/help-on-getting-nfs-working-it-seems-impossible/6361 "2017-05-12T02:04:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leabdalla](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/leabdalla/32/2451_2.png) [@leabdalla](https://forums.suse.com/u/leabdalla)\
**Post date:** [May 12, 2017, 2:04am UTC](https://forums.suse.com/t/help-on-getting-nfs-working-it-seems-impossible/6361/1 "2017-05-12T02:04:12Z")

</div>

I’ve installed NFS 0.30 (last version) stack using catalog.  
The options are:

```auto
MOUNT_DIR /	
MOUNT_OPTS proto=tcp,port=2049,nfsvers=4	
NFS_SERVER xxx.xxx.xxx.xxx (digitalocean droplet public ip)

```

The container starts normally and seems to be working fine.  
So, then I try to create a simple stack using the NFS with this docker-compose:

````auto
version: '2'
services:
  web:
    image: nginx
    volumes:
    - bar:/var/bar

volumes:
  bar:
    driver: rancher-nfs
```

And I get this error:

```(Expected state running but got error: Error response from daemon: create aaaa_bar_8fa9a: VolumeDriver.Create: Failed nsenter -t 11437 -n mount -o proto=tcp,port=2049,nfsvers=4 xx.xx.xx.xx:/ /tmp/5ht8d)```

<img src="//cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/suse/original/2X/9/96f1a82333948a6ed1eccea76b21f2641623651c.png" width="690" height="86">

Any idea on this?
````

---

<div class="post-metadata">

**Author:** ![superseb](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/superseb/32/2424_2.png) [@superseb](https://forums.suse.com/u/superseb)\
**Post date:** [June 19, 2017, 2:37pm UTC](https://forums.suse.com/t/help-on-getting-nfs-working-it-seems-impossible/6361/2 "2017-06-19T14:37:24Z")

</div>

The top part is copied from the `docker-compose.yml`? Best way to troubleshoot is to look in the `nfs-driver` container logs, and if you can’t find anything useful, run it with `RANCHER_DEBUG: 'true'`

---

<div class="post-metadata">

**Author:** ![vishnuvpotty](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vishnuvpotty/32/2738_2.png) [@vishnuvpotty](https://forums.suse.com/u/vishnuvpotty)\
**Post date:** [August 30, 2017, 1:31am UTC](https://forums.suse.com/t/help-on-getting-nfs-working-it-seems-impossible/6361/3 "2017-08-30T01:31:38Z")

</div>

> [@leabdalla](#):
>
> MOUNT\_OPTS proto=tcp,port=2049,nfsvers=4

Hi,

Even I am facing same issues.  
My nfs logs says  
`Failed to mount jenkinsdata: Failed nsenter -t 48144 -n mount -o ,nfsvers=4 10.xx.xxx.xxx://jenkinsdata /var/lib/rancher/volumes/rancher-nfs/jenkinsdata`

Any idea whats going wrong here.

---

<div class="post-metadata">

**Author:** ![vishnuvpotty](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vishnuvpotty/32/2738_2.png) [@vishnuvpotty](https://forums.suse.com/u/vishnuvpotty)\
**Post date:** [August 30, 2017, 5:42am UTC](https://forums.suse.com/t/help-on-getting-nfs-working-it-seems-impossible/6361/4 "2017-08-30T05:42:56Z")

</div>

I got it working. The issue was while creating nfs catalog, I had given “/” for export base directory and in the server I had given /nfs.
