[SOLVED] Client error 413: User not authorized, i'm admin

I started server with this config:

version: '2'

    services:
      drone-server:
        image: drone/drone:0.8.1
        ports:
          - 8001:8000
          - 9000:9000

        volumes:
          - /home/docker/drone_data/data:/var/lib/drone/
        restart: always
        environment:
          - DRONE_OPEN=true
          - DRONE_HOST=0.0.0.0
          - DRONE_GITEA=true
          - DRONE_GITEA_URL=http://192.168.99.100:10080/
          - DRONE_ADMIN = root,root@lan
          - DRONE_DEBUG = true
          - DRONE_SECRET=123123

Me:

Aleksandrs-Mini:drone_gitea aleksandr$ drone info
User: root
Email: root@lan.lan

But i cant list users…

Aleksandrs-Mini:drone_gitea aleksandr$ drone user ls
\client error 413: User not authorized

I’m in admins list, why it doesn’t work?

This error indicates you are not a system admin.

This would tell me the admin list is not properly configured or the entry in the list does not match the gitea username (case sensitive).

Ok, so how to become system admin? :slight_smile:

Should i edit drone’s database manually?

my username is root

see http://docs.drone.io/user-admins/

It looks like you have a formatting issue. You have extra whitespace in your docker-compose file that needs to be removed. Also root@lan does not look like a valid gitea username and should be removed.

-DRONE_ADMIN = root,root@lan
+DRONE_ADMIN=root

I can’t believe but you’re right, this fix works, thank you