Help ci /cd from bitbucket pipelines with serverless and openwhisk

I have some issues trying to deploy with the bitbucket pipeline the serverless framework give me this log

Serverless: Invoke package

Serverless: Packaging service...

Serverless: Excluding development dependencies...

Serverless: Compiling Functions...

Serverless: Compiling Packages...

Serverless: Compiling API Gateway definitions...

Serverless: Compiling Rules...

Serverless: Compiling Triggers & Feeds...

Serverless: Compiling Service Bindings...

Serverless: Deploying Packages...

Serverless: Deploying Functions...

Serverless Error ---------------------------------------

ServerlessError: Failed to deploy function (test-example/hello4) due to error: Unknown Error From API: socket hang up

at /opt/atlassian/pipelines/agent/build/node_modules/serverless-openwhisk/deploy/lib/deployFunctions.js:18:15

at processTicksAndRejections (internal/process/task_queues.js:93:5)

Get Support --------------------------------------------

Docs: docs.serverless.com

Bugs: github.com/serverless/serverless/issues

Issues: forum.serverless.com

Your Environment Information ---------------------------

Operating System: linux

Node Version: 14.15.4

Framework Version: 2.21.1

Plugin Version: 4.4.2

SDK Version: 2.3.2

Components Version: 3.5.1

Does the same thing happen if you run the exact same deploy command from your own machine?

The remote side is closing your connection. You may get more useful information if you turn on verbose logging from serverless.

Update your bitbucket-pipeline.yml to add --verbose to your deployment line:

serverless deploy --verbose

this is the result

Serverless:

Serverless: Invoke deploy

Serverless: Invoke package

Serverless: Packaging service...

Serverless: Excluding development dependencies...

Serverless: Compiling Functions...

Serverless: Compiled Function (hello4): {"actionName":"test-example/hello4","overwrite":true,"action":{"exec":{"main":"hello","kind":"nodejs:default","code":"<hidden>"},"limits":{"timeout":60000,"memory":256,"concurrency":1},"parameters":[],"annotations":[{"key":"require-whisk-auth","value":false},{"key":"web-export","value":true},{"key":"final","value":true}]}}

Serverless: Compiling Packages...

Serverless: Compiled Package (test-example): {"name":"test-example","overwrite":true,"package":{},"namespace":"_"}

Serverless: Compiling API Gateway definitions...

Serverless: Compiled API Gateway definition (hello4): [{"operation":"GET","relpath":"/test-example/hello4","responsetype":"json","namespace":"_","action":"hello4","pkge":"test-example"}]

Serverless: Compiling Rules...

Serverless: Compiling Triggers & Feeds...

Serverless: Compiling Service Bindings...

Serverless: Deploying Packages...

Serverless: Deploying Package: test-example

Serverless: Deployed Package: test-example

Serverless: Deploying Functions...

Serverless: Deploying Function: test-example/hello4

Serverless Error ---------------------------------------

ServerlessError: Failed to deploy function (test-example/hello4) due to error: Unknown Error From API: socket hang up

at ow.actions.create.then.catch.err (/node_modules/serverless-openwhisk/deploy/lib/deployFunctions.js:18:15)

at processTicksAndRejections (internal/process/task_queues.js:86:5)


and yes from my local environment work perfectly, even I reproduce the same steps in a docker image with the version that I have in bitbucket and works, but in bitbucket not