[web2py] MySQL cache issues

2020-04-15 Thread Joel Samuelsson
Got help earlier with keeping my database connections alive between 
requests:
https://groups.google.com/forum/#!topic/web2py/QraWtFvlqf8

I put my databases in a module like this:

class Databases():


 _td_db = None


 @staticmethod
 def getTDDB():
 dbCreated = False
 if Databases._td_db is None:
 Databases._td_db = DAL('mysql://' + TD_DB_MYSQL_USER + ':' + 
TD_DB_MYSQL_PASS + '@' + TD_DB_URL + ':' + TD_DB_PORT + '/TD')
 dbCreated = True


 return Databases._td_db, dbCreated

After doing this I get very weird issues:
- Writing a value sometimes fails with lock timeout
- Writing a value and then reading a value sometimes doesn't give the 
written value back but instead what was written before (cache issue?)

I find nothing in web2py documentation about inbuilt caching, any idea what 
may cause these issues?

Going back to always recreating the DAL object seems to fix the issues.

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/203c6fd1-e25b-4f5c-91a4-bbf30d5dda6e%40googlegroups.com.


[web2py] Re: Getting an error that ends in "No driver of supported ones %s is available" % str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) is available

2020-04-15 Thread Dave S


On Tuesday, April 14, 2020 at 4:29:12 PM UTC-7, Valdeck Rowe wrote:
>
> Also tried installing psycopg2-binary to no avail
>
>
Installed in the system python, or locally in the web2py folders?

What does your PYTHONPATH variable look like?

/dps
 

> On Tuesday, April 14, 2020 at 12:58:14 PM UTC-5, Valdeck Rowe wrote:
>>
>> Greetings,
>>
>> Got this error on a production Centos 7 box (on an intranet) after 
>> running the centos setup script (setup-web2py-nginx-uwsgi-centos7.sh) to 
>> update web2py before updating the application.
>>
>> Full error message: 
>>  Failure to connect, tried 5 times: 
>> Traceback (most recent call last): File 
>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/base.py", line 507, in 
>> __init__ self._adapter = adapter(**kwargs) File 
>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/postgres.py", 
>> line 28, in __call__ return AdapterMeta.__call__(cls, *args, **kwargs) File 
>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/__init__.py", 
>> line 41, in __call__ obj = super(AdapterMeta, cls).__call__(*args, 
>> **kwargs) File 
>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/postgres.py", 
>> line 67, in __init__ after_connection, File 
>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
>> 417, in __init__ super(SQLAdapter, self).__init__(*args, **kwargs) File 
>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
>> 85, in __init__ self.find_driver() File 
>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
>> 134, in find_driver "No driver of supported ones %s is available" % 
>> str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) 
>> is available 
>>
>>
>>
>> Pysocpg2 is already installed. The app was working before.
>>
>> Not sure why I'm getting this error when I'd been running fine before.
>>
>> Please help. The server has not been used in days and this is mission 
>> critical.
>>
>> Thanks in advance.
>> Valdeck
>>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/64a6551f-31cb-4697-863f-c0f4fa9a0695%40googlegroups.com.


[web2py] Re: Field('upload') : problem with file name

2020-04-15 Thread Andrew Rogers
>>> Field(name, 'upload', size=200)
I think 'size' should be 'length'. The latter worked for me and the former 
didn't.

On Monday, 20 July 2015 16:24:24 UTC+10, Massimo Di Pierro wrote:

> This is handled by web2py. The filenames are truncated according to the 
> size of the uploadfield. This defaults to 512. In new versions of windows 
> the make file length has been reduced so you have to do
>
> Field(name, 'upload', size=200)
>
> and all filenames will be limited to 200 bytes.
>
> On Sunday, 19 July 2015 21:06:42 UTC-5, Scott Hunter wrote:
>>
>> This is not only an issue with Windows; any filesystem with a filename 
>> limit (however big) can hit this problem.  As this is all being handled by 
>> web2py, and the user is selecting the file to upload, where would this 
>> "logic" go, and why isn't web2py handling it?
>>
>> - Scott
>>
>> On Saturday, March 16, 2013 at 1:04:28 PM UTC-4, Niphlod wrote:
>>>
>>> I was wrong. the first part of the "hash" is a uuid, the second is a 
>>> base16 encoding of the original filename.
>>>
>>> Seems that you need some logic to cut down long files if you plan to 
>>> host on Windows.
>>>
>>> http://web2py.com/books/default/chapter/29/07?search=uploads#Storing-the-original-filename
>>>  
>>> 
>>>
>>

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/5a4f0a5d-22b7-4b9c-a713-f910905687e4%40googlegroups.com.


[web2py] Re: Getting an error that ends in "No driver of supported ones %s is available" % str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) is available

2020-04-15 Thread Valdeck Rowe
PYTHONPATH is blank

On Wednesday, April 15, 2020 at 4:26:31 AM UTC-5, Dave S wrote:
>
>
>
> On Tuesday, April 14, 2020 at 4:29:12 PM UTC-7, Valdeck Rowe wrote:
>>
>> Also tried installing psycopg2-binary to no avail
>>
>>
> Installed in the system python, or locally in the web2py folders?
>
> What does your PYTHONPATH variable look like?
>
> /dps
>  
>
>> On Tuesday, April 14, 2020 at 12:58:14 PM UTC-5, Valdeck Rowe wrote:
>>>
>>> Greetings,
>>>
>>> Got this error on a production Centos 7 box (on an intranet) after 
>>> running the centos setup script (setup-web2py-nginx-uwsgi-centos7.sh) to 
>>> update web2py before updating the application.
>>>
>>> Full error message: 
>>>  Failure to connect, tried 5 times: 
>>> Traceback (most recent call last): File 
>>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/base.py", line 507, in 
>>> __init__ self._adapter = adapter(**kwargs) File 
>>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/postgres.py", 
>>> line 28, in __call__ return AdapterMeta.__call__(cls, *args, **kwargs) File 
>>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/__init__.py", 
>>> line 41, in __call__ obj = super(AdapterMeta, cls).__call__(*args, 
>>> **kwargs) File 
>>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/postgres.py", 
>>> line 67, in __init__ after_connection, File 
>>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
>>> 417, in __init__ super(SQLAdapter, self).__init__(*args, **kwargs) File 
>>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
>>> 85, in __init__ self.find_driver() File 
>>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
>>> 134, in find_driver "No driver of supported ones %s is available" % 
>>> str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) 
>>> is available 
>>>
>>>
>>>
>>> Pysocpg2 is already installed. The app was working before.
>>>
>>> Not sure why I'm getting this error when I'd been running fine before.
>>>
>>> Please help. The server has not been used in days and this is mission 
>>> critical.
>>>
>>> Thanks in advance.
>>> Valdeck
>>>
>>

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/7a8542fa-8ff2-415d-8de8-36c804566e1d%40googlegroups.com.


[web2py] Web2py routes domains do not work for me anymore

2020-04-15 Thread Anatoli Hristov
Hello,

I used to use the routes.py in the root of web2py folder where after 
deployed a new server, and restored the web apps, it shows (Internal server 
error):

This is my routes.py 


> *routers = dict(*
> *BASE  = dict(*
> *domains = {*
> *'mydomain.com' : 'myapp',*
> *}*
> *),**)*



Thank you helping me out -_-

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/3ca038ac-ffd3-4dba-a125-159ba94b0953%40googlegroups.com.


[web2py] Re: Web2py routes domains do not work for me anymore

2020-04-15 Thread Dave S


On Wednesday, April 15, 2020 at 4:05:48 PM UTC-7, Anatoli Hristov wrote:
>
> Hello,
>
> I used to use the routes.py in the root of web2py folder where after 
> deployed a new server, and restored the web apps, it shows (Internal server 
> error):
>
> This is my routes.py 
>
>
>> *routers = dict(*
>> *BASE  = dict(*
>> *domains = {*
>> *'mydomain.com ' : 'myapp',*
>> *}*
>> *),**)*
>
>
>
> Thank you helping me out -_-
>
>

Is there a ticket generated?  Probably in myapp/errors ...
Otherwise, what is in the web2py.log or your front-end logs?

BTW, Google Groups doesn't make it clear, but the "show on top" setting for 
a post should be reserved for posts that relate to policies and resources, 
like Massimo's note about the new py4web group.

/dps
 

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/d2619754-da0a-47bd-bb9f-621b696ce9aa%40googlegroups.com.


[web2py] Re: Web2py routes domains do not work for me anymore

2020-04-15 Thread Anatoli Hristov
Thank you Dave,

There are no error logs from this :( It just keep showing internal server 
error until I delete the routes,py from the root folder.

Sorry for topping up the post, I cannot remove it anymore, shall I delete 
the post?

Thanks


On Thursday, 16 April 2020 01:09:17 UTC+2, Dave S wrote:
>
>
>
> On Wednesday, April 15, 2020 at 4:05:48 PM UTC-7, Anatoli Hristov wrote:
>>
>> Hello,
>>
>> I used to use the routes.py in the root of web2py folder where after 
>> deployed a new server, and restored the web apps, it shows (Internal server 
>> error):
>>
>> This is my routes.py 
>>
>>
>>> *routers = dict(*
>>> *BASE  = dict(*
>>> *domains = {*
>>> *'mydomain.com ' : 'myapp',*
>>> *}*
>>> *),**)*
>>
>>
>>
>> Thank you helping me out -_-
>>
>>
>
> Is there a ticket generated?  Probably in myapp/errors ...
> Otherwise, what is in the web2py.log or your front-end logs?
>
> BTW, Google Groups doesn't make it clear, but the "show on top" setting 
> for a post should be reserved for posts that relate to policies and 
> resources, like Massimo's note about the new py4web group.
>
> /dps
>  
>

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/476759be-7fd1-4a83-bad9-298d49192363%40googlegroups.com.


[web2py] Re: Getting an error that ends in "No driver of supported ones %s is available" % str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) is available

2020-04-15 Thread Dave S


On Wednesday, April 15, 2020 at 11:31:56 AM UTC-7, Valdeck Rowe wrote:
>
> PYTHONPATH is blank
>
>

So is mine, as it turns out (unless it's set in the nginx environment).

On my aws system, I seem to have the psycopg2 directory under gluon/contrib

/dps

 

> On Wednesday, April 15, 2020 at 4:26:31 AM UTC-5, Dave S wrote:
>>
>>
>>
>> On Tuesday, April 14, 2020 at 4:29:12 PM UTC-7, Valdeck Rowe wrote:
>>>
>>> Also tried installing psycopg2-binary to no avail
>>>
>>>
>> Installed in the system python, or locally in the web2py folders?
>>
>> What does your PYTHONPATH variable look like?
>>
>> /dps
>>  
>>
>>> On Tuesday, April 14, 2020 at 12:58:14 PM UTC-5, Valdeck Rowe wrote:

 Greetings,

 Got this error on a production Centos 7 box (on an intranet) after 
 running the centos setup script (setup-web2py-nginx-uwsgi-centos7.sh) to 
 update web2py before updating the application.

 Full error message: 
  Failure to connect, tried 5 times: 
 Traceback (most recent call last): File 
 "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/base.py", line 507, in 
 __init__ self._adapter = adapter(**kwargs) File 
 "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/postgres.py", 
 line 28, in __call__ return AdapterMeta.__call__(cls, *args, **kwargs) 
 File 
 "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/__init__.py", 
 line 41, in __call__ obj = super(AdapterMeta, cls).__call__(*args, 
 **kwargs) File 
 "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/postgres.py", 
 line 67, in __init__ after_connection, File 
 "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
 417, in __init__ super(SQLAdapter, self).__init__(*args, **kwargs) File 
 "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
 85, in __init__ self.find_driver() File 
 "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
 134, in find_driver "No driver of supported ones %s is available" % 
 str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) 
 is available 



 Pysocpg2 is already installed. The app was working before.

 Not sure why I'm getting this error when I'd been running fine before.

 Please help. The server has not been used in days and this is mission 
 critical.

 Thanks in advance.
 Valdeck

>>>

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/3b707fac-f8bc-455a-80f4-7d476c6a0732%40googlegroups.com.


[web2py] Re: Web2py routes domains do not work for me anymore

2020-04-15 Thread Anatoli Hristov
Found some log in nginx access.log:

10.63.238.14 - - [15/Apr/2020:23:18:00 +] "GET / HTTP/1.0" 500 21 "-" 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/80.0.3987.163 Safari/537.36"
10.63.238.14 - - [15/Apr/2020:23:18:01 +] "GET /favicon.ico HTTP/1.0" 
500 21 "https://my.domain.xyz/"; "Mozilla/5.0  AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/80.0.3987.163 Safari/537.36"


On Thursday, 16 April 2020 01:05:48 UTC+2, Anatoli Hristov wrote:
>
> Hello,
>
> I used to use the routes.py in the root of web2py folder where after 
> deployed a new server, and restored the web apps, it shows (Internal server 
> error):
>
> This is my routes.py 
>
>
>> *routers = dict(*
>> *BASE  = dict(*
>> *domains = {*
>> *'mydomain.com ' : 'myapp',*
>> *}*
>> *),**)*
>
>
>
> Thank you helping me out -_-
>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/7e77db0b-40cd-4c6a-9906-64575d57793e%40googlegroups.com.


[web2py] Re: Web2py routes domains do not work for me anymore

2020-04-15 Thread Dave S


On Wednesday, April 15, 2020 at 4:20:18 PM UTC-7, Anatoli Hristov wrote:
>
> Found some log in nginx access.log:
>
> 10.63.238.14 - - [15/Apr/2020:23:18:00 +] "GET / HTTP/1.0" 500 21 "-" 
> "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
> Gecko) Chrome/80.0.3987.163 Safari/537.36"
> 10.63.238.14 - - [15/Apr/2020:23:18:01 +] "GET /favicon.ico HTTP/1.0" 
> 500 21 "https://my.domain.xyz/"; "Mozilla/5.0  AppleWebKit/537.36 (KHTML, 
> like Gecko) Chrome/80.0.3987.163 Safari/537.36"
>

Your ".xyz" matches what is in the routes.py?

If you're not having nginx short cut to the static files (favicon.ico, in 
this case), then I would turn on web2py logging and see if the web2py.log 
has anything  

Taking a quick look at my routes.py, I don't set domains, just the default 
application, but I do add
root_static = ['favicon.ico', 'robots.txt']


Don't know if that will help, but then I'm not a routes.py power user.

/dps

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/05b165d3-2e69-487b-beb2-7365309e7800%40googlegroups.com.


[web2py] Re: Getting an error that ends in "No driver of supported ones %s is available" % str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) is available

2020-04-15 Thread Valdeck Rowe
I've copied the psycopg2 package over to the web2py/site-packages folder, 
added the packages folder to the path. Still nothing

On Tuesday, April 14, 2020 at 12:58:14 PM UTC-5, Valdeck Rowe wrote:
>
> Greetings,
>
> Got this error on a production Centos 7 box (on an intranet) after running 
> the centos setup script (setup-web2py-nginx-uwsgi-centos7.sh) to update 
> web2py before updating the application.
>
> Full error message: 
>  Failure to connect, tried 5 times: 
> Traceback (most recent call last): File 
> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/base.py", line 507, in 
> __init__ self._adapter = adapter(**kwargs) File 
> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/postgres.py", 
> line 28, in __call__ return AdapterMeta.__call__(cls, *args, **kwargs) File 
> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/__init__.py", 
> line 41, in __call__ obj = super(AdapterMeta, cls).__call__(*args, 
> **kwargs) File 
> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/postgres.py", 
> line 67, in __init__ after_connection, File 
> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
> 417, in __init__ super(SQLAdapter, self).__init__(*args, **kwargs) File 
> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
> 85, in __init__ self.find_driver() File 
> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
> 134, in find_driver "No driver of supported ones %s is available" % 
> str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) 
> is available 
>
>
>
> Pysocpg2 is already installed. The app was working before.
>
> Not sure why I'm getting this error when I'd been running fine before.
>
> Please help. The server has not been used in days and this is mission 
> critical.
>
> Thanks in advance.
> Valdeck
>

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/1fe64193-2323-4680-9d4d-3a7214d414ab%40googlegroups.com.


[web2py] Re: Web2py routes domains do not work for me anymore

2020-04-15 Thread Anatoli Hristov
nothing in the web2py log file, file not even created!

I don't know how to define the favico.ico in nginx. 
However, if I delete the routes.py everything works, but I need to define 
domains for my apps!

On Thursday, 16 April 2020 01:38:28 UTC+2, Dave S wrote:
>
>
>
> On Wednesday, April 15, 2020 at 4:20:18 PM UTC-7, Anatoli Hristov wrote:
>>
>> Found some log in nginx access.log:
>>
>> 10.63.238.14 - - [15/Apr/2020:23:18:00 +] "GET / HTTP/1.0" 500 21 "-" 
>> "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
>> Gecko) Chrome/80.0.3987.163 Safari/537.36"
>> 10.63.238.14 - - [15/Apr/2020:23:18:01 +] "GET /favicon.ico HTTP/1.0" 
>> 500 21 "https://my.domain.xyz/"; "Mozilla/5.0  AppleWebKit/537.36 (KHTML, 
>> like Gecko) Chrome/80.0.3987.163 Safari/537.36"
>>
>
> Your ".xyz" matches what is in the routes.py?
>
> If you're not having nginx short cut to the static files (favicon.ico, in 
> this case), then I would turn on web2py logging and see if the web2py.log 
> has anything  
>
> Taking a quick look at my routes.py, I don't set domains, just the default 
> application, but I do add
> root_static = ['favicon.ico', 'robots.txt']
>
>
> Don't know if that will help, but then I'm not a routes.py power user.
>
> /dps
>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/0af15597-3ee9-462b-a354-06cf3aac63a4%40googlegroups.com.