Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCP CLIENT :. 馃毃 Failed to connect to the TCP server.: #480

Open
Chard0212 opened this issue Apr 27, 2023 · 19 comments
Open

TCP CLIENT :. 馃毃 Failed to connect to the TCP server.: #480

Chard0212 opened this issue Apr 27, 2023 · 19 comments

Comments

@Chard0212
Copy link

馃毃 Failed to connect to the TCP server
鈩癸笍 Trying to connect to the TCP server...

@Chard0212 Chard0212 changed the title 馃毃 Failed to connect to the TCP server TCP CLIENT :. 馃毃 Failed to connect to the TCP server.: Apr 27, 2023
@louistiti
Copy link
Member

Please provide more information. Such as the report from the leon check command.

@xuguoliang1964
Copy link

When run "leon check" brings red message:"Cannot start TCP server:/bin/sh:1:tcp_server/dist/linux-x86_64/leon-tcp-server:not found"

@louistiti
Copy link
Member

When run "leon check" brings red message:"Cannot start TCP server:/bin/sh:1:tcp_server/dist/linux-x86_64/leon-tcp-server:not found"

Anything else? No report link?

@xuguoliang1964
Copy link

There is a zip file in the directory. When I unzip it, it reports:"End-of-central-directory signature not found....."

@xuguoliang1964
Copy link

There is a zip file in the directory. When I unzip it, it reports:"End-of-central-directory signature not found....."

When run "leon check" brings red message:"Cannot start TCP server:/bin/sh:1:tcp_server/dist/linux-x86_64/leon-tcp-server:not found"

Anything else? No report link?

There is a zip file in the directory. When I unzip it, it reports:"End-of-central-directory signature not found....."

@louistiti
Copy link
Member

There is a zip file in the directory. When I unzip it, it reports:"End-of-central-directory signature not found....."

You should not unzip it yourself, it is automatic during the setup process.

Please share a complete screenshot of the output from the leon check command.

@xuguoliang1964
Copy link

End-o

There is a zip file in the directory. When I unzip it, it reports:"End-of-central-directory signature not found....."

You should not unzip it yourself, it is automatic during the setup process.

Please share a complete screenshot of the output from the leon check command.

IMG_20230506_230311

@louistiti
Copy link
Member

  1. How about the logs before that?
  2. Does the process stop like this without any other info?

@xuguoliang1964
Copy link

The picture is the first screen by pipe with "less" command. I have another picture followed.
IMG_20230506_232710

@xuguoliang1964
Copy link

  1. How about the logs before that?
  2. Does the process stop like this without any other info?

When I run "leon create birth", everything is normal, no error message.

@louistiti
Copy link
Member

Look at your report: https://report.getleon.ai/raw/exomuvuseg

It seems that you have less than 2 GB of total RAM. Leon needs at least ~ 4 GB. Also, I'm not sure about your disk space, but it may also be possible that the TCP server cannot be extracted properly because you don't have enough space there too.

@xuguoliang1964
Copy link

Look at your report: https://report.getleon.ai/raw/exomuvuseg

It seems that you have less than 2 GB of total RAM. Leon needs at least ~ 4 GB. Also, I'm not sure about your disk space, but it may also be possible that the TCP server cannot be extracted properly because you don't have enough space there too.

Thank you. I am doing it again with a computer with Windows 10 and 16GB RAM.

@xuguoliang1964
Copy link

xuguoliang1964 commented May 6, 2023

There is something wrong with my trial in window.
When I run "leon create birth" ,it comes the screen followed.(https://report.getleon.ai/raw/vezoyamega)
image

@xuguoliang1964
Copy link

There is something wrong with my trial in window. When I run "leon create birth" ,it comes the screen followed. image

Here is screen with "leon check"
image

@louistiti
Copy link
Member

louistiti commented May 7, 2023

Hi @xuguoliang1964, I figured out the problem. As you can see from the error, Node.js returns a ECONNRESET, it means that the connection suddenly closed, so the Node.js bridge, TCP server and Python bridge cannot be downloaded. Hence, when you run Leon, Leon does not have them and can't run properly.

If I believe your screenshots, it seems that you are located in China. I've seen similar issue in the past. To fix it, try to change the location of your VPN so these binaries can correctly be downloaded.
Once you tried other VPN server, then do leon delete, then retry.

@Chard0212
Copy link
Author

File "/usr/lib/python3/dist-packages/pipenv/patched/pip/_vendor/urllib3/response.py", line 586, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "/root/.pyenv/versions/3.9.10/lib/python3.9/contextlib.py", line 137, in exit
self.gen.throw(typ, value, traceback)
File "/usr/lib/python3/dist-packages/pipenv/patched/pip/_vendor/urllib3/response.py", line 442, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pipenv.patched.pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

2023-06-06T17:31:54+03:00 - Failed to connect to the TCP server
2023-06-06T17:32:09+03:00 - Failed to connect to the TCP server
2023-06-06T17:32:27+03:00 - Failed to connect to the TCP server

@Chard0212
Copy link
Author

node_modules/lodash.trimend
@microsoft/recognizers-text-number >=1.0.0-rc.30.0
Depends on vulnerable versions of lodash.trimend
node_modules/@microsoft/recognizers-text-number
@microsoft/recognizers-text-date-time >=1.0.0-rc.30.0
Depends on vulnerable versions of @microsoft/recognizers-text-number
Depends on vulnerable versions of @microsoft/recognizers-text-number-with-unit
node_modules/@microsoft/recognizers-text-date-time
@microsoft/recognizers-text-number-with-unit >=1.0.0-rc.30.0
Depends on vulnerable versions of @microsoft/recognizers-text-number
node_modules/@microsoft/recognizers-text-number-with-unit
@microsoft/recognizers-text-suite >=1.0.0-rc.30.0
Depends on vulnerable versions of @microsoft/recognizers-text-date-time
Depends on vulnerable versions of @microsoft/recognizers-text-number
Depends on vulnerable versions of @microsoft/recognizers-text-number-with-unit
node_modules/@microsoft/recognizers-text-suite
@nlpjs/builtin-microsoft *
Depends on vulnerable versions of @microsoft/recognizers-text-suite
node_modules/@nlpjs/builtin-microsoft

@Chard0212
Copy link
Author

鈩癸笍 Installing spaCy models...
馃毃 Failed to install the Python packages: Error: Command failed with exit code 1: pipenv run spacy download en_core_web_trf-3.4.0 --direct
Traceback (most recent call last):
File "/home/chard/leon/bridges/python/.venv/bin/spacy", line 5, in
from spacy.cli import setup_cli
File "/home/chard/leon/bridges/python/.venv/lib/python3.9/site-packages/spacy/init.py", line 14, in
from . import pipeline # noqa: F401
File "/home/chard/leon/bridges/python/.venv/lib/python3.9/site-packages/spacy/pipeline/init.py", line 1, in
from .attributeruler import AttributeRuler
File "/home/chard/leon/bridges/python/.venv/lib/python3.9/site-packages/spacy/pipeline/attributeruler.py", line 6, in
from .pipe import Pipe
File "spacy/pipeline/pipe.pyx", line 1, in init spacy.pipeline.pipe
File "spacy/vocab.pyx", line 1, in init spacy.vocab
File "/home/chard/leon/bridges/python/.venv/lib/python3.9/site-packages/spacy/tokens/init.py", line 1, in
from .doc import Doc
File "spacy/tokens/doc.pyx", line 36, in init spacy.tokens.doc
File "/home/chard/leon/bridges/python/.venv/lib/python3.9/site-packages/spacy/schemas.py", line 222, in
class TokenPattern(BaseModel):
File "pydantic/main.py", line 205, in pydantic.main.ModelMetaclass.new
File "pydantic/fields.py", line 491, in pydantic.fields.ModelField.infer
File "pydantic/fields.py", line 421, in pydantic.fields.ModelField.init
File "pydantic/fields.py", line 537, in pydantic.fields.ModelField.prepare
File "pydantic/fields.py", line 634, in pydantic.fields.ModelField._type_analysis
File "pydantic/fields.py", line 641, in pydantic.fields.ModelField._type_analysis
File "/root/.pyenv/versions/3.9.10/lib/python3.9/typing.py", line 851, in subclasscheck
return issubclass(cls, self.origin)
TypeError: issubclass() arg 1 must be a class
馃毃 Error: Command failed with exit code 1: pipenv run spacy download en_core_web_trf-3.4.0 --direct
Traceback (most recent call last):
File "/home/chard/leon/bridges/python/.venv/bin/spacy", line 5, in
from spacy.cli import setup_cli
File "/home/chard/leon/bridges/python/.venv/lib/python3.9/site-packages/spacy/init.py", line 14, in
from . import pipeline # noqa: F401
File "/home/chard/leon/bridges/python/.venv/lib/python3.9/site-packages/spacy/pipeline/init.py", line 1, in
from .attributeruler import AttributeRuler
File "/home/chard/leon/bridges/python/.venv/lib/python3.9/site-packages/spacy/pipeline/attributeruler.py", line 6, in
from .pipe import Pipe
File "spacy/pipeline/pipe.pyx", line 1, in init spacy.pipeline.pipe
File "spacy/vocab.pyx", line 1, in init spacy.vocab
File "/home/chard/leon/bridges/python/.venv/lib/python3.9/site-packages/spacy/tokens/init.py", line 1, in
from .doc import Doc
File "spacy/tokens/doc.pyx", line 36, in init spacy.tokens.doc
File "/home/chard/leon/bridges/python/.venv/lib/python3.9/site-packages/spacy/schemas.py", line 222, in
class TokenPattern(BaseModel):
File "pydantic/main.py", line 205, in pydantic.main.ModelMetaclass.new
File "pydantic/fields.py", line 491, in pydantic.fields.ModelField.infer
File "pydantic/fields.py", line 421, in pydantic.fields.ModelField.init
File "pydantic/fields.py", line 537, in pydantic.fields.ModelField.prepare
File "pydantic/fields.py", line 634, in pydantic.fields.ModelField._type_analysis
File "pydantic/fields.py", line 641, in pydantic.fields.ModelField._type_analysis
File "/root/.pyenv/versions/3.9.10/lib/python3.9/typing.py", line 851, in subclasscheck
return issubclass(cls, self.origin)
TypeError: issubclass() arg 1 must be a class
at makeError (/home/chard/leon/node_modules/execa/lib/error.js:59:11)
at handlePromise (/home/chard/leon/node_modules/execa/index.js:114:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 0)
at installPythonPackages (/home/chard/leon/scripts/setup/setup-python-packages.js:47:9)
at /home/chard/leon/scripts/setup/setup-python-packages.js:64:13 {
shortMessage: 'Command failed with exit code 1: pipenv run spacy download en_core_web_trf-3.4.0 --direct',
command: 'pipenv run spacy download en_core_web_trf-3.4.0 --direct',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: '',
stderr: 'Traceback (most recent call last):\n' +
' File "/home/chard/leon/bridges/python/.venv/bin/spacy", line 5, in \n' +
' from spacy.cli import setup_cli\n' +
' File "/home/chard/leon/bridges/python/.venv/lib/python3.9/site-packages/spacy/init.py", line 14, in \n' +
' from . import pipeline # noqa: F401\n' +
' File "/home/chard/leon/bridges/python/.venv/lib/python3.9/site-packages/spacy/pipeline/init.py", line 1, in \n' +
' from .attributeruler import AttributeRuler\n' +
' File "/home/chard/leon/bridges/python/.venv/lib/python3.9/site-packages/spacy/pipeline/attributeruler.py", line 6, in \n' +
' from .pipe import Pipe\n' +
' File "spacy/pipeline/pipe.pyx", line 1, in init spacy.pipeline.pipe\n' +
' File "spacy/vocab.pyx", line 1, in init spacy.vocab\n' +
' File "/home/chard/leon/bridges/python/.venv/lib/python3.9/site-packages/spacy/tokens/init.py", line 1, in \n' +
' from .doc import Doc\n' +
' File "spacy/tokens/doc.pyx", line 36, in init spacy.tokens.doc\n' +
' File "/home/chard/leon/bridges/python/.venv/lib/python3.9/site-packages/spacy/schemas.py", line 222, in \n' +
' class TokenPattern(BaseModel):\n' +
' File "pydantic/main.py", line 205, in pydantic.main.ModelMetaclass.new\n' +
' File "pydantic/fields.py", line 491, in pydantic.fields.ModelField.infer\n' +
' File "pydantic/fields.py", line 421, in pydantic.fields.ModelField.init\n' +
' File "pydantic/fields.py", line 537, in pydantic.fields.ModelField.prepare\n' +
' File "pydantic/fields.py", line 634, in pydantic.fields.ModelField._type_analysis\n' +
' File "pydantic/fields.py", line 641, in pydantic.fields.ModelField._type_analysis\n' +
' File "/root/.pyenv/versions/3.9.10/lib/python3.9/typing.py", line 851, in subclasscheck\n' +
' return issubclass(cls, self.origin)\n' +
'TypeError: issubclass() arg 1 must be a class',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}

@Chard0212
Copy link
Author

Look at your report: https://report.getleon.ai/raw/exomuvuseg

It seems that you have less than 2 GB of total RAM. Leon needs at least ~ 4 GB. Also, I'm not sure about your disk space, but it may also be possible that the TCP server cannot be extracted properly because you don't have enough space there too.

enough memory and storage, just TCP server wont success installing and when check for errors wont show.. is there a way I could download and install the tcp server manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants