rstudio / shiny-server

Host Shiny applications over the web.
https://rstudio.com/shiny/server
Other
719 stars 289 forks source link

issues installing shiny-server on arm64 architecture #534

Open bapoorva opened 2 years ago

bapoorva commented 2 years ago

Hi,

I'm having a lot of issues installing shiny-server on ARM64 architecture. So last time, i had this problem, I was able to resolve it using the solution I've posted #477. I had to install it again on a new AWS EC2 for another shiny app and this time I'm getting the following error

(cd .. && ./bin/npm install)
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@2. I'll try to do my best with it!
The authenticity of host 'github.com (140.82.114.3)' can't be established. optimist@git+ssh://git@github.com/rstudio/node-optimist.git#dbbadda31e53b63225a57e
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
The authenticity of host 'github.com (140.82.114.3)' can't be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
Are you sure you want to continue connecting (yes/no/[fingerprint])? [        ..........] \ extract:concat-map: sill extract @babel/helper-validator-identifieThe authenticity of host 'github.com (140.82.114.3)' can't be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
[            ......] | extract:typescript: sill extract typescript@4.5.5 extracted to /home/ubuntu/shiny-server/node_modules/.staging/typescript-600f13c9 (26
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/jcheng5/sockjs-client.git
npm ERR! 
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR! 
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR! 
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2022-08-26T15_46_52_771Z-debug.log

So obviously its a github issue. I checked ~/.ssh and turns out that didn't exist. So I followed instructions here. I created a new key using ssh-keygen. This generated ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub files. I used the key in id_rsa.pub and added it to ssh keys tab in my gitlab account. I'm still getting the same error.

I even tried the steps provided here from #532 . Same issue when i run the packaging/make-package.sh step.

how do i fix it ?

andresrcs commented 2 years ago

I have had the same problem #523 with the optimist npm module since the v1.5.18.987 release, the only workaround I could find is to modify the shiny-server/npm-shrinkwrap.json file and replace the SHASUM for that module to the expected one.

Old line: '"integrity": "sha512-3RAVyfbptsR6HOFA0BFNLyw8ZXXDRWf5P3tIslbNt12kTikaRWepRR9vLHMyibIZeNfScI9uGqcn1KfbIAeuXA==",'
New line: '"integrity": "sha512-ZwrJM2WaOJesJGZlejLqAiBAE6Ts2PZNk1pQ/x1uTMsQw83BaXWShjqCbhh5bPQUNrlx2Ijz1dOr0hLmlkxKag==",'