Sorry, I take that back, I just received the error again, please see below:
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, 'Name or service not known') ----- ----- from gluon.admin import apath # ########################################################### # ## make sure administrator is on localhost or https # ########################################################### http_host = request.env.http_host.split(':')[0] try: from gluon.contrib.gql import GQLDB session_db = GQLDB() session.connect(request, response, db=session_db) hosts = (http_host, ) except Exception: hosts = (http_host, socket.gethostname(), socket.gethostbyname(http_host), '::1','127.0.0.1','::ffff:127.0.0.1') remote_addr = request.env.remote_addr if request.env.http_x_forwarded_for or request.env.wsgi_url_scheme\ in ['https', 'HTTPS']: session.secure() elif not remote_addr in hosts: raise HTTP(200, T('Admin is disabled because insecure channel')) try: _config = {} port = int(request.env.server_port) restricted(open(apath('../parameters_%i.py' % port, request), 'r').read(), _config) if not 'password' in _config or not _config['password']: raise HTTP(200, T('admin disabled because no admin password')) except IOError: import gluon.fileutils if request.env.web2py_runtime_gae: if gluon.fileutils.check_credentials(request): session.authorized = True session.last_time = time.time() else: raise HTTP(200, T('admin disabled because not supported on google apps engine')) else: raise HTTP(200, T('admin disabled because unable to access password file')) On Sep 23, 10:09 pm, LB22 <latn.bl...@googlemail.com> wrote: > I think switching from AF_UNSPEC to AF_INET helped in that after > attempting several page requests I haven't received any errors yet. > Unfortunately though, I've still got some problems. Every few page > requests, the application seems to just hang. The browser will spend > up to a minute just waiting for my site to respond and return the > requested page. The admin area is also extremely slow. > > Is there anything else I could do to resolve this? I have deadline on > this site and its not even any half way finished. Thanks. > > On Sep 23, 9:47 pm, LB22 <latn.bl...@googlemail.com> wrote: > > > Sorry, I just googled and found it's location. I should done that > > first. I'll come back shortly with the outcome. Thanks. > > > On Sep 23, 9:40 pm, Yarko Tymciurak <yark...@gmail.com> wrote: > > > > gluon/wsgiserver.py (all core files will be found in gluon; all > > > application level things in applications area) > > > > On Wed, Sep 23, 2009 at 3:27 PM, LB22 <latn.bl...@googlemail.com> wrote: > > > > > 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 -~----------~----~----~----~------~----~------~--~---