question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add function via NooBaa Management Console fails...

See original GitHub issue

Environment info

  • NooBaa Version:
INFO[0000] CLI version: 5.7.0                           
INFO[0000] noobaa-image: noobaa/noobaa-core:5.7.0       
INFO[0000] operator-image: noobaa/noobaa-operator:5.7.0 
  • Platform: OpenShift 4.7.4 - with NooBaa deployed via the OpenShift Container Storage operator.

Actual behavior

  1. Attempting to create a function via the NooBaa Management Console fails. A toast is displayed in the UI with the following message:
Creating function test failed

Expected behavior

  1. The function should be created successfully.

Steps to reproduce

  1. Open the NooBaa Management Console
  2. Select Functions in the left hand navigation menu
  3. Click the Create Function button
  4. In the Create Function modal dialog, enter a Function Name of test and click the Next button
  5. Enter the following function code:
function test() {
};
  1. Enter test in the Execution Function field and click the Next button
  2. Click the Create button
  3. The error toast is displayed in the bottom left hand corner

More information - Screenshots / Logs / Other output

The following message is seen in the logs for the noobaa-core-0 pod:

Jun-21 9:29:17.796 [WebServer/36] [ERROR] CONSOLE:: RPC._on_request: ERROR srv func_api.create_func reqid 366@wss://noobaa-mgmt-openshift-storage.apps.cp4wa-474-msmiths-ocs.cp.fyre.ibm.com(znszq7.zzwr) connid ws://[::ffff:10.254.12.1]:52574/(2g7zspo2o9) TypeError: Cannot read property 'openUploadStream' of null
    at /root/node_modules/noobaa-core/src/server/func_services/func_store.js:123:59
    at new Promise (<anonymous>)
    at FuncStore.create_code_gridfs (/root/node_modules/noobaa-core/src/server/func_services/func_store.js:122:16)
    at Object.create_func (/root/node_modules/noobaa-core/src/server/func_services/func_server.js:72:10)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async /root/node_modules/noobaa-core/src/rpc/rpc.js:340:32
    at async RPC._on_request (/root/node_modules/noobaa-core/src/rpc/rpc.js:348:25)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
liranmaudacommented, Jun 27, 2021

@guymguym Following your suggestion I installed also master with mongo and it worked for me.

Just for recap, for me it works, using master on both postgres and mongo

0reactions
liranmaudacommented, Aug 3, 2021

@msmiths Sure, Please keep me update when you have a newer version, as I can’t reproduce it. If this persists in the newer version, We would like to get the must gather, and we can look at the logs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NooBaa Simple MCG Deployment stuck in configuring state
Description of problem: Hi Folks, I am trying to setup a simple MCG for Red Hat Quay registry using the following guide: ...
Read more >
S3 and WebUI not responsive after heavy load by ... - GitHub
WebUI is not working after a heavy load was produced due to Noobaa-Function calls. The limit seems to be somewhere around 5k Events...
Read more >
OpenShift Container Platform 4.11 release notes
Troubleshooting bootstrap failures during installation on AWS. The installation program now gathers serial console logs from the bootstrap and control plane ...
Read more >
NooBaa Software Defined Storage
NooBaa ensures reliability, performance, and security across a heterogeneous and dynamic storage environment, in your datacenter, in the cloud, ...
Read more >
Deploy Project Quay on OpenShift with the Quay Operator
The Project Quay Operator provides a simple method to deploy and manage Project Quay ... Red Hat OpenShift Data Foundation provides this API...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found