cancel
Showing results for 
Search instead for 
Did you mean: 

Upload canceled, archive could not be read or appears to be empty

sanjoy0308
Active Participant

I am running npm run deploy ("deploy": "ui5 build preload --clean-dest --config ui5-deploy.yaml --include-task=generateManifestBundle generateCachebusterInfo && rimraf archive.zip")

I get this error:

info builder:custom deploy-to-abap Create Archive
info builder:custom deploy-to-abap Starting Deployment.on com.asml.prodengapp 🔨 (11/11) Running task deploy-to-abap...
info builder:custom deploy-to-abap er:builder application com.asml.prodengapp 🔨 (11/11) Running task deploy-to-abap...
info builder:custom deploy-to-abap Using system [Temp System] from System store
Filtering system with ID [http://xxxxx.com] as it seems corrupt. Run repair
Filtering system with ID [https://xxxxx.com] as it seems corrupt. Run repair
Filtering system with ID [https://xxxxx:8300] as it seems corrupt. Run repair
ERR! builder:custom deploy-to-abap Request failed with status code 400dengapp 🔨 (11/11) Running task deploy-to-abap...
ERR! builder:custom deploy-to-abap SAPUI5 application was not uploaded or registered successfully
ERR! builder:custom deploy-to-abap SAPUI5 application was not uploaded or registered successfully
ERR! builder:custom deploy-to-abap ***** Upload of SAPUI5 App or Library from ZIP-Archive into SAPUI5 ABAP Repository *****
ERR! builder:custom deploy-to-abap
ERR! builder:custom deploy-to-abap Running in regular mode, brief log
ERR! builder:custom deploy-to-abap
ERR! builder:custom deploy-to-abap Upload canceled, archive could not be read or appears to be empty.
ERR! builder:custom deploy-to-abap
ERR! builder:custom deploy-to-abap SAPUI5 application was not uploaded or registered successfully
ERR! builder:custom deploy-to-abap
ERR! builder:custom deploy-to-abap * Done *
ERR! builder:custom deploy-to-abap SAP_Transaction: For backend administrators: use ADT feed reader "SAP Gateway Error Log" or run transaction /IWFND/ERROR_LOG on SAP Gateway hub system and search for entries with the timestamp above for more details
ERR! builder:custom deploy-to-abap SAP_Note: See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)
ERR! builder:custom deploy-to-abap Deployment Failed.
ERR! builder:custom deploy-to-abap SAPUI5 application was not uploaded or registered successfully
ERR! builder:custom deploy-to-abap SAPUI5 application was not uploaded or registered successfully
ERR! builder:custom deploy-to-abap ***** Upload of SAPUI5 App or Library from ZIP-Archive into SAPUI5 ABAP Repository *****
ERR! builder:custom deploy-to-abap
ERR! builder:custom deploy-to-abap Running in regular mode, brief log
ERR! builder:custom deploy-to-abap
ERR! builder:custom deploy-to-abap Upload canceled, archive could not be read or appears to be empty.
ERR! builder:custom deploy-to-abap
ERR! builder:custom deploy-to-abap SAPUI5 application was not uploaded or registered successfully
ERR! builder:custom deploy-to-abap
ERR! builder:custom deploy-to-abap * Done *
ERR! builder:custom deploy-to-abap SAP_Transaction: For backend administrators: use ADT feed reader "SAP Gateway Error Log" or run transaction /IWFND/ERROR_LOG on SAP Gateway hub system and search for entries with the timestamp above for more details
ERR! builder:custom deploy-to-abap SAP_Note: See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)
info builder:builder Build succeeded in 4.31 s
info builder:builder Executing cleanup tasks...

Yesterday also, I was able to deploy. Today I released a TR and created new TR and getting this issue. Could you please someone help?


Accepted Solutions (1)

Accepted Solutions (1)

Hi sanjoy.saha3,

Could you update the ux-ui5-tooling version? You can follow the steps below:

1. cd <your-project-folder>
2. Delete package-lock.json file
3. Run: npm install @sap/ux-ui5-tooling@latest
4. Open pakcage.json file to verify that you have “@sap/ux-ui5-tooling”: “^1.3.2" in devDependencies section.
5. In the latest version, we also use a different deploy script. So you need to find this line in “scripts” section of package.json:
“deploy”: “ui5 build preload --clean-dest --config ui5-deploy.yaml --include-task=generateManifestBundle generateCachebusterInfo && rimraf archive.zip”,

Replace it with:
“deploy”: “npm run build && fiori deploy --config ui5-deploy.yaml”,

sanjoy0308
Active Participant
0 Kudos

Hi shen.lin,

Thank you for the steps. It works.

Kind Regards,

Sanjoy

webi
Discoverer
0 Kudos

Hi Shen Lin,
I wasted hours to even realize that the archive.zip is empty....

You are a hero 🙂

Thank you, so awesome 🙂

Best Regards,
Markus

Answers (1)

Answers (1)

Steentje
Explorer

Hmm this should be mentioned in the Release page.

Just spent 5 hours figuring it out.

So this npm run build && fiori deploy --config ui5-deploy.yaml is indeed needed to be changed in the deploy script in the package.json.

So please add the instruction inside the release

https://www.npmjs.com/package/@sap/ux-ui5-tooling/v/1.3.2

Greetings,

sanjoy0308
Active Participant
0 Kudos

Yes I agree with you, I also spent lot of hours.

ritika_arora2
Associate
Associate
0 Kudos

Thanks for your feedback, we will update our documentation.