scalingexcellence / scrapybook

Scrapy Book Code

Home Page:http://scrapybook.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stderr:docker Error

preethamninja opened this issue · comments

I am relatively new to vagrant and docker.
i get the following error when i perform the following command.
vagrant up --no-parallel

A Docker command executed by Vagrant didn't complete successfully!
The command run along with the output from the command is shown
below.

Command: "docker" "run" "--name" "spark" "-d" "-p" "21:21" "-p" "30000:30000" "-p" "30001:30001" "-p" "30002:30002" "-p" "30003:30003" "-p" "30004:30004" "-p" "30005:30005" "-p" "30006:30006" "-p" "30007:30007" "-p" "30008:30008" "-p" "30009:30009" "-v" "var\lib\docker\docker_1495457854_50822:/root/book" "-h" "spark" "scrapybook/spark"

Stderr: docker: Error response from daemon: create var\lib\docker\docker_1495457854_50822: volume name invalid: "var\\lib\\docker\\docker_1495457854_50822" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed.
See 'docker run --help'.

I haven't seen this before. What operating system, vagrant version, is virtualbox installed etc?

Operating System: Windows sever 2016
Vagrant version 1.9.5
Yes virtual box has been installed

Ok, sounds good. In which timezone are you? Might we be able to do a teemviewer session sometime later today/tomorrow to fix this?

i am free now, will be available for another 6 hours, you can let me know when you are free , so will come online at that time.

Hi,

I am having the same issue on Windows, Were you able to resolve this ? Many thanks.

I will be available around 9:00 PM EST. Could you guys e-mail me at lookfwd@gmail.com to connect and fix this? I apologize, but every time there's a new vagrant release, always something breaks.

Same issue here...
Windows 10
Vagrant 1.9.5
VirtualBox 5.1.22 r115126
Docker 17.04.0-ce, build 4845c56

Thank you.

Based on your comment about "every time there's a new vagrant release, always something breaks" I downgraded to 1.8.5 and now it works fine...

Yep, 1.9.2 is the last stable one. That said, I will hopefully connect to someone's PC or reproduce the error myself and see if I can pinpoint the issue. I'll see if there's a workaround I can put on the Vagrantfile or open yet another vagrant issue.

Hi, downgrading to a older version worked, thanks a lot for the help.

I tried to reproduce this with 1.9.5 tonight. I got even more weird errors but somewhat later. I'll look at them. The error you're you're getting, highly likely is the one from hashicorp/vagrant#8608. I would revert the change they mention there (hashicorp/vagrant@5d83c03) to see if it fixes it and contribute that to the discussion in hashicorp/vagrant#8608.

For resolution, see issue #32. Will likely be fixed in future vagrant version.

There was another bug in Vagrant causing this. This is the fix: hashicorp/vagrant#8921

:-) I can bang my head. I love your book "Learning Scrapy". But I also hit the same error, and tried to fixed it myself. Though I know docker and vagrant very well. However, I was not aware of the bug. After hours of trail and error, I saw this post. I will downgrade vagrant, and see if thinks work.

Try also this fix, it shouldn't be that hard to apply - just 3 tiny edits. Yes - very annoying bug and it remained alive for waaay too long :)

hello, have you solved this problem?