You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

无法将微服务部署至Cumulocity平台,寻求解决帮助

Troubleshooting "No such file or directory" when deploying Cumulocity microservice

我之前也碰到过类似的Cumulocity微服务部署问题,结合官方文档和实际排查经验,给你几个针对性的解决方向:

  • Verify the zip file's existence and path

    • Make sure the hello-world.zip is in your current working directory when you run the ./microservice deploy command. Use ls to list files in the directory and confirm the filename matches exactly (note that Linux environments are case-sensitive).
    • If the zip is stored in another directory, provide the full absolute path when executing the command (check if your deployment tool supports a -f or --file parameter to specify the path, e.g., ./microservice deploy -n hello-world -f /full/path/to/hello-world.zip).
  • Check zip file integrity and structure

    • Corrupted zips can cause unexpected "file not found" errors during upload. Try unzipping the file locally and verify it contains the required cumulocity.json configuration file along with your microservice JAR and dependencies.
    • Re-run your packaging process (e.g., Maven package goal) to ensure all necessary files are included in the zip. Double-check your build configuration to avoid missing critical resources.
  • Validate account permissions and app configuration

    • Ensure the account you're using for deployment has either the Microservice Developer or Tenant Administrator role. Insufficient permissions can sometimes manifest as file access errors instead of explicit permission denied messages.
    • Confirm the applicationName in your cumulocity.json matches the name you specified with -n hello-world—typos here can lead to mismatched application references.
  • Troubleshoot deployment tool temporary files

    • Some deployment tools use local temporary directories to process uploads. If the temp directory has insufficient permissions or disk space, it can trigger this error. Try clearing any cached files for the tool, or if supported, specify a custom temp directory with proper read/write access.
  • Test manual upload via Cumulocity UI

    • Log into your Cumulocity tenant, navigate to Administration > Ecosystem > Applications, create a new microservice application, and try uploading the zip file directly through the UI.
      • If the UI upload fails too, the issue is likely with the zip file itself or tenant-level configuration.
      • If the UI upload succeeds, check your deployment tool's configuration (e.g., the .cumulocity config file) to ensure tenant URL, username, and password are correctly set.

内容的提问来源于stack exchange,提问作者Lee Kebum

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.11 08:26:08