Title: Instance does not start with message "Command failed due to Internal Server Error." · Issue #12171 · apache/cloudstack · GitHub
Open Graph Title: Instance does not start with message "Command failed due to Internal Server Error." · Issue #12171 · apache/cloudstack
X Title: Instance does not start with message "Command failed due to Internal Server Error." · Issue #12171 · apache/cloudstack
Description: The required feature described as a wish Thank you, @Pearl1594, for helping confirm that the root cause of the failure was: The attached ISO was no longer available after the storage was decommissioned. The system didn’t provide proper e...
Open Graph Description: The required feature described as a wish Thank you, @Pearl1594, for helping confirm that the root cause of the failure was: The attached ISO was no longer available after the storage was decommissi...
X Description: The required feature described as a wish Thank you, @Pearl1594, for helping confirm that the root cause of the failure was: The attached ISO was no longer available after the storage was decommissi...
Opengraph URL: https://github.com/apache/cloudstack/issues/12171
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Instance does not start with message \"Command failed due to Internal Server Error.\"","articleBody":"### The required feature described as a wish\n\nThank you, @Pearl1594, for helping confirm that the root cause of the failure was:\n\nThe attached ISO was no longer available after the storage was decommissioned.\n\nThe system didn’t provide proper error handling for this case (`\"templateVO\" was null`), resulting in a generic and unclear message.\n\n```\n2025-11-30 04:02:51,769 ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-102:[ctx-33237947, job-67184/job-67186, ctx-8874b4da]) (logid:22521ecd) Invocation exception, caused by: java.lang.NullPointerException: Cannot invoke \"com.cloud.storage.VMTemplateVO.isDirectDownload()\" because \"templateVO\" is null\n2025-11-30 04:02:51,769 INFO [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-102:[ctx-33237947, job-67184/job-67186, ctx-8874b4da]) (logid:22521ecd) Rethrow exception java.lang.NullPointerException: Cannot invoke \"com.cloud.storage.VMTemplateVO.isDirectDownload()\" because \"templateVO\" is null\n2025-11-30 04:02:51,769 DEBUG [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-102:[ctx-33237947, job-67184/job-67186]) (logid:22521ecd) Done with run of VM work job: com.cloud.vm.VmWorkStart for VM 6682, job origin: 67184\n2025-11-30 04:02:51,769 ERROR [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-102:[ctx-33237947, job-67184/job-67186]) (logid:22521ecd) Unable to complete AsyncJob {\"accountId\":298,\"cmd\":\"com.cloud.vm.VmWorkStart\",\"cmdInfo\":\"rO0ABXNyABhjb20uY2xvdWQudm0uVm1Xb3JrU3RhcnR9cMGsvxz73gIAC0oABGRjSWRMAAZhdm9pZHN0ADBMY29tL2Nsb3VkL2RlcGxveS9EZXBsb3ltZW50UGxhbm5lciRFeGNsdWRlTGlzdDtMAAljbHVzdGVySWR0ABBMamF2YS9sYW5nL0xvbmc7TAAGaG9zdElkcQB-AAJMAAtqb3VybmFsTmFtZXQAEkxqYXZhL2xhbmcvU3RyaW5nO0wAEXBoeXNpY2FsTmV0d29ya0lkcQB-AAJMAAdwbGFubmVycQB-AANMAAVwb2RJZHEAfgACTAAGcG9vbElkcQB-AAJMAAlyYXdQYXJhbXN0AA9MamF2YS91dGlsL01hcDtMAA1yZXNlcnZhdGlvbklkcQB-AAN4cgATY29tLmNsb3VkLnZtLlZtV29ya5-ZtlbwJWdrAgAESgAJYWNjb3VudElkSgAGdXNlcklkSgAEdm1JZEwAC2hhbmRsZXJOYW1lcQB-AAN4cAAAAAAAAAEqAAAAAAAAATcAAAAAAAAaGnQAGVZpcnR1YWxNYWNoaW5lTWFuYWdlckltcGwAAAAAAAAAAHBwcHBwcHBwc3IAEWphdmEudXRpbC5IYXNoTWFwBQfawcMWYNEDAAJGAApsb2FkRmFjdG9ySQAJdGhyZXNob2xkeHA_QAAAAAAADHcIAAAAEAAAAAV0ABBDb25zaWRlckxhc3RIb3N0dAAQck8wQUJYUUFCV1poYkhObHQAClZtUGFzc3dvcmR0ABxyTzBBQlhRQURuTmhkbVZrWDNCaGMzTjNiM0prdAAIQm9vdE1vZGV0ABJyTzBBQlhRQUJreEZSMEZEV1F0AAhCb290VHlwZXQAD3JPMEFCWFFBQkZWRlJra3QACFVlZmlGbGFndAAOck8wQUJYUUFBMWxsY3d4cA\",\"cmdVersion\":0,\"completeMsid\":null,\"created\":\"Sun Nov 30 04:02:43 UTC 2025\",\"id\":67186,\"initMsid\":90520736259046,\"instanceId\":null,\"instanceType\":null,\"lastPolled\":null,\"lastUpdated\":null,\"processStatus\":0,\"removed\":null,\"result\":null,\"resultCode\":0,\"status\":\"IN_PROGRESS\",\"userId\":311,\"uuid\":\"baca3bee-acb5-452a-809e-a8e201dadcb0\"}, job origin: 67184 java.lang.NullPointerException: Cannot invoke \"com.cloud.storage.VMTemplateVO.isDirectDownload()\" because \"templateVO\" is null\nat org.apache.cloudstack.storage.image.TemplateDataFactoryImpl.isTemplateMarkedForDirectDownload(TemplateDataFactoryImpl.java:299)\nat com.cloud.template.TemplateManagerImpl.prepareIso(TemplateManagerImpl.java:1264)\nat com.cloud.template.TemplateManagerImpl.prepareIsoForVmProfile(TemplateManagerImpl.java:636)\nat jdk.internal.reflect.GeneratedMethodAccessor325.invoke(Unknown Source)\nat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\nat java.base/java.lang.reflect.Method.invoke(Method.java:569)\n```\n\nWould it be possible to improve the error message for this scenario? A more descriptive message would help regular users understand the issue without needing admin assistance.\n\nAdditionally, administrators could benefit from seeing more detailed information when the failure isn’t directly related to a missing ISO.\n\nThank you and regards,","author":{"url":"https://github.com/daviftorres","@type":"Person","name":"daviftorres"},"datePublished":"2025-12-01T21:08:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/12171/cloudstack/issues/12171"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:47f1047e-4965-3ff4-da06-dee4e8bcc72c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 961E:7E3D2:4D0371B:6D2ADA9:6A4FD450 |
| html-safe-nonce | 6bcc5b46c264a3f06e7fc1744aecece6be1f7c644a848013a7497ca7e0005e5e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjFFOjdFM0QyOjREMDM3MUI6NkQyQURBOTo2QTRGRDQ1MCIsInZpc2l0b3JfaWQiOiIyMDcwNzIzNDE0NDQ4OTE5NjMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ad306fc8db67fd35706060267e5efb8112f44250fe0b2cc3fcebbb1079bacb5a |
| hovercard-subject-tag | issue:3682870331 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/12171/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e4fd5f3f3bb7e9db12e3c66cb9e8f659a069b7a96d489ff3e8341bf4fb290cd/apache/cloudstack/issues/12171 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e4fd5f3f3bb7e9db12e3c66cb9e8f659a069b7a96d489ff3e8341bf4fb290cd/apache/cloudstack/issues/12171 |
| og:image:alt | The required feature described as a wish Thank you, @Pearl1594, for helping confirm that the root cause of the failure was: The attached ISO was no longer available after the storage was decommissi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daviftorres |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19b98c3d9767bb8a56238a89ff8401d1cbdf3bc5c353799aacf49fe6c76b4b7c |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/cloudstack git https://github.com/apache/cloudstack.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 9759448 |
| octolytics-dimension-repository_nwo | apache/cloudstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9759448 |
| octolytics-dimension-repository_network_root_nwo | apache/cloudstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 142593e66413bbae27fd485859993597d5a3b104 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width