SQL10007N Message "0" could not be retrieved. Reason code: "3"

882 views
Skip to first unread message

elvis_x

unread,
Aug 28, 2016, 8:41:16 PM8/28/16
to web2py-users
Hi All.

I have a big problem to connect to my DB2 with nginx+uwsgi+web2py.
everything works fine via "python web2py.py -p 8080"

If start my Webpage,i get this error:

Error ticket for "init"
Ticket ID

127.0.0.1.2016-08-26.04-58-56.762c9daf-b362-412c-a0e5-8597f467f3a0
<type 'exceptions.RuntimeError'> Failure to connect, tried 5 times: Traceback (most recent call last): File "/var/www/web2py/gluon/packages/dal/pydal/base.py", line 437, in __init__ self._adapter = ADAPTERS[self._dbname](**kwargs) File "/var/www/web2py/gluon/packages/dal/pydal/adapters/base.py", line 57, in __call__ obj = super(AdapterMeta, cls).__call__(*args, **kwargs) File "/var/www/web2py/gluon/packages/dal/pydal/adapters/db2.py", line 93, in __init__ if do_connect: self.reconnect() File "/var/www/web2py/gluon/packages/dal/pydal/connection.py", line 104, in reconnect self.connection = f() File "/var/www/web2py/gluon/packages/dal/pydal/adapters/db2.py", line 88, in connector return self.driver.connect(cnxn, **driver_args) Error: (' ', '[ ] [unixODBC][IBM][CLI Driver] SQL10007N Message "0" could not be retrieved. Reason code: "3".\n (-1390) (SQLDriverConnect)')

Can help someone ?

Thanks!

Dave S

unread,
Aug 29, 2016, 2:12:47 PM8/29/16
to web2py-users

What does your connect statement look like?

/dps
 
Reply all
Reply to author
Forward
0 new messages