gogs: Gogs webhooks don't seem to work.

  • Gogs version (or commit ref): 0.9.13.0318
  • Git version: 2.5.0
  • Operating system: Ubuntu 15.10
  • Database:
    • PostgreSQL
    • MySQL
    • SQLite
  • Can you reproduce the bug at http://try.gogs.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
2016/04/19 19:33:59 [I] New random avatar created: 3
2016/04/19 19:48:08 [...routers/user/home.go:364 Profile()] [E] GetUserByName: user does not exist [uid: 0, name: config]
2016/04/19 19:33:59 [I] New random avatar created: 3
2016/04/19 19:48:08 [...routers/user/home.go:364 Profile()] [E] GetUserByName: user does not exist [uid: 0, name: config]
2016/04/19 19:48:08 [...s/middleware/repo.go:84 func1()] [E] GetUserByName: user does not exist [uid: 0, name: ironsmith]
2016/04/19 23:59:05 [.../gogs/models/repo.go:1692 CheckRepoStats()] [E] Update repository count 'num_watches'[48]: database table is locked: repository
2016/04/19 23:59:05 [.../gogs/models/repo.go:1692 CheckRepoStats()] [E] Update repository count 'num_watches'[50]: database table is locked: repository
2016/04/19 23:59:05 [.../gogs/models/repo.go:1692 CheckRepoStats()] [E] Update repository count 'num_watches'[51]: database table is locked: repository
2016/04/19 23:59:05 [.../gogs/models/repo.go:1692 CheckRepoStats()] [E] Update repository count 'num_watches'[52]: database table is locked: repository
2016/04/19 23:59:05 [.../gogs/models/repo.go:1692 CheckRepoStats()] [E] Update repository count 'num_watches'[54]: database table is locked: repository
2016/04/19 23:59:05 [.../gogs/models/repo.go:1692 CheckRepoStats()] [E] Update repository count 'num_watches'[55]: database table is locked: repository
2016/04/19 23:59:05 [.../gogs/models/repo.go:1692 CheckRepoStats()] [E] Update repository count 'num_watches'[56]: database table is locked: repository
2016/04/19 23:59:05 [.../gogs/models/repo.go:1692 CheckRepoStats()] [E] Update repository count 'num_watches'[57]: database table is locked: repository
2016/04/19 23:59:05 [.../gogs/models/repo.go:1692 CheckRepoStats()] [E] Update repository count 'num_watches'[59]: database table is locked: repository

Description

I have a simple gogs (not slack) webhook setup, and I’m trying to tie it into a custom continuous integration application that’s listening for the webhook trigger to kick off the next CI run. I can test the webhook fine, and it works successfully, but it fails when it’s triggered via a git push.

gogs

If I can get you any additional info, let me know.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 31 (12 by maintainers)

Most upvoted comments

@Unknwon I can confirm that LOCAL_ROOT_URL = %(PROTOCOL)s://localhost:%(HTTP_PORT)s/ works for us.

@Unknwon Very likely. It seems to work on my end now, as soon as the default setting from #3078 / https://github.com/gogits/gogs/commit/6f6b37f148428eb83cbefdf84253ab7f412e2537 was merged. Everyone should check in their app.ini, wheter they set LOCAL_ROOT_URL there statically to some value and change that and update their gogs container 😃.