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.
“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”
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.
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”
}
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"
}
}