Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Bug Cloud Code Deployment status stuck at 0%

Discussion in 'Cloud Code' started by ENV_Simo, Jan 19, 2023.

  1. ENV_Simo

    ENV_Simo

    Joined:
    Jan 31, 2020
    Posts:
    4
    Hello,

    When I try to deploy or update Cloud Code -scripts from Editor's Deployment-window nothing happens. Deployment-status progress bar just sits at 0% until I close the window. On reopen the window is reset to default view. Weird thing is that this is working as intended on my coworkers computer but not mine. There are no errors or messages in the Console.
     

    Attached Files:

  2. gpaquin-unity

    gpaquin-unity

    Unity Technologies

    Joined:
    Dec 13, 2019
    Posts:
    32
    Hi simo_unity543, thanks for raising the issue, we'll look into it right away.

    To have a bit more context to help us identify your situation:
    • Do you have the same behaviour with any other scripts ? and is it also failing to do anything with another org/project/environment in UGS ?
    • What version of the packages (com.unity.services.cloudcode & com.unity.services.deployment) are you using and what Editor version ?
    Thanks!
     
  3. ENV_Simo

    ENV_Simo

    Joined:
    Jan 31, 2020
    Posts:
    4
    Hello,

    I can't deploy any scripts. I also now tried to deploy in a different project (same org) and the result was exactly the same. I hope I understood your first point correctly.

    Version details:
    • Unity Editor 2021.3.12f1
    • Deployment 1.0.0-pre-7
    • Deployment API 1.0.0-pre.5
    • Cloud Code 2.2.1
    • Manager level permissions in organization. Feature works on the computer of Owner-permission having person.
     
  4. gpaquin-unity

    gpaquin-unity

    Unity Technologies

    Joined:
    Dec 13, 2019
    Posts:
    32
    Thanks for the informations and yes that answered my initial question. We'll investigate and come back to you soon.
     
  5. gpaquin-unity

    gpaquin-unity

    Unity Technologies

    Joined:
    Dec 13, 2019
    Posts:
    32
    Quick update: We are still trying to reproduce the issue, in the meantime, could you confirm if the script is updated still or not in the dashboard after you deploy (regardless of the ui remaining @ 0)?

    We'll work on preparing a new version with additional logging so that we can see better what is happening on your side. Apologies for the delays.
     
  6. mTr

    mTr

    Joined:
    Aug 6, 2013
    Posts:
    7
    Hello everyone,

    I have the same issue. UI remains at 0%. Also the scripts aren't updated to the cloud dashboard regardless of the UI.
    I can "almost" confirm that it worked perfectly before on pre-7 and unity 2021.3.11f1 as I could check and test deploying using the latest group feature for the scripts.

    • Unity Editor 2021.3.12f1
    • Deployment 1.0.0-pre-7
    • Cloud Code 2.2.1

    It would be nice to find this bug soon, as currently the deployment editor window its the only sane way to handle multiple environments (dev->stage->production) for the cloud scripts. Thanks!
     
  7. ENV_Simo

    ENV_Simo

    Joined:
    Jan 31, 2020
    Posts:
    4
    Tested this and the update I made did not reach the dashboard.
     
    gpaquin-unity likes this.
  8. gpaquin-unity

    gpaquin-unity

    Unity Technologies

    Joined:
    Dec 13, 2019
    Posts:
    32
    Thanks for the updates.

    We are still investigating the issue. As mentioned before, we prepared a new version of Cloud Code, 2.2.2, to help identify the problem. It is now available through package manager by name. install-by-name.png

    Once installed, to enable the verbose logging, simply add this scripting define symbol in your Player Settings: ENABLE_UNITY_SERVICES_VERBOSE_LOGGING. player-settings.png

    If you could try again with this and share with us the console logs in a dm, it would help us debug the issue.

    Your help is much appreciated. Thanks!
     
  9. UnityManuJack

    UnityManuJack

    Unity Technologies

    Joined:
    May 30, 2019
    Posts:
    11
    Hi!

    It is worth mentioning that you can now use the UGS CLI to deploy cloud code configuration (as well as remote config).
    It is the same implementation as the deploy action from the cloud code deployment UI, except executed from the command line.
    It enables more use cases and provide the ability to deploy files as part of automated build pipeline.

    Please refer to the forum post for more informations and how to get started with the CLI!
     
  10. mTr

    mTr

    Joined:
    Aug 6, 2013
    Posts:
    7
    Hi!

    I could solve the issue thanks to the new 2.2.2 cloud code version. After updating the package I tried to update a script but this time I got some errors on the console. Those errors pointed to node environment settings, which they were somehow wrong.

    Thanks for your help.
     
    gpaquin-unity likes this.
  11. ENV_Simo

    ENV_Simo

    Joined:
    Jan 31, 2020
    Posts:
    4
    I managed to solve the issue with these instructions. I was missing the node.js installation. Preferences- > Cloud Code already had the path to correct place by default. I double checked and the CloudCode-documentation does not mention this as a requirement. Coworker had this already installed and that is why this was working as intended on his computer.

    Thank you for your help!
     
    gpaquin-unity likes this.
  12. gpaquin-unity

    gpaquin-unity

    Unity Technologies

    Joined:
    Dec 13, 2019
    Posts:
    32
    Glad to see this was resolved, we'll look into improving that part of the logging as well as the documentation to make it more clear in terms of requirement. Thanks for those feedback.