You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2022/06/21 05:35:00 UTC

[GitHub] [openwhisk] hugy718 opened a new issue, #5260: install package error: npm-3.5.2 install of alarmFeed in alarm package gives ENOTDIR error

hugy718 opened a new issue, #5260:
URL: https://github.com/apache/openwhisk/issues/5260

   <!--
   We use the issue tracker for bugs and feature requests. For general questions and discussion please use https://openwhisk.apache.org/slack.html or https://openwhisk.apache.org/community.html instead.
   
   Do NOT share passwords, credentials or other confidential information.
   
   Before creating a new issue, please check if there is one already open that
   fits the defect you are reporting.
   If you open an issue and realize later it is a duplicate of a pre-existing
   open issue, please close yours and add a comment to the other.
   
   Issues can be created for either defects or enhancement requests. If you are a committer than please add the labels "bug" or "feature". If you are not a committer please make clear in the comments which one it is, so that committers can add these labels later.
   
   If you are reporting a defect, please edit the issue description to include the
   information shown below.
   
   If you are reporting an enhancement request, please include information on what you are trying to achieve and why that enhancement would help you.
   
   For more information about reporting issues, see
   https://github.com/apache/openwhisk/blob/master/CONTRIBUTING.md#raising-issues
   
   Use the commands below to provide key information from your environment:
   You do not have to include this information if this is a feature request.
   -->
   
   ## Environment details:
   
   local deployment on self-built kubernetes cluster
   Kubernetes version: 1.23.3
   ubuntu version: 20.04.4 LTS (kernel: Linux 5.13.0-51-generic)
   
   
   ## Steps to reproduce the issue:
   
   1.   use the openwhisk-deploy-kube project provided helm charts to install openwhisk
   2.   all other pods are ok, but the owdev-install-packages keeps failing
   
   I had labeled my node as invoker.
   
   ## Provide the expected results and outputs:
   
   owdev-install-packages pod has status Completed
   
   ## Provide the actual results and outputs:
   
   owdev-install-packages pod has status Completed
   
   ## Additional information you deem important:
   This happened last week when re-deploy openwhisk.
   After doing some investigation, I found the problem is the npm package install for alarm package. I inspected the log of the failing pods and successfully reproduced issue by interactively launching the container. The `owdev-install-package` pod uses container image by [openwhisk/tols/ow-utils/Dockerfile](https://github.com/apache/openwhisk/blob/master/tools/ow-utils/Dockerfile). The npm installed by apt has the version:
   
   ```text
   { npm: '3.5.2',
     ares: '1.14.0',
     cldr: '32.0.1',
     http_parser: '2.7.1',
     icu: '60.2',
     modules: '57',
     nghttp2: '1.30.0',
     node: '8.10.0',
     openssl: '1.0.2n',
     tz: '2017c',
     unicode: '10.0',
     uv: '1.18.0',
     v8: '6.2.414.50',
     zlib: '1.2.11' }
   ```
   
   Install fails for the [openwhisk-deploy-kube/helm/openwhisk/configMapFiles/installPackages/myTask.sh](https://github.com/apache/openwhisk-deploy-kube/blob/master/helm/openwhisk/configMapFiles/installPackages/myTask.sh) at L104
   
   ```sh
   #####
   # Install the catalog for the Alarm provider
   #####
   
   if [ "$OW_INSTALL_ALARM_PROVIDER" == "yes" ]; then
       cd /
       git clone https://github.com/apache/openwhisk-package-alarms.git
   
       pushd /openwhisk-package-alarms
           git checkout $OW_GIT_TAG_OPENWHISK_PACKAGE_ALARMS
           ./installCatalog.sh $WHISK_AUTH $WHISK_API_HOST_URL $WHISK_API_HOST_URL worker0 $PROVIDER_DB_URL $ALARM_DB_PREFIX || exit 1
       popd
   fi
   ```
   
   Looking at the log of failed pod, problem is the npm install command at L95 in [openwhisk-package-alarms/installCatalog.sh](https://github.com/apache/openwhisk-package-alarms/blob/master/installCatalog.sh)
   
   ```sh
   cp -f alarmFeed_package.json package.json
   npm install
   ```
   
   The output:
   
   ```text
   alarmFeed@1.0.0 /openwhisk-package-alarms/action
   ├── @types/caseless@0.12.2  extraneous
   ├── @types/tough-cookie@4.0.2  extraneous
   ├── cloudant-follow@0.18.2  extraneous
   ├── errs@0.3.2  extraneous
   ├── form-data@2.5.1  extraneous
   └─┬ needle@2.3.2 
     ├─┬ debug@3.2.7 
     │ └── ms@2.1.2 
     ├─┬ iconv-lite@0.4.24 
     │ └── safer-buffer@2.1.2 
     └── sax@1.2.4 
   
   npm WARN alarmFeed@1.0.0 No description
   npm WARN alarmFeed@1.0.0 No repository field.
   npm WARN alarmFeed@1.0.0 No license field.
   npm ERR! Linux 5.13.0-51-generic
   npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
   npm ERR! node v8.10.0
   npm ERR! npm  v3.5.2
   npm ERR! path /openwhisk-package-alarms/action/node_modules/.staging/@types/node-7154234c/package.json
   npm ERR! code ENOTDIR
   npm ERR! errno -20
   npm ERR! syscall open
   
   npm ERR! ENOTDIR: not a directory, open '/openwhisk-package-alarms/action/node_modules/.staging/@types/node-7154234c/package.json'
   npm ERR! 
   npm ERR! If you need help, you may report this error at:
   npm ERR!     <https://github.com/npm/npm/issues>
   
   npm ERR! Please include the following file with any support request:
   npm ERR!     /openwhisk-package-alarms/action/npm-debug.log
   ```
   
   That seems to be an issue of using old version of npm. A recent issue under npm/cli [here](https://github.com/npm/cli/issues/5032) also report their application suddenly broke last week.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [openwhisk] style95 commented on issue #5260: install package error: npm-3.5.2 install of alarmFeed in alarm package gives ENOTDIR error

Posted by GitBox <gi...@apache.org>.
style95 commented on issue #5260:
URL: https://github.com/apache/openwhisk/issues/5260#issuecomment-1161638521

   Thank you for reporting this.
   Why don't you contribute the change to fix the issue as you already clearly analyzed the culprit?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [openwhisk] hugy718 commented on issue #5260: install package error: npm-3.5.2 install of alarmFeed in alarm package gives ENOTDIR error

Posted by GitBox <gi...@apache.org>.
hugy718 commented on issue #5260:
URL: https://github.com/apache/openwhisk/issues/5260#issuecomment-1165210758

   Update of image tags at openwhisk-deploy-kube helm charts has been merged.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [openwhisk] hugy718 commented on issue #5260: install package error: npm-3.5.2 install of alarmFeed in alarm package gives ENOTDIR error

Posted by GitBox <gi...@apache.org>.
hugy718 commented on issue #5260:
URL: https://github.com/apache/openwhisk/issues/5260#issuecomment-1161584608

   It can be fixed by using a newer version of npm in the docker image of ow-utils. Configuring the helm charts in `openwhisk-deploy-kube` to use the updated image, I have successfully deployed it as before.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [openwhisk] hugy718 closed issue #5260: install package error: npm-3.5.2 install of alarmFeed in alarm package gives ENOTDIR error

Posted by GitBox <gi...@apache.org>.
hugy718 closed issue #5260: install package error: npm-3.5.2 install of alarmFeed in alarm package gives ENOTDIR error
URL: https://github.com/apache/openwhisk/issues/5260


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [openwhisk] hugy718 commented on issue #5260: install package error: npm-3.5.2 install of alarmFeed in alarm package gives ENOTDIR error

Posted by GitBox <gi...@apache.org>.
hugy718 commented on issue #5260:
URL: https://github.com/apache/openwhisk/issues/5260#issuecomment-1161778724

   > Thank you for reporting this. Why don't you contribute the change to fix the issue as you already clearly analyzed the culprit?
   
   Sure. I'd love to :). Opened a PR here #5261. As for the contribution guideline, I have submitted signed Apache CLA, waiting for the reply.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [openwhisk] style95 commented on issue #5260: install package error: npm-3.5.2 install of alarmFeed in alarm package gives ENOTDIR error

Posted by GitBox <gi...@apache.org>.
style95 commented on issue #5260:
URL: https://github.com/apache/openwhisk/issues/5260#issuecomment-1165213018

   @hugy718 Nice! Thank you for the contribution.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org