Hello support team,
I’m a new drone user and following the documentation
to build a Drone server and runner at Docker container.
Run container is OK.
Bitbucket OAuth looks OK.
But try to access repositories to the new build is failed.
The error message is “Unable to start new build: resource not found”.
Just looking at the drone server and runner’s log was no have an error message.
I just try to use the same docker-compose config but change another GitHub OAuth key, new build and webhook are work very nicely.
This is my docker-compose config file
version: '3.7'
services:
drone-server:
container_name: drone-server
image: drone/drone:2
ports:
- 80:80
- 443:443
volumes:
- ./data:/data
restart: always
environment:
- DRONE_SERVER_HOST=${DRONE_SERVER_HOST}
- DRONE_SERVER_PROTO=${DRONE_SERVER_PROTO}
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_BITBUCKET_CLIENT_ID=${DRONE_BITBUCKET_CLIENT_ID}
- DRONE_BITBUCKET_CLIENT_SECRET=${DRONE_BITBUCKET_CLIENT_SECRET}
#- DRONE_GITHUB_CLIENT_ID=${DRONE_GITHUB_CLIENT_ID}
#- DRONE_GITHUB_CLIENT_SECRET=${DRONE_GITHUB_CLIENT_SECRET}
- DRONE_LOGS_TEXT=true
- DRONE_LOGS_DEBUG=true
- DRONE_LOGS_PRETTY=true
- DRONE_LOGS_COLOR=true
#- DRONE_RUNNER_CAPACITY=10
drone-runner:
container_name: drone-runner
image: drone/drone-runner-docker:1
ports:
- 3000:3000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always
environment:
- DRONE_RPC_HOST=${DRONE_RPC_HOST}
- DRONE_RPC_PROTO=${DRONE_RPC_PROTO}
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_RUNNER_NAME=runner_01
- DRONE_RUNNER_CAPACITY=2
- DRONE_DEBUG=true
- DRONE_TRACE=true
#- DRONE_RPC_DUMP_HTTP=true
#- DRONE_RPC_DUMP_HTTP_BODY=true
depends_on:
- drone-server
this is server and runner logs when I click the “new build” button.
drone-server | DEBU[1607] api: access granted admin=true name=simple_redis namespace=namespacexxx read=true request-id=1xZb1RrDkDogrxR52xrxZ4doQin user.login=officeuser001 visibility=private write=true
drone-server | DEBU[1607] api: access granted admin=true name=simple_redis namespace=namespacexxx read=true request-id=1xZb1RrDkDogrxR52xrxZ4doQin user.login=officeuser001 visibility=private write=true
drone-server | DEBU[1607] fields.time="2021-09-02T06:49:02Z" latency=362.568288ms method=POST remote="100.100.100.100:54502" request=/api/repos/namespacexxx/simple_redis/builds request-id=1xZb1RrDkDogrxR52xrxZ4doQin
drone-server | DEBU[1631] manager: context canceled arch=amd64 kernel= kind=pipeline os=linux type=docker variant=
drone-server | DEBU[1631] manager: context canceled arch=amd64 kernel= kind=pipeline os=linux type=docker variant=
drone-runner | time="2021-09-02T06:49:25Z" level=trace msg="http: no content returned: re-connect and re-try"
drone-runner | time="2021-09-02T06:49:25Z" level=trace msg="http: no content returned: re-connect and re-try"
drone-server | DEBU[1641] manager: request queue item arch=amd64 kernel= kind=pipeline os=linux type=docker variant=
drone-server | DEBU[1641] manager: request queue item arch=amd64 kernel= kind=pipeline os=linux type=docker variant=
drone-server | DEBU[1671] manager: context canceled arch=amd64 kernel= kind=pipeline os=linux type=docker variant=
drone-runner | time="2021-09-02T06:50:05Z" level=trace msg="http: no content returned: re-connect and re-try"
drone-runner | time="2021-09-02T06:50:05Z" level=trace msg="http: no content returned: re-connect and re-try"
drone-server | DEBU[1671] manager: context canceled arch=amd64 kernel= kind=pipeline os=linux type=docker variant=
so… have any idea can fix this problem?
if I need to provide any other information to get the problem, please let me know.