Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exit status 32 #130

Open
Sattera opened this issue Jun 21, 2017 · 6 comments
Open

exit status 32 #130

Sattera opened this issue Jun 21, 2017 · 6 comments

Comments

@Sattera
Copy link

Sattera commented Jun 21, 2017

Hi Team,

The command i ran the below command received the Error output

docker run -i -t --volume-driver=nfs -v 10.1.12.123/xbbl47nvol1:/mount ubuntu /bin/bash

INFO[0393] Unmounting volume name 10.1.12.123/xbbl47nvol1 from /var/lib/docker-volumes/netshare/nfs/10.1.12.123/xbbl47nvol1
2017/06/21 03:12:18 umount: /var/lib/docker-volumes/netshare/nfs/10.1.12.123/xbbl47nvol1: not mounted

ERRO[0393] Error unmounting volume from host: exit status 32
Error response from daemon: Cannot start container 8b1aea6119d41a332d972aeaef72464ef5d53f7ac722d77154f776bb57656635: Plugin Error: VolumeDriver.Mount, {"Mountpoint":"","Err":"exit status 32","Volumes":null,"Volume":null,"Capabilities":{"Scope":""}}

@rdxmb
Copy link

rdxmb commented Aug 28, 2017

same problem here:

root@docker-single-host:/opt# docker run -it --volume-driver=nfs -v 192.168.253.100/srv/nfs4/docker-data:/nfs phusion/baseimage /bin/bash
docker: Error response from daemon: error while mounting volume '/': VolumeDriver.Mount: exit status 32.
root@docker-single-host:/opt# showmount -e 192.168.253.100
Export list for 192.168.253.100:
/srv/nfs4/docker-data 192.168.253.0/24
/srv/nfs4             192.168.253.0/24
root@docker-single-host:/opt# docker --version
Docker version 17.06.1-ce, build 874a737

plugin was installed from
https://github.com/ContainX/docker-volume-netshare/releases/download/v0.20/docker-volume-netshare_0.20_amd64.deb

some additional infos:

root@docker-single-host:/var/lib/docker# mount 192.168.253.100:/srv/nfs4/docker-data /tmp
root@docker-single-host:/var/lib/docker# mountpoint /tmp
/tmp is a mountpoint
root@docker-single-host:/var/lib/docker# ls -la /tmp/
total 24
drwxrwxr-x  6 root root 4096 Aug 28 13:40 .
drwxr-xr-x 23 root root 4096 Aug 28 11:49 ..
drwxr-xr-x  3 root root 4096 Aug 22 17:03 baseimage-debug
drwxr-xr-x  2 root root 4096 Aug 24 17:34 bla
drwxr-xr-x  2 root root 4096 Aug 24 17:39 blablubb
drwxr-xr-x  5 root root 4096 Aug 23 12:53 monitoring

@rdxmb
Copy link

rdxmb commented Aug 28, 2017

ok, got it. No issue. @Sattera
In my case this was issued by the "new" syntax of NFSv4.

Try to use:
docker run -i -t --volume-driver=nfs -v 10.1.12.123/:/mount ubuntu /bin/bash

This should work, for /here is the "root" path of your NFS-Share.
see also: https://help.ubuntu.com/community/NFSv4Howto#NFSv4_Server

@seffyroff
Copy link

seffyroff commented Apr 9, 2018

Seeing a similar issue here with docker volume create:

seffyroff@rombus:~$ docker volume create -d nfs --name testvol44 -o share=pve:/
testvol44
seffyroff@rombus:~$ docker run -it --rm -v testvol44:/data ubuntu bash
docker: Error response from daemon: error while mounting volume '/var/lib/docker-volumes/netshare/nfs/testvol44': VolumeDriver.Mount: exit status 32.

Issue #133 seems related.

@ulm0
Copy link

ulm0 commented Apr 11, 2018

Facing similar issue, can't deploy swarm services using nfs volumes

$ docker volume inspect git_redis
[
    {
        "CreatedAt": "0001-01-01T00:00:00Z",
        "Driver": "nfs",
        "Labels": {
            "com.docker.stack.namespace": "git"
        },
        "Mountpoint": "/var/lib/docker-volumes/netshare/nfs/git_redis",
        "Name": "git_redis",
        "Options": {
            "share": "192.168.1.7:/gitlab/redis"
        },
        "Scope": "local"
    }
]

## Testing volume
$ docker run --rm -it -v git_redis:/redis alpine sh
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
95d54dd4bdad: Already exists 
72bf7d76c392: Pull complete 
Digest: sha256:7df6db5aa61ae9480f52f0b3a06a140ab98d427f86d8d5de0bedab9b8df6b1c0
Status: Downloaded newer image for alpine:latest
docker: Error response from daemon: error while mounting volume '/var/lib/docker-volumes/netshare/nfs/git_redis': VolumeDriver.Mount: exit status 32.

@jakirpatel
Copy link
Contributor

@ulm0 @seffyroff

This issue is fixed with my patch please check the PR.

@mehai
Copy link

mehai commented Sep 13, 2020

Hi,

I encountered the same error. However, I think that this can have multiple causes.

How to investigate:
docker-volume-netshare nfs --verbose
This is going to show you the logs.
IMPORTANT: make sure you don't have multiple instances of this process running.
Then simply try to start the desired container and see what the logs tell you.

For me the problem was that I didn't fulfill the prerequisites. NFS needs to be installed on Linux systems in order to properly mount NFS mounts.

  • For Ubuntu/Debian: sudo apt-get install -y nfs-common
  • For RHEL/CentOS: sudo yum install -y nfs-utils

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants