Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Resolved GitLab Pipeline - Unity Hub won't sign in

Discussion in 'Unity Hub' started by MiTschMR, Nov 11, 2023.

  1. MiTschMR

    MiTschMR

    Joined:
    Aug 28, 2018
    Posts:
    513
    For several years now I have an automated gitlab-runner running with the system account. Until today everything worked fine, but now I am getting the error
    [Licensing::Module] Error: Access token is unavailable; failed to update
    when running the pipeline. The pipeline needs to add a Meta XR package I integrated into one of my assets, but this fails with the following message:
    com.meta.xr.sdk.core: Cannot install package. You are not signed in. Please sign in using the Hub and retry:
    Request [GET https://download.packages.unity.com/com.meta.xr.sdk.platform/-/com.meta.xr.sdk.platform-59.0.0.tgz] failed because it lacks valid authentication credentials

    Somehow when triggered from the pipeline, the editor does not properly start the hub to fetch the credentials. I have not changed anything on my setup, no updates, nothing. Starting the editor from the admin account works perfectly fine, even with PSExec.exe as the system account it works and I can sign in without issues and start the project - they import everything perfectly, just not from the pipeline.

    I am at a loss of words, hopefully someone has a solution or it works itself out soon enough.
     
    Last edited: Nov 11, 2023
    ggraf_halfbrick likes this.
  2. ggraf_halfbrick

    ggraf_halfbrick

    Joined:
    Aug 17, 2021
    Posts:
    2
  3. MiTschMR

    MiTschMR

    Joined:
    Aug 28, 2018
    Posts:
    513
    Thanks for the tip, I will try it tomorrow!
     
  4. MiTschMR

    MiTschMR

    Joined:
    Aug 28, 2018
    Posts:
    513
    Worked perfectly, thanks again!

    For reference, this is what I added to the manifest.json file:
    Code (CSharp):
    1. "scopedRegistries": [
    2.     {
    3.       "name": "Meta",
    4.       "url": "https://npm.developer.oculus.com",
    5.       "scopes": [
    6.         "com.meta.xr.sdk"
    7.       ]
    8.     }
    9.   ],
     
  5. booferei

    booferei

    Joined:
    Sep 29, 2016
    Posts:
    21
    Thanks, this seems to solve the problem for me!
    (Running CI/CD pipeline on Linux-based machines with GitHub Actions)
     
  6. samisuleman10

    samisuleman10

    Joined:
    Sep 22, 2022
    Posts:
    2
    works for me!
     
  7. mseclen

    mseclen

    Joined:
    Apr 2, 2024
    Posts:
    1
    Worked for me!!

    Code (CSharp):
    1.   "scopedRegistries": [
    2.     {
    3.       "name": "Meta",
    4.       "url": "https://npm.developer.oculus.com",
    5.       "scopes": [
    6.         "com.meta.xr.sdk.audio",
    7.         "com.meta.xr.sdk.core",
    8.         "com.meta.xr.sdk.interaction",
    9.         "com.meta.xr.sdk.interaction.ovr",
    10.         "com.meta.xr.sdk.platform",
    11.         "com.meta.xr.sdk.voice",
    12.         "com.meta.xr.sdk.voice.composer",
    13.         "com.meta.xr.sdk.voice.dictation",
    14.         "com.meta.xr.sdk.voice.telemetry",
    15.         "com.meta.xr.simulator"
    16.       ]
    17.     }
    18.   ]