How to fix socket.gaierror: (11004, 'getaddrinfo failed') error in GAE?

25,424

Solution 1

FIXED! after days looking for this problem: I just deleted this line "0.0.0.0 localhost " from my hosts file located in "C:\Windows\System32\drivers\etc" thanks anyway!!

Solution 2

Had same problem here, I had to add

127.0.0.1 myhostname

and

::1 myhostname

to /etc/hosts

Share:
25,424
Totty.js
Author by

Totty.js

Learn JavaScript: Pro JavaScript 2013 02: 2º and 3º iteration on the Tcanvas. 2013 01: Build a graph for a production application with my custom html5 canvas framework (Tcanvas) 2012 12: Building a custom html canvas framework on the qooxdoo platform (Tcanvas) 2012 10: Starting to play with html5 canvas. 2012 10: First release of a Qooxdoo + Node.js + MongoDB on Ubuntu + NGinx. 2012 02: Developing software using Qooxdoo + Node.js. First test project. 2011 12: New presentation: Future web architecture (Don't code crap) 2011 12: Stop working on the JS framework, because I have no time. 2011 09: Progress & Changes in the core of the Totty's framework. Researching design patterns and alternatives to classical ( and prototypical ) inheritance for flexible edits in too-late stages of development. Learned advanced and performance techniques in javascript. 01.03.2011: The first javascript framework (Totty) that you only need to know Javascript Sugar: http://www.slideshare.net/tottys/web-application-with-just-javasc 2011 02: Researching new design patterns for rich internet applications (or just web applications); Currently building a javascript framework designed for building RIAs with a look at: performance, MVC structure, modularized, classical inheritance + mixins, ease to use. before 2011: RIA with Flex4 example Used Flex3 & 4; UI Design; UX; Future web architecture (Don't code crap)

Updated on May 16, 2020

Comments

  • Totty.js
    Totty.js almost 4 years

    I'm using Aptana and GAE. When I run GAE launcher or run a server in Aptana 3, I get this error... I've downloaded the lastest version of GAE and still doesnt work...

    Traceback (most recent call last):
      File "C:\google_appengine\dev_appserver.py", line 76, in <module>
        run_file(__file__, globals())
      File "C:\google_appengine\dev_appserver.py", line 72, in run_file
        execfile(script_path, globals_)
      File "C:\google_appengine\google\appengine\tools\dev_appserver_main.py", line 665, in <module>
        sys.exit(main(sys.argv))
      File "C:\google_appengine\google\appengine\tools\dev_appserver_main.py", line 629, in main
        static_caching=static_caching)
      File "C:\google_appengine\google\appengine\tools\dev_appserver.py", line 4818, in CreateServer
        server = HTTPServerWithScheduler((serve_address, port), handler_class)
      File "C:\google_appengine\google\appengine\tools\dev_appserver.py", line 4844, in __init__
        request_handler_class)
      File "C:\Python25\lib\SocketServer.py", line 330, in __init__
        self.server_bind()
      File "C:\Python25\lib\BaseHTTPServer.py", line 101, in server_bind
        SocketServer.TCPServer.server_bind(self)
      File "C:\Python25\lib\SocketServer.py", line 341, in server_bind
        self.socket.bind(self.server_address)
      File "<string>", line 1, in bind
    socket.gaierror: (11004, 'getaddrinfo failed')
    Exception exceptions.AttributeError: '_shutdown' in <module 'threading' from 'C:\Python25\lib\threading.pyc'> ignored
    2011-05-30 21:57:24 (Process exited with code 1)
    
    • Totty.js
      Totty.js almost 13 years
      FIXED! after days looking for this problem: I just deleted this line "0.0.0.0 localhost " from my hosts file located in "C:\Windows\System32\drivers\etc" thanks anyway!!