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

Can not mount using docker plugin #33

Open
frimdo opened this issue Jul 3, 2017 · 2 comments
Open

Can not mount using docker plugin #33

frimdo opened this issue Jul 3, 2017 · 2 comments
Assignees

Comments

@frimdo
Copy link

frimdo commented Jul 3, 2017

I am failing to get docker volume plugin working. Am I doing something wrong?

Server:

infinit user signup --name dominik2 --fullname "Dominik2" -P "SECRET" --full
export INFINIT_USER=dominik2
infinit silo create --filesystem --name local --capacity 1GB 
infinit network create  --storage local --name my2-network --push 
infinit volume create  --network my2-network --name my2-volume 
infinit volume mount  --name my2-volume --cache --publish --allow-root-creation --mountpoint mnt/shared/

no errors

Client:

infinit user login --name dominik2 
export INFINIT_USER=dominik2 
infinit network fetch  
infinit volume fetch 
sudo infinit daemon run  --docker-user root

Client output:

infinit daemon run  --docker-user root
[cli.daemon] [main] started daemon
[elle.reactor.network.http] [request 0xef2d60] HttpServer(port=0): handle request from 0xef2d60: /VolumeDriver.List {} POST
[elle.reactor.network.http] [request 0xf94e30] HttpServer(port=0): handle request from 0xf94e30: /VolumeDriver.Get {} POST
[elle.reactor.network.http] [request 0xf94be0] HttpServer(port=0): handle request from 0xf94be0: /VolumeDriver.Path {} POST
[elle.reactor.network.http] [request 0xf93fb0] HttpServer(port=0): handle request from 0xf93fb0: /VolumeDriver.Mount {} POST
Running network "dominik2/my2-network".
[infinit.Network] [main] client version: 0.8.0
[infinit.model.Model] [main] infinit::model::Model(0x2d00ed0): compatibility version 0.7.3
[infinit.model.doughnut.Doughnut] [main] Not using UTP although network configuration selects 'all' protocols. UTP has been temporarily deprecated. Force with INFINIT_UTP=1.
[      infinit.prometheus       ] [main] infinit::prometheus::Prometheus(0x7f94e73d0410): listen on 127.0.0.1:8080
[      infinit.prometheus       ] [main] infinit::prometheus::Prometheus(0x7f94e73d0410): creation failed, metrics will not be exposed: null context when constructing CivetServer. Possible problem binding to port.
Running volume "dominik2/my2-volume".
[      infinit.filesystem       ] [fuse loop] unable to find root block, allow creation with --allow-root-creation
[      infinit.filesystem       ] [fuse loop] unable to find root block, allow creation with --allow-root-creation
[      infinit.filesystem       ] [fuse loop] unable to find root block, allow creation with --allow-root-creation
[      infinit.filesystem       ] [fuse loop] unable to find root block, allow creation with --allow-root-creation
[      infinit.filesystem       ] [fuse loop] unable to find root block, allow creation with --allow-root-creation
[      infinit.filesystem       ] [fuse loop] unable to find root block, allow creation with --allow-root-creation
[      infinit.filesystem       ] [fuse loop] unable to find root block, allow creation with --allow-root-creation
[      infinit.filesystem       ] [fuse loop] unable to find root block, allow creation with --allow-root-creation
[      infinit.filesystem       ] [fuse loop] unable to find root block, allow creation with --allow-root-creation
[      infinit.filesystem       ] [fuse loop] unable to find root block, allow creation with --allow-root-creation
[      infinit.filesystem       ] [fuse loop] unable to find root block, allow creation with --allow-root-creation

The error says, that I need to --allow-root-creation, but it is already allowed on server...

@at88mph
Copy link

at88mph commented Jul 4, 2017

Hi @frimdo. Did you try infinit volume run instead of infinit volume mount? That worked for me.

@Dimrok
Copy link

Dimrok commented Jul 5, 2017

Hi @frimdo and @at88mph.

infinit volume run and infinit volume mount do exactly the same, except mount forces you to provide the --mountpoint option.

The problem seems to be that your container cannot reach the server.

When you run your server (infinit volume mount --name my2-volume --cache --publish --allow-root-creation --mountpoint mnt/shared) with the --publish option, the endpoints of the server are published to the hub so other nodes can contact it.

After you run the server, can you check https://beyond.infinit.sh/networks/dominik2/my2-network and see the endpoints ? It should look like that:

  "xxx": {
    "<uuid>": {
      "addresses": [
        "<ip_v4>", ... 
        "<ip_v6>", ...
      ],
      "port": 32214
    }
  }
}

Maybe no endpoints have been published or your containers can't reach thoose endpoints...

If you are running both (server and clients) on the same machine, you can try to use the --peers option.

@Dimrok Dimrok self-assigned this Aug 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants