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

can not start hook #7

Open
frankenstein91 opened this issue Oct 1, 2022 · 5 comments
Open

can not start hook #7

frankenstein91 opened this issue Oct 1, 2022 · 5 comments

Comments

@frankenstein91
Copy link

node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

GotError: connect ECONNREFUSED ::1:8384
    at onError (/usr/lib/node_modules/syncthing-hooks/node_modules/got/dist/source/request-as-event-emitter.js:140:29)
    at handleRequest (/usr/lib/node_modules/syncthing-hooks/node_modules/got/dist/source/request-as-event-emitter.js:173:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16) {
  name: 'RequestError',
  code: 'ECONNREFUSED'
}

Node.js v18.10.0

get this error on start

@aengl
Copy link
Collaborator

aengl commented Nov 24, 2022

@frankenstein91 That error is the expected behaviour if syncthing is not running. Maybe you're running it on a different port?

@frankenstein91
Copy link
Author

@aengl I use port 8384... not sure if it is default or not

@aengl
Copy link
Collaborator

aengl commented Dec 7, 2022

That is the default port.

You can check if syncthing is indeed listening to that port by running lsof -i :8384, which should list the syncthing process.

@frankenstein91
Copy link
Author

COMMAND   PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
syncthing 408 <username>   16u  IPv4  19810      0t0  TCP localhost:8384 (LISTEN)
syncthing 408 <username>   36u  IPv4 192144      0t0  TCP localhost:8384->localhost:58980 (ESTABLISHED)

@aengl
Copy link
Collaborator

aengl commented Dec 17, 2022

Looks like everything is correct on your end, I'll investigate some more on my end 🙂

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

2 participants