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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to connect to TCP server. #534

Open
Nehaal999 opened this issue Jul 31, 2024 · 0 comments
Open

Failed to connect to TCP server. #534

Nehaal999 opened this issue Jul 31, 2024 · 0 comments
Labels
bug Indicates an unexpected problem or unintended behavior.

Comments

@Nehaal999
Copy link

Nehaal999 commented Jul 31, 2024

C:\Users\nehaa>leon check

[email protected] check
ts-node scripts/check.js

.: CHECKING :.
ℹ️ Leon version
✅ 1.0.0-beta.8

ℹ️ Environment
✅ Total RAM: 3.91 GB
✅ {"type":"Windows_NT","platform":"win32","arch":"x64","cpus":4,"release":"10.0.19045","osName":"Windows 10","distro":null}

ℹ️ node --version
✅ v20.15.1

ℹ️ npm --version
✅ 10.8.2

✅ Python bridge version: 1.0.1
ℹ️ Executing a skill...
ℹ️ bridges\python\dist\win-amd64\leon-python-bridge "C:\Users\nehaa.leon\scripts\assets\intent-object.json"
✅ {"domain": "leon", "skill": "random_number", "action": "run", "lang": "en", "utterance": "Give me a random number", "entities": [], "slots": {}, "output": {"type": "end", "codes": ["4"], "speech": "4", "core": {}, "options": {}}}
ℹ️ Skill execution time: 8912ms

✅ TCP server version: 1.0.0
ℹ️ Starting the TCP server...
ℹ️ tcp_server\dist\win-amd64\leon-tcp-server en
🚨 Cannot start the TCP server: The system cannot find the path specified.

ℹ️ TCP server startup time: 323ms

ℹ️ Global resolvers NLP model state
✅ Found and valid

ℹ️ Skills resolvers NLP model state
✅ Found and valid

ℹ️ Main NLP model state
✅ Found and valid

ℹ️ Amazon Polly TTS
⚠️ Amazon Polly TTS is not yet configured

ℹ️ Google Cloud TTS/STT
⚠️ Google Cloud TTS/STT is not yet configured

ℹ️ Watson TTS
⚠️ Watson TTS is not yet configured

ℹ️ Offline TTS
⚠️ Cannot find bin/flite/flite. You can set up the offline TTS by running: "npm run setup:offline-tts"

ℹ️ Watson STT
⚠️ Watson STT is not yet configured

ℹ️ Offline STT
⚠️ Cannot find bin/coqui/huge-vocabulary.scorer. You can setup the offline STT by running: "npm run setup:offline-stt"

.: REPORT :.
ℹ️ Here is the diagnosis about your current setup
✅ Run
✅ Run skills
✅ Reply you by texting
🚨 Start the TCP server
⚠️ Amazon Polly text-to-speech
⚠️ Google Cloud text-to-speech
⚠️ Watson text-to-speech
⚠️ Offline text-to-speech
⚠️ Google Cloud speech-to-text
⚠️ Watson speech-to-text
⚠️ Offline speech-to-text

🚨 Please fix the errors above

.: REPORT URL :.
ℹ️ Sending report...
✅ Report URL: https://report.getleon.ai/raw/uyazuyezin

C:\Users\nehaa>npm run setup:offline-tts
npm error code ENOENT
npm error syscall open
npm error path C:\Users\nehaa\package.json
npm error errno -4058
npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open 'C:\Users\nehaa\package.json'
npm error enoent This is related to npm not being able to find a file.
npm error enoent
npm error A complete log of this run can be found in: C:\Users\nehaa\AppData\Local\npm-cache_logs\2024-07-31T12_49_19_534Z-debug-0.log

C:\Users\nehaa>npm run setup:offline-stt
npm error code ENOENT
npm error syscall open
npm error path C:\Users\nehaa\package.json
npm error errno -4058
npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open 'C:\Users\nehaa\package.json'
npm error enoent This is related to npm not being able to find a file.
npm error enoent
npm error A complete log of this run can be found in: C:\Users\nehaa\AppData\Local\npm-cache_logs\2024-07-31T12_49_35_970Z-debug-0.log

.: PRE-CHECKING :.8 start
ℹ️ Checking system requirements...n node server/dist/pre-check.js && node server/dist/index.js
✅ Minimum required RAM: 4 GB | Total RAM: 4 GB
ℹ️ Checking voice configuration schemas...
✅ Voice configuration schemas checked
ℹ️ Checking global data schemas...
✅ Global data schemas checked
ℹ️ Checking skills data schemas...
✅ Skills data schemas checked

.: TCP CLIENT :.
✅ New instance

.: HTTP SERVER :.
✅ New instance

.: SOCKET SERVER :.
✅ New instance

.: STT :.
✅ New instance

.: TTS :.
✅ New instance

.: ASR :.
✅ New instance

.: NER :.
✅ New instance

.: MODEL LOADER :.
✅ New instance

.: CONVERSATION :.
✅ New instance

.: NLU :.
✅ New instance

.: BRAIN :.
✅ New instance

.: INITIALIZATION :.
ℹ️ The current env is production
ℹ️ The current version is 1.0.0-beta.8
ℹ️ The current time zone is Asia/Calcutta
ℹ️ Telemetry enabled

.: INITIALIZATION :.
✅ STT disabled
✅ TTS disabled

.: MODEL LOADER :.
✅ Global resolvers NLP model loaded
✅ Skills resolvers NLP model loaded
✅ Main NLP model loaded

.: INITIALIZATION :.
✅ Server is available at http://localhost:1337

.: TCP CLIENT :.
ℹ️ Trying to connect to the TCP server...

.: TCP CLIENT :.
ℹ️ Trying to connect to the TCP server...

.: TCP CLIENT :.
ℹ️ Trying to connect to the TCP server...

.: TCP CLIENT :.
ℹ️ Trying to connect to the TCP server...

.: REQUESTING :.
ℹ️ GET /

.: REQUESTING :.
ℹ️ GET /assets/index.bcb261c5.js

.: REQUESTING :.
ℹ️ GET /assets/index.5d534386.css

.: REQUESTING :.
ℹ️ GET /assets/mic.d8267246.svg

.: REQUESTING :.
ℹ️ GET /assets/logo.847fe8ad.svg

.: REQUESTING :.
ℹ️ GET /api/v1/info

.: GET /INFO :.
✅ Information pulled.

.: CLIENT :.
✅ Connected
ℹ️ Type: webapp
ℹ️ Socket ID: bz7jIs7-oCs8yB2LAAAB

.: REQUESTING :.
ℹ️ GET /assets/favicon.e9708100.png

.: TCP CLIENT :.
ℹ️ Trying to connect to the TCP server...

.: TCP CLIENT :.
ℹ️ Trying to connect to the TCP server...

.: TCP CLIENT :.
ℹ️ Trying to connect to the TCP server...

.: TCP CLIENT :.
🚨 Failed to connect to the TCP server
ℹ️ Trying to connect to the TCP server...

.: TCP CLIENT :.
🚨 Failed to connect to the TCP server
ℹ️ Trying to connect to the TCP server...

.: TCP CLIENT :.
🚨 Failed to connect to the TCP server
ℹ️ Trying to connect to the TCP server...

.: TCP CLIENT :.
🚨 Failed to connect to the TCP server
ℹ️ Trying to connect to the TCP server...

.: TCP CLIENT :.
🚨 Failed to connect to the TCP server
ℹ️ Trying to connect to the TCP server...

.: TCP CLIENT :.
🚨 Failed to connect to the TCP server
ℹ️ Trying to connect to the TCP server...

@Nehaal999 Nehaal999 added the bug Indicates an unexpected problem or unintended behavior. label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior.
Projects
None yet
Development

No branches or pull requests

1 participant