Technical mailing list archives

technical@mail.odoo.com

Avatar

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

by
Cliff Kujala
- 03/07/2017 14:28:58
Thanks for the quick pointers Jared and Benoît.

NGINX/SSL I did have all setup correctly, it was just needed to remove Yodlee module, restart server, fix the duplicated databases UUID back to the linked one with Odoo, and now all seems to be working.  

Help greatly appreciated.

Regarding Odoo official help vs community. The community is so awesome it is hard not to bounce ideas off the collective brain.

Thank you,

Cliff Kujala
Pure Karting, LLC
www.purekarting.com
Retailer of High Quality Karting Components
cliff@purekarting.com
tel.+1.602.492.KART
sms.+1.602.330.2925


On Mon, Jul 3, 2017 at 11:10 AM, Jared Kipe <jared@hibou.io> wrote:

This is not a problem with Nginx’s SSL termination.  This error is thrown from the Python requests library, and would appear to be related to bank statement synchronization.


I don’t have any advice, just want you to spend time looking in the right place. Also, given that this comes out of Enterprise packages, the community framework mailing list might not be the best place for help.  Perhaps open a ticket on odoo.com/help

Thanks,
Jared


On Jul 3, 2017, at 11:00 AM, Cliff Kujala <cliff@purekarting.com> wrote:

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


_______________________________________________
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