Client error 413: User not authorized

Hello,

I am getting this error when trying to add someone or show user list or start server via cli etc. I already provided both my account token and drone server url. I also added my self as an admin in docker-compose.yml but i don’t get any admin tools when i am logged into drone.

I also get this when trying to execute drone server

root@gami:~# drone server
ERRO[0000] sql: unknown driver “sqlite3” (forgotten import?)
FATA[0000] database connection failed

My docker-compose.yml again

version: '2'

services:
  drone-server:
    image: drone/drone:0.5
    ports:
      - 8000:8000
    volumes:
      - ./drone:/var/lib/drone/
    restart: always
    environment:
      - DRONE_OPEN=true
      - DRONE_SECRET=test
      - DRONE_GOGS=true
      - DRONE_GOGS_URL=https://git.test.pw
      - DRONE_GOGS_GIT_USERNAME=test
      - DRONE_GOGS_GIT_PASSWORD=test
      - DRONE_ADMIN=test
  drone-agent:
    image: drone/drone:0.5
    command: agent
    restart: always
    depends_on: [ drone-server ]
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - DRONE_SERVER=ws://drone-server:8000/ws/broker
      - DRONE_SECRET=test

Also what does this mean?

root@gami:~# drone repo info
Error: Invalid or missing repository. eg octocat/hello-world.

Just to let you know that my /install shows blank page. So i wasn’t able to install it. But am i suppose to install it something?

Thanks!

I am getting this error when trying to add someone or show user list or start server via cli etc.

413 user not authorized can only happen when your username is not in the DRONE_ADMIN or when the account has not been created in drone. The account is created the first time you login.

root@gami:~# drone server
ERRO[0000] sql: unknown driver “sqlite3” (forgotten import?)
FATA[0000] database connection failed

this happens when someone tries to build their own drone image, and compiles drone with CGO disabled. You can read more about CGO in the official Go documentation or you can use the official Drone images if you are not experienced in Go development.

root@gami:~# drone repo info
Error: Invalid or missing repository. eg octocat/hello-world.

this is because you need to tell drone which repository you want the information for. The repository name should therefore be added as a command line argument:

drone repo info drone/drone
drone repo info drone/drone-ui
drone repo info octocat/hello-world

note that most of the CLI commands are documented with examples:
http://readme.drone.io/usage/getting-started-cli/#commands