Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull requests get a 500 error #16835

Closed
2 of 6 tasks
WarlockFish opened this issue Aug 27, 2021 · 5 comments · Fixed by #16842
Closed
2 of 6 tasks

Pull requests get a 500 error #16835

WarlockFish opened this issue Aug 27, 2021 · 5 comments · Fixed by #16842
Labels
Milestone

Comments

@WarlockFish
Copy link

  • Gitea version (or commit ref): gitea-1.15.0-linux-arm64
  • Git version: 2.20.1,
  • Operating system: raspbian debian
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:
2021/08/27 15:50:03 ...dules/setting/log.go:333:newLogService() [I] Gitea Log Mode: File(File:)
2021/08/27 15:50:03 ...dules/setting/log.go:249:generateNamedLogger() [I] Router Log: File(file:)
2021/08/27 15:50:03 ...les/setting/cache.go:78:newCacheService() [I] Cache Service Enabled
2021/08/27 15:50:03 ...les/setting/cache.go:93:newCacheService() [I] Last Commit Cache Service Enabled
2021/08/27 15:50:03 ...s/setting/session.go:77:newSessionService() [I] Session Service Enabled
2021/08/27 15:50:03 ...s/storage/storage.go:170:initAttachments() [I] Initialising Attachment storage with type: 
2021/08/27 15:50:03 ...les/storage/local.go:47:NewLocalStorage() [I] Creating new Local Storage at /home/gitea/gitea/data/attachments
2021/08/27 15:50:03 ...s/storage/storage.go:164:initAvatars() [I] Initialising Avatar storage with type: 
2021/08/27 15:50:03 ...les/storage/local.go:47:NewLocalStorage() [I] Creating new Local Storage at /home/gitea/gitea/data/avatars
2021/08/27 15:50:03 ...s/storage/storage.go:182:initRepoAvatars() [I] Initialising Repository Avatar storage with type: 
2021/08/27 15:50:03 ...les/storage/local.go:47:NewLocalStorage() [I] Creating new Local Storage at /home/gitea/gitea/data/repo-avatars
2021/08/27 15:50:03 ...s/storage/storage.go:176:initLFS() [I] Initialising LFS storage with type: 
2021/08/27 15:50:03 ...les/storage/local.go:47:NewLocalStorage() [I] Creating new Local Storage at /home/gitea/gitea/data/lfs
2021/08/27 15:50:03 ...s/storage/storage.go:188:initRepoArchives() [I] Initialising Repository Archive storage with type: 
2021/08/27 15:50:03 ...les/storage/local.go:47:NewLocalStorage() [I] Creating new Local Storage at /home/gitea/gitea/data/repo-archive
2021/08/27 15:50:03 routers/init.go:93:GlobalInit() [I] SQLite3 Supported
2021/08/27 15:50:03 routers/common/db.go:20:InitDBEngine() [I] Beginning ORM engine initialization.
2021/08/27 15:50:03 routers/common/db.go:27:InitDBEngine() [I] ORM engine initialization attempt #1/10...
2021/08/27 15:50:03 ...om/urfave/cli/app.go:524:HandleAction() [I] PING DATABASE sqlite3
2021/08/27 15:50:03 ...ations/migrations.go:382:Migrate() [I] [SQL] SELECT name FROM sqlite_master WHERE type='table' and name = ? [version] - 234.218µs
2021/08/27 15:50:03 routers/common/db.go:28:InitDBEngine() [I] [SQL] SELECT * FROM version LIMIT 0 [] - 134.479µs
2021/08/27 15:50:03 routers/common/db.go:28:InitDBEngine() [I] [SQL] SELECT * FROM version LIMIT 0 [] - 56.822µs
2021/08/27 15:50:03 ...rm.io/xorm/engine.go:1214:Get() [I] [SQL] SELECT `id`, `version` FROM `version` WHERE `id`=? LIMIT 1 [1] - 142.082µs
2021/08/27 15:50:03 routers/common/db.go:28:InitDBEngine() [I] [SQL] SELECT name FROM sqlite_master WHERE type='table' [] - 206.978µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [user] - 235.937µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [user] - 224.271µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [public_key] - 200.26µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [public_key] - 210µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [access_token] - 189.478µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [access_token] - 177.239µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [repository] - 210.416µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [repository] - 202.603µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [deploy_key] - 202.812µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [deploy_key] - 180.625µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [collaboration] - 204.739µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [collaboration] - 211.666µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [access] - 188.593µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [access] - 176.041µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [upload] - 178.906µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [upload] - 174.739µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [watch] - 175.26µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [watch] - 184.635µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [star] - 194.948µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [star] - 191.041µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [follow] - 189.999µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [follow] - 171.718µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [action] - 180.416µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [action] - 187.083µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [issue] - 209.062µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [issue] - 190.416µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [pull_request] - 214.114µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [pull_request] - 231.874µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [comment] - 238.124µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [comment] - 209.27µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [attachment] - 206.509µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [attachment] - 213.228µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [label] - 192.552µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [label] - 203.072µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [issue_label] - 174.739µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [issue_label] - 180.729µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [milestone] - 185.78µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [milestone] - 187.448µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [mirror] - 248.541µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [mirror] - 191.978µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [release] - 203.854µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [release] - 194.27µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [login_source] - 210.468µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [login_source] - 182.031µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [webhook] - 188.177µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [webhook] - 188.541µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [hook_task] - 188.645µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [hook_task] - 198.333µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [team] - 181.093µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [team] - 236.718µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [org_user] - 192.499µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [org_user] - 174.999µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [team_user] - 175.104µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [team_user] - 172.239µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [team_repo] - 181.822µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [team_repo] - 159.792µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [notice] - 213.541µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [notice] - 171.614µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [email_address] - 177.187µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [email_address] - 238.333µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [notification] - 252.811µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [notification] - 214.374µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [issue_user] - 191.093µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [issue_user] - 173.385µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [lfs_meta_object] - 262.656µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [lfs_meta_object] - 203.437µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [two_factor] - 210.728µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [two_factor] - 182.344µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [gpg_key] - 203.75µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [gpg_key] - 233.072µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [gpg_key_import] - 193.124µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [gpg_key_import] - 174.791µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [repo_unit] - 174.583µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [repo_unit] - 323.384µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [repo_redirect] - 190.469µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [repo_redirect] - 168.49µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [external_login_user] - 194.895µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [external_login_user] - 207.187µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [protected_branch] - 209.53µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [protected_branch] - 197.499µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [user_open_id] - 204.739µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [user_open_id] - 182.707µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [issue_watch] - 179.479µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [issue_watch] - 179.479µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [commit_status] - 204.114µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [commit_status] - 199.375µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [stopwatch] - 200.416µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [stopwatch] - 185.155µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [tracked_time] - 190.207µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [tracked_time] - 188.697µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [deleted_branch] - 215.468µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [deleted_branch] - 200.364µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [repo_indexer_status] - 185.416µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [repo_indexer_status] - 190.416µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [issue_dependency] - 242.343µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [issue_dependency] - 188.697µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [lfs_lock] - 185.26µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [lfs_lock] - 195.989µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [reaction] - 197.031µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [reaction] - 197.551µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [issue_assignees] - 207.344µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [issue_assignees] - 180.052µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [u2f_registration] - 201.093µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [u2f_registration] - 190.051µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [team_unit] - 184.531µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [team_unit] - 186.926µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [review] - 190.052µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [review] - 204.895µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [oauth2_application] - 191.458µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [oauth2_application] - 176.406µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [oauth2_authorization_code] - 205.729µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [oauth2_authorization_code] - 206.718µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [oauth2_grant] - 258.437µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [oauth2_grant] - 240.729µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [task] - 207.812µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [task] - 204.426µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [language_stat] - 210.156µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [language_stat] - 275.728µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [email_hash] - 210.104µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [email_hash] - 185.469µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [user_redirect] - 188.177µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [user_redirect] - 195.728µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [project] - 190.051µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [project] - 280.208µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [project_board] - 210.364µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [project_board] - 186.927µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [project_issue] - 239.218µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [project_issue] - 183.437µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [session] - 180.468µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [session] - 176.041µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [repo_transfer] - 175.051µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [repo_transfer] - 183.125µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [issue_index] - 224.322µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [issue_index] - 179.895µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [push_mirror] - 183.853µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [push_mirror] - 194.896µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [repo_archiver] - 194.27µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [repo_archiver] - 185.885µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [protected_tag] - 191.249µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [protected_tag] - 180.624µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [topic] - 180.781µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [topic] - 180.364µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [repo_topic] - 182.968µs
2021/08/27 15:50:03 models/models.go:233:NewEngine() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [repo_topic] - 202.083µs
2021/08/27 15:50:03 routers/init.go:98:GlobalInit() [I] ORM engine initialization successful!
2021/08/27 15:50:03 ...uth/oauth2/oauth2.go:51:Init() [I] [SQL] SELECT name FROM sqlite_master WHERE type='table' [] - 223.749µs
2021/08/27 15:50:03 ...rmstore/xormstore.go:110:NewOptions() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [oauth2_session] - 229.427µs
2021/08/27 15:50:03 ...rmstore/xormstore.go:110:NewOptions() [I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [oauth2_session] - 247.03µs
2021/08/27 15:50:03 models/oauth2.go:89:GetActiveOAuth2ProviderLoginSources() [I] [SQL] SELECT `id`, `type`, `name`, `is_actived`, `is_sync_enabled`, `cfg`, `created_unix`, `updated_unix` FROM `login_source` WHERE (is_actived = ? and type = ?) [true 6] - 264.687µs
2021/08/27 15:50:03 ...odules/cron/tasks.go:88:func2() [I] [SQL] DELETE FROM `deleted_branch` WHERE (deleted_unix < ?) [1629964203] - 845.466µs
2021/08/27 15:50:03 ...ternal_login_user.go:162:FindExternalUsersByProvider() [I] [SQL] SELECT `external_id`, `user_id`, `login_source_id`, `raw_data`, `provider`, `email`, `name`, `first_name`, `last_name`, `nick_name`, `description`, `avatar_url`, `location`, `access_token`, `access_token_secret`, `refresh_token`, `expires_at` FROM `external_login_user` WHERE provider=? ORDER BY login_source_id ASC, external_id ASC LIMIT 100 [github] - 1.369528ms
2021/08/27 15:50:03 ...er/issues/indexer.go:142:func2() [I] PID 1938: Initializing Issue Indexer: bleve
2021/08/27 15:50:03 models/admin.go:53:createNotice() [I] [SQL] INSERT INTO `notice` (`type`,`description`,`created_unix`) VALUES (?,?,?) [2 Cron: Clean-up deleted branches has finished 1630050603] - 17.34125ms
2021/08/27 15:50:03 models/repo.go:1787:DeleteOldRepositoryArchives() [I] [SQL] SELECT `id`, `repo_id`, `type`, `status`, `commit_id`, `created_unix` FROM `repo_archiver` WHERE (created_unix < ?) ORDER BY `created_unix` ASC LIMIT 100 [1629964203] - 17.016199ms
2021/08/27 15:50:03 ...xer/stats/indexer.go:38:populateRepoIndexer() [I] Populating the repo stats indexer with existing repositories
2021/08/27 15:50:03 models/repo.go:1830:repoStatsCheck() [I] [SQL] SELECT repo.id FROM `repository` repo WHERE repo.num_watches!=(SELECT COUNT(*) FROM `watch` WHERE repo_id=repo.id AND mode<>2) [] - 538.228µs
2021/08/27 15:50:03 ...ternal_login_user.go:162:FindExternalUsersByProvider() [I] [SQL] SELECT `external_id`, `user_id`, `login_source_id`, `raw_data`, `provider`, `email`, `name`, `first_name`, `last_name`, `nick_name`, `description`, `avatar_url`, `location`, `access_token`, `access_token_secret`, `refresh_token`, `expires_at` FROM `external_login_user` WHERE provider=? ORDER BY login_source_id ASC, external_id ASC LIMIT 100 [gitlab] - 454.582µs
2021/08/27 15:50:03 models/webhook.go:747:FindUndeliveredHookTasks() [I] [SQL] SELECT `id`, `repo_id`, `hook_id`, `uuid`, `payload_content`, `event_type`, `is_delivered`, `delivered`, `is_succeed`, `request_content`, `response_content` FROM `hook_task` WHERE (is_delivered=?) [false] - 920.31µs
2021/08/27 15:50:03 models/pull_list.go:77:GetPullRequestIDsByCheckStatus() [I] [SQL] SELECT `pull_request`.`id` FROM `pull_request` WHERE (status=?) [1] - 816.56µs
2021/08/27 15:50:03 .../runtime/asm_arm64.s:1130:goexit() [I] [SQL] SELECT * FROM `repository`  LIMIT 1 [] - 1.393798ms
2021/08/27 15:50:03 ...er/issues/indexer.go:221:func3() [I] Issue Indexer Initialization took 26.037213ms
2021/08/27 15:50:03 models/admin.go:53:createNotice() [I] [SQL] INSERT INTO `notice` (`type`,`description`,`created_unix`) VALUES (?,?,?) [2 Cron: Delete old repository archives has finished 1630050603] - 23.198264ms
2021/08/27 15:50:03 ...ternal_login_user.go:162:FindExternalUsersByProvider() [I] [SQL] SELECT `external_id`, `user_id`, `login_source_id`, `raw_data`, `provider`, `email`, `name`, `first_name`, `last_name`, `nick_name`, `description`, `avatar_url`, `location`, `access_token`, `access_token_secret`, `refresh_token`, `expires_at` FROM `external_login_user` WHERE provider=? ORDER BY login_source_id ASC, external_id ASC LIMIT 100 [gitea] - 408.228µs
2021/08/27 15:50:03 models/repo.go:1830:repoStatsCheck() [I] [SQL] SELECT repo.id FROM `repository` repo WHERE repo.num_stars!=(SELECT COUNT(*) FROM `star` WHERE repo_id=repo.id) [] - 1.055154ms
2021/08/27 15:50:03 models/models.go:370:GetMaxID() [I] [SQL] SELECT MAX(id) FROM `repository` LIMIT 1 [] - 573.123µs
2021/08/27 15:50:03 ...ternal_login_user.go:162:FindExternalUsersByProvider() [I] [SQL] SELECT `external_id`, `user_id`, `login_source_id`, `raw_data`, `provider`, `email`, `name`, `first_name`, `last_name`, `nick_name`, `description`, `avatar_url`, `location`, `access_token`, `access_token_secret`, `refresh_token`, `expires_at` FROM `external_login_user` WHERE provider=? ORDER BY login_source_id ASC, external_id ASC LIMIT 100 [gogs] - 619.529µs
2021/08/27 15:50:03 models/repo.go:1830:repoStatsCheck() [I] [SQL] SELECT label.id FROM `label` WHERE label.num_issues!=(SELECT COUNT(*) FROM `issue_label` WHERE label_id=label.id) [] - 1.051091ms
2021/08/27 15:50:03 models/repo.go:1830:repoStatsCheck() [I] [SQL] SELECT `user`.id FROM `user` WHERE `user`.num_repos!=(SELECT COUNT(*) FROM `repository` WHERE owner_id=`user`.id) [] - 348.801µs
2021/08/27 15:50:03 models/repo.go:1830:repoStatsCheck() [I] [SQL] SELECT `issue`.id FROM `issue` WHERE `issue`.num_comments!=(SELECT COUNT(*) FROM `comment` WHERE issue_id=`issue`.id AND type=0) [] - 379.582µs
2021/08/27 15:50:03 models/repo.go:1899:CheckRepoStats() [I] [SQL] SELECT repo.id FROM `repository` repo WHERE repo.num_closed_issues!=(SELECT COUNT(*) FROM `issue` WHERE repo_id=repo.id AND is_closed=? AND is_pull=?) [true false] - 411.457µs
2021/08/27 15:50:03 models/repo.go:1922:CheckRepoStats() [I] [SQL] SELECT repo.id FROM `repository` repo WHERE repo.num_closed_pulls!=(SELECT COUNT(*) FROM `issue` WHERE repo_id=repo.id AND is_closed=? AND is_pull=?) [true true] - 344.114µs
2021/08/27 15:50:03 models/repo.go:1945:CheckRepoStats() [I] [SQL] SELECT repo.id FROM `repository` repo WHERE repo.num_forks!=(SELECT COUNT(*) FROM `repository` WHERE fork_id=repo.id) [] - 287.863µs
2021/08/27 15:50:03 models/admin.go:53:createNotice() [I] [SQL] INSERT INTO `notice` (`type`,`description`,`created_unix`) VALUES (?,?,?) [2 Cron: Check all repository statistics has finished 1630050603] - 24.930862ms
2021/08/27 15:50:03 models/admin.go:53:createNotice() [I] [SQL] INSERT INTO `notice` (`type`,`description`,`created_unix`) VALUES (?,?,?) [2 Cron: Update migration poster IDs has finished 1630050603] - 15.822453ms
2021/08/27 15:50:03 ...dels/repo_indexer.go:55:GetUnindexedRepos() [I] [SQL] SELECT `repository`.`id` FROM `repository` LEFT OUTER JOIN `repo_indexer_status` ON repository.id = repo_indexer_status.repo_id AND repo_indexer_status.indexer_type = ? WHERE repo_indexer_status.id IS NULL AND repository.is_empty=? AND repository.id<=? ORDER BY `repository`.`id` DESC LIMIT 50 [1 false 63] - 36.420881ms
2021/08/27 15:50:03 ...xer/stats/indexer.go:84:populateRepoIndexer() [I] Done (re)populating the repo stats indexer with existing repositories
2021/08/27 15:50:05 cmd/web.go:191:listen() [I] Listen: http://0.0.0.0:3000
2021/08/27 15:50:05 cmd/web.go:194:listen() [I] LFS server enabled
2021/08/27 15:50:05 ...s/graceful/server.go:62:NewServer() [I] Starting new Web server: tcp:0.0.0.0:3000 on PID: 1938
2021/08/27 15:50:39 models/user.go:1370:getUserByID() [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `email_notifications_preference`, `passwd`, `passwd_hash_algo`, `must_change_password`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `language`, `description`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `is_restricted`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `num_teams`, `num_members`, `visibility`, `repo_admin_change_team_access`, `diff_view_style`, `theme`, `keep_activity_private` FROM `user` WHERE `id`=? LIMIT 1 [2] - 1.415517ms
2021/08/27 15:50:39 ...s/issue_stopwatch.go:73:hasUserStopwatch() [I] [SQL] SELECT `id`, `issue_id`, `user_id`, `created_unix` FROM `stopwatch` WHERE (user_id = ?) LIMIT 1 [2] - 427.707µs
2021/08/27 15:50:39 ...rm.io/xorm/engine.go:1214:Get() [I] [SQL] SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `num_projects`, `num_closed_projects`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `trust_model`, `avatar`, `created_unix`, `updated_unix` FROM `repository` WHERE `owner_id`=? AND `lower_name`=? LIMIT 1 [2 my_dotfiles] - 771.144µs
2021/08/27 15:50:39 ...rm.io/xorm/engine.go:1214:Get() [I] [SQL] SELECT `id`, `repo_id`, `user_id`, `mode`, `created_unix`, `updated_unix` FROM `collaboration` WHERE `repo_id`=? AND `user_id`=? LIMIT 1 [29 2] - 404.53µs
2021/08/27 15:50:39 models/repo_unit.go:210:getUnitsByRepoID() [I] [SQL] SELECT `id`, `repo_id`, `type`, `config`, `created_unix` FROM `repo_unit` WHERE (repo_id = ?) [29] - 553.54µs
2021/08/27 15:50:39 ...s/repo_pushmirror.go:97:GetPushMirrorsByRepoID() [I] [SQL] SELECT `id`, `repo_id`, `remote_name`, `interval`, `created_unix`, `last_update`, `last_error` FROM `push_mirror` WHERE (repo_id=?) [29] - 376.301µs
2021/08/27 15:50:39 ...ules/context/repo.go:469:RepoAssignment() [I] [SQL] SELECT count(*) FROM `release` WHERE repo_id=? AND is_draft=? [29 false] - 572.498µs
2021/08/27 15:50:39 ...ules/context/repo.go:476:RepoAssignment() [I] [SQL] SELECT count(*) FROM `release` WHERE repo_id=? AND is_draft=? AND is_tag=? [29 false false] - 492.916µs
2021/08/27 15:50:39 models/org.go:455:getOwnedOrgsByUserID() [I] [SQL] SELECT * FROM `user` INNER JOIN `team_user` ON `team_user`.org_id=`user`.id INNER JOIN `team` ON `team`.id=`team_user`.team_id WHERE (`team_user`.uid=?) AND (`team`.authorize=?) ORDER BY `user`.`name` ASC [2 owner] - 1.969474ms
2021/08/27 15:50:39 models/repo.go:2001:HasForkedRepo() [I] [SQL] SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `num_projects`, `num_closed_projects`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `trust_model`, `avatar`, `created_unix`, `updated_unix` FROM `repository` WHERE (owner_id=? AND fork_id=?) LIMIT 1 [3 29] - 700.102µs
2021/08/27 15:50:39 ...rm.io/xorm/engine.go:1214:Get() [I] [SQL] SELECT `id`, `user_id`, `repo_id`, `mode`, `created_unix`, `updated_unix` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [2 29] - 472.915µs
2021/08/27 15:50:39 ...rm.io/xorm/engine.go:1214:Get() [I] [SQL] SELECT `id`, `uid`, `repo_id`, `created_unix` FROM `star` WHERE `uid`=? AND `repo_id`=? LIMIT 1 [2 29] - 435.155µs
2021/08/27 15:50:39 models/repo.go:2001:HasForkedRepo() [I] [SQL] SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `num_projects`, `num_closed_projects`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `trust_model`, `avatar`, `created_unix`, `updated_unix` FROM `repository` WHERE (owner_id=? AND fork_id=?) LIMIT 1 [2 29] - 727.446µs
2021/08/27 15:50:39 models/issue.go:1488:GetIssueStats() [I] [SQL] SELECT count(*) FROM `issue` WHERE (issue.repo_id = ?) AND (issue.is_pull=?) AND (issue.is_closed = ?) [29 true false] - 473.489µs
2021/08/27 15:50:39 models/issue.go:1488:GetIssueStats() [I] [SQL] SELECT count(*) FROM `issue` WHERE (issue.repo_id = ?) AND (issue.is_pull=?) AND (issue.is_closed = ?) [29 true true] - 459.738µs
2021/08/27 15:50:39 models/issue.go:1370:Issues() [I] [SQL] SELECT * FROM `issue` INNER JOIN `repository` ON `issue`.repo_id = `repository`.id WHERE `issue`.`repo_id` IN (?) AND (issue.is_closed=?) AND (issue.is_pull=?) ORDER BY `issue`.`created_unix` DESC LIMIT 10 [29 false true] - 1.475099ms
2021/08/27 15:50:39 models/issue_list.go:46:loadRepositories() [I] [SQL] SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `num_projects`, `num_closed_projects`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `trust_model`, `avatar`, `created_unix`, `updated_unix` FROM `repository` WHERE `id` IN (?) [29] - 710.05µs
2021/08/27 15:50:39 models/issue_list.go:93:loadPosters() [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `email_notifications_preference`, `passwd`, `passwd_hash_algo`, `must_change_password`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `language`, `description`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `is_restricted`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `num_teams`, `num_members`, `visibility`, `repo_admin_change_team_access`, `diff_view_style`, `theme`, `keep_activity_private` FROM `user` WHERE `id` IN (?) [2] - 596.144µs
2021/08/27 15:50:39 models/issue_list.go:478:loadAttributes() [I] [SQL] SELECT * FROM `label` LEFT JOIN `issue_label` ON issue_label.label_id = label.id WHERE `issue_label`.`issue_id` IN (?) ORDER BY `label`.`name` ASC [5] - 586.04µs
2021/08/27 15:50:39 models/issue_list.go:199:loadMilestones() [I] [SQL] SELECT `id`, `repo_id`, `name`, `content`, `is_closed`, `num_issues`, `num_closed_issues`, `completeness`, `created_unix`, `updated_unix`, `deadline_unix`, `closed_date_unix` FROM `milestone` WHERE `id` IN (?) [0] - 336.145µs
2021/08/27 15:50:39 models/issue_list.go:486:loadAttributes() [I] [SQL] SELECT * FROM `issue_assignees` INNER JOIN `user` ON `user`.id = `issue_assignees`.assignee_id WHERE `issue_assignees`.`issue_id` IN (?) [5] - 1.034684ms
2021/08/27 15:50:39 models/issue_list.go:490:loadAttributes() [I] [SQL] SELECT `id`, `type`, `status`, `conflicted_files`, `commits_ahead`, `commits_behind`, `changed_protected_files`, `issue_id`, `index`, `head_repo_id`, `base_repo_id`, `head_branch`, `base_branch`, `merge_base`, `has_merged`, `merged_commit_id`, `merger_id`, `merged_unix` FROM `pull_request` WHERE `issue_id` IN (?) [5] - 425.884µs
2021/08/27 15:50:39 models/repo_unit.go:210:getUnitsByRepoID() [I] [SQL] SELECT `id`, `repo_id`, `type`, `config`, `created_unix` FROM `repo_unit` WHERE (repo_id = ?) [29] - 361.457µs
2021/08/27 15:50:39 models/issue_list.go:494:loadAttributes() [I] [SQL] SELECT issue_id, sum(time) as time FROM `tracked_time` WHERE (deleted = ?) AND `issue_id` IN (?) GROUP BY issue_id [false 5] - 377.551µs
2021/08/27 15:50:39 models/issue_list.go:545:getApprovalCounts() [I] [SQL] SELECT issue_id, type, count(id) as `count` FROM `review` WHERE `issue_id` IN (?) AND (official = ? AND dismissed = ?) GROUP BY issue_id, type ORDER BY issue_id [5 true false] - 479.791µs
2021/08/27 15:50:39 ...rm.io/xorm/engine.go:1214:Get() [I] [SQL] SELECT `id`, `uid`, `issue_id`, `is_read`, `is_mentioned` FROM `issue_user` WHERE `uid`=? AND `issue_id`=? LIMIT 1 [2 5] - 388.957µs
2021/08/27 15:50:39 models/issue_list.go:46:loadRepositories() [I] [SQL] SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `num_projects`, `num_closed_projects`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `trust_model`, `avatar`, `created_unix`, `updated_unix` FROM `repository` WHERE `id` IN (?) [29] - 521.822µs
2021/08/27 15:50:39 ...els/commit_status.go:155:getLatestCommitStatus() [I] [SQL] SELECT max( id ) as id FROM `commit_status` WHERE (repo_id = ?) AND (sha = ?) GROUP BY context_hash ORDER BY max( id ) desc LIMIT 30 [29 8d53fa2c93dca2e54097053068feebb61aeecb9a] - 547.915µs
2021/08/27 15:50:39 models/repo.go:550:getAssignees() [I] [SQL] SELECT `id`, `user_id`, `repo_id`, `mode` FROM `access` WHERE (repo_id = ? AND mode >= ?) [29 write] - 338.697µs
2021/08/27 15:50:39 ...odels/issue_label.go:439:getLabelsByRepoID() [I] [SQL] SELECT `id`, `repo_id`, `org_id`, `name`, `description`, `color`, `num_issues`, `num_closed_issues`, `created_unix`, `updated_unix` FROM `label` WHERE (repo_id = ?) ORDER BY `name` ASC [29] - 396.457µs
2021/08/27 15:50:39 ...s/issue_milestone.go:423:GetMilestones() [I] [SQL] SELECT `id`, `repo_id`, `name`, `content`, `is_closed`, `num_issues`, `num_closed_issues`, `completeness`, `created_unix`, `updated_unix`, `deadline_unix`, `closed_date_unix` FROM `milestone` WHERE (repo_id = ?) AND (is_closed = ?) ORDER BY `deadline_unix` ASC, `id` ASC [29 false] - 498.54µs
2021/08/27 15:50:40 models/user.go:1370:getUserByID() [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `email_notifications_preference`, `passwd`, `passwd_hash_algo`, `must_change_password`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `language`, `description`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `is_restricted`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `num_teams`, `num_members`, `visibility`, `repo_admin_change_team_access`, `diff_view_style`, `theme`, `keep_activity_private` FROM `user` WHERE `id`=? LIMIT 1 [2] - 539.113µs
2021/08/27 15:50:40 ...s/issue_stopwatch.go:73:hasUserStopwatch() [I] [SQL] SELECT `id`, `issue_id`, `user_id`, `created_unix` FROM `stopwatch` WHERE (user_id = ?) LIMIT 1 [2] - 434.322µs
2021/08/27 15:50:40 ...rm.io/xorm/engine.go:1214:Get() [I] [SQL] SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `num_projects`, `num_closed_projects`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `trust_model`, `avatar`, `created_unix`, `updated_unix` FROM `repository` WHERE `owner_id`=? AND `lower_name`=? LIMIT 1 [2 my_dotfiles] - 550.675µs
2021/08/27 15:50:40 ...rm.io/xorm/engine.go:1214:Get() [I] [SQL] SELECT `id`, `repo_id`, `user_id`, `mode`, `created_unix`, `updated_unix` FROM `collaboration` WHERE `repo_id`=? AND `user_id`=? LIMIT 1 [29 2] - 316.978µs
2021/08/27 15:50:40 models/repo_unit.go:210:getUnitsByRepoID() [I] [SQL] SELECT `id`, `repo_id`, `type`, `config`, `created_unix` FROM `repo_unit` WHERE (repo_id = ?) [29] - 201.041µs
2021/08/27 15:50:40 ...s/repo_pushmirror.go:97:GetPushMirrorsByRepoID() [I] [SQL] SELECT `id`, `repo_id`, `remote_name`, `interval`, `created_unix`, `last_update`, `last_error` FROM `push_mirror` WHERE (repo_id=?) [29] - 232.499µs
2021/08/27 15:50:40 ...ules/context/repo.go:469:RepoAssignment() [I] [SQL] SELECT count(*) FROM `release` WHERE repo_id=? AND is_draft=? [29 false] - 481.718µs
2021/08/27 15:50:40 ...ules/context/repo.go:476:RepoAssignment() [I] [SQL] SELECT count(*) FROM `release` WHERE repo_id=? AND is_draft=? AND is_tag=? [29 false false] - 450.155µs
2021/08/27 15:50:40 models/org.go:455:getOwnedOrgsByUserID() [I] [SQL] SELECT * FROM `user` INNER JOIN `team_user` ON `team_user`.org_id=`user`.id INNER JOIN `team` ON `team`.id=`team_user`.team_id WHERE (`team_user`.uid=?) AND (`team`.authorize=?) ORDER BY `user`.`name` ASC [2 owner] - 1.215518ms
2021/08/27 15:50:40 models/repo.go:2001:HasForkedRepo() [I] [SQL] SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `num_projects`, `num_closed_projects`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `trust_model`, `avatar`, `created_unix`, `updated_unix` FROM `repository` WHERE (owner_id=? AND fork_id=?) LIMIT 1 [3 29] - 623.123µs
2021/08/27 15:50:40 ...rm.io/xorm/engine.go:1214:Get() [I] [SQL] SELECT `id`, `user_id`, `repo_id`, `mode`, `created_unix`, `updated_unix` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [2 29] - 397.707µs
2021/08/27 15:50:40 ...rm.io/xorm/engine.go:1214:Get() [I] [SQL] SELECT `id`, `uid`, `repo_id`, `created_unix` FROM `star` WHERE `uid`=? AND `repo_id`=? LIMIT 1 [2 29] - 350.729µs
2021/08/27 15:50:40 ...dels/notification.go:716:GetNotificationCount() [I] [SQL] SELECT count(*) FROM `notification` WHERE (user_id = ?) AND (status = ?) [2 1] - 403.853µs
2021/08/27 15:50:40 ...rm.io/xorm/engine.go:1214:Get() [I] [SQL] SELECT `id`, `repo_id`, `index`, `poster_id`, `original_author`, `original_author_id`, `name`, `content`, `milestone_id`, `priority`, `is_closed`, `is_pull`, `num_comments`, `ref`, `deadline_unix`, `created_unix`, `updated_unix`, `closed_unix`, `is_locked` FROM `issue` WHERE `repo_id`=? AND `index`=? LIMIT 1 [29 3] - 392.03µs
2021/08/27 15:50:40 models/repo.go:2001:HasForkedRepo() [I] [SQL] SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `num_projects`, `num_closed_projects`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `trust_model`, `avatar`, `created_unix`, `updated_unix` FROM `repository` WHERE (owner_id=? AND fork_id=?) LIMIT 1 [2 29] - 609.478µs
2021/08/27 15:50:40 models/repo.go:1688:getRepositoryByID() [I] [SQL] SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `num_projects`, `num_closed_projects`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `trust_model`, `avatar`, `created_unix`, `updated_unix` FROM `repository` WHERE `id`=? LIMIT 1 [29] - 559.269µs
2021/08/27 15:50:40 models/user.go:1370:getUserByID() [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `email_notifications_preference`, `passwd`, `passwd_hash_algo`, `must_change_password`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `language`, `description`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `is_restricted`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `num_teams`, `num_members`, `visibility`, `repo_admin_change_team_access`, `diff_view_style`, `theme`, `keep_activity_private` FROM `user` WHERE `id`=? LIMIT 1 [2] - 510.468µs
2021/08/27 15:50:40 ...odels/issue_label.go:571:getLabelsByIssueID() [I] [SQL] SELECT * FROM `label` LEFT JOIN `issue_label` ON issue_label.label_id = label.id WHERE (issue_label.issue_id = ?) ORDER BY `label`.`name` ASC [5] - 437.811µs
2021/08/27 15:50:40 ...els/project_issue.go:45:loadProject() [I] [SQL] SELECT * FROM `project` INNER JOIN `project_issue` ON project.id=project_issue.project_id WHERE (project_issue.issue_id = ?) LIMIT 1 [5] - 422.707µs
2021/08/27 15:50:40 ...s/issue_assignees.go:35:loadAssignees() [I] [SQL] SELECT * FROM `user` INNER JOIN `issue_assignees` ON assignee_id = `user`.id WHERE (issue_assignees.issue_id = ?) [5] - 868.487µs
2021/08/27 15:50:40 ...rm.io/xorm/engine.go:1214:Get() [I] [SQL] SELECT `id`, `type`, `status`, `conflicted_files`, `commits_ahead`, `commits_behind`, `changed_protected_files`, `issue_id`, `index`, `head_repo_id`, `base_repo_id`, `head_branch`, `base_branch`, `merge_base`, `has_merged`, `merged_commit_id`, `merger_id`, `merged_unix` FROM `pull_request` WHERE `issue_id`=? LIMIT 1 [5] - 356.614µs
2021/08/27 15:50:40 models/attachment.go:154:getAttachmentsByIssueID() [I] [SQL] SELECT `id`, `uuid`, `issue_id`, `release_id`, `uploader_id`, `comment_id`, `name`, `download_count`, `size`, `created_unix` FROM `attachment` WHERE (issue_id = ? AND comment_id = 0) [5] - 410.363µs
2021/08/27 15:50:40 ...els/issue_comment.go:1025:findComments() [I] [SQL] SELECT `id`, `type`, `poster_id`, `original_author`, `original_author_id`, `issue_id`, `label_id`, `old_project_id`, `project_id`, `old_milestone_id`, `milestone_id`, `time_id`, `assignee_id`, `removed_assignee`, `assignee_team_id`, `resolve_doer_id`, `old_title`, `new_title`, `old_ref`, `new_ref`, `dependent_issue_id`, `commit_id`, `line`, `tree_path`, `content`, `patch`, `created_unix`, `updated_unix`, `commit_sha`, `review_id`, `invalidated`, `ref_repo_id`, `ref_issue_id`, `ref_comment_id`, `ref_action`, `ref_is_pull` FROM `comment` WHERE comment.issue_id=? ORDER BY `comment`.`created_unix` ASC, `comment`.`id` ASC [5] - 559.061µs
2021/08/27 15:50:40 ...ssue_comment_list.go:35:loadPosters() [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `email_notifications_preference`, `passwd`, `passwd_hash_algo`, `must_change_password`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `language`, `description`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `is_restricted`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `num_teams`, `num_members`, `visibility`, `repo_admin_change_team_access`, `diff_view_style`, `theme`, `keep_activity_private` FROM `user` WHERE `id` IN (?) [2] - 445.051µs
2021/08/27 15:50:40 ...ssue_comment_list.go:489:loadAttributes() [I] [SQL] SELECT `id`, `repo_id`, `org_id`, `name`, `description`, `color`, `num_issues`, `num_closed_issues`, `created_unix`, `updated_unix` FROM `label` WHERE `id` IN (?) [0] - 253.489µs
2021/08/27 15:50:40 ...ssue_comment_list.go:142:loadMilestones() [I] [SQL] SELECT `id`, `repo_id`, `name`, `content`, `is_closed`, `num_issues`, `num_closed_issues`, `completeness`, `created_unix`, `updated_unix`, `deadline_unix`, `closed_date_unix` FROM `milestone` WHERE `id` IN (?) [0] - 315.468µs
2021/08/27 15:50:40 ...ssue_comment_list.go:185:loadOldMilestones() [I] [SQL] SELECT `id`, `repo_id`, `name`, `content`, `is_closed`, `num_issues`, `num_closed_issues`, `completeness`, `created_unix`, `updated_unix`, `deadline_unix`, `closed_date_unix` FROM `milestone` WHERE `id` IN (?) [0] - 286.614µs
2021/08/27 15:50:40 ...ssue_comment_list.go:501:loadAttributes() [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `email_notifications_preference`, `passwd`, `passwd_hash_algo`, `must_change_password`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `language`, `description`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `is_restricted`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `num_teams`, `num_members`, `visibility`, `repo_admin_change_team_access`, `diff_view_style`, `theme`, `keep_activity_private` FROM `user` WHERE `id` IN (?,?) [0 2] - 601.457µs
2021/08/27 15:50:40 ...ssue_comment_list.go:505:loadAttributes() [I] [SQL] SELECT * FROM `attachment` INNER JOIN `comment` ON comment.id = attachment.comment_id WHERE `comment`.`id` IN (?,?) [9 10] - 620.415µs
2021/08/27 15:50:40 ...ssue_comment_list.go:509:loadAttributes() [I] [SQL] SELECT `id`, `type`, `reviewer_id`, `reviewer_team_id`, `original_author`, `original_author_id`, `issue_id`, `content`, `official`, `commit_id`, `stale`, `dismissed`, `created_unix`, `updated_unix` FROM `review` WHERE `id` IN (?) [0] - 249.896µs
2021/08/27 15:50:40 ...ssue_comment_list.go:513:loadAttributes() [I] [SQL] SELECT `id`, `repo_id`, `index`, `poster_id`, `original_author`, `original_author_id`, `name`, `content`, `milestone_id`, `priority`, `is_closed`, `is_pull`, `num_comments`, `ref`, `deadline_unix`, `created_unix`, `updated_unix`, `closed_unix`, `is_locked` FROM `issue` WHERE `id` IN (?) [5] - 231.041µs
2021/08/27 15:50:40 ...ssue_comment_list.go:517:loadAttributes() [I] [SQL] SELECT `id`, `repo_id`, `index`, `poster_id`, `original_author`, `original_author_id`, `name`, `content`, `milestone_id`, `priority`, `is_closed`, `is_pull`, `num_comments`, `ref`, `deadline_unix`, `created_unix`, `updated_unix`, `closed_unix`, `is_locked` FROM `issue` WHERE `id` IN (?) [0] - 240.885µs
2021/08/27 15:50:40 models/repo_unit.go:210:getUnitsByRepoID() [I] [SQL] SELECT `id`, `repo_id`, `type`, `config`, `created_unix` FROM `repo_unit` WHERE (repo_id = ?) [29] - 239.009µs
2021/08/27 15:50:40 models/issue.go:92:loadTotalTimes() [I] [SQL] SELECT COALESCE(sum(`time`),0) FROM `tracked_time` WHERE tracked_time.deleted=? AND issue_id=? [false 5] - 310.26µs
2021/08/27 15:50:40 ...ls/issue_reaction.go:97:findReactions() [I] [SQL] SELECT `id`, `type`, `issue_id`, `comment_id`, `user_id`, `original_author_id`, `original_author`, `created_unix` FROM `reaction` WHERE reaction.issue_id=? AND `reaction`.`type` IN (?,?,?,?,?,?,?,?) ORDER BY `reaction`.`issue_id` ASC, `reaction`.`comment_id` ASC, `reaction`.`created_unix` ASC, `reaction`.`id` ASC [5 +1 -1 laugh hooray confused heart rocket eyes] - 434.322µs
2021/08/27 15:50:40 ...odels/issue_watch.go:63:getIssueWatch() [I] [SQL] SELECT `id`, `user_id`, `issue_id`, `is_watching`, `created_unix`, `updated_unix` FROM `issue_watch` WHERE (user_id = ?) AND (issue_id = ?) LIMIT 1 [2 5] - 293.281µs
2021/08/27 15:50:40 ...rm.io/xorm/engine.go:1214:Get() [I] [SQL] SELECT `id`, `user_id`, `repo_id`, `mode`, `created_unix`, `updated_unix` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [2 29] - 365.833µs
2021/08/27 15:50:40 ...rs/web/repo/issue.go:1143:ViewIssue() [E] RenderString: RenderContext did not provide context
2021/08/27 15:50:41 ...dels/notification.go:716:GetNotificationCount() [I] [SQL] SELECT count(*) FROM `notification` WHERE (user_id = ?) AND (status = ?) [2 1] - 351.613µs
2021/08/27 15:50:42 models/user.go:1370:getUserByID() [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `email_notifications_preference`, `passwd`, `passwd_hash_algo`, `must_change_password`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `language`, `description`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `is_restricted`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `num_teams`, `num_members`, `visibility`, `repo_admin_change_team_access`, `diff_view_style`, `theme`, `keep_activity_private` FROM `user` WHERE `id`=? LIMIT 1 [2] - 742.341µs
2021/08/27 15:50:42 ...s/issue_stopwatch.go:73:hasUserStopwatch() [I] [SQL] SELECT `id`, `issue_id`, `user_id`, `created_unix` FROM `stopwatch` WHERE (user_id = ?) LIMIT 1 [2] - 460.415µs
2021/08/27 15:50:42 models/user.go:1370:getUserByID() [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `email_notifications_preference`, `passwd`, `passwd_hash_algo`, `must_change_password`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `language`, `description`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `is_restricted`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `num_teams`, `num_members`, `visibility`, `repo_admin_change_team_access`, `diff_view_style`, `theme`, `keep_activity_private` FROM `user` WHERE `id`=? LIMIT 1 [2] - 804.789µs
2021/08/27 15:50:42 ...rm.io/xorm/engine.go:1214:Get() [I] [SQL] SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `num_projects`, `num_closed_projects`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `trust_model`, `avatar`, `created_unix`, `updated_unix` FROM `repository` WHERE `owner_id`=? AND `lower_name`=? LIMIT 1 [2 my_dotfiles] - 656.04µs
2021/08/27 15:50:42 ...rm.io/xorm/engine.go:1214:Get() [I] [SQL] SELECT `id`, `repo_id`, `user_id`, `mode`, `created_unix`, `updated_unix` FROM `collaboration` WHERE `repo_id`=? AND `user_id`=? LIMIT 1 [29 2] - 398.332µs
2021/08/27 15:50:42 models/repo_unit.go:210:getUnitsByRepoID() [I] [SQL] SELECT `id`, `repo_id`, `type`, `config`, `created_unix` FROM `repo_unit` WHERE (repo_id = ?) [29] - 390.364µs
2021/08/27 15:50:42 ...onvert/repository.go:94:innerToRepo() [I] [SQL] SELECT count(*) FROM `release` WHERE repo_id=? AND is_draft=? AND is_tag=? [29 false false] - 431.821µs
2021/08/27 15:50:42 models/user.go:1370:getUserByID() [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `email_notifications_preference`, `passwd`, `passwd_hash_algo`, `must_change_password`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `language`, `description`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `is_restricted`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `num_teams`, `num_members`, `visibility`, `repo_admin_change_team_access`, `diff_view_style`, `theme`, `keep_activity_private` FROM `user` WHERE `id`=? LIMIT 1 [2] - 727.602µs
2021/08/27 15:50:42 ...rm.io/xorm/engine.go:1214:Get() [I] [SQL] SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `num_projects`, `num_closed_projects`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `trust_model`, `avatar`, `created_unix`, `updated_unix` FROM `repository` WHERE `owner_id`=? AND `lower_name`=? LIMIT 1 [2 my_dotfiles] - 792.028µs
2021/08/27 15:50:42 ...rm.io/xorm/engine.go:1214:Get() [I] [SQL] SELECT `id`, `repo_id`, `user_id`, `mode`, `created_unix`, `updated_unix` FROM `collaboration` WHERE `repo_id`=? AND `user_id`=? LIMIT 1 [29 2] - 403.852µs
2021/08/27 15:50:42 models/repo_unit.go:210:getUnitsByRepoID() [I] [SQL] SELECT `id`, `repo_id`, `type`, `config`, `created_unix` FROM `repo_unit` WHERE (repo_id = ?) [29] - 392.083µs
2021/08/27 15:50:42 ...onvert/repository.go:94:innerToRepo() [I] [SQL] SELECT count(*) FROM `release` WHERE repo_id=? AND is_draft=? AND is_tag=? [29 false false] - 428.489µs
2021/08/27 15:50:43 ...dels/notification.go:739:GetUIDsAndNotificationCounts() [I] [SQL] SELECT user_id, count(*) AS count FROM notification WHERE user_id IN (SELECT user_id FROM notification WHERE updated_unix >= ? AND updated_unix < ?) AND status = ? GROUP BY user_id [1630050601 1630050641 1] - 864.424µs
2021/08/27 15:50:52 ...s/issue_stopwatch.go:51:GetUserStopwatches() [I] [SQL] SELECT `id`, `issue_id`, `user_id`, `created_unix` FROM `stopwatch` WHERE (stopwatch.user_id = ?) [2] - 419.478µs
2021/08/27 15:50:53 ...dels/notification.go:739:GetUIDsAndNotificationCounts() [I] [SQL] SELECT user_id, count(*) AS count FROM notification WHERE user_id IN (SELECT user_id FROM notification WHERE updated_unix >= ? AND updated_unix < ?) AND status = ? GROUP BY user_id [1630050641 1630050651 1] - 657.394µs
2021/08/27 15:51:02 ...s/issue_stopwatch.go:51:GetUserStopwatches() [I] [SQL] SELECT `id`, `issue_id`, `user_id`, `created_unix` FROM `stopwatch` WHERE (stopwatch.user_id = ?) [2] - 440.259µs
2021/08/27 15:51:03 ...dels/notification.go:739:GetUIDsAndNotificationCounts() [I] [SQL] SELECT user_id, count(*) AS count FROM notification WHERE user_id IN (SELECT user_id FROM notification WHERE updated_unix >= ? AND updated_unix < ?) AND status = ? GROUP BY user_id [1630050651 1630050661 1] - 479.373µs
2021/08/27 15:51:09 ...eful/manager_unix.go:132:handleSignals() [W] PID 1938. Received SIGINT. Shutting down...
2021/08/27 15:51:09 ...eue/queue_channel.go:98:func1() [W] ChannelQueue: task-channel Terminated before completed flushing
2021/08/27 15:51:09 ...eue/queue_channel.go:98:func1() [W] ChannelQueue: push_update-channel Terminated before completed flushing
2021/08/27 15:51:09 ...eue/queue_channel.go:98:func1() [W] ChannelQueue: notification-service-channel Terminated before completed flushing
2021/08/27 15:51:09 ...eful/server_hooks.go:47:doShutdown() [I] PID: 1938 Listener ([::]:3000) closed.
2021/08/27 15:51:09 .../graceful/manager.go:226:doHammerTime() [W] Setting Hammer condition
2021/08/27 15:51:09 cmd/web.go:239:listen() [I] HTTP Listener: 0.0.0.0:3000 Closed
2021/08/27 15:51:09 ...eful/manager_unix.go:132:handleSignals() [W] PID 1938. Received SIGINT. Shutting down...
2021/08/27 15:51:10 ...eful/manager_unix.go:132:handleSignals() [W] PID 1938. Received SIGINT. Shutting down...
2021/08/27 15:51:10 .../graceful/manager.go:243:doTerminate() [W] Terminating
2021/08/27 15:51:10 ...er/issues/indexer.go:169:2() [I] PID: 1938 Issue Indexer closed
2021/08/27 15:51:10 cmd/web.go:156:runWeb() [I] PID: 1938 Gitea Web Finished

I find 2021/08/27 15:50:40 ...rs/web/repo/issue.go:1143:ViewIssue() [E] RenderString: RenderContext did not provide context
I dont konk this mens?

Description

...

i creta a Pull requests ,then i open a link ,i get a 500 error

i run gitea doctor recreate-table ,but it alse get it

Screenshots

hQpjsS.md.png

hQ9goj.md.png

@zeripath
Copy link
Contributor

What is interesting here is that the only way this error is reported is if an external renderer is used.

What is your app.ini?

@jue-jue-zi
Copy link

jue-jue-zi commented Aug 27, 2021

I also met the 500 error problem when I opened the issue page of the repositories. After I remove these configs in app.ini, the 500 error seems to be fixed.

[markup.asciidoc]
ENABLED = true
FILE_EXTENSIONS = .adoc,.asciidoc
RENDER_COMMAND = "asciidoctor -s -a showtitle --out-file=- -"
; Input is not a standard input but a file
IS_INPUT_FILE = false

[markup.jupyter]
ENABLED = true
FILE_EXTENSIONS = .ipynb
RENDER_COMMAND = "jupyter nbconvert --stdout --to html --template basic "
IS_INPUT_FILE = true

[markup.restructuredtext]
ENABLED = true
FILE_EXTENSIONS = .rst
RENDER_COMMAND = "timeout 30s pandoc +RTS -M512M -RTS -f rst"
IS_INPUT_FILE = false

[markup.sanitizer.TeX]
; Pandoc renders TeX segments as <span>s with the "math" class, optionally
; with "inline" or "display" classes depending on context.
ELEMENT = span
ALLOW_ATTR = class
REGEXP = ^\s*((math(\s+|$)|inline(\s+|$)|display(\s+|$)))+

[markup.markdown]
ENABLED         = true
FILE_EXTENSIONS = .md,.markdown
RENDER_COMMAND  = pandoc -f markdown -t html --katex

@zeripath
Copy link
Contributor

Ah as I suspected you have an external renderer for markdown enabled. All of your comments are being rendered through pandoc.

OK, this will need some changes. I suspect the simplest thing to do will be to put a fallback context in.

zeripath added a commit to zeripath/gitea that referenced this issue Aug 27, 2021
It is possible for RenderString to be passed to an external renderer if markdown
is set to be rendered by an external renderer. No context is currently sent to these
meaning that this will error out.

Fix go-gitea#16835

Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath
Copy link
Contributor

Now the other thing I see is that you are using an external renderer simply to provide katex rendering...

There's another issue for that - but just quickly what is the minimum syntax you require to stop having to use pandoc for this? If we were to simply provide syntax that would render to <span class="math inline"> and <div class="math display"> which could then be tied into javascript katex would that be enough?

@zeripath zeripath added this to the 1.15.1 milestone Aug 27, 2021
@WarlockFish
Copy link
Author

WarlockFish commented Aug 27, 2021

when I close the markup.markdown in app.ini ,the page wording is ok。

;[markup.markdown]
;ENABLED         = true
;FILE_EXTENSIONS = .md,.markdown
;RENDER_COMMAND  = pandoc -f markdown -t html --katex

I get the config file in gitea doc

thank

zeripath added a commit that referenced this issue Aug 28, 2021
* In Render tolerate not being passed a context

It is possible for RenderString to be passed to an external renderer if markdown
is set to be rendered by an external renderer. No context is currently sent to these
meaning that this will error out.

Fix #16835

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add Context to Repo calls for RenderString

All calls from routers can easily add the context - so add it.

Signed-off-by: Andrew Thornton <art27@cantab.net>
6543 pushed a commit to 6543-forks/gitea that referenced this issue Aug 29, 2021
* In Render tolerate not being passed a context

It is possible for RenderString to be passed to an external renderer if markdown
is set to be rendered by an external renderer. No context is currently sent to these
meaning that this will error out.

Fix go-gitea#16835

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add Context to Repo calls for RenderString

All calls from routers can easily add the context - so add it.

Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath added a commit that referenced this issue Aug 29, 2021
* In Render tolerate not being passed a context

It is possible for RenderString to be passed to an external renderer if markdown
is set to be rendered by an external renderer. No context is currently sent to these
meaning that this will error out.

Fix #16835

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add Context to Repo calls for RenderString

All calls from routers can easily add the context - so add it.

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: zeripath <art27@cantab.net>
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants