Visitar URL original
Cloud Run Service Deploy Failed with error · Issue #925 · GoogleCloudPlatform/cloud-code-vscode · GitHub
Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Cloud Run Service Deploy Failed with error #925

Description

@lalkumarrai

Environment:
(Hint: "Report Extension Issue on Github" command will fill these out for you.)

Version information

Cloud Code Extension version: 2.16.0

VSCode version: 1.92

OS: window 10

Cloud SDK:

Skaffold:

Kubectl:

Description:

When I try to deploy in google cloud run
The service deployment failed suddenly with the issue
Failed to build the app. Error: Failed to create skaffold configuration. Error: processing cli artifacts: malformed artifact provided: {image:gcr.io/flaskgcp-424601/scoro-optimo,builder:Docker,payload:{path:Dockerfile}} From the logs, we can see

Running skaffold command: "C:\Users\user\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\skaffold.exe" init --artifact {"image":"gcr.io/flaskgcp-424601/scoro-optimo","builder":"Docker","payload":{"path":"Dockerfile"}} --skip-deploy --filename C:\Users\user\AppData\Local\Temp\cloud-code-cloud-run-PTBBBp\skaffold.yaml --force
processing cli artifacts: malformed artifact provided: {image:gcr.io/flaskgcp-424601/scoro-optimo,builder:Docker,payload:{path:Dockerfile}}
Failed to build the app. Error: Failed to create skaffold configuration. Error: processing cli artifacts: malformed artifact provided: {image:gcr.io/flaskgcp-424601/scoro-optimo,builder:Docker,payload:{path:Dockerfile}}

Before one week, it used to deploy services without any issue but suddenly its showing issues.

Activity

  1. slde12 commented on Aug 9, 2024

    @slde12

    Hey, can you submit feedback through extension and include the logs with it? Thanks!

  2. Operationskcs commented on Aug 12, 2024

    @Operationskcs

    Did you solve this issue ? Im hving the same one. Evethying was perfect but i got the exact same error. Please let me know. thank

  3. lalkumarrai commented on Aug 13, 2024

    @lalkumarrai
    Author

    I am still having an issue. But found manual way to deploy services till the extension fixed.

  4. nhat-thai commented on Aug 13, 2024

    @nhat-thai

    I am encountering an issue where the skaffold.yaml file is not being automatically generated. It appears that this problem is specific to Windows users. Could anyone please confirm if they are experiencing the same issue?

  5. renzodavid9 commented on Aug 13, 2024

    @renzodavid9
    Member

    Hello there,

    Could you please share which Skaffold version are you (the Cloud Code VS Code extension) using to deploy to Cloud Run? Thanks!

  6. nhat-thai commented on Aug 14, 2024

    @nhat-thai

    Hi renzodavid9,
    I'm using Skaffold 2.11.1 and my Cloud Code VS Code extension version is 2.16.2 (August 2024)

  7. Operationskcs commented on Aug 14, 2024

    @Operationskcs

    lalkumarrai can you please explain me how you did that manuallly please. Thanks for it bro

  8. lalkumarrai commented on Aug 15, 2024

    @lalkumarrai
    Author

    Hi Operationskcs, i deployed manually with below steps

    • gcloud auth login
    • docker build -t gcr.io/[projectname]/[servicename] .
    • gcloud auth configure-docker
    • docker push gcr.io/[projectname]/[servicename]
    • gcloud run deploy [servicename] --image gcr.io/[projectname]/[servicename]:latest --platform managed --region [regionname] --allow-unauthenticated --service-account [serviceaccount]
  9. chetanapsunde commented on Aug 16, 2024

    @chetanapsunde

    I am encountering an issue where the skaffold.yaml file is not being automatically generated. It appears that this problem is specific to Windows users. Could anyone please confirm if they are experiencing the same issue?

    Yes, I am facing same

  10. mostafamarji commented on Aug 19, 2024

    @mostafamarji

    Getting the same error anyone figured out how to fix the problem?

  11. ivanporty commented on Aug 19, 2024

    @ivanporty

    We are experience an issue with AR and working on the solution with gcloud. We'll update once it's fixed

  12. pinned this issue on Aug 19, 2024
  13. Aryido commented on Aug 22, 2024

    @Aryido

    Environment: (Hint: "Report Extension Issue on Github" command will fill these out for you.)

    Version information

    Cloud Code Extension version: 2.16.0

    VSCode version: 1.92

    OS: window 10

    Cloud SDK:

    Skaffold:

    Kubectl:

    Description:

    When I try to deploy in google cloud run The service deployment failed suddenly with the issue Failed to build the app. Error: Failed to create skaffold configuration. Error: processing cli artifacts: malformed artifact provided: {image:gcr.io/flaskgcp-424601/scoro-optimo,builder:Docker,payload:{path:Dockerfile}} From the logs, we can see

    Running skaffold command: "C:\Users\user\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\skaffold.exe" init --artifact {"image":"gcr.io/flaskgcp-424601/scoro-optimo","builder":"Docker","payload":{"path":"Dockerfile"}} --skip-deploy --filename C:\Users\user\AppData\Local\Temp\cloud-code-cloud-run-PTBBBp\skaffold.yaml --force
    processing cli artifacts: malformed artifact provided: {image:gcr.io/flaskgcp-424601/scoro-optimo,builder:Docker,payload:{path:Dockerfile}}
    Failed to build the app. Error: Failed to create skaffold configuration. Error: processing cli artifacts: malformed artifact provided: {image:gcr.io/flaskgcp-424601/scoro-optimo,builder:Docker,payload:{path:Dockerfile}}
    

    Before one week, it used to deploy services without any issue but suddenly its showing issues.


    Hi, @lalkumarrai ,here are my findings:

    • First of all, everything runs smoothly on macOS. This is my test:

    Screenshot 2024-08-22 at 7 10 11 PM

    But issues indeed occur on Windows.
    The key error is 'malformed artifact provided,' which seems to be caused by an inability to recognize the actual parameter following --artifact.

    I'm not sure why the error suddenly started appearing on the Windows system. Moreover, from the following message:

    malformed artifact provided: {image:gcr.io/flaskgcp-424601/scoro-optimo,builder:Docker,payload:{path:Dockerfile}}
    

    it seems that the JSON keys are not enclosed in double quotes, which is quite strange.

    After checking the official examples, enclosing the JSON in single quotes
    can resolve the issue.
    Screenshot 2024-08-22 at 7 13 08 PM

    However, this leads to a further error where the skaffold.yaml is not generated. So I enclosed the Windows-path in single quotes as well.

    Now based on testing and using @lalkumarrai 's example, change to this

    "C:\Users\user\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\skaffold.exe" init --artifact '{"image":"gcr.io/flaskgcp-424601/scoro-optimo","builder":"Docker","payload":{"path":"Dockerfile"}}' --skip-deploy --filename 'C:\Users\user\AppData\Local\Temp\cloud-code-cloud-run-PTBBBp\skaffold.yaml' --force
    

    Note that I added single quotes (' ') around the JSON and Windows path, then it should work successfully.

    My current hypothesis is that the issue might be caused by some changes made to the command template in either the Cloud Code extension or Skaffold.
    Both parties may need to verify this...

  14. LaurentiuAndrei commented on Aug 22, 2024

    @LaurentiuAndrei

    I have the same issue
    processing cli artifacts: malformed artifact provided: {image:fastapi-parser,builder:Docker,payload:{path:Dockerfile}}

    Building the image manually and deploying using gloud commands works though.

  15. peppySrJ commented on Aug 27, 2024

    @peppySrJ

    Still facing the same issue. Any update or ETA here? Been 3 weeks since the issue was opened and over a week since the last update was provided.

  16. Aryido commented on Aug 28, 2024

    @Aryido

    Based on my local tests, I downgraded:

    • VSCode to version 1.90.2 ( 2024/08/24 the newest version is 1.92.2)
    • Cloudcode to version v2.14.0 Screenshot 2024-08-28 at 16 26 44

    After these downgrades, running Cloud Run worked fine, so we can temporarily revert to this version to keep it running.

    The error is likely related to the recent VSCode update.

  17. kschaab commented on Aug 30, 2024

    @kschaab
    Contributor

    Thank you for the reproduction. We are looking at the issue for a possible fix. Unfortunately we had two issues that looked very similar, this one and one with artifact registry and missed the bug in the product.

  18. takeruh commented on Sep 26, 2024

    @takeruh

    The build may have failed, or the image you're deploying may not match what you built.

    gcloud builds submit --tag gcr.io/XXXXX/(image name)

    gcloud run deploy appname --project XXXXX --image gcr.io/XXXXX/(mismatch image name)

  19. ttosta-google commented on Sep 26, 2024

    @ttosta-google

    This issue will be fixed in the next release (next week).

  20. DiegoCalatayud commented on Jan 7, 2025

    @DiegoCalatayud

    Still not working

    imagen

  21. glouischandra commented on Jan 15, 2025

    @glouischandra
    Contributor

    Hi @DiegoCalatayud do you mind submitting a feedback through the extension "send feedback"? The full logs would help us debug this better. Thanks!

  22. ivanporty commented on Jan 28, 2025

    @ivanporty

    Thanks @Zubairrahman11 for the report. It seems malformed artifact error could be related to a malformed Dockerfile - do you know if its content was correct? We will look into better error messages.

  23. jessicamareeallen31-commits commented on Sep 26, 2025

    @jessicamareeallen31-commits

    Environment: (Hint: "Report Extension Issue on Github" command will fill these out for you.)

    Version information

    Cloud Code Extension version: 2.16.0

    VSCode version: 1.92

    OS: window 10

    Cloud SDK: jessicamareeallen31@gmail.com

    Skaffold: Elle Nd khloee

    Kubectl: sha256 half of sea vick.

    Description: too many people using my name I cannot get a benefit or prescription and now doctors back to navaro not daykim so now what?

    Am I still Jessica Allen or Jessica maree allen

    When I try to deploy in google cloud run The service deployment failed suddenly with the issue Failed to build the app. Error: Failed to create skaffold configuration. Error: processing cli artifacts: malformed artifact provided: {image:gcr.io/flaskgcp-424601/scoro-optimo,builder:Docker,payload:{path:Dockerfile}} From the logs, we can see

    Running skaffold command: "C:\Users\user\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\skaffold.exe" init --artifact {"image":"gcr.io/flaskgcp-424601/scoro-optimo","builder":"Docker","payload":{"path":"Dockerfile"}} --skip-deploy --filename C:\Users\user\AppData\Local\Temp\cloud-code-cloud-run-PTBBBp\skaffold.yaml --force
    processing cli artifacts: malformed artifact provided: {image:gcr.io/flaskgcp-424601/scoro-optimo,builder:Docker,payload:{path:Dockerfile}}
    Failed to build the app. Error: Failed to create skaffold configuration. Error: processing cli artifacts: malformed artifact provided: {image:gcr.io/flaskgcp-424601/scoro-optimo,builder:Docker,payload:{path:Dockerfile}}
    

    Before one week, it used to deploy services without any issue but suddenly its showing issues.

    404 error m25 is too cheap for contactless and no visa ATM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions