Sometimes builds fail due to fatal: could not read Username for 'https://gitlab.com': terminal prompts disabled

Hi

In 1 out of 10 builds I get the following error:

Cloning with 0 retries
Initialized empty Git repository in /drone/src/.git/
+ git fetch origin +refs/heads/master:
fatal: could not read Username for 'https://gitlab.com': terminal prompts disabled

I am using gitlab with following config vars:

    env:
      DRONE_GITLAB_SERVER: "{{ drone_gitlab_server }}"
      DRONE_GITLAB_CLIENT_ID: "{{ drone_gitlab_client_id }}"
      DRONE_GITLAB_CLIENT_SECRET: "{{ drone_gitlab_client_secret }}"

I see there is reference to the same issue here: Fatal: could not read Username for - FAQ - Drone . I don’t see any network errors or any weird logs (enabled debugging).

I am using drone v2.12.1.

any clue what this might be?

Hi @sevaho good to see you after a very long time :smiley:

This post should help you sort this out. You can refer this one too.

Thanks!