Open turkeymz opened 1 year ago
Please show full logs.
Please show full logs. Thanks for your reply. Here is the full logs
# label-studio -b --data-dir /home/jxbd/labelstudio/mydata -p 5008 --host 0.0.0.0 --password jxbd123 --username admin start
=> Database and media directory: /root/.local/share/label-studio => Static URL is set to: /static/ => Database and media directory: /root/.local/share/label-studio => Static URL is set to: /static/ Starting new HTTPS connection (1): pypi.org:443 Can't get latest version Traceback (most recent call last): File "/root/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/root/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 386, in _make_request self._validate_conn(conn) File "/root/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn conn.connect() File "/root/.local/lib/python3.8/site-packages/urllib3/connection.py", line 414, in connect self.sock = ssl_wrapsocket( File "/root/.local/lib/python3.8/site-packages/urllib3/util/ssl.py", line 449, in ssl_wrap_socket ssl_sock = _ssl_wrap_socketimpl( File "/root/.local/lib/python3.8/site-packages/urllib3/util/ssl.py", line 493, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock, server_hostname=server_hostname) File "/usr/local/python3/lib/python3.8/ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "/usr/local/python3/lib/python3.8/ssl.py", line 1040, in _create self.do_handshake() File "/usr/local/python3/lib/python3.8/ssl.py", line 1309, in do_handshake self._sslobj.do_handshake() ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/python3/lib/python3.8/site-packages/requests/adapters.py", line 440, in send resp = conn.urlopen( File "/root/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 787, in urlopen retries = retries.increment( File "/root/.local/lib/python3.8/site-packages/urllib3/util/retry.py", line 550, in increment raise six.reraise(type(error), error, _stacktrace) File "/root/.local/lib/python3.8/site-packages/urllib3/packages/six.py", line 769, in reraise raise value.with_traceback(tb) File "/root/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/root/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 386, in _make_request self._validate_conn(conn) File "/root/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn conn.connect() File "/root/.local/lib/python3.8/site-packages/urllib3/connection.py", line 414, in connect self.sock = ssl_wrapsocket( File "/root/.local/lib/python3.8/site-packages/urllib3/util/ssl.py", line 449, in ssl_wrap_socket ssl_sock = _ssl_wrap_socketimpl( File "/root/.local/lib/python3.8/site-packages/urllib3/util/ssl.py", line 493, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock, server_hostname=server_hostname) File "/usr/local/python3/lib/python3.8/ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "/usr/local/python3/lib/python3.8/ssl.py", line 1040, in _create self.do_handshake() File "/usr/local/python3/lib/python3.8/ssl.py", line 1309, in do_handshake self._sslobj.do_handshake() urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.8/site-packages/label_studio/core/utils/common.py", line 339, in get_latest_version
response = requests.get(pypi_url, timeout=10).text
File "/usr/local/python3/lib/python3.8/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, kwargs)
File "/usr/local/python3/lib/python3.8/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, kwargs)
File "/usr/local/python3/lib/python3.8/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, send_kwargs)
File "/usr/local/python3/lib/python3.8/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, kwargs)
File "/usr/local/python3/lib/python3.8/site-packages/requests/adapters.py", line 501, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
Traceback (most recent call last):
File "/usr/local/python3/bin/label-studio", line 8, in
It seems LS works as expected, just ignore this error message.
It seems LS works as expected, just ignore this error message.
But LS can't ignore this error.When this error occurs, LS will automatically stop the thread. It seems that LS calling pypi.org is just getting the version. Is there any way to make LS stop calling pypi.org and deploy offline?
If you set env variable LABEL_STUDIO_LATEST_VERSION_CHECK=False
this check will be skipped
Sorry, I was wrong, seems it can be deployed offline
If you set env variable
LABEL_STUDIO_LATEST_VERSION_CHECK=False
this check will be skipped
This does not seem to do anything.
While I can deploy label-studio offline, it is incredibly slow because so many operations result in this check, which tries to connect to a url until it fails a few times. Is this deprecated? Is there a different way to turn this behavior off?
The code related to version check is here: https://github.com/HumanSignal/label-studio/blob/develop/label_studio/core/utils/common.py#L394
If LABEL_STUDIO_LATEST_VERSION_CHECK
set to False
it will exit the function.
It's also not working for me.
I did some digging and I found the variable LABEL_STUDIO_LATEST_VERSION_CHECK
in the base settings file (https://github.com/HumanSignal/label-studio/blob/develop/label_studio/core/settings/base.py#L523) but it looks like it's hard coded to always be True
.
/jira create
Workflow run Jira issue TRIAG-632 is created
Same as https://github.com/heartexlabs/label-studio/issues/3940#event-8919569453
The server can't deploy in offline env? Suggest using default values if unable to access the external network.