Search Unity

Bug: Validating Gitlab - 'There was a problem authenticating against the Gitlab API!'

Discussion in 'Unity Build Automation' started by mischa2k, Jun 15, 2019.

  1. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    When trying to add a cloud build project from a Gitlab repo, I get:
    upload_2019-6-15_9-34-51.png

    It worked yesterday morning.
    Today I can't add a new project.
    Tested both in Firefox and Safari.
     
    Last edited: Jun 15, 2019
  2. squarelover

    squarelover

    Joined:
    Nov 14, 2012
    Posts:
    31
    yes, why?
     
  3. vvmichalk

    vvmichalk

    Joined:
    Mar 25, 2013
    Posts:
    6
    I have the same problem. How did you solve it?
    I can see tons of javascript errors in my browser's console during token validation on Unity Cloud pages.
    I have revoked Unity Cloud Build from gitlab applications, it asks for permissions now, but it fails to add it into allowed application list.
     
  4. Boolable

    Boolable

    Joined:
    Jun 28, 2015
    Posts:
    20
    Same for me. Maybe it is a temporary issue from Unity servers.
     
  5. victorw

    victorw

    Joined:
    Sep 14, 2016
    Posts:
    459
    This issue has been hotfixed - if you are still experiencing it then please try revoking your Oauth token in Gitlab (Settings -> Applications -> Authorized Applications -> Unity Cloud Build) and then trying again with a fresh setup. If that does not resolve your issue then you can submit a support ticket.
     
  6. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    I stopped using cloud build.
    Not sure if @victorw changed anything recently, but back when QA told me they fixed it, it wasn't fixed.
     
    IOU_RAY likes this.
  7. vvmichalk

    vvmichalk

    Joined:
    Mar 25, 2013
    Posts:
    6
    I've contacted the support. Very slow responses :(
    I've got first response after 12 hours (the support asked for screen-shots).
    Now it's been 24 hours quiet.

    Here's my problem:

    Hi Fraser,

    I've attached few screen-shots with the errors. This is quite urgent.
    We are not able to build any of our existing projects, or create a new cloud project.
    Unity Cloud fails to connect with all our repositories on gitlab.
    I have also revoked Unity Cloud API access, but when I tried to re-authorise it again, it did nothing in gitlab. It didn't add Unity Cloud Build into allowed applications.
    I can see JavaScript errors in my browsers console. I have tried also another browsers (Chrome, Firefox), same results.
    I have tried also another gitlab accounts, with different permissions, it didn't help.
    Something must have changed. It worked well week ago.
    Actually it worked fine for recently created projects too, but I guess since oauth token expired (?) it fails to reconnect.

    Thank you for your help,
    Michal
     

    Attached Files:

  8. vvmichalk

    vvmichalk

    Joined:
    Mar 25, 2013
    Posts:
    6
    There seems to be some progress. I was able to connect with gitlab from NEW unity Dashboard (black menu/sidebar).
    GitLab successfully authorized Unity Cloud Build and I can see it in authorized applications list.
    It's started building my project, fingers crossed.

    It still does not work from OLD dashboard though, but that's not a problem.
     
  9. victorw

    victorw

    Joined:
    Sep 14, 2016
    Posts:
    459
    Thanks for pointing this out, this will actually stop being a problem later today (since old dashboard is going away :eek:) but otherwise I would look into hotfixing this - and this info might help anyone who is still experiencing issues. For reference the new dashboard is here

    It's also worth mentioning that manual configuration via SSH still works - just use the manual tab when configuring the repo connection.
     
  10. vvmichalk

    vvmichalk

    Joined:
    Mar 25, 2013
    Posts:
    6
    Just to keep you updated, it stopped working again.
    I create new project, adding gitlab to Unity cloud failed. I tried X times, Chrome, Incognito, logged out/in, repeated X times, no luck... after a while I tried Mozilla and hurray it works!
    It drives me mad! When I need it it does not work.
    No response from the support at all!