anyone? this is a huge issue causing us serious trouble on our production 
site.

So far it seems that this only happens on startup when the threads are 
initialized. There must be some kind of race condition during 
initialization. It seems to be related to multiple simultaneous requests 
which are triggered on our pages containing many images. The browser will 
start many requests at the same time to fetch all the images so this is 
probably related.

I also experienced this issue a few times locally using the integrated 
web2py webserver. So this has nothing to do with Apache or mod_wsgi.


On Monday, October 14, 2019 at 3:28:31 PM UTC+2, Alex wrote:
>
> We have upgraded to the latest web2py version 2.18.5 (from a very old 
> 2.12.3) and also changed from Python 2 to 3.
>
> Most things are working fine but we have one major issue: from time to 
> time a language file gets overwritten. We did not experience this problem 
> before.
>
> In a model file we explicitly set T.is_writable to False. After 
> determining the used language we set the flag:
>
> T.force(session_language)
> T.is_writable = False
>
>
> When the language file is overwritten usually only one or two labels are 
> added to the file. But sometimes it happens that the language file only 
> contains the new label and then all translations are lost.
>
> How is it possible that web2py overwrites the language file when we set 
> the is_writable flag? are there any possible race conditions as this 
> problem only occurs very rarely?
>
> For now we changed the file owner of the language files to root so web2py 
> cannot corrupt our translation files but of course this is only a temporary 
> workaround. Any ideas?
>
> Alex
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/fb3bb70c-4ef0-4d59-a1a6-e5141c892e81%40googlegroups.com.

Reply via email to