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

bbb-webhooks cannot be installed #18142

Closed
antobinary opened this issue Jun 9, 2023 · 0 comments
Closed

bbb-webhooks cannot be installed #18142

antobinary opened this issue Jun 9, 2023 · 0 comments

Comments

@antobinary
Copy link
Member

antobinary commented Jun 9, 2023

Describe the bug

Cannot install BBB package bbb-webhooks due to npm ERR! unsafe-perm is not a valid npm option. Initial investigation points to npm version troubles. I find unsafe-perm in npm's docs https://docs.npmjs.com/cli/v6/using-npm/config?v=true#unsafe-perm on versions up to 7, but not after. Right now BBB 2.5, 2.6 use npm 8, and we're transitioning to version 9+ for BBB 2.7.

It is part of the after-install script:
npm config set unsafe-perm true
https://github.com/bigbluebutton/bigbluebutton/blob/v2.6.x-release/build/packages-template/bbb-webhooks/after-install.sh#L24

Console output

root@droplet-8443:/usr/local/bigbluebutton# apt install bbb-webhooks 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  bbb-webhooks
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 5386 kB of archives.
After this operation, 19.1 MB of additional disk space will be used.
Get:1 https://ubuntu.bigbluebutton.org/focal-27-dev bigbluebutton-focal/main amd64 bbb-webhooks amd64 1:2.7-3 [5386 kB]
Fetched 5386 kB in 0s (29.1 MB/s)     
Selecting previously unselected package bbb-webhooks.
(Reading database ... 234471 files and directories currently installed.)
Preparing to unpack .../bbb-webhooks_1%3a2.7-3_amd64.deb ...
Unpacking bbb-webhooks (1:2.7-3) ...
Setting up bbb-webhooks (1:2.7-3) ...
npm ERR! `unsafe-perm` is not a valid npm option

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-06-09T10_07_19_200Z-debug-0.log
dpkg: error processing package bbb-webhooks (--configure):
 installed bbb-webhooks package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 bbb-webhooks
E: Sub-process /usr/bin/dpkg returned an error code (1)

Additional context
Also reported in https://groups.google.com/g/bigbluebutton-dev/c/11RlUkG0yh8/m/PA9s6cg2AgAJ

A fix will have to be propagated to BBB 2.5 too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant