Technical mailing list archives

technical@mail.odoo.com

Avatar

Re: Odoo Enterprise NGINX SSL Problems after restore from a testing database

by
Benoît Vézina
- 03/07/2017 14:07:06
Look lin the config of account_yodlee,

Are you trying to authenticate outside of Odoo

Might need to change the certificate (public key) there too...

Or just uninstall the account_yodlee module to test if it is the source 
of the problem



Le 2017-07-03 à 14:00, Cliff Kujala a écrit :
>
> Hi all,
>
> Hope someone can point me in the right direction here.
> I duplicated my database for some testing purposes (which went well 
> and was a lot of work).  Since the test seemed to go well, I prefer to 
> move forward with this test DB as my new production database.  All 
> seems good, except I'm hitting issues with SSL handshake.  See 
> traceback below.  I have fully revoked, deleted, and created new SSL 
> cert chains for my NGINX reverse proxy webserver, so I'm not sure why 
> I'd be getting this error.
>
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 640, in 
> _handle_exception
>     return super(JsonRequest, self)._handle_exception(exception)
>   File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 677, in 
> dispatch
>     result = self._call_function(**self.params)
>   File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 333, in 
> _call_function
>     return checked_call(self.db, *args, **kwargs)
>   File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 
> 101, in wrapper
>     return f(dbname, *args, **kwargs)
>   File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 326, in 
> checked_call
>     result = self.endpoint(*a, **kw)
>   File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 935, in 
> __call__
>     return self.method(*args, **kw)
>   File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 506, in 
> response_wrap
>     response = f(*args, **kw)
>   File 
> "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", 
> line 889, in call_button
>     action = self._call_kw(model, method, args, {})
>   File 
> "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", 
> line 877, in _call_kw
>     return call_kw(request.env[model], method, args, kwargs)
>   File "/usr/lib/python2.7/dist-packages/odoo/api.py", line 681, in 
> call_kw
>     return call_kw_multi(method, model, args, kwargs)
>   File "/usr/lib/python2.7/dist-packages/odoo/api.py", line 672, in 
> call_kw_multi
>     result = method(recs, *args, **kwargs)
>   File 
> "/usr/lib/python2.7/dist-packages/odoo/addons/account_yodlee/models/yodlee.py", 
> line 173, in update_credentials
>     return_action = self.get_login_form(self.provider_identifier, 
> 'yodlee')
>   File 
> "/usr/lib/python2.7/dist-packages/odoo/addons/account_yodlee/models/yodlee.py", 
> line 158, in get_login_form
>     resp_json = self.yodlee_fetch('/providers/'+str(site_id), {}, {}, 
> 'GET')
>   File 
> "/usr/lib/python2.7/dist-packages/odoo/addons/account_yodlee/models/yodlee.py", 
> line 119, in yodlee_fetch
>     self.register_new_user()
>   File 
> "/usr/lib/python2.7/dist-packages/odoo/addons/account_yodlee/models/yodlee.py", 
> line 50, in register_new_user
>     self.do_cobrand_login()
>   File 
> "/usr/lib/python2.7/dist-packages/odoo/addons/account_yodlee/models/yodlee.py", 
> line 71, in do_cobrand_login
>     resp = requests.post(url=credentials['url']+'/cobrand/login', 
> data=requestBody, timeout=30)
>   File "/usr/lib/python2.7/dist-packages/requests/api.py", line 110, 
> in post
>     return request('post', url, data=data, json=json, **kwargs)
>   File "/usr/lib/python2.7/dist-packages/requests/api.py", line 56, in 
> request
>     return session.request(method=method, url=url, **kwargs)
>   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 
> 488, in request
>     resp = self.send(prep, **send_kwargs)
>   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 
> 609, in send
>     r = adapter.send(request, **kwargs)
>   File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 
> 497, in send
>     raise SSLError(e, request=request)
> SSLError: ("bad handshake: Error([('', 'osrandom_rand_bytes', 
> 'getrandom() initialization failed.')],)",)
>
> Any help would be great.
>
> Thank you,
> Cliff Kujala
>
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-framework-62
> Post to: mailto:expert-framework@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe
>