After update from drone-1.0.0-rc.5 to 1.1.0 login not working with gitea

I upgraded yesterday my drone container, and now i am unable to login as before…

Drone stops with message:
Login Failed. Unauthorized

Drone log output:

{  "level": "debug",  "msg": "cannot find remote user: Unauthorized",  "time": "2019-05-08T15:55:21Z" }
{ "fields.time": "2019-05-08T15:55:21Z",
  "latency": 47035955,
  "level": "debug",
  "method": "POST",
  "msg": "",
  "remote": "172.20.0.8:58022",
  "request": "/login",
  "request-id": "1KxQldLslBKWKHw7QLaI5W3arjG",
  "time": "2019-05-08T15:55:21Z"
}
{ "fields.time": "2019-05-08T15:55:21Z",
  "latency": 25810,
  "level": "debug",
  "method": "GET",
  "msg": "",
  "remote": "172.20.0.8:58022",
  "request": "/login/error?message=Unauthorized",
  "request-id": "1KxQlhGtIZfJ2a3OiipD5rpZoRQ",
  "time": "2019-05-08T15:55:21Z"
}
{  "level": "debug", "msg": "events: stream cancelled",  "request-id": "1KxQdf4SEMErW4f2NJLRRB6mPyh", "time": "2019-05-08T15:55:21Z"
}
{ "level": "debug", "msg": "events: stream closed", "request-id": "1KxQdf4SEMErW4f2NJLRRB6mPyh",
  "time": "2019-05-08T15:55:21Z"
}
{
  "level": "debug",
  "msg": "api: guest access",
  "request-id": "1KxQdf4SEMErW4f2NJLRRB6mPyh",
  "time": "2019-05-08T15:55:21Z"
}
{
  "fields.time": "2019-05-08T15:55:21Z",
  "latency": 63441916989,
  "level": "debug",
  "method": "GET",
  "msg": "",
  "remote": "172.20.0.8:58024",
  "request": "/api/stream",
  "request-id": "1KxQdf4SEMErW4f2NJLRRB6mPyh",
  "time": "2019-05-08T15:55:21Z"
}
{
  "level": "debug",
  "msg": "api: authentication required",
  "request-id": "1KxQlgiMcf2bbDcVimi1DWW6lIc",
  "time": "2019-05-08T15:55:21Z"
}
{
  "level": "debug",
  "msg": "api: guest access",
  "request-id": "1KxQlgiMcf2bbDcVimi1DWW6lIc",
  "time": "2019-05-08T15:55:21Z"
}
{
  "fields.time": "2019-05-08T15:55:21Z",
  "latency": 113649,
  "level": "debug",
  "method": "GET",
  "msg": "",
  "remote": "172.20.0.8:58022",
  "request": "/api/user",
  "request-id": "1KxQlgiMcf2bbDcVimi1DWW6lIc",
  "time": "2019-05-08T15:55:21Z"
}
{
  "level": "debug",
  "msg": "events: stream opened",
  "request-id": "1KxQlgq33Vv2uU8MNaf6id9PqHS",
  "time": "2019-05-08T15:55:21Z"
}

On Gitea log:

[Macaron] 2019-05-08 15:55:20: Started GET /api/v1/users/metalbote/tokens for 172.18.0.10
[Macaron] 2019-05-08 15:55:21: Completed GET /api/v1/users/metalbote/tokens 200 OK in 43.40004ms,
[Macaron] 2019-05-08 15:55:21: Started GET /api/v1/user for 172.18.0.10,
[Macaron] 2019-05-08 15:55:21: Completed GET /api/v1/user 401 Unauthorized in 1.904842ms

Reverting back to drone 1-0-0-rc-5, i have now the same error

On drone 1-0-0-rc-5,
revert drone database from backup, same error
revert gitea database from backup, error is gone…

Back on drone 1.1.0 error again
use drone database from backup, same error
use gitea database from backup, same error

reverting to drone 1.0.0.-rc5
same as above -> back on working state

Again to 1.1.0, and error again
now use gitea database from backup, error
BUT: use now drone database from backup, error has gone…

Testing, Testing, Testing, but no error again…

This drives me crazy and costs a whole day, damn. And i have no idea …

Have you also considered posting to the Gitea discord community to understand why the API call to GET /api/v1/user 401 Unauthorized is failing? There were no changes to how Drone performs login between 1.0.0-rc.5 and 1.0.0 final.

dude, creating Drone cost me 5 years of my life …

Looks quite like my issue Login Failed. Unauthorized

Not sure but it might be because of this: https://github.com/go-gitea/gitea/issues/6881

At least I am hoping so…