{"action":"opened","issue":{"url":"https://api.github.com/repos/scalingexcellence/scrapybook/issues/3","repository_url":"https://api.github.com/repos/scalingexcellence/scrapybook","labels_url":"https://api.github.com/repos/scalingexcellence/scrapybook/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/scalingexcellence/scrapybook/issues/3/comments","events_url":"https://api.github.com/repos/scalingexcellence/scrapybook/issues/3/events","html_url":"https://github.com/scalingexcellence/scrapybook/issues/3","id":140914917,"number":3,"title":"Timeout error when trying scrapy shell against dockerized web site","user":{"login":"juananpe","id":1078305,"avatar_url":"https://avatars.githubusercontent.com/u/1078305?v=3","gravatar_id":"","url":"https://api.github.com/users/juananpe","html_url":"https://github.com/juananpe","followers_url":"https://api.github.com/users/juananpe/followers","following_url":"https://api.github.com/users/juananpe/following{/other_user}","gists_url":"https://api.github.com/users/juananpe/gists{/gist_id}","starred_url":"https://api.github.com/users/juananpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juananpe/subscriptions","organizations_url":"https://api.github.com/users/juananpe/orgs","repos_url":"https://api.github.com/users/juananpe/repos","events_url":"https://api.github.com/users/juananpe/events{/privacy}","received_events_url":"https://api.github.com/users/juananpe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-15T09:12:00Z","updated_at":"2016-03-15T09:12:00Z","closed_at":null,"body":"Hi there,\r\n\r\nI am having fun trying to set-up the Vagrant/Docker network in OSX 10.11.3 (El Capitan). \r\nFirst, a warning for all other OSX folks out there : don't use Vagrant 1.7.x or you will be stuck badly with non-sense errors in your console. Use the 1.8.1 (or newer version)\r\n\r\nThen, let's go with my problem. I can see all the docker boxes. I can even ssh into them (vagrant ssh works like a charm). From there, I can see that the web box is running OK and responding HTTP queries at tcp/9312 also :\r\n\r\n```\r\nroot@dev:~/book# telnet web 9312\r\nTrying 172.17.0.2...\r\nConnected to web.\r\nEscape character is '^]'.\r\nGET / HTTP/1.0\r\n\r\nHTTP/1.0 200 OK\r\nDate: Tue, 15 Mar 2016 08:50:03 GMT\r\nContent-Length: 261\r\nContent-Type: text/html\r\nServer: TwistedWeb/15.5.0\r\n\r\nResource not found. Try: <a href=\"properties/index_00000.html\">properties</a> <a href=\"images\">images</a>, <a href=\"dynamic\">dynamic</a>, <a href=\"benchmark/\">benchmark</a> <a href=\"maps/api/geocode/json?sensor=false&address=Camden%20Town%2C%20London\">maps</a> Connection closed by foreign host.\r\n```\r\n\r\nBut now, following the book (p. 113, section \"The URL\"), if I try to use the scrapy shell to connect with http://web:9312 , there is a timeout error that I can't grok:\r\n\r\n```\r\nroot@dev:~/book# scrapy shell http://web:9312\r\n2016-03-15 08:51:17 [scrapy] INFO: Scrapy 1.0.3 started (bot: scrapybot)\r\n2016-03-15 08:51:17 [scrapy] INFO: Optional features available: ssl, http11, boto\r\n2016-03-15 08:51:17 [scrapy] INFO: Overridden settings: {'LOGSTATS_INTERVAL': 0}\r\n2016-03-15 08:51:17 [scrapy] INFO: Enabled extensions: CloseSpider, TelnetConsole, CoreStats, SpiderState\r\n2016-03-15 08:51:17 [boto] DEBUG: Retrieving credentials from metadata server.\r\n2016-03-15 08:51:18 [boto] ERROR: Caught exception reading instance data\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/boto/utils.py\", line 210, in retry_url\r\n    r = opener.open(req, timeout=timeout)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 404, in open\r\n    response = self._open(req, data)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 422, in _open\r\n    '_open', req)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 382, in _call_chain\r\n    result = func(*args)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 1214, in http_open\r\n    return self.do_open(httplib.HTTPConnection, req)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 1184, in do_open\r\n    raise URLError(err)\r\nURLError: <urlopen error timed out>\r\n2016-03-15 08:51:18 [boto] ERROR: Unable to read instance data, giving up\r\n2016-03-15 08:51:18 [scrapy] INFO: Enabled downloader middlewares: HttpAuthMiddleware, DownloadTimeoutMiddleware, UserAgentMiddleware, RetryMiddleware, DefaultHeadersMiddleware, MetaRefreshMiddleware, HttpCompressionMiddleware, RedirectMiddleware, CookiesMiddleware, ChunkedTransferMiddleware, DownloaderStats\r\n2016-03-15 08:51:18 [scrapy] INFO: Enabled spider middlewares: HttpErrorMiddleware, OffsiteMiddleware, RefererMiddleware, UrlLengthMiddleware, DepthMiddleware\r\n2016-03-15 08:51:18 [scrapy] INFO: Enabled item pipelines:\r\n2016-03-15 08:51:18 [scrapy] DEBUG: Telnet console listening on 127.0.0.1:6023\r\n2016-03-15 08:51:18 [scrapy] INFO: Spider opened\r\n2016-03-15 08:51:18 [scrapy] DEBUG: Crawled (200) <GET http://web:9312> (referer: None)\r\n[s] Available Scrapy objects:\r\n[s]   crawler    <scrapy.crawler.Crawler object at 0x7fd50cd79b10>\r\n[s]   item       {}\r\n[s]   request    <GET http://web:9312>\r\n[s]   response   <200 http://web:9312>\r\n[s]   settings   <scrapy.settings.Settings object at 0x7fd50cd79a90>\r\n[s]   spider     <DefaultSpider 'default' at 0x7fd50bc80b50>\r\n[s] Useful shortcuts:\r\n[s]   shelp()           Shell help (print this help)\r\n[s]   fetch(req_or_url) Fetch request (or URL) and update local objects\r\n[s]   view(response)    View response in a browser\r\n\r\n```\r\n\r\nAny help will be much appreciated.\r\n\r\nGreetings,\r\n\r\n  Juanan"}}