Peertube cant install plugins/themes (timeout)

hey

I hope im right here, i have problem installing plugins/themes, i have the docker version of peertube (6.3.0) behind nginx proxy.

this 2 lines comes from peertube log after try to install a plugin:

{"level":"error","message":"Cannot install plugin peertube-plugin-simplelogo, removing it...","label":"domain.de:443","err":{"err":{"stack":"Error: Command failed: yarn add peertube-plugin-simplelogo@0.0.5\nwarning package.json: No license field\nwarning No license field\nerror An unexpected error occurred: \"https://registry.yarnpkg.com/peertube-plugin-simplelogo: ETIMEDOUT\".\n\n    at ChildProcess.exithandler (node:child_process:422:12)\n    at ChildProcess.emit (node:events:517:28)\n    at maybeClose (node:internal/child_process:1098:16)\n    at ChildProcess._handle.onexit (node:internal/child_process:303:5)","message":"Command failed: yarn add peertube-plugin-simplelogo@0.0.5\nwarning package.json: No license field\nwarning No license field\nerror An unexpected error occurred: \"https://registry.yarnpkg.com/peertube-plugin-simplelogo: ETIMEDOUT\".\n","code":1,"killed":false,"signal":null,"cmd":"yarn add peertube-plugin-simplelogo@0.0.5"},"stdout":"yarn add v1.22.19\ninfo No lockfile found.\n[1/4] Resolving packages...\ninfo There appears to be trouble with your network connection. Retrying...\ninfo There appears to be trouble with your network connection. Retrying...\ninfo There appears to be trouble with your network connection. Retrying...\ninfo There appears to be trouble with your network connection. Retrying...\ninfo If you think this is a bug, please open a bug report with the information provided in \"/data/plugins/yarn-error.log\".\ninfo Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.\n","stderr":"warning package.json: No license field\nwarning No license field\nerror An unexpected error occurred: \"https://registry.yarnpkg.com/peertube-plugin-simplelogo: ETIMEDOUT\".\n"},"timestamp"}

{"level":"warn","message":"Cannot install plugin peertube-plugin-simplelogo.","label":"domain.de:443","err":{"err":{"stack":"Error: Command failed: yarn add peertube-plugin-simplelogo@0.0.5\nwarning package.json: No license field\nwarning No license field\nerror An unexpected error occurred: \"https://registry.yarnpkg.com/peertube-plugin-simplelogo: ETIMEDOUT\".\n\n    at ChildProcess.exithandler (node:child_process:422:12)\n    at ChildProcess.emit (node:events:517:28)\n    at maybeClose (node:internal/child_process:1098:16)\n    at ChildProcess._handle.onexit (node:internal/child_process:303:5)","message":"Command failed: yarn add peertube-plugin-simplelogo@0.0.5\nwarning package.json: No license field\nwarning No license field\nerror An unexpected error occurred: \"https://registry.yarnpkg.com/peertube-plugin-simplelogo: ETIMEDOUT\".\n","code":1,"killed":false,"signal":null,"cmd":"yarn add peertube-plugin-simplelogo@0.0.5"},"stdout":"yarn add v1.22.19\ninfo No lockfile found.\n[1/4] Resolving packages...\ninfo There appears to be trouble with your network connection. Retrying...\ninfo There appears to be trouble with your network connection. Retrying...\ninfo There appears to be trouble with your network connection. Retrying...\ninfo There appears to be trouble with your network connection. Retrying...\ninfo If you think this is a bug, please open a bug report with the information provided in \"/data/plugins/yarn-error.log\".\ninfo Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.\n","stderr":"warning package.json: No license field\nwarning No license field\nerror An unexpected error occurred: \"https://registry.yarnpkg.com/peertube-plugin-simplelogo: ETIMEDOUT\".\n"}

i hope someone can help me!

Greetings, please look at the forum, not so long ago this was resolved, as far as I remember, there were a number of reasons, one of them is IPv6

Hey, thanks for response
can you give the link to them will be nice

thx

There is a similar topic here, please show the Nginx logs

To check if it is a routing issue (IPv6 or IPv4), you can try this in a shell on your Peertube server:

curl -4 'https://registry.yarnpkg.com'
curl -6 'https://registry.yarnpkg.com'

Both should return:

{}

If one of them is not working, you probably have a routing issue (IPv4 for the first one, IPv6 for the second).
Once we know the error, we could help forward (or search for another issue).

Having the same issue with docker image, i can curl with ipv4 however I don’t think docker supports IPv6 and my version is 6.3.3 latest. With ipv4 I’m receiving empty brackets … but still don’t think it’s an connection issue.

It is able to tell me that there’s new packages and what the latest version of a package is but it can’t upgrade those pkg either.

Currently verison 7.0.1 stil same issue.

1 Like

still not working
I just did a full v7.0.1 installation over ubuntu server 24.04.1 LTS (without using docker) and it is impossible to install plugins.
I get the following error when I try:
Error
Cannot install plugin


I have installed peertube several times and I always get the same error.
Any solution?

For me it is the docker version though.

Is it possible that the problem I have with the installation of prugins has to do with the fact that I have peertube in a virtual machine inside proxmox?

the real problem why I couldn’t install plugins and it generated errors when I did it is that I jumped from an old version of Peertube to the latest one at once and that generated a discrepancy between the directories that contain and manage the plugins.

I will comment the solution in case someone else has the same problem.)
to solve it, you have to delete all the content of the directory: /var/www/peertube/storage/plugins/data and keep data empty.
secondly, you have to edit package.json which is located in the directory: /var/www/peertube/storage/plugins

and delete all content between:
“dependencies": {
}

sample:

save the changes

then restart peertube and you can install and delete plugins without any problem.

Best regards