woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.3k stars 371 forks source link

Bitbucket cloud does not load any repositories #4243

Closed ydemartino closed 1 month ago

ydemartino commented 1 month ago

Component

server

Describe the bug

I have setup bitbucket cloud and followed the instructions in the doc. I am able to login using bitbucket OAuth 2, although the redirect takes around 30 seconds.

When I get back to the dashboard, my profile is correctly loaded but the repo list is empty.

Steps to reproduce

1 - Setup woodpecker using docker-compose:

services:
  woodpecker-server:
    image: woodpeckerci/woodpecker-server:latest-alpine
    restart: unless-stopped
    ports:
      - 8000:8000
    volumes:
      - woodpecker-server-data:/var/lib/woodpecker/
    env_file: .env
    environment:
      - WOODPECKER_OPEN=true
      - WOODPECKER_ADMIN=*redacted*
      - WOODPECKER_ORGS=*redacted*
      - WOODPECKER_HOST=${WOODPECKER_HOST}
      - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
      - WOODPECKER_BITBUCKET=true
      - WOODPECKER_BITBUCKET_CLIENT=*redacted*
      - WOODPECKER_BITBUCKET_SECRET=*redacted*
      - WOODPECKER_AUTHENTICATE_PUBLIC_REPOS=true
      - WOODPECKER_LOG_LEVEL=trace
      - WOODPECKER_DEBUG_PRETTY=true
      - WOODPECKER_FORGE_TIMEOUT=30s
      - WOODPECKER_FORGE_RETRY=3

  woodpecker-agent:
    image: woodpeckerci/woodpecker-agent:latest-alpine
    command: agent
    restart: unless-stopped
    depends_on:
      - woodpecker-server
    volumes:
      - woodpecker-agent-config:/etc/woodpecker
      - /var/run/docker.sock:/var/run/docker.sock
    env_file: .env
    environment:
      - WOODPECKER_SERVER=woodpecker-server:9000
      - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}

volumes:
  woodpecker-server-data:
  woodpecker-agent-config:

2 - Login with your bitbucket account 3 - Get redirected to the repo

Expected behavior

The page should list all the bitbucket repositories available.

System Info

{"source":"https://github.com/woodpecker-ci/woodpecker","version":"2.7.1"}

Additional context

I'm using docker compose on a Mac. I saw this issue: https://github.com/woodpecker-ci/woodpecker/issues/143 but it seems it happens when trying to activate a repository. I have setup a publicly accessible instance just to be sure.

Validations

zc-devs commented 1 month ago

Get redirected to the repo

repo list?

The page should list all the bitbucket repositories available

Have you added a repository? Screenshot 2024-10-22 1 Screenshot 2024-10-22 2


What is in the logs?

ydemartino commented 1 month ago

I don't see any errors in the logs or anything that could explain the issue. Here are the full logs with my login in:

:41AM INF woodpecker/src/github.com/woodpecker-ci/woodpecker/shared/logger/logger.go:102 > log level: trace
5:41AM DBG woodpecker/src/github.com/woodpecker-ci/woodpecker/cmd/server/setup.go:64 > server has sqlite3 support
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/cmd/server/setup.go:85 > setup datastore: store.Opts{Driver:"sqlite3", Config:"/var/lib/woodpecker/woodpecker.sqlite", XORM:store.XORM{Log:false, ShowSQL:false}}
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:   export GIN_MODE=release
 - using code:  gin.SetMode(gin.ReleaseMode)

5:41AM INF woodpecker/src/github.com/woodpecker-ci/woodpecker/cmd/server/server.go:113 > starting Woodpecker server with version '2.7.1'
[GIN-debug] GET    /favicon.svg              --> go.woodpecker-ci.org/woodpecker/v2/server/web.New.redirect.func1 (1 handlers)
[GIN-debug] GET    /favicons/*filepath       --> go.woodpecker-ci.org/woodpecker/v2/server/web.New.serveFile.func2 (1 handlers)
[GIN-debug] GET    /assets/*filepath         --> go.woodpecker-ci.org/woodpecker/v2/server/web.New.handleCustomFilesAndAssets.func4 (1 handlers)
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:   export GIN_MODE=release
 - using code:  gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /web-config.js            --> go.woodpecker-ci.org/woodpecker/v2/server/web.Config (11 handlers)
5:41AM INF woodpecker/src/github.com/woodpecker-ci/woodpecker/cmd/server/metrics_server.go:68 > queue metric collector started
5:41AM INF woodpecker/src/github.com/woodpecker-ci/woodpecker/cmd/server/server.go:118 > starting cron service ...
5:41AM INF woodpecker/src/github.com/woodpecker-ci/woodpecker/cmd/server/metrics_server.go:86 > store metric collector started
5:41AM INF woodpecker/src/github.com/woodpecker-ci/woodpecker/cmd/server/server.go:129 > starting grpc server ...
5:41AM INF woodpecker/src/github.com/woodpecker-ci/woodpecker/cmd/server/server.go:280 > starting http server ...
[GIN-debug] GET    /logout                   --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetLogout (11 handlers)
[GIN-debug] GET    /authorize                --> go.woodpecker-ci.org/woodpecker/v2/server/api.HandleAuth (11 handlers)
[GIN-debug] POST   /authorize                --> go.woodpecker-ci.org/woodpecker/v2/server/api.HandleAuth (11 handlers)
[GIN-debug] POST   /authorize/token          --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeprecatedGetLoginToken (11 handlers)
[GIN-debug] GET    /metrics                  --> go.woodpecker-ci.org/woodpecker/v2/server/router.Load.PromHandler.func4 (11 handlers)
[GIN-debug] GET    /version                  --> go.woodpecker-ci.org/woodpecker/v2/server/api.Version (11 handlers)
[GIN-debug] GET    /healthz                  --> go.woodpecker-ci.org/woodpecker/v2/server/api.Health (11 handlers)
[GIN-debug] GET    /api/user                 --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetSelf (12 handlers)
[GIN-debug] GET    /api/user/feed            --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetFeed (12 handlers)
[GIN-debug] GET    /api/user/repos           --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetRepos (12 handlers)
[GIN-debug] POST   /api/user/token           --> go.woodpecker-ci.org/woodpecker/v2/server/api.PostToken (12 handlers)
[GIN-debug] DELETE /api/user/token           --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeleteToken (12 handlers)
[GIN-debug] GET    /api/users                --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetUsers (12 handlers)
[GIN-debug] POST   /api/users                --> go.woodpecker-ci.org/woodpecker/v2/server/api.PostUser (12 handlers)
[GIN-debug] GET    /api/users/:login         --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetUser (12 handlers)
[GIN-debug] PATCH  /api/users/:login         --> go.woodpecker-ci.org/woodpecker/v2/server/api.PatchUser (12 handlers)
[GIN-debug] DELETE /api/users/:login         --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeleteUser (12 handlers)
[GIN-debug] GET    /api/orgs                 --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetOrgs (12 handlers)
[GIN-debug] GET    /api/orgs/lookup/*org_full_name --> go.woodpecker-ci.org/woodpecker/v2/server/api.LookupOrg (11 handlers)
[GIN-debug] GET    /api/orgs/:org_id/permissions --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetOrgPermissions (11 handlers)
[GIN-debug] DELETE /api/orgs/:org_id         --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeleteOrg (13 handlers)
[GIN-debug] GET    /api/orgs/:org_id         --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetOrg (12 handlers)
[GIN-debug] GET    /api/orgs/:org_id/secrets --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetOrgSecretList (12 handlers)
[GIN-debug] POST   /api/orgs/:org_id/secrets --> go.woodpecker-ci.org/woodpecker/v2/server/api.PostOrgSecret (12 handlers)
[GIN-debug] GET    /api/orgs/:org_id/secrets/:secret --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetOrgSecret (12 handlers)
[GIN-debug] PATCH  /api/orgs/:org_id/secrets/:secret --> go.woodpecker-ci.org/woodpecker/v2/server/api.PatchOrgSecret (12 handlers)
[GIN-debug] DELETE /api/orgs/:org_id/secrets/:secret --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeleteOrgSecret (12 handlers)
[GIN-debug] GET    /api/orgs/:org_id/registries --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetOrgRegistryList (12 handlers)
[GIN-debug] POST   /api/orgs/:org_id/registries --> go.woodpecker-ci.org/woodpecker/v2/server/api.PostOrgRegistry (12 handlers)
[GIN-debug] GET    /api/orgs/:org_id/registries/:registry --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetOrgRegistry (12 handlers)
[GIN-debug] PATCH  /api/orgs/:org_id/registries/:registry --> go.woodpecker-ci.org/woodpecker/v2/server/api.PatchOrgRegistry (12 handlers)
[GIN-debug] DELETE /api/orgs/:org_id/registries/:registry --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeleteOrgRegistry (12 handlers)
[GIN-debug] GET    /api/repos/lookup/*repo_full_name --> go.woodpecker-ci.org/woodpecker/v2/server/api.LookupRepo (14 handlers)
[GIN-debug] POST   /api/repos                --> go.woodpecker-ci.org/woodpecker/v2/server/api.PostRepo (12 handlers)
[GIN-debug] GET    /api/repos                --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetAllRepos (12 handlers)
[GIN-debug] POST   /api/repos/repair         --> go.woodpecker-ci.org/woodpecker/v2/server/api.RepairAllRepos (12 handlers)
[GIN-debug] GET    /api/repos/:repo_id/permissions --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetRepoPermissions (13 handlers)
[GIN-debug] GET    /api/repos/:repo_id       --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetRepo (14 handlers)
[GIN-debug] GET    /api/repos/:repo_id/branches --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetRepoBranches (14 handlers)
[GIN-debug] GET    /api/repos/:repo_id/pull_requests --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetRepoPullRequests (14 handlers)
[GIN-debug] GET    /api/repos/:repo_id/pipelines --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetPipelines (14 handlers)
[GIN-debug] POST   /api/repos/:repo_id/pipelines --> go.woodpecker-ci.org/woodpecker/v2/server/api.CreatePipeline (15 handlers)
[GIN-debug] DELETE /api/repos/:repo_id/pipelines/:number --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeletePipeline (15 handlers)
[GIN-debug] GET    /api/repos/:repo_id/pipelines/:number --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetPipeline (14 handlers)
[GIN-debug] GET    /api/repos/:repo_id/pipelines/:number/config --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetPipelineConfig (14 handlers)
[GIN-debug] POST   /api/repos/:repo_id/pipelines/:number --> go.woodpecker-ci.org/woodpecker/v2/server/api.PostPipeline (15 handlers)
[GIN-debug] POST   /api/repos/:repo_id/pipelines/:number/cancel --> go.woodpecker-ci.org/woodpecker/v2/server/api.CancelPipeline (15 handlers)
[GIN-debug] POST   /api/repos/:repo_id/pipelines/:number/approve --> go.woodpecker-ci.org/woodpecker/v2/server/api.PostApproval (15 handlers)
[GIN-debug] POST   /api/repos/:repo_id/pipelines/:number/decline --> go.woodpecker-ci.org/woodpecker/v2/server/api.PostDecline (15 handlers)
[GIN-debug] GET    /api/repos/:repo_id/logs/:number/:stepId --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetStepLogs (14 handlers)
[GIN-debug] DELETE /api/repos/:repo_id/logs/:number/:stepId --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeleteStepLogs (15 handlers)
[GIN-debug] DELETE /api/repos/:repo_id/logs/:number --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeletePipelineLogs (15 handlers)
[GIN-debug] GET    /api/repos/:repo_id/secrets --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetSecretList (15 handlers)
[GIN-debug] POST   /api/repos/:repo_id/secrets --> go.woodpecker-ci.org/woodpecker/v2/server/api.PostSecret (15 handlers)
[GIN-debug] GET    /api/repos/:repo_id/secrets/:secret --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetSecret (15 handlers)
[GIN-debug] PATCH  /api/repos/:repo_id/secrets/:secret --> go.woodpecker-ci.org/woodpecker/v2/server/api.PatchSecret (15 handlers)
[GIN-debug] DELETE /api/repos/:repo_id/secrets/:secret --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeleteSecret (15 handlers)
[GIN-debug] GET    /api/repos/:repo_id/registries --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetRegistryList (15 handlers)
[GIN-debug] POST   /api/repos/:repo_id/registries --> go.woodpecker-ci.org/woodpecker/v2/server/api.PostRegistry (15 handlers)
[GIN-debug] GET    /api/repos/:repo_id/registries/:registry --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetRegistry (15 handlers)
[GIN-debug] PATCH  /api/repos/:repo_id/registries/:registry --> go.woodpecker-ci.org/woodpecker/v2/server/api.PatchRegistry (15 handlers)
[GIN-debug] DELETE /api/repos/:repo_id/registries/:registry --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeleteRegistry (15 handlers)
[GIN-debug] GET    /api/repos/:repo_id/registry --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetRegistryList (15 handlers)
[GIN-debug] POST   /api/repos/:repo_id/registry --> go.woodpecker-ci.org/woodpecker/v2/server/api.PostRegistry (15 handlers)
[GIN-debug] GET    /api/repos/:repo_id/registry/:registry --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetRegistry (15 handlers)
[GIN-debug] PATCH  /api/repos/:repo_id/registry/:registry --> go.woodpecker-ci.org/woodpecker/v2/server/api.PatchRegistry (15 handlers)
[GIN-debug] DELETE /api/repos/:repo_id/registry/:registry --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeleteRegistry (15 handlers)
[GIN-debug] GET    /api/repos/:repo_id/cron  --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetCronList (15 handlers)
[GIN-debug] POST   /api/repos/:repo_id/cron  --> go.woodpecker-ci.org/woodpecker/v2/server/api.PostCron (15 handlers)
[GIN-debug] GET    /api/repos/:repo_id/cron/:cron --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetCron (15 handlers)
[GIN-debug] POST   /api/repos/:repo_id/cron/:cron --> go.woodpecker-ci.org/woodpecker/v2/server/api.RunCron (15 handlers)
[GIN-debug] PATCH  /api/repos/:repo_id/cron/:cron --> go.woodpecker-ci.org/woodpecker/v2/server/api.PatchCron (15 handlers)
[GIN-debug] DELETE /api/repos/:repo_id/cron/:cron --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeleteCron (15 handlers)
[GIN-debug] PATCH  /api/repos/:repo_id       --> go.woodpecker-ci.org/woodpecker/v2/server/api.PatchRepo (15 handlers)
[GIN-debug] DELETE /api/repos/:repo_id       --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeleteRepo (15 handlers)
[GIN-debug] POST   /api/repos/:repo_id/chown --> go.woodpecker-ci.org/woodpecker/v2/server/api.ChownRepo (15 handlers)
[GIN-debug] POST   /api/repos/:repo_id/repair --> go.woodpecker-ci.org/woodpecker/v2/server/api.RepairRepo (15 handlers)
[GIN-debug] POST   /api/repos/:repo_id/move  --> go.woodpecker-ci.org/woodpecker/v2/server/api.MoveRepo (15 handlers)
[GIN-debug] GET    /api/badges/:repo_id_or_owner/status.svg --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetBadge (11 handlers)
[GIN-debug] GET    /api/badges/:repo_id_or_owner/cc.xml --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetCC (11 handlers)
[GIN-debug] GET    /api/badges/:repo_id_or_owner/:repo_name/status.svg --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetBadge (11 handlers)
[GIN-debug] GET    /api/badges/:repo_id_or_owner/:repo_name/cc.xml --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetCC (11 handlers)
[GIN-debug] GET    /api/pipelines            --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetPipelineQueue (12 handlers)
[GIN-debug] GET    /api/queue/info           --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetQueueInfo (12 handlers)
[GIN-debug] POST   /api/queue/pause          --> go.woodpecker-ci.org/woodpecker/v2/server/api.PauseQueue (12 handlers)
[GIN-debug] POST   /api/queue/resume         --> go.woodpecker-ci.org/woodpecker/v2/server/api.ResumeQueue (12 handlers)
[GIN-debug] GET    /api/queue/norunningpipelines --> go.woodpecker-ci.org/woodpecker/v2/server/api.BlockTilQueueHasRunningItem (12 handlers)
[GIN-debug] GET    /api/secrets              --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetGlobalSecretList (12 handlers)
[GIN-debug] GET    /api/secrets/:secret      --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetGlobalSecret (12 handlers)
[GIN-debug] POST   /api/secrets              --> go.woodpecker-ci.org/woodpecker/v2/server/api.PostGlobalSecret (12 handlers)
[GIN-debug] PATCH  /api/secrets/:secret      --> go.woodpecker-ci.org/woodpecker/v2/server/api.PatchGlobalSecret (12 handlers)
[GIN-debug] DELETE /api/secrets/:secret      --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeleteGlobalSecret (12 handlers)
[GIN-debug] GET    /api/registries           --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetGlobalRegistryList (12 handlers)
[GIN-debug] GET    /api/registries/:registry --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetGlobalRegistry (12 handlers)
[GIN-debug] POST   /api/registries           --> go.woodpecker-ci.org/woodpecker/v2/server/api.PostGlobalRegistry (12 handlers)
[GIN-debug] PATCH  /api/registries/:registry --> go.woodpecker-ci.org/woodpecker/v2/server/api.PatchGlobalRegistry (12 handlers)
[GIN-debug] DELETE /api/registries/:registry --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeleteGlobalRegistry (12 handlers)
[GIN-debug] GET    /api/log-level            --> go.woodpecker-ci.org/woodpecker/v2/server/api.LogLevel (12 handlers)
[GIN-debug] POST   /api/log-level            --> go.woodpecker-ci.org/woodpecker/v2/server/api.SetLogLevel (12 handlers)
[GIN-debug] GET    /api/agents               --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetAgents (12 handlers)
[GIN-debug] POST   /api/agents               --> go.woodpecker-ci.org/woodpecker/v2/server/api.PostAgent (12 handlers)
[GIN-debug] GET    /api/agents/:agent        --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetAgent (12 handlers)
[GIN-debug] GET    /api/agents/:agent/tasks  --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetAgentTasks (12 handlers)
[GIN-debug] PATCH  /api/agents/:agent        --> go.woodpecker-ci.org/woodpecker/v2/server/api.PatchAgent (12 handlers)
[GIN-debug] DELETE /api/agents/:agent        --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeleteAgent (12 handlers)
[GIN-debug] GET    /api/forges               --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetForges (11 handlers)
[GIN-debug] GET    /api/forges/:forgeId      --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetForge (11 handlers)
[GIN-debug] POST   /api/forges               --> go.woodpecker-ci.org/woodpecker/v2/server/api.PostForge (12 handlers)
[GIN-debug] PATCH  /api/forges/:forgeId      --> go.woodpecker-ci.org/woodpecker/v2/server/api.PatchForge (12 handlers)
[GIN-debug] DELETE /api/forges/:forgeId      --> go.woodpecker-ci.org/woodpecker/v2/server/api.DeleteForge (12 handlers)
[GIN-debug] GET    /api/signature/public-key --> go.woodpecker-ci.org/woodpecker/v2/server/api.GetSignaturePublicKey (12 handlers)
[GIN-debug] POST   /api/hook                 --> go.woodpecker-ci.org/woodpecker/v2/server/api.PostHook (11 handlers)
[GIN-debug] GET    /api/stream/logs/:repo_id/:pipeline/:stepId --> go.woodpecker-ci.org/woodpecker/v2/server/api.LogStreamSSE (14 handlers)
[GIN-debug] GET    /api/stream/events        --> go.woodpecker-ci.org/woodpecker/v2/server/api.EventStreamSSE (11 handlers)
[GIN-debug] GET    /api/debug/pprof/         --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.IndexHandler.func34 (12 handlers)
[GIN-debug] GET    /api/debug/pprof/heap     --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.HeapHandler.func35 (12 handlers)
[GIN-debug] GET    /api/debug/pprof/goroutine --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.GoroutineHandler.func36 (12 handlers)
[GIN-debug] GET    /api/debug/pprof/block    --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.BlockHandler.func37 (12 handlers)
[GIN-debug] GET    /api/debug/pprof/threadcreate --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.ThreadCreateHandler.func38 (12 handlers)
[GIN-debug] GET    /api/debug/pprof/cmdline  --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.CmdlineHandler.func39 (12 handlers)
[GIN-debug] GET    /api/debug/pprof/profile  --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.ProfileHandler.func40 (12 handlers)
[GIN-debug] GET    /api/debug/pprof/symbol   --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.SymbolHandler.func41 (12 handlers)
[GIN-debug] POST   /api/debug/pprof/symbol   --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.SymbolHandler.func42 (12 handlers)
[GIN-debug] GET    /api/debug/pprof/trace    --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.TraceHandler.func43 (12 handlers)
[GIN-debug] GET    /hook                     --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func1 (11 handlers)
[GIN-debug] POST   /hook                     --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func1 (11 handlers)
[GIN-debug] PUT    /hook                     --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func1 (11 handlers)
[GIN-debug] PATCH  /hook                     --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func1 (11 handlers)
[GIN-debug] HEAD   /hook                     --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func1 (11 handlers)
[GIN-debug] OPTIONS /hook                     --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func1 (11 handlers)
[GIN-debug] DELETE /hook                     --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func1 (11 handlers)
[GIN-debug] CONNECT /hook                     --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func1 (11 handlers)
[GIN-debug] TRACE  /hook                     --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func1 (11 handlers)
[GIN-debug] GET    /stream/events            --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func2 (11 handlers)
[GIN-debug] POST   /stream/events            --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func2 (11 handlers)
[GIN-debug] PUT    /stream/events            --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func2 (11 handlers)
[GIN-debug] PATCH  /stream/events            --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func2 (11 handlers)
[GIN-debug] HEAD   /stream/events            --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func2 (11 handlers)
[GIN-debug] OPTIONS /stream/events            --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func2 (11 handlers)
[GIN-debug] DELETE /stream/events            --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func2 (11 handlers)
[GIN-debug] CONNECT /stream/events            --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func2 (11 handlers)
[GIN-debug] TRACE  /stream/events            --> go.woodpecker-ci.org/woodpecker/v2/server/router.apiRoutes.func2 (11 handlers)
[GIN-debug] GET    /swagger/*any             --> github.com/swaggo/gin-swagger.CustomWrapHandler.func1 (11 handlers)
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/router.go:43 > [GET] /api/stream/events
5:41AM DBG woodpecker/src/github.com/woodpecker-ci/woodpecker/server/api/stream.go:63 > user feed: connection opened
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/router.go:43 > [GET] /api/stream/events
5:41AM DBG woodpecker/src/github.com/woodpecker-ci/woodpecker/server/api/stream.go:63 > user feed: connection opened
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/router.go:43 > [GET] /authorize?forgeId=1
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/forge/setup/setup.go:47 > Forge (bitbucket) opts: &bitbucket.Opts{Client:"*redacted*", Secret:"*redacted*"}
5:41AM DBG woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/middleware/logger.go:59 > ip=192.168.65.1 latency=1.124792 method=GET path=/authorize status=303 user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/router.go:43 > [GET] /authorize?code=*redacted*&state=*redacted*
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/cron/cron.go:49 > cron: fetch next crons
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/cron/cron.go:49 > cron: fetch next crons
5:41AM DBG woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/middleware/logger.go:59 > ip=192.168.65.1 latency=22398.79501 method=GET path=/authorize status=303 user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/router.go:43 > [GET] /
5:41AM DBG woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/middleware/logger.go:59 > ip=192.168.65.1 latency=0.661333 method=GET path=/ status=200 user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/router.go:43 > [GET] /web-config.js
5:41AM DBG woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/middleware/logger.go:59 > ip=192.168.65.1 latency=1.748916 method=GET path=/web-config.js status=200 user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/router.go:43 > [GET] /assets/custom.js
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/router.go:43 > [GET] /assets/custom.css
5:41AM DBG woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/middleware/logger.go:59 > ip=192.168.65.1 latency=0.823792 method=GET path=/assets/custom.js status=200 user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
5:41AM DBG woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/middleware/logger.go:59 > ip=192.168.65.1 latency=0.909416 method=GET path=/assets/custom.css status=200 user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/router.go:43 > [GET] /api/user/repos?
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/router.go:43 > [GET] /api/stream/events
5:41AM DBG woodpecker/src/github.com/woodpecker-ci/woodpecker/server/api/stream.go:63 > user feed: connection opened
5:41AM DBG woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/middleware/logger.go:59 > ip=192.168.65.1 latency=2.370458 method=GET path=/api/user/repos status=200 user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/router.go:43 > [GET] /api/user/repos?
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/router.go:43 > [GET] /api/user/feed
5:41AM DBG woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/middleware/logger.go:59 > ip=192.168.65.1 latency=0.743834 method=GET path=/api/user/repos status=200 user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
5:41AM DBG woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/middleware/logger.go:59 > ip=192.168.65.1 latency=0.67175 method=GET path=/api/user/feed status=200 user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/cron/cron.go:49 > cron: fetch next crons
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/router.go:43 > [GET] /healthz
5:41AM DBG woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/middleware/logger.go:59 > ip=::1 latency=0.033791 method=GET path=/healthz status=204 user-agent=Go-http-client/1.1
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/cron/cron.go:49 > cron: fetch next crons
5:41AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/cron/cron.go:49 > cron: fetch next crons
5:42AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/cron/cron.go:49 > cron: fetch next crons
5:42AM TRC woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/router.go:43 > [GET] /healthz

And here is the dashboard:

Capture d’écran 2024-10-23 à 07 45 27 Capture d’écran 2024-10-23 à 07 45 49
ydemartino commented 1 month ago

Ok my bad, while I was editing the issue, I stayed on the Add repository page and now the repos have loaded. I have more than 500 repositories amd it's taking a very long time to load then all. Maybe the dashboard should show a loading indicator.

I close the issue as this is actually working, thanks!