Initialization has failed due to: There was an error uncompressing the action archive. | Community
Skip to main content
January 10, 2020
Question

Initialization has failed due to: There was an error uncompressing the action archive.

  • January 10, 2020
  • 3 replies
  • 8220 views

Hi,

 

I'm following the documentation for creation the web actions. I'm able to successfully deploy using wskdeploy, but when i'm invoking the action, it throws the following error. Any input on what may be doing wrong?

 

Initialization has failed due to: There was an error uncompressing the action archive.

 

Documentation link - https://adobedocs.github.io/adobeio-runtime/guides/creating_actions.html

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Adobe Employee
January 24, 2020

Hello there,

 

Can you try using wsk for deploying your ZIP? 

There is another way of deploying a ZIP action using the wsk command. You miss the manifest.yaml file flexibility with this mode; you can’t define multiple actions/packages at the same time. The ZIP file has to have in the root the package.json file.
wsk action create my-action --kind nodejs:10 zip-file.zip

cheers,
Mihai
March 31, 2021

Hi there,

 

Seems it does not work on Windows at all: https://github.com/apache/openwhisk-wskdeploy/issues/913 

Once I have downloaded the ZIP created by wskdeploy, I found that it added to archive folder path starting from C:/. It did not include all disk content, but included empty folders which break the ZIP structure and action cannot be properly executed:

 

 

Suggested workaround to use wsk for ZIP deployment instead works fine for me, but it makes work on actions much harder because each action should be packaged and uploaded separately.

March 13, 2020

Hi,

 

I had the same issue and was fixed added the js file in the manifest file. Below you can see an example:

 

function: actions/main.js

 

Adobe Employee
April 13, 2020

We've updated the docs to highlight that if you have dependencies, then you have to point to the folder where the action is defined and the action has to be defined in a file called index.js

 

https://github.com/AdobeDocs/adobeio-runtime/blob/master/guides/creating_actions.md#deploying-zip-actions