I am unable to update repositories settings for Trusted. I am the site admin and owner for our on-premise Github Enterprise setup, as well as Drone cluster.
All documentation and other posts similar to my issue line up with my settings, but I am wondering if the GHE setup requires anything else. I see no info in any of the logs regarding this, so not sure how to troubleshoot any further.
drone user info ecray
client error 413: User not authorized
And this error comes from the following code:
func MustAdmin() gin.HandlerFunc {
return func(c *gin.Context) {
user := User(c)
switch {
case user == nil:
c.String(401, "User not authorized")
c.Abort()
+ case user.Admin == false:
+ c.String(413, "User not authorized")
c.Abort()
default:
c.Next()
}
}
}
In both cases this is failing because the user is not a recognized administrator. This would tell me the DRONE_ADMIN parameter is not properly configured or is not picked up by your instance. The most common issue we see is that DRONE_ADMIN usernames are case-sensitive, and are frequently configured with the wrong case.
I am wondering if the GHE setup requires anything else
No additional configuration required.
so not sure how to troubleshoot any further.
You can login to the user interface and visit /api/user. In an installation where the DRONE_ADMIN parameter is properly configured the endpoint will return your user information with the admin flag set to true. For example, this is what I see:
can you confirm the variable is properly passed to your drone server container via docker inspect? This is a slimmed-down example of what I see when for my drone server installation:
It looks like docker-compose was caching the old data. I had to do a full docker-compose teardown, but that has fixed the problem. Thanks for your help!