[bug?] hostname 'translate.erpnext.com' doesn't match 'frappe.io'

Hi Everyone…

am trying to get updated translations from the translation hub but i got errors:

/home/frappe/frappe-bench# bench download-translations
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): translate.erpnext.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): translate.erpnext.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): translate.erpnext.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): translate.erpnext.com
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==2.0.0', 'console_scripts', 'bench')()
  File "/home/frappe/bench-repo/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in __call__
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): translate.erpnext.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): translate.erpnext.com
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/bench-repo/bench/commands/utils.py", line 76, in download_translations
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): translate.erpnext.com
    download_translations_p()
  File "/home/frappe/bench-repo/bench/utils.py", line 519, in download_translations_p
    pool.map(update_translations_p, args)
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 251, in map
    return self.map_async(func, iterable, chunksize).get()
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 558, in get
    raise self._value
requests.exceptions.SSLError: hostname 'translate.erpnext.com' doesn't match 'frappe.io'

anyone?

Just tried and it executes successfully. Please check once again.

@saurabh6790 same error:

root@tcdc:/home/tgroup# bench download-translations
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): translate.erpnext.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): translate.erpnext.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): translate.erpnext.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): translate.erpnext.com
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==2.0.0', 'console_scripts', 'bench')()
  File "/home/frappe/bench-repo/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): translate.erpnext.com
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/bench-repo/bench/commands/utils.py", line 76, in download_translations
    download_translations_p()
  File "/home/frappe/bench-repo/bench/utils.py", line 519, in download_translations_p
    pool.map(update_translations_p, args)
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 251, in map
    return self.map_async(func, iterable, chunksize).get()
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 558, in get
    raise self._value
requests.exceptions.SSLError: hostname 'translate.erpnext.com' doesn't match 'frappe.io'

any updates guys? it still not working and throwing the hostname errors

I am getting the same error when doing bench download-translations

It seems a common issue for python installation < 2.7.9 and related to SSL packages
Runing this command fixed the issue in my case:

frappe@erpnext:~/frappe-bench$ sudo pip install pyOpenSSL ndg-httpsclient

May we add this packages to the /home/frappe/frappe-bench/apps/frappe/requirements.txt file?

1 Like

Same issue in VM

It worked forme.! thanks