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

"Build succeeded" but still getting "There was an error..." #564

Closed
Sonorpearl opened this issue Aug 28, 2023 · 10 comments
Closed

"Build succeeded" but still getting "There was an error..." #564

Sonorpearl opened this issue Aug 28, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@Sonorpearl
Copy link

Bug description

Hello lovely community,

I'm trying out GameCI on GitHub Actions with the ubuntu-latest runner on Unity version 2021.3.16f1 for building WebGL. My first step which it already fails on is building the Addressable content.

Everything seems fine, since I'm gettings logs like:

2023-08-28T16:29:20.2936686Z Addressable content successfully built (duration : 0:07:34.394)
2023-08-28T16:29:21.0915668Z Addressables: finished with override version: 16
2023-08-28T16:29:21.0924390Z Batchmode quit successfully invoked - shutting down!
2023-08-28T16:29:32.7973754Z Exiting batchmode successfully now!
2023-08-28T16:29:32.9231549Z Build succeeded

But then I'm still getting this:

2023-08-28T16:29:37.8266881Z ##[error]There was an error building the project. Please read the logs for details.

The only errors I see are:

2023-08-28T16:13:00.0946253Z ##[warning]Fetch --unshallow caught: Error: Failed to run "git fetch --unshallow".
 In-command error caught: Error: The process '/usr/bin/git' failed with exit code 1

and:

2023-08-28T16:15:23.4628679Z [LicensingClient] Channel doesn't exist: "LicenseClient-root"
2023-08-28T16:15:23.4633461Z [Licensing::Module] Successfully launched the LicensingClient (PId: 99)
2023-08-28T16:15:23.7765119Z [SignatureVerifier] Application signature verification not supported on this platform.
2023-08-28T16:15:23.8428377Z [LicensingClient] Handshaking with LicensingClient (version: 1.9.0+249add7)
2023-08-28T16:15:23.8429435Z [Licensing::Module] Successfully connected to LicensingClient on channel: "LicenseClient-root" (connect: 0.31s, validation: 0.07s, handshake: 0.00s)
2023-08-28T16:15:23.8429998Z [Licensing::Module] Connected to LicensingClient (PId: 99, launch time: 0.00, total connection time: 0.38s)
2023-08-28T16:15:23.8430493Z Entitlement-based licensing initiated
2023-08-28T16:15:23.8430999Z [Licensing::Module] Error: Access token is unavailable
2023-08-28T16:15:23.9672483Z [LicensingClient] Licenses updated successfully

and:

2023-08-28T16:29:33.8328792Z [LicensingClient] Channel doesn't exist: "LicenseClient-root"
2023-08-28T16:29:33.8333940Z [Licensing::Module] Successfully launched the LicensingClient (PId: 9593)
2023-08-28T16:29:34.1587142Z [SignatureVerifier] Application signature verification not supported on this platform.
2023-08-28T16:29:34.2390531Z [LicensingClient] Handshaking with LicensingClient (version: 1.9.0+249add7)
2023-08-28T16:29:34.2391751Z [Licensing::Module] Successfully connected to LicensingClient on channel: "LicenseClient-root" (connect: 0.32s, validation: 0.08s, handshake: 0.00s)
2023-08-28T16:29:34.2392543Z [Licensing::Module] Connected to LicensingClient (PId: 9593, launch time: 0.00, total connection time: 0.41s)
2023-08-28T16:29:34.2393220Z Entitlement-based licensing initiated
2023-08-28T16:29:34.2393687Z [Licensing::Module] Error: Access token is unavailable
2023-08-28T16:29:34.2394486Z [Licensing::Module] Error: Failed to return entitlement license

My buildMethod is:

        public static void BuildAssetBundles()
        {
            Debug.Log("Addressables: Cleaning player content");
            AddressableAssetSettings.CleanPlayerContent();
            AddressableAssetSettingsDefaultObject.Settings.OverridePlayerVersion = GetVersion();
            Debug.Log("Addressables: Building player content"); 
            AddressableAssetSettings.BuildPlayerContent();
            Debug.Log("Addressables: finished with override version: " + AddressableAssetSettingsDefaultObject.Settings.OverridePlayerVersion);
        }

How to reproduce

  • See above.

Expected behavior

Additional details

@Sonorpearl Sonorpearl added the bug Something isn't working label Aug 28, 2023
@Sonorpearl
Copy link
Author

Could this also be this issue?
#563

@webbertakken
Copy link
Member

This looks like a bug indeed. We aren't expecting fetch unshallow to fail

2023-08-28T16:13:00.0946253Z ##[warning]Fetch --unshallow caught: Error: Failed to run "git fetch --unshallow".
In-command error caught: Error: The process '/usr/bin/git' failed with exit code 1

@SeoulSKY
Copy link

SeoulSKY commented Aug 30, 2023

I have the same issue. The only error-ish message I could find in my log was this:

ExitCode: 4 Duration: 0s54ms
[             ] Require frontend run.  Library/Bee/2000b0aE.dag couldn't be loaded

But I got this message at the end, although my build was successful:

Error: There was an error building the project. Please read the logs for details.

My workflow log
My workflow yml file

@mikeage
Copy link

mikeage commented Aug 30, 2023

Are you using a custom build action? If so, make sure you have build results table being printed (see the linked issue above)

@BFS-JWesseler
Copy link

BFS-JWesseler commented Aug 30, 2023

To temporarily solve it, I have added this to my buildMethod:

            // TODO: Check GitHub Issue: https://github.com/game-ci/unity-builder/issues/563
            Debug.Log("Logging fake Build results so that the build via game-ci/unity-builder does not fail...");
            Debug.Log($"###########################{Environment.NewLine}#      Build results      #{Environment.NewLine}###########################{Environment.NewLine}" +
                $"{Environment.NewLine}Duration: 00:00:00.0000000{Environment.NewLine}Warnings: 0{Environment.NewLine}Errors: 0{Environment.NewLine}Size: 0 bytes{Environment.NewLine}{Environment.NewLine}{Environment.NewLine}Build succeeded!");

@mstrk
Copy link

mstrk commented Sep 20, 2023

We're experiencing this same behaviour without a custom build action for android builds. The version of unity for our case is 2022.3.2f1. The build succeeds but we got "There was an error building the project. Please read the logs for details." at the end after the license is successfully returned.

@antoinerrr
Copy link

@mstrk Same here with 2022.1.11f1

@jtachikawa
Copy link

Same with 2022.3.11f1

@AndrewKahr
Copy link
Member

Try updating to v4 and see if this is solved now

@asbjornu
Copy link

I just received this error in a build with game-ci/unity-builder@v4:

Warning: Fetch --unshallow caught: Error: Failed to run "git fetch --unshallow".
 In-command error caught: Error: The process '/usr/bin/git' failed with exit code 128
Error: Failed to run "git fetch".
 In-command error caught: Error: The process '/usr/bin/git' failed with exit code 128

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

Successfully merging a pull request may close this issue.

10 participants