Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access repositories from Unity Package Manager #614

Open
valentindiehl opened this issue Dec 14, 2023 · 4 comments
Open

Cannot access repositories from Unity Package Manager #614

valentindiehl opened this issue Dec 14, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@valentindiehl
Copy link

Bug description

When adding the Meta XR Core SDK using the Unity Package Manager (so from the Unity Asset Store), everything works out-of-the-box in the editor and in builds there. In the CI build pipeline (self-hosted), the build fails because the Unity Builder isn't capable of downloading the Meta package from Unity Packagestore.

How to reproduce

  • Install Meta Core SDK from the Asset Store
  • Create standard build pipeline from the get started section on the website

Expected behavior

Normal build workflow, successful result.

Additional details

The build fails with the following error:

One or more packages could not be added to the local file system:
    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.core/-/com.meta.xr.sdk.core-59.0.0.tgz] failed because it lacks valid authentication credentials
./External/baselib/builds/Include/Internal/../C/Internal/Baselib_Semaphore_FutexBased.inl.h(158): Assertion failed (count >= 0) - Destruction is not allowed when there are still threads waiting on the semaphore.
Trace/breakpoint trap
Build failed, with exit code 133
@valentindiehl valentindiehl added the bug Something isn't working label Dec 14, 2023
@valentindiehl valentindiehl changed the title Cannot access NPM/Meta repositories via Package Manager Cannot access Meta repositories via Package Manager Dec 14, 2023
@valentindiehl valentindiehl changed the title Cannot access Meta repositories via Package Manager Cannot access repositories from Unity Package Manager Dec 14, 2023
@samisuleman10
Copy link

I am also facing the same issue.

@alphdevcode
Copy link

Same issue over here

@samisuleman10
Copy link

I found the solution here: https://forum.unity.com/threads/gitlab-pipeline-unity-hub-wont-sign-in.1515683/

Croydon added a commit to Croydon/tuda-vr-parkour that referenced this issue Mar 21, 2024
This is required to fix CI as game-ci currently does not support downloaded packages directly from the Unity Package Manager remote.

game-ci/unity-builder#614

https://forum.unity.com/threads/gitlab-pipeline-unity-hub-wont-sign-in.1515683/
@Croydon
Copy link

Croydon commented Mar 21, 2024

I found the solution here: https://forum.unity.com/threads/gitlab-pipeline-unity-hub-wont-sign-in.1515683/

I run into this problem and fixed it via this solution. However, this is more like a workaround. Probably game-ci needs to get extended to support loading packages from the Asset Store.

@webbertakken webbertakken reopened this Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants