game-ci / unity-orb

Build and test Unity projects for several platforms using CircleCI.
https://circleci.com/developer/orbs/orb/game-ci/unity
MIT License
9 stars 12 forks source link

Unity 2020.3.44f1LTS new Project failed build with error #49

Open Awais6 opened 1 year ago

Awais6 commented 1 year ago

Orb version

1.4.0

Execution environment linux

Bug description

Failed to build a new project version 2020.3.44f1LTS

How to reproduce

Create a new project on 2020.3.44f1LTS Use CircleCi Orb with Game Ci 1.4.0

-

Expected behavior

Additional details

CircleCi shows:

[/opt/unity/Editor/Data/Resources/PackageManager/Editor/com.unity.purchasing.udp-2.0.0.tgz] to the package cache:
EINVAL: invalid argument, fchown. No packages loaded.
Maybe permission error

Full Report:

[Package Manager] Server::Start -- Port 60657 was selected

COMMAND LINE ARGUMENTS:
/opt/unity/Editor/Unity
-batchmode
-projectPath
/root/project/.
-quit
-batchmode
-nographics
-buildTarget
Android
-customBuildTarget
Android
-customBuildName
Test
-customBuildPath
/root/project/./Builds/Android/
-executeMethod
BuildCommand.PerformBuild
-logFile
/dev/stdout
Successfully changed project path to: /root/project/.
/root/project
Using Asset Import Pipeline V2.
Player connection [139763510092544] Host "[IP] 192.168.0.3 [Port] 55496 [Flags] 2 [Guid] 3055742242 [EditorId] 3055742242 [Version] 1048832 [Id] LinuxEditor(16,192.168.0.3) [Debug] 1 [PackageName] LinuxEditor [ProjectName] Editor" joined multi-casting on [225.0.0.222:54997]...

Player connection [139763510092544] Host "[IP] 192.168.0.3 [Port] 55496 [Flags] 2 [Guid] 3055742242 [EditorId] 3055742242 [Version] 1048832 [Id] LinuxEditor(16,192.168.0.3) [Debug] 1 [PackageName] LinuxEditor [ProjectName] Editor" joined alternative multi-casting on [225.0.0.222:34997]...

Rebuilding Library because the asset database could not be found!
[Package Manager] Done resolving packages with errors in 9.43s seconds
Failed to resolve packages: Failed to add editor bundled package [/opt/unity/Editor/Data/Resources/PackageManager/Editor/com.unity.purchasing.udp-2.0.0.tgz] to the package cache:
EINVAL: invalid argument, fchown. No packages loaded.

A re-import of the project may be required to fix the issue or a manual modification of /root/project/Packages/manifest.json file.

Exited with code exit status 1
Awais6 commented 1 year ago

The issue is on the Game ci side, unity developers confirmed: https://forum.unity.com/threads/failed-to-resolve-packages-failed-to-add-editor-bundled-package.1325673/#post-8814340