goroutine 19387344 [running]: runtime/pprof.writeGoroutineStacks({0x71ede135a890, 0xc0023d7900}) runtime/pprof/pprof.go:756 +0x6b runtime/pprof.writeGoroutine({0x71ede135a890?, 0xc0023d7900?}, 0x45?) runtime/pprof/pprof.go:745 +0x25 runtime/pprof.(*Profile).WriteTo(0x4c0bdb0?, {0x71ede135a890?, 0xc0023d7900?}, 0xc?) runtime/pprof/pprof.go:371 +0x14b net/http/pprof.handler.ServeHTTP({0xc00167c5e1, 0x9}, {0x71ede135a860, 0xc0023d7900}, 0xc000436dc0) net/http/pprof/pprof.go:272 +0x52a net/http/pprof.Index({0x71ede135a860, 0xc0023d7900}, 0xc000436dc0?) net/http/pprof/pprof.go:389 +0xda gopkg.in/macaron%2ev1.handlerFuncInvoker.Invoke(0x19636e0?, {0xc002cb6da0?, 0x19636e0?, 0x17c37a0?}) gopkg.in/macaron.v1@v1.5.1/macaron.go:48 +0xd0 github.com/go-macaron/inject.(*injector).fastInvoke(0xc00268ce88?, {0x71ede13632d8?, 0x3c48f10?}, {0x3e4f030?, 0x17c37a0?}, 0x2?) github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 +0x8f github.com/go-macaron/inject.(*injector).Invoke(0xc00268ce88, {0x17c37a0, 0x3c48f10}) github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 +0x12c gopkg.in/macaron%2ev1.(*Context).run(0xc0000cbc20) gopkg.in/macaron.v1@v1.5.1/context.go:124 +0x65 gopkg.in/macaron%2ev1.(*Context).Next(0xc000784600?) gopkg.in/macaron.v1@v1.5.1/context.go:114 +0x17 gogs.io/gogs/internal/cmd.newMacaron.Recovery.func2(0x20?, 0x177d600?) gopkg.in/macaron.v1@v1.5.1/recovery.go:161 +0x45 gopkg.in/macaron%2ev1.LoggerInvoker.Invoke(0x192fce0?, {0xc002cb6ce0?, 0x192fce0?, 0x3e4f030?}) gopkg.in/macaron.v1@v1.5.1/logger.go:40 +0x58 github.com/go-macaron/inject.(*injector).fastInvoke(0xc00268ce88?, {0x71ede135a7c0?, 0x3c47838?}, {0x3e4f030?, 0x17c3720?}, 0x2?) github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 +0x8f github.com/go-macaron/inject.(*injector).Invoke(0xc00268ce88, {0x17c3720, 0x3c47838}) github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 +0x12c gopkg.in/macaron%2ev1.(*Context).run(0xc0000cbc20) gopkg.in/macaron.v1@v1.5.1/context.go:124 +0x65 gopkg.in/macaron%2ev1.(*Router).Handle.func1({0x3e2e4d8?, 0xc001b6a960?}, 0x3e15220?, 0xc002609080) gopkg.in/macaron.v1@v1.5.1/router.go:187 +0x23a gopkg.in/macaron%2ev1.(*Router).ServeHTTP(0xc0007980c0, {0x3e2e4d8, 0xc001b6a960}, 0xc000436dc0) gopkg.in/macaron.v1@v1.5.1/router.go:304 +0x162 gopkg.in/macaron%2ev1.(*Macaron).ServeHTTP(0xc0000a0a80, {0x3e2e4d8, 0xc001b6a960}, 0xc000436dc0) gopkg.in/macaron.v1@v1.5.1/macaron.go:218 +0x153 net/http.serverHandler.ServeHTTP({0xc000a6c000?}, {0x3e2e4d8?, 0xc001b6a960?}, 0x1?) net/http/server.go:3340 +0x8e net/http.(*conn).serve(0xc0000ca2d0, {0x3e31e18, 0xc002302c00}) net/http/server.go:2109 +0x665 created by net/http.(*Server).Serve in goroutine 1 net/http/server.go:3493 +0x485 goroutine 1 [IO wait, 2 minutes]: internal/poll.runtime_pollWait(0x71ede18cd000, 0x72) runtime/netpoll.go:351 +0x85 internal/poll.(*pollDesc).wait(0xc0022ed400?, 0x90041c2b7?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x27 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Accept(0xc0022ed400) internal/poll/fd_unix.go:613 +0x28c net.(*netFD).accept(0xc0022ed400) net/fd_unix.go:161 +0x29 net.(*TCPListener).accept(0xc000092780) net/tcpsock_posix.go:159 +0x1b net.(*TCPListener).Accept(0xc000092780) net/tcpsock.go:380 +0x30 net/http.(*Server).Serve(0xc000c76000, {0x3e2e750, 0xc000092780}) net/http/server.go:3463 +0x30c net/http.(*Server).ListenAndServe(0xc000c76000) net/http/server.go:3389 +0x72 net/http.ListenAndServe(...) net/http/server.go:3704 gogs.io/gogs/internal/cmd.runWeb(0xc00064f080) gogs.io/gogs/internal/cmd/web.go:748 +0x1175 github.com/urfave/cli.HandleAction({0x174c5c0?, 0x3c47888?}, 0x3?) github.com/urfave/cli@v1.22.17/app.go:524 +0x9f github.com/urfave/cli.Command.Run({{0x19ab886, 0x3}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x19c77df, 0x10}, {0x0, ...}, ...}, ...) github.com/urfave/cli@v1.22.17/command.go:175 +0x656 github.com/urfave/cli.(*App).Run(0xc000103340, {0xc000116b60, 0x2, 0x2}) github.com/urfave/cli@v1.22.17/app.go:277 +0xb27 main.main() gogs.io/gogs/gogs.go:35 +0x3cc goroutine 21 [select, 2228 minutes]: unknwon.dev/clog/v2.New.func1() unknwon.dev/clog/v2@v2.2.0/logger.go:202 +0xce created by unknwon.dev/clog/v2.New in goroutine 1 unknwon.dev/clog/v2@v2.2.0/logger.go:199 +0x58b goroutine 23 [select, 41589 minutes]: database/sql.(*DB).connectionOpener(0xc0006fab60, {0x3e31e50, 0xc000323450}) database/sql/sql.go:1261 +0x87 created by database/sql.OpenDB in goroutine 1 database/sql/sql.go:841 +0x130 goroutine 24 [select, 41589 minutes]: database/sql.(*DB).connectionOpener(0xc0006fedd0, {0x3e31e50, 0xc000323720}) database/sql/sql.go:1261 +0x87 created by database/sql.OpenDB in goroutine 1 database/sql/sql.go:841 +0x130 goroutine 35 [select, 10 minutes]: github.com/gogs/cron.(*Cron).run(0xc0000f4460) github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14/cron.go:197 +0x565 created by github.com/gogs/cron.(*Cron).Start in goroutine 1 github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14/cron.go:150 +0x59 goroutine 36 [chan receive, 41589 minutes]: gogs.io/gogs/internal/database.SyncMirrors() gogs.io/gogs/internal/database/mirror.go:390 +0x50 created by gogs.io/gogs/internal/database.InitSyncMirrors in goroutine 1 gogs.io/gogs/internal/database/mirror.go:530 +0x1a goroutine 37 [chan receive, 41589 minutes]: gogs.io/gogs/internal/database.DeliverHooks() gogs.io/gogs/internal/database/webhook.go:810 +0x258 created by gogs.io/gogs/internal/database.InitDeliverHooks in goroutine 1 gogs.io/gogs/internal/database/webhook.go:830 +0x1a goroutine 38 [chan receive, 41589 minutes]: gogs.io/gogs/internal/database.TestPullRequests() gogs.io/gogs/internal/database/pull.go:866 +0x118 created by gogs.io/gogs/internal/database.InitTestPullRequests in goroutine 1 gogs.io/gogs/internal/database/pull.go:884 +0x1a goroutine 19390010 [IO wait]: internal/poll.runtime_pollWait(0x71ede1219200, 0x72) runtime/netpoll.go:351 +0x85 internal/poll.(*pollDesc).wait(0xc0009aa080?, 0xc000a6c021?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x27 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0xc0009aa080, {0xc000a6c021, 0x1, 0x1}) internal/poll/fd_unix.go:165 +0x279 net.(*netFD).Read(0xc0009aa080, {0xc000a6c021?, 0xc003ad2848?, 0xc002367770?}) net/fd_posix.go:68 +0x25 net.(*conn).Read(0xc00233a000, {0xc000a6c021?, 0x0?, 0xc0023677d0?}) net/net.go:196 +0x45 net/http.(*connReader).backgroundRead(0xc000a6c000) net/http/server.go:702 +0x33 created by net/http.(*connReader).startBackgroundRead in goroutine 19387344 net/http/server.go:698 +0xb6 goroutine 19387350 [select]: database/sql.(*DB).connectionCleaner(0xc0006fedd0, 0xc00210dc00?) database/sql/sql.go:1104 +0x9c created by database/sql.(*DB).startCleanerLocked in goroutine 19387344 database/sql/sql.go:1091 +0x105