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

Windows: Sync volume not mounting to container (windows bash issue) #402

Closed
J-Fricke opened this issue May 19, 2017 · 13 comments
Closed

Windows: Sync volume not mounting to container (windows bash issue) #402

J-Fricke opened this issue May 19, 2017 · 13 comments

Comments

@J-Fricke
Copy link

Keep getting this error when starting docker-sync-stack

Error

ERROR: for web  Cannot start service web: error while mounting volume 
'/var/lib/docker/volumes/web-sync/_data': 
error while mounting volume with options: 
type='none' device='/home/User/Documents/dev/' o='bind': no such file or directory
Encountered errors while bringing up the project.
EXCEPTION: #<Docker::Compose::Error: 'up' failed with status 'pid 68 exit 1': Starting web>
MESSAGE: 'up' failed with status 'pid 68 exit 1': Starting web

Nothing exists here on this path /var/lib/docker/volumes/web-sync/_data

Sync strategy

default

docker-sync.yml

version: "2"
options:
  verbose: true
syncs:
  web-sync:
    src: '~/Documents/dev/'
    sync_host_port: 10871
    sync_excludes: ['.git', 'node_modules', '.idea', '.DS_Store']
    watch_excludes: ['current', 'logs', 'sphinx/var', 'xdebug']
    watch_args: '-v'

docker-compose.yml - relevant parts

  web:
    container_name: web
    image: web:latest
    build:
       context: ./
    networks:
      - net
    volumes:
      - web-sync:/web:nocopy
    ports:
      - "80:80"
      - "443:443"
volumes:
  web-sync:
    external: true

OS

Windows WSL - Linux

@donnykurnia
Copy link
Contributor

donnykurnia commented May 20, 2017

@J-Fricke try replace this line:
src: '~/Documents/dev/'

with absolute path
src: '/Users/......../Documents/dev/'

or relative path starting with .
src: './Documents/dev/'

Also for debugging, try run docker-sync by its own and then paste the log here.

@EugenMayer
Copy link
Owner

@donnykurnia AFAIR we use expand to deal with ~, so that should actually work. But that needs to be debugged. but in the logs above, we see /home/User/Documents/dev/ and that looks like properly expaneded i guess - but the path looks strange. Which OS is that @J-Fricke ?

Also, why do you set sync_host_port: 10871 ?

@J-Fricke
Copy link
Author

@donnykurnia Tested hard coding the user's path for this machine and it still gives the same error, so ~ is confirmed not the issue.

@EugenMayer This is Ubuntu on WSL Windows.

Unsure where that sync_host_port setting was derived, but it works fine on OSX version running elsewhere. Could remove that entry if it's not needed or change it to something else.

@EugenMayer
Copy link
Owner

port is auto-guessed so usually no need to set it usually

@J-Fricke
Copy link
Author

@EugenMayer That's what I thought and how I initially had it, then one system complained so I added that in there.

@EugenMayer
Copy link
Owner

@J-Fricke seems like a compose issue, or more bash on windows. I will rename the issue and keep it open for people coming by until the issue has been fixed.

Are you going to track it?

@EugenMayer EugenMayer changed the title Sync volume not mounting to container Windows: Sync volume not mounting to container (windows bash issue) May 26, 2017
@J-Fricke
Copy link
Author

J-Fricke commented May 26, 2017

@EugenMayer Yes, I've had to put it on hold a bit. I'll track this for now and update if I find a solution.

@EugenMayer EugenMayer added incomplete and removed bug labels May 31, 2017
@Lmbrtz
Copy link

Lmbrtz commented Jun 30, 2017

Any updates here? We're currently stuck here as well.

@J-Fricke
Copy link
Author

@MichaelFurtner No update currently, this project was put on hold and recently we simply decided to move forward with dev on another osx machine instead of attempting to get working with Windows.

@EugenMayer Note as of right now, I will no longer be working on this one.

@EugenMayer
Copy link
Owner

closing this issue since we have no movement but also nothing to grip and work on

@avremel
Copy link

avremel commented Jan 22, 2018

Running this docker implementation of Magento:
https://github.com/markoshust/magento-docker

**ERROR: for magento2_app_1  Cannot start service app: driver failed programming external connectivity on endpoint magento2_app_1 (359a0841e71cefd160dae84db9c0db3289ac924b3738f10e39c5f3abba5480cf): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)

ERROR: for app  Cannot start service app: driver failed programming external connectivity on endpoint magento2_app_1 (359a0841e71cefd160dae84db9c0db3289ac924b3738f10e39c5f3abba5480cf): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)
Encountered errors while bringing up the project.
EXCEPTION: #<Docker::Compose::Error: 'up' failed with status 'pid 5943 exit 1': Starting magento2_db_1 ... >
MESSAGE: 'up' failed with status 'pid 5943 exit 1': Starting magento2_db_1 ... **

@donnykurnia
Copy link
Contributor

donnykurnia commented Jan 23, 2018

@avremel the error that you got means that there are programs that already listen in port 80.
It's not related to docker-sync. Please read the docker documentation and learn about port binding.

Also, why put this issue here instead of on the mentioned github project?

@EugenMayer
Copy link
Owner

thanks @donnykurnia

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

5 participants