Python Pipeline

Go to the command line of your SeaTable Server. Not your Python Pipeline!

Then execute the following command but replace url-of-your-python-pipeline-server with the public reachable server url of your python pipeline.

docker run --rm -it seatable/seatable-enterprise:5.0.8 python -c "import requests; requests.get('https://url-of-your-python-pipeline-server/ping/').text"

This must deliver a pong.

I did it, just masked my URL in log below:

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/urllib3/connection.py”, line 159, in _new_conn
conn = connection.create_connection(
File “/usr/lib/python3/dist-packages/urllib3/util/connection.py”, line 84, in create_connection
raise err
File “/usr/lib/python3/dist-packages/urllib3/util/connection.py”, line 74, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 666, in urlopen
httplib_response = self._make_request(
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 377, in _make_request
self._validate_conn(conn)
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 1001, in _validate_conn
conn.connect()
File “/usr/lib/python3/dist-packages/urllib3/connection.py”, line 314, in connect
conn = self._new_conn()
File “/usr/lib/python3/dist-packages/urllib3/connection.py”, line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fd4b90e6760>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/requests/adapters.py”, line 439, in send
resp = conn.urlopen(
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 720, in urlopen
retries = retries.increment(
File “/usr/lib/python3/dist-packages/urllib3/util/retry.py”, line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘python-schedulerurl.test.com’, port=443): Max retries exceeded with url: /ping/ (Caused by NewConnectionError(‘<urllib3.connection.VerifiedHTTPSConnection object at 0x7fd4b90e6760>: Failed to establish a new connection: [Errno 111] Connection refused’))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “”, line 1, in
File “/usr/lib/python3/dist-packages/requests/api.py”, line 75, in get
return request(‘get’, url, params=params, **kwargs)
File “/usr/lib/python3/dist-packages/requests/api.py”, line 60, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/lib/python3/dist-packages/requests/sessions.py”, line 535, in request
resp = self.send(prep, **send_kwargs)
File “/usr/lib/python3/dist-packages/requests/sessions.py”, line 648, in send
r = adapter.send(request, **kwargs)
File “/usr/lib/python3/dist-packages/requests/adapters.py”, line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘python-schedulerurl.test.com’, port=443): Max retries exceeded with url: /ping/ (Caused by NewConnectionError(‘<urllib3.connection.VerifiedHTTPSConnection object at 0x7fd4b90e6760>: Failed to establish a new connection: [Errno 111] Connection refused’))

Please add my public ssh key to both servers and send me the IPs and usernames via private message, that I can have a look.

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAGELD+NYiPZbyYAlsP4A+Y8+47TndHb7qGOcBhXtaa5 cdb@seatable.io

Dear,

I’m unable to do grant you permission to the VM due to company security policy.

I did try to bash inside container do a curl on /ping and I get a reply saying pong.

I also tried with your command but adding --network host and it also gave me a reply saying pong.

docker run --rm --network host -it seatable/seatable-enterprise:5.0.8 python -c “import requests; print(requests.get(‘https://url-of-your-python-pipeline-server/ping/’).text)”

What else can I try ?

Dear,

Not sure what I changed but its working now all of a sudden. I’ll review my history in both VMs and confirm here.

Kind regards,
Goran

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.