Peertube: No plugin/theme works to install anymore

My YunoHost server

Hardware: VPS bought online
YunoHost version: 3.2.1
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | …
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

After the upgrade to 3.2.1, all of the plugins I had installed stopped working and I cannot install any new one. All give me a “Bad Request”. I cannot see anything in the Peertube logs though.

Maybe it is related to this? "Bad request" at plugin install · Issue #3930 · Chocobozzz/PeerTube · GitHub

1 Like

Same issue for me :disappointed_relieved: :disappointed_relieved:

Error :disappointed_relieved:

“stack”: “Error: Command failed: yarn add peertube-theme-dark@2.2.5
\nwarning package.json: No license field
\nwarning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
\nwarning No license field\nerror ldapjs@2.2.4: The engine "node" is incompatible with this module. Expected version ">=10.13.0". Got "8.17.0"
\nerror Found incompatible module.
\n
\n at ChildProcess.exithandler (child_process.js:319:12)
\n at ChildProcess.emit (events.js:376:20)
\n at ChildProcess.emit (domain.js:470:12)
\n at maybeClose (internal/child_process.js:1055:16)
\n at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)”,
Jun 14 18:36:27 .noho.st peertube[1514]: “message”: “Command failed: yarn add peertube-theme-dark@2.2.5
\nwarning package.json: No license field
\nwarning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
\nwarning No license field
\nerror ldapjs@2.2.4: The engine "node" is incompatible with this module. Expected version ">=10.13.0". Got "8.17.0"
\nerror Found incompatible module.
\n”,
Jun 14 18:36:27 .noho.st peertube[1514]: “killed”: false,
Jun 14 18:36:27 .noho.st peertube[1514]: “code”: 1,
Jun 14 18:36:27 .noho.st peertube[1514]: “signal”: null,
Jun 14 18:36:27 .noho.st peertube[1514]: “cmd”: “yarn add peertube-theme-dark@2.2.5”
Jun 14 18:36:27 .st peertube[1514]: },
Jun 14 18:36:27 .st peertube[1514]: “stdout”: “yarn add v1.16.0
\n[1/4] Resolving packages…
\n[2/4] Fetching packages…
\ninfo Visit yarn add | Yarn for documentation about this command.
\n”,
Jun 14 18:36:27 .noho.st peertube[1514]: “stderr”: “warning package.json: No license field\nwarning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.\nwarning No license field\nerror ldapjs@2.2.4: The engine "node" is incompatible with this module. Expected version ">=10.13.0". Got "8.17.0"\nerror Found incompatible module.\n”

Ok so we at least know it is not an isolated case. Maybe the YNH dev can help us.

i will try but i haven’t a lot of time now :confused:

For me, it’s don’t work only for plugins

1 Like

Whenever you can and thank you for your work!

For me too only plugins !

Hello I’ve open a PR for this it was a permission problem if this can help you.

See you soon :blush:

Same issue for me. Plugins and themes don’t work and when I try update - Error Bad Request!

After the “fix” was pushed - this one Fix permissions Plugins & Themes by yalh76 · Pull Request #244 · YunoHost-Apps/peertube_ynh · GitHub - videos and thumbnails also failed to load. To fix I did " chown -R peertube:www-data "/home/yunohost.app/peertube/storage"" and this also fixed the issue with plugins/themes. So it is a permission issue after all. The solution is based on this other post of mine on github Upgrading to peertube ynh3 version completely broke my Peertube · Issue #223 · YunoHost-Apps/peertube_ynh · GitHub

1 Like

Actually the above fixed the videos and thumbnails but broke the instance overall. So others need to investigate more. I had to restore a backup. Now I am back at: no plugin/theme can be installed.

My log after Fix permissions :disappointed_relieved:

Cannot install plugin peertube-theme-dark, removing it… {
“err”: {
“err”: {
“stack”: “Error: Command failed: yarn add peertube-theme-dark@2.2.5\nwarning package.json: No license field\nwarning No license field\nerror ldapjs@2.2.4: The engine "node" is incompatible with this module. Expected version ">=10.13.0". Got "8.17.0"\nerror Found incompatible module.\n\n at ChildProcess.exithandler (child_process.js:319:12)\n at ChildProcess.emit (events.js:375:28)\n at ChildProcess.emit (domain.js:470:12)\n at maybeClose (internal/child_process.js:1055:16)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)”,
“message”: “Command failed: yarn add peertube-theme-dark@2.2.5\nwarning package.json: No license field\nwarning No license field\nerror ldapjs@2.2.4: The engine "node" is incompatible with this module. Expected version ">=10.13.0". Got "8.17.0"\nerror Found incompatible module.\n”,
“killed”: false,
“code”: 1,
“signal”: null,
“cmd”: “yarn add peertube-theme-dark@2.2.5”
},
“stdout”: “yarn add v1.22.5\n[1/4] Resolving packages…\n[2/4] Fetching packages…\ninfo Visit yarn add | Yarn for documentation about this command.\n”,
“stderr”: “warning package.json: No license field\nwarning No license field\nerror ldapjs@2.2.4: The engine "node" is incompatible with this module. Expected version ">=10.13.0". Got "8.17.0"\nerror Found incompatible module.\n”
}
}
[peertubebug.fr.nf:443] 2021-06-18 13:54:21.288 error: Cannot remove plugin peertube-theme-dark after failed installation. {
“err”: {
“stack”: “Error: Invalid NPM plugin name to install\n at checkNpmPluginNameOrThrow (/var/www/peertube/dist/server/lib/plugins/yarn.js:57:15)\n at Object. (/var/www/peertube/dist/server/lib/plugins/yarn.js:34:9)\n at Generator.next ()\n at /var/www/peertube/node_modules/tslib/tslib.js:117:75\n at new Promise ()\n at Object.__awaiter (/var/www/peertube/node_modules/tslib/tslib.js:113:16)\n at Object.removeNpmPlugin (/var/www/peertube/dist/server/lib/plugins/yarn.js:33:20)\n at PluginManager. (/var/www/peertube/dist/server/lib/plugins/plugin-manager.js:226:34)\n at Generator.throw ()\n at rejected (/var/www/peertube/node_modules/tslib/tslib.js:115:69)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:95:5)”,
“message”: “Invalid NPM plugin name to install”
}
}
[peertubebug.fr.nf:443] 2021-06-18 13:54:21.289 warn: Cannot install plugin peertube-theme-dark. {
“err”: {
“err”: {
“stack”: “Error: Command failed: yarn add peertube-theme-dark@2.2.5\nwarning package.json: No license field\nwarning No license field\nerror ldapjs@2.2.4: The engine "node" is incompatible with this module. Expected version ">=10.13.0". Got "8.17.0"\nerror Found incompatible module.\n\n at ChildProcess.exithandler (child_process.js:319:12)\n at ChildProcess.emit (events.js:375:28)\n at ChildProcess.emit (domain.js:470:12)\n at maybeClose (internal/child_process.js:1055:16)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)”,
“message”: “Command failed: yarn add peertube-theme-dark@2.2.5\nwarning package.json: No license field\nwarning No license field\nerror ldapjs@2.2.4: The engine "node" is incompatible with this module. Expected version ">=10.13.0". Got "8.17.0"\nerror Found incompatible module.\n”,
“killed”: false,
“code”: 1,
“signal”: null,
“cmd”: “yarn add peertube-theme-dark@2.2.5”
},
“stdout”: “yarn add v1.22.5\n[1/4] Resolving packages…\n[2/4] Fetching packages…\ninfo Visit yarn add | Yarn for documentation about this command.\n”,
“stderr”: “warning package.json: No license field\nwarning No license field\nerror ldapjs@2.2.4: The engine "node" is incompatible with this module. Expected version ">=10.13.0". Got "8.17.0"\nerror Found incompatible module.\n”
}
}

and

“stack”: “HTTPError: Response code 403 (Forbidden)\n at Request. (/var/www/peertube/node_modules/got/dist/source/as-promise/index.js:117:42)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:95:5)”,

After Update 3.2.1~ynh2

error: Cannot install plugin peertube-theme-pirate-stoertebeker, removing it… {
“err”: {
“err”: {
“stack”: “Error: Command failed: yarn add peertube-theme-pirate-stoertebeker@1.1.1\nwarning package.json: No license field\nwarning No license field\nerror ldapjs@2.2.4: The engine "node" is incompatible with this module. Expected version ">=10.13.0". Got "8.17.0"\nerror Found incompatible module.\n\n at ChildProcess.exithandler (child_process.js:319:12)\n at ChildProcess.emit (events.js:375:28)\n at ChildProcess.emit (domain.js:470:12)\n at maybeClose (internal/child_process.js:1055:16)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)”,
“message”: “Command failed: yarn add peertube-theme-pirate-stoertebeker@1.1.1\nwarning package.json: No license field\nwarning No license field\nerror ldapjs@2.2.4: The engine "node" is incompatible with this module. Expected version ">=10.13.0". Got "8.17.0"\nerror Found incompatible module.\n”,
“killed”: false,
“code”: 1,
“signal”: null,
“cmd”: “yarn add peertube-theme-pirate-stoertebeker@1.1.1”
},
“stdout”: “yarn add v1.22.5\n[1/4] Resolving packages…\n[2/4] Fetching packages…\ninfo Visit yarn add | Yarn for documentation about this command.\n”,
“stderr”: “warning package.json: No license field\nwarning No license field\nerror ldapjs@2.2.4: The engine "node" is incompatible with this module. Expected version ">=10.13.0". Got "8.17.0"\nerror Found incompatible module.\n”
}
}
error: Cannot remove plugin peertube-theme-pirate-stoertebeker after failed installation. {
“err”: {
“stack”: “Error: Invalid NPM plugin name to install\n at checkNpmPluginNameOrThrow (/var/www/peertube/dist/server/lib/plugins/yarn.js:57:15)\n at Object. (/var/www/peertube/dist/server/lib/plugins/yarn.js:34:9)\n at Generator.next ()\n at /var/www/peertube/node_modules/tslib/tslib.js:117:75\n at new Promise ()\n at Object.__awaiter (/var/www/peertube/node_modules/tslib/tslib.js:113:16)\n at Object.removeNpmPlugin (/var/www/peertube/dist/server/lib/plugins/yarn.js:33:20)\n at PluginManager. (/var/www/peertube/dist/server/lib/plugins/plugin-manager.js:226:34)\n at Generator.throw ()\n at rejected (/var/www/peertube/node_modules/tslib/tslib.js:115:69)\n at processTicksAndRejections (internal/process/task_queues.js:95:5)”,
“message”: “Invalid NPM plugin name to install”
}
}
warn: Cannot install plugin peertube-theme-pirate-stoertebeker. {
“err”: {
“err”: {
“stack”: “Error: Command failed: yarn add peertube-theme-pirate-stoertebeker@1.1.1\nwarning package.json: No license field\nwarning No license field\nerror ldapjs@2.2.4: The engine "node" is incompatible with this module. Expected version ">=10.13.0". Got "8.17.0"\nerror Found incompatible module.\n\n at ChildProcess.exithandler (child_process.js:319:12)\n at ChildProcess.emit (events.js:375:28)\n at ChildProcess.emit (domain.js:470:12)\n at maybeClose (internal/child_process.js:1055:16)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)”,
“message”: “Command failed: yarn add peertube-theme-pirate-stoertebeker@1.1.1\nwarning package.json: No license field\nwarning No license field\nerror ldapjs@2.2.4: The engine "node" is incompatible with this module. Expected version ">=10.13.0". Got "8.17.0"\nerror Found incompatible module.\n”,
“killed”: false,
“code”: 1,
“signal”: null,
“cmd”: “yarn add peertube-theme-pirate-stoertebeker@1.1.1”
},
“stdout”: “yarn add v1.22.5\n[1/4] Resolving packages…\n[2/4] Fetching packages…\ninfo Visit yarn add | Yarn for documentation about this command.\n”,
“stderr”: “warning package.json: No license field\nwarning No license field\nerror ldapjs@2.2.4: The engine "node" is incompatible with this module. Expected version ">=10.13.0". Got "8.17.0"\nerror Found incompatible module.\n”
}

Just so anyone knows, this bug is also traced here Upgrading to peertube ynh3 version completely broke my Peertube · Issue #223 · YunoHost-Apps/peertube_ynh · GitHub and here No plugin works to install anymore · Issue #4185 · Chocobozzz/PeerTube · GitHub - so far it seems to be a YNH related issue with permissions.

After updating to the latest ynh peertube, it was suggested this:

    chown -R peertube:www-data /var/www/peertube
    chown -R peertube:www-data /home/yunohost.app/peertube/storage

Because the latest update, for a few of us at least, breaks peertube completely.

Same errors after chown and reboot server :disappointed_relieved:

I upgraded to 3.2.1~ynh3 that should have fixed the issue. But it did not. At least for me. Same issue as stated above.

Can you restart peertube service and tell me ?

I did but still doesn’t work:

warn[6/19/2021, 8:01:22 PM] Cannot install plugin peertube-plugin-custom-links.

{
  "err": {
    "err": {
      "stack": "Error: Command failed: yarn add peertube-plugin-custom-links@0.0.10\nwarning package.json: No license field\nwarning No license field\nerror An unexpected error occurred: \"EACCES: permission denied, unlink '/home/yunohost.app/peertube/storage/plugins/node_modules/asn1/LICENSE'\".\n\n    at ChildProcess.exithandler (child_process.js:319:12)\n    at ChildProcess.emit (events.js:375:28)\n    at ChildProcess.emit (domain.js:470:12)\n    at maybeClose (internal/child_process.js:1055:16)\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)",
      "message": "Command failed: yarn add peertube-plugin-custom-links@0.0.10\nwarning package.json: No license field\nwarning No license field\nerror An unexpected error occurred: \"EACCES: permission denied, unlink '/home/yunohost.app/peertube/storage/plugins/node_modules/asn1/LICENSE'\".\n",
      "killed": false,
      "code": 1,
      "signal": null,
      "cmd": "yarn add peertube-plugin-custom-links@0.0.10"
    },
    "stdout": "yarn add v1.22.5\n[1/4] Resolving packages...\n[2/4] Fetching packages...\n[3/4] Linking dependencies...\ninfo If you think this is a bug, please open a bug report with the information provided in \"/home/yunohost.app/peertube/storage/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: \"EACCES: permission denied, unlink '/home/yunohost.app/peertube/storage/plugins/node_modules/asn1/LICENSE'\".\n"
  }
}

After doing

chown -R peertube:www-data /home/yunohost.app/peertube/storage/

Now all works fine. Thank you @oufmilo !

After update 3.2.1~ynh3 it’s OK thank you :kissing_heart:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.