I have tried to setup odoo saas tool in my local pc. I have created two database localhost as main database and s1.localhost as server database. Configuration and app setup are done according to official documentation
https://odoo-saas-tools.readthedocs.io/en/11.0/setup/install.html
I have configured the Authentication URL as
http://localhost/oauth2/auth
and Validation URL as
http://localhost/oauth2/tokeninfo
and setup the base domain as
http://localhost
When I have tried to sync register server and create template DB I have got the following error
requests.exceptions.ConnectionError: HTTPConnectionPool(host='s1.localhost', port=8069): Max retries exceeded with url: /saas_server/sync_server (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f4fa17d9198>: Failed to establish a new connection: [Errno -2] Name or service not known',))
I can't create the template Database. How to solve this error? Here the full error:
Traceback (most recent call last): File "/opt/odoo11/intelio1/env/lib/python3.5/site-packages/requests/packages/urllib3/connection.py", line 142, in _new_conn (self.host, self.port), self.timeout, **extra_kw) File "/opt/odoo11/intelio1/env/lib/python3.5/site-packages/requests/packages/urllib3/util/connection.py", line 75, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): File "/usr/lib/python3.5/socket.py", line 732, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -2] Name or service not known During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/odoo11/intelio1/env/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 595, in urlopen chunked=chunked) File "/opt/odoo11/intelio1/env/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 363, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/lib/python3.5/http/client.py", line 1106, in request self._send_request(method, url, body, headers) File "/usr/lib/python3.5/http/client.py", line 1151, in _send_request self.endheaders(body) File "/usr/lib/python3.5/http/client.py", line 1102, in endheaders self._send_output(message_body) File "/usr/lib/python3.5/http/client.py", line 934, in _send_output self.send(msg) File "/usr/lib/python3.5/http/client.py", line 877, in send self.connect() File "/opt/odoo11/intelio1/env/lib/python3.5/site-packages/requests/packages/urllib3/connection.py", line 167, in connect conn = self._new_conn() File "/opt/odoo11/intelio1/env/lib/python3.5/site-packages/requests/packages/urllib3/connection.py", line 151, in _new_conn self, "Failed to establish a new connection: %s" % e) requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x7f4fa17d9198>: Failed to establish a new connection: [Errno -2] Name or service not known During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/odoo11/intelio1/env/lib/python3.5/site-packages/requests/adapters.py", line 423, in send timeout=timeout File "/opt/odoo11/intelio1/env/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 640, in urlopen _stacktrace=sys.exc_info()[2]) File "/opt/odoo11/intelio1/env/lib/python3.5/site-packages/requests/packages/urllib3/util/retry.py", line 287, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='s1.localhost', port=8069): Max retries exceeded with url: /saas_server/sync_server (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f4fa17d9198>: Failed to establish a new connection: [Errno -2] Name or service not known',)) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/odoo11/intelio1/odoo/http.py", line 650, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo11/intelio1/odoo/http.py", line 310, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/opt/odoo11/intelio1/odoo/tools/pycompat.py", line 87, in reraise raise value File "/opt/odoo11/intelio1/odoo/http.py", line 692, in dispatch result = self._call_function(**self.params) File "/opt/odoo11/intelio1/odoo/http.py", line 342, in _call_function return checked_call(self.db, *args, **kwargs) File "/opt/odoo11/intelio1/odoo/service/model.py", line 97, in wrapper return f(dbname, *args, **kwargs) File "/opt/odoo11/intelio1/odoo/http.py", line 335, in checked_call result = self.endpoint(*a, **kw) File "/opt/odoo11/intelio1/odoo/http.py", line 936, in __call__ return self.method(*args, **kw) File "/opt/odoo11/intelio1/odoo/http.py", line 515, in response_wrap response = f(*args, **kw) File "/opt/odoo11/intelio1/addons/web/controllers/main.py", line 938, in call_button action = self._call_kw(model, method, args, {}) File "/opt/odoo11/intelio1/addons/web/controllers/main.py", line 926, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/opt/odoo11/intelio1/odoo/api.py", line 689, in call_kw return call_kw_multi(method, model, args, kwargs) File "/opt/odoo11/intelio1/odoo/api.py", line 680, in call_kw_multi result = method(recs, *args, **kwargs) File "/opt/odoo11/intelio1/saas_addons/saas_portal/models/saas_portal.py", line 147, in action_sync_server res = requests.Session().send(req, **req_kwargs) File "/opt/odoo11/intelio1/env/lib/python3.5/site-packages/requests/sessions.py", line 596, in send r = adapter.send(request, **kwargs) File "/opt/odoo11/intelio1/env/lib/python3.5/site-packages/requests/adapters.py", line 487, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='s1.localhost', port=8069): Max retries exceeded with url: /saas_server/sync_server (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f4fa17d9198>: Failed to establish a new connection: [Errno -2] Name or service not known',))