unity-azure-pipelines-tasks icon indicating copy to clipboard operation
unity-azure-pipelines-tasks copied to clipboard

Activate License Task log output misses last package manager output messages

Open ikriz opened this issue 2 years ago • 1 comments

Quite often I run into issues with the activation task it fails with an error and the last message in the log is:

Rebuilding Library because the asset database could not be found!
Unwatch C:\projectpath\Logs\UnityActivationLog_2022-12-05-17-26-47.log
The process 'C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\Unity.exe' failed with exit code 1
=============================== UNITY LOG END ================================
The Unity process failed with exit code -1
##[error]The Unity process failed with exit code -1
Finishing: UnityActivateLicenseTask

Where as when I check the actual log output there is still output from the packagemanage which is completely missed?

Rebuilding Library because the asset database could not be found!
[Package Manager] Done resolving packages in 51.22s seconds
An error occurred while resolving packages:
  Project has invalid dependencies:
    redacted: connect ETIMEDOUT ip:port
    redacted: connect ETIMEDOUT ip:port

A re-import of the project may be required to fix the issue or a manual modification of C:/projectpath/Packages/manifest.json file.
Exiting without the bug reporter. Application will terminate with return code 1

ikriz avatar Dec 06 '22 09:12 ikriz

I have been experiencing the same problem for some time now.

But actually it has nothing to do with licenses but with any execution of the Unity process through the tasks in this repo.

It's as if the log watcher is always missing the UPM logs.

As a workaround we have chosen to create artifacts of the logs to be able to access them without at least logging into the agents.

bdovaz avatar Dec 06 '22 10:12 bdovaz