-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Unable to Register Runner #6171
Comments
you should read the docs |
@ROBERT-MCDOWELL I did read the docs. I've had it working before so I know I have the right process down. |
so show your config and what commands you did |
Hi, Can you try to run the runner server with another user than |
Sure. Just ran it as ubuntu and got the same error. And this is the registration command I ran. I also tried running the server as root and registering as non-root user, and visa versa. Same error. |
I'm in the same boat, attempts to register a remote runner are failing for me.
|
Here you go:
|
|
I tried it with different versions of NodeJS on clean OS installs since it was something @alacava and I had in common without any luck. I'm running Ubuntu 22.04 but I'm going to give a different distro a try to see if that helps. |
It appears to be something specific to Ubuntu 22.04, I followed the guide using a clean install of AlmaLinux 9.3 and aside from a few minor extra steps it registered successfully.
For completeness sake, here are all of the commands I ran:
|
did you try to disable selinux? |
Can someone give me access to your server so I can debug the issue? You can send me credentials by email (in my github profile) |
Just emailed you the login for a test instance I setup that you can play with. |
Thanks. I was able to debug the ipc code and found the issue is a change in node 20.11 that breaks the ipc library we use. I created a PR on the ipc repository and published a fix available in peertube-runner 0.0.10 |
Describe the current behavior
When I try to register a runner I get:
Cannot register this PeerTube runner.
Error: This runner is not currently running in server mode on this system. Please run it using the
server
command first (in another terminal for example) and then retry your command.at IPCClient.run (file:///usr/lib/node_modules/@peertube/peertube-runner/dist/peertube-runner.js:74058:15)
at async registerRunner (file:///usr/lib/node_modules/@peertube/peertube-runner/dist/peertube-runner.js:74826:3)
at async _Command. (file:///usr/lib/node_modules/@peertube/peertube-runner/dist/peertube-runner.js:89272:5)
On the peertube-runner server app side, I get:
peertube-runner server
[17:33:02.082] INFO (4730): Running PeerTube runner in server mode
[17:33:02.086] INFO (4730): Using /root/.config/peertube-runner-nodejs/default/config.toml as configuration file
[17:33:02.094] INFO (4730): IPC socket created on /root/.local/share/peertube-runner-nodejs/default/peertube-runner.sock
[17:33:02.095] INFO (4730): Using /root/.cache/peertube-runner-nodejs/default/transcoding for transcoding directory
[17:33:23.067] ERROR (4730): uncaughtException
origin: "uncaughtException"
err: {
"type": "TypeError",
"message": "Cannot read properties of undefined (reading 'data')",
"stack":
TypeError: Cannot read properties of undefined (reading 'data')
at Connection._untag (file:///usr/lib/node_modules/@peertube/peertube-runner/dist/peertube-runner.js:10508:38)
at Connection._read (file:///usr/lib/node_modules/@peertube/peertube-runner/dist/peertube-runner.js:10429:32)
at Connection.init (file:///usr/lib/node_modules/@peertube/peertube-runner/dist/peertube-runner.js:10895:16)
at Socket.emit (node:events:518:28)
at emitReadable (node:internal/streams/readable:832:12)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
}
[17:33:23.078] INFO (4730): Cleaning up after program exit
Steps to reproduce
I'm seeing this problem on different runners and different peertube servers.
Describe the expected behavior
The peertube runner registers.
Additional information
PeerTube instance:
Browser name, version and platforms on which you could reproduce the bug: NA
Link to browser console log if relevant: NA
Link to server log if relevant (
journalctl
or/var/www/peertube/storage/logs/
): See above.The text was updated successfully, but these errors were encountered: