Failed to upgrade v2.0


#1

Hi,

I am trying to upgrade from v2 but the request to get the releases seems to be failing. Below is the full stack trace, but it seems to be a connection error. Any thoughts on why this would be?

Traceback (most recent call last):
File “bin/upgrade”, line 251, in
deploy_release(args.channel)
File “bin/upgrade”, line 225, in deploy_release
release = get_release(channel)
File “bin/upgrade”, line 95, in get_release
response = requests.get(‘https://version.redash.io/api/releases?channel={}’.format(channel))
File “/usr/local/lib/python2.7/dist-packages/requests/api.py”, line 70, in get
return request(‘get’, url, params=params, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/requests/api.py”, line 56, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/requests/sessions.py”, line 475, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python2.7/dist-packages/requests/sessions.py”, line 596, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/requests/adapters.py”, line 487, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘version.redash.io’, port=443): Max retries exceeded with url: /api/releases?channel=stable (Caused by NewConnectionError(’<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fc95240aa90>: Failed to establish a new connection: [Errno 110] Connection timed out’,))


#2

Hi.

First, you should try:

curl -D - -s -o /dev/null "https://version.redash.io/api/releases?channel=stable"

The response would be like the following if there are no problems.

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Date: Sat, 17 Nov 2018 04:52:19 GMT
ETag: W/"d42-h+2wW93sHAJU5IlOKRk4Cw"
X-Powered-By: Express
Content-Length: 3394
Connection: keep-alive

Otherwise, you should check you can access outgoing from your host.

If you were able to get the response with 200 OK, how about running the following command?

python -c "import requests; print requests.get('https://version.redash.io/api/releases?channel=stable')"