Hi,

Sorry, I can't seem to locate that file. In which folder should it be?

On Sep 23, 9:01 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> As an experiment edit wsgiserver.py and replace
>     socket.AF_UNSPEC
> with
>     socket.AF_INET
> everywhere. This will force it to use IPV4 instead of IPV6. It may be
> an IPV6 issue.
>
> Massimo
>
> On Sep 23, 2:32 pm, LB22 <latn.bl...@googlemail.com> wrote:
>
> > Hi,
>
> > I got some feedback from webfaction support (where my site is hosted),
> > and he provided the below. Does anyone understand what is happening?
> > Thanks in advance.
>
> > Please see the support email:
>
> > Today I took a closer look at this and noticed your error is with
> > "gaierror" after researching this I notice it's a telnetlib error, so
> > this may be a different problem altogether as your site is failing to
> > open whatever it's doing with telnet. I see a bunch of apachewsgi_2/
> > apache2/logs/wsgi.2716.0.1.sock: No such device or address what are
> > those?
>
> > I also notice that this is the admin failing somehow
>
> > applications/admin/errors/
> > 78.86.122.244.2009-09-21.08-03-04.5e2f3b7f-22da-462f-9d29-3e2f3863f219:S'Traceback
> > (most recent call last):\n  File "gluon/restricted.py", line 98, in
> > restricted\n    exec ccode in environment\n  File "/home/lnoir/webapps/
> > apachewsgi/web2py/applications/admin/controllers/default.py", line 43,
> > in <module>\n    socket.gethostbyname(http_host))\ngaierror: (-2,
> > \'Name or service not known\')\n'
>
> > Also the code failing is at: /home/lnoir/webapps/apachewsgi/web2py/
> > gluon/wsgiserver.py
>
> >        else:
>
> >            # AF_INET or AF_INET6 socket
> >            # Get the correct address family for our host (allows IPv6
> > addresses)
>
> >            (host, port) = self.bind_addr
> >            try:
> >                info = socket.getaddrinfo(
> >                    host,
> >                    port,
> >                    socket.AF_UNSPEC,
> >                    socket.SOCK_STREAM,
> >                    0,
> >                    socket.AI_PASSIVE,
> >                    )
> >            except socket.gaierror:
>
> >                # Probably a DNS issue. Assume IPv4.
>
> >                info = [(socket.AF_INET, socket.SOCK_STREAM, 0, '',
> >                        self.bind_addr)]
>
> > That said I can't really pinpoint the problem as I'm not familiar with
> > web2py, I suggest you take that to their usergroup as it may be
> > possible it's trying to create a connection that is failing to
> > resolve.
>
> > I'll see if
>
> > On Sep 23, 2:28 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > I do not think this something you caused. I cannot completely rule it
> > > out without looking at the code but it is unlikely.
> > > Has anybody else had this problem?
>
> > > Massimo
>
> > > On Sep 23, 8:18 am, LB22 <latn.bl...@googlemail.com> wrote:
>
> > > > Hi, thanks for responding.
>
> > > > I've considered this but I don't know why it would suddenly become
> > > > inaccessible. It was working fine then suddenly stopped working
> > > > properly. And the problem is intermittent too, so it will work on
> > > > every other page request, or every third page request, but then not
> > > > work again.
>
> > > > I'm on webfaction and have a couple of apps working fine. I don't know
> > > > what could have suddenly caused this problem. Could be something I did
> > > > in the app?
>
> > > > On Sep 23, 2:08 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > > > Is it possible the DNS is not configured or not accessible?
>
> > > > > On Sep 23, 6:33 am, LB22 <latn.bl...@googlemail.com> wrote:
>
> > > > > > Hi, I wonder if anyone can help. The problem I'm experiencing is
> > > > > > beyond the scope of my knowledge. For some reason I started 
> > > > > > receiving
> > > > > > this error when trying access the front end of my application, and
> > > > > > also using the backend. I don't get it every single time I try to
> > > > > > navigate, but I get it MOST times and, when I can navigate, the
> > > > > > application now takes an extremely long time to load each page.
>
> > > > > > Can anyone help?
>
> > > > > > Details of the error are below. How can I fix this? Thanks.
>
> > > > > > Traceback (most recent call last):
> > > > > >   File "gluon/restricted.py", line 178, in restricted
> > > > > >     exec ccode in environment
> > > > > >   File 
> > > > > > "/home/lnoir/webapps/latnblack/web2py/applications/admin/models/
> > > > > > access.py", line 15, in <module>
> > > > > >     socket.gethostbyname(http_host),
> > > > > > gaierror: (-2, 'Nameorservicenot known')
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to