Worker started, but bot not answering #89

Closed
opened 2022-11-01 07:31:51 +00:00 by CarlosLopezES · 7 comments
CarlosLopezES commented 2022-11-01 07:31:51 +00:00 (Migrated from github.com)

Hi,

First of all, thanks for your work. I'm trying to self hosting it, so I clone the repo, created .env, launch yarn to download packages and then launch yarn start as you say in the docs gives me an error.

I explore the package json so I ended launching yarn develop to generate folders, the dist folder is generated and the app.js is launched. It says "Worker XXX started" but the bot dosn't answer to any messages, neither start nor help.

I've tried to add custom console.log on app.js, and I saw that code dosn't reach function runApp() {}, stops before.

I'm on CentOS 7 environment.

Any ideas? Thanks a lot.

Hi, First of all, thanks for your work. I'm trying to self hosting it, so I clone the repo, created .env, launch yarn to download packages and then launch yarn start as you say in the docs gives me an error. I explore the package json so I ended launching yarn develop to generate folders, the dist folder is generated and the app.js is launched. It says "Worker XXX started" but the bot dosn't answer to any messages, neither start nor help. I've tried to add custom console.log on app.js, and I saw that code dosn't reach function runApp() {}, stops before. I'm on CentOS 7 environment. Any ideas? Thanks a lot.
backmeupplz commented 2022-11-01 18:05:56 +00:00 (Migrated from github.com)

try removing cluster api, maybe it's not working properly on your machine

try removing cluster api, maybe it's not working properly on your machine
BigPelmeshka commented 2022-11-03 13:29:30 +00:00 (Migrated from github.com)

Hi, thank you for your work

Trying to self-host it on WinServer, cannot run neither "yarn start" (command not found), nor "yarn run" (no binary scripts available).
any ideas?

Hi, thank you for your work Trying to self-host it on WinServer, cannot run neither "yarn start" (command not found), nor "yarn run" (no binary scripts available). any ideas?
backmeupplz commented 2022-11-03 14:48:25 +00:00 (Migrated from github.com)

@BigPelmeshka install WSL :)

@BigPelmeshka install [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) :)
Eyjafja commented 2022-11-12 19:21:48 +00:00 (Migrated from github.com)

Hi, I'm facing the same issue, did you manage to fix it? If so, how?

Hi, I'm facing the same issue, did you manage to fix it? If so, how?
CarlosLopezES commented 2022-11-14 07:16:19 +00:00 (Migrated from github.com)

I opted for a Docker fork: https://github.com/EntrixIII/voicy-docker

King regards,

I opted for a Docker fork: https://github.com/EntrixIII/voicy-docker King regards,
lmerega commented 2022-12-13 17:19:41 +00:00 (Migrated from github.com)

Hi all, I cannot understand what is wrong.
yarn distribute gives me back:

yarn run v1.22.19
$ node dist/app.js
Worker 7844 started
Done in 11.14s.

Please... ideas?

The docker version works flawlessly

TIA

Hi all, I cannot understand what is wrong. yarn distribute gives me back: yarn run v1.22.19 $ node dist/app.js Worker 7844 started Done in 11.14s. Please... ideas? The docker version works flawlessly TIA
lmerega commented 2022-12-13 19:29:40 +00:00 (Migrated from github.com)

Ok, I solved by changing:
if (Cluster.isPrimary) {
void runApp()
}
to

void runApp()

Ok, I solved by changing: if (Cluster.isPrimary) { void runApp() } to void runApp()
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
backmeupplz/voicy#89
No description provided.