On Mon, Feb 27, 2012 at 10:22 AM, Alan Etkin <[email protected]> wrote:

> I guess that there is code in the app that could be rendering the
> module readable or not between requests. Why would web2py or the
> operating system find the module randomly?
>

Concurrency, race conditions and those things.

"spiffytech", how is your process/threads apache and wsgi conf?

"spiffytech", have you noticed if this errors happen when traffic is higher
or similar?


>
> On 24 feb, 10:46, spiffytech <[email protected]> wrote:
> > My web2py app is hosted on Apache with mod_wsgi. Sometimes I'm
> > browsing through it and web2py encounters an error:
> >
> >     ImportError: No module named mobileblur.modules.newsblur
> >
> > Caused by this line in my models file:
> >
> >     nb_module = local_import("newsblur")
> >
> > This only happens occasionally, but on seemingly any page. Funny thing
> > is, if I hit the browser's refresh button the page loads fine. And
> > since nearly every page on the site requires that module, I know the
> > import works most of the time.
> >
> > The permissions on the module are -rw-r--r--, apache:apache (the same
> > user:group Apache is configured to use).
> >
> > The full source code can be found here[0], and I can provide
> > additional information on the server if needed.
> >
> > What could be going wrong?
> >
> > [0]
> https://github.com/spiffytech/MobileBlur/tree/master/applications/mob...


[],
-- 
Luciano Pacheco
blog.lucmult.com.br

Reply via email to