"Unable to start new build: resource not found" at bitbucket cloud

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.

Drone makes an API call to Bitbucket to get your yaml file. The Resource Not Found error indicates the API call to Bitbucket returned this error, indicating the yaml file does not exist.

thanks for your reply.
I have put the same repository file in the bitbucket and Github, they also have .drone.yml file.
Github uses drone build and webhook is working well, but bitbucket uses the same drone server and runner is doesn’t work and has an error message.

this is my .drone.yml file content

workspace:
    base: /go
    path: src/github.com/WeiWeiWesley/simple_redis

kind: pipeline
name: simple_redis

steps:
- name: golangci-lint
  image: golangci/golangci-lint:v1.23.3-alpine
  commands:
    - golangci-lint run

- name: go_test
  image: golang:1.12
  environment:
    CGO_ENABLED: 0
    GO111MODULE: on
  commands:
    - go get -u --insecure ./...
    - go test -cover

so I don’t know why bitbucket can’t work? have any suggestions that can be fixed it?

I found a stupid network setting problem, the firewall policy is blocked bitbucket webhook IP.
The bitbucket webhook now is work.
but use WebUI click “new build”, it still shows the same error message “Unable to start new build: resource not found".