SAP / cf-html5-apps-repo-cli-plugin

Cloud Foundry CLI plugin to work with SAP Cloud HTML5 Applications Repository
Apache License 2.0
43 stars 6 forks source link

Unknown System Error while pushing app to HTML5 app repository #47

Closed mhfrq closed 3 years ago

mhfrq commented 3 years ago

Description

Describe your issue here. What is the expected behavior? What is the actual behavior? When using cf html5-push command, what was working just fine some weeks ago, I get an error message:

FAILED Could not upload applications to app-host-id '' : Unknown system error -122, open 'tempFolder/cXBtpAylCwhdqwsBooE2Ser3.zip'

Even with a minimum app like in this sample https://sap.github.io/cf-html5-apps-repo-cli-plugin/ containing only manifest.json and xs-app.json file, I get the same error.

Same issue was reported here: https://answers.sap.com/questions/13321910/error-while-deploying-apps-to-the-html5-applicatio.html But there's no solution provided yet

Environment

CLI Output

Set environment variable DEBUG=1, run the flow and paste output here.

16:56:19.718971 Running CloudFoundry html5-plugin 1.4.6 16:56:19.744364 Initializing command 'html5-push' 16:56:19.744364 Configuration file does not exist. No cache to clear 16:56:19.744364 Executing command 'html5-push': args: '[]' 16:56:19.744364 Business service name: 16:56:19.744364 Destination flag: false 16:56:19.744364 Destination instance name: 16:56:19.744364 Runtime: 16:56:19.744364 Redeploy flag: false 16:56:19.744364 Service name: 16:56:19.744364 No arguments passed. Looking for application directories 16:56:19.744364 Checking if current working directory is an application directory 16:56:19.744364 Checking if 'C:...\mytestapp\' directory is an application directory 16:56:19.744364 Directory 'C:...\mytestapp\' contains manifest.json 16:56:19.744364 Directory 'C:...\mytestapp\' contains xs-app.json 16:56:19.744364 Pushing current working directory 16:56:19.744364 Getting context (org/space/username) Pushing HTML5 applications in org ../ space .... CF Dev Space as ... ... 16:56:19.746360 Reading C:...\mytestapp\manifest.json 16:56:19.746360 Extracting application name from: {"sap.app":{"id":"myapp","applicationVersion":{"version": "1.0.0"}}}

16:56:19.746360 Getting context 16:56:19.747360 Getting list of available services 16:56:19.748419 Making request to: /v2/spaces/5987caf8-07ad-49f5-abf8-ef34066832a1/services 16:56:21.857703 Looking for html5-apps-repo service 16:56:21.857703 Getting service plans of html5-apps-repo 16:56:21.857756 Making request to: /v2/service_plans?q=service_guid:3d7c607f-8b21-484d-8b95-a87caf18b6e4 16:56:22.144963 Looking for app-host plan 16:56:22.144963 Creating service instance for plan {Name:app-host GUID:da575aab-2bd3-4986-a22b-445cb74dcd3d} 16:56:22.144963 Making request to: /v2/service_instances 16:56:23.150600 Creating service key for app-host-id '51b6994e-10da-4d5f-8b05-dceb11e15a6a' 16:56:23.150600 Making request to: /v2/service_keys 16:56:24.149383 Obtaining access token for service key 'html5-key-1616428583' 16:56:24.149383 Making request to: https://....eu10.hana.ondemand.com/oauth/token 16:56:24.414796 Zipping the directory: 'C:...\mytestapp' 16:56:24.415828 Adding file to archive: 'C:...\mytestapp\manifest.json' 16:56:24.415828 Adding file to archive: 'C:...\mytestapp\xs-app.json' 16:56:24.416798 Adding 'C:\Users...\AppData\Local\Temp\myapp-1.0.0.zip' as part to multipart request 16:56:24.416798 Making request to: https://html5-apps-repo-dt.cfapps.eu10.hana.ondemand.com/applications/content/ 16:56:24.574139 Could not upload files: [C:\Users...\AppData\Local\Temp\myapp-1.0.0.zip]. Response: [400] Upload application content failed { CODE: '1001' } validation error: Error while parsing request; Error: Unknown system error -122: Unknown system error -122, open 'tempFolder/jWpTwCwd3jv21n-JIlkTFGS7.zip' FAILED Could not upload applications to app-host-id '51b6994e-10da-4d5f-8b05-dceb11e15a6a' : Unknown system error -122, open 'tempFolder/jWpTwCwd3jv21n-JIlkTFGS7.zip'

micellius commented 3 years ago

Thanks for reporting an issue, @mhfrq!

The HTML5 Applications Repository service team confirmed that the issue was on service side and not related to cf html5-plugin. The issue was reproducible only in eu10 region, and most probably related to temporary spike in usage of the service. They have already provided a hotfix and are working on finding out the root cause.