2020/10/09 01:37:41 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 174.518µs
2020/10/09 01:37:41 ...m.io/xorm/core/db.go:154:QueryContext() [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 [1602207449<PHONE_NUMBER> 1] - 118.598µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 179.583µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [laowuzongheng-group] - 130.964µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [laowuzongheng-group] - 84.068µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT id, org_id, lower_name, name, description, authorize, num_repos, num_members, includes_all_repositories, can_create_org_repo FROM team WHERE (org_id=?)  OR (owner_id<>? AND (repository.id IN (SELECT access.repo_id FROM access WHERE access.user_id=?) OR repository.id IN (SELECT team_repo.repo_id FROM team_repo INNER JOIN team_user ON team_user.team_id = team_repo.team_id WHERE team_user.uid=?) OR (repository.is_private=? AND repository.owner_id IN (SELECT org_user.org_id FROM org_user INNER JOIN user ON user.id = org_user.org_id WHERE org_user.uid=? AND user.type=? AND user.visibility=?))))) [32 32 32 32 false 32 1 private] - 120.752µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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, 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, avatar, created_unix, updated_unix FROM repository WHERE (owner_id=? OR (owner_id<>? AND (repository.id IN (SELECT access.repo_id FROM access WHERE access.user_id=?) OR repository.id IN (SELECT team_repo.repo_id FROM team_repo INNER JOIN team_user ON team_user.team_id = team_repo.team_id WHERE team_user.uid=?) OR (repository.is_private=? AND repository.owner_id IN (SELECT org_user.org_id FROM org_user INNER JOIN user ON user.id = org_user.org_id WHERE org_user.uid=? AND user.type=? AND user.visibility=?))))) ORDER BY updated_unix DESC LIMIT 15 [32 32 32 32 false 32 1 private] - 172.109µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE (id > 0) AND id IN (?) [32] - 96.519µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT id, repo_id, commit_id, is_primary, language, size, created_unix FROM language_stat WHERE (is_primary = ? AND language != ?) AND repo_id IN (?,?,?,?,?,?,?) [true other 55 58 54 57 56 53 52] - 44.769µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT * FROM org_user  WHERE (uid=?) AND (org_id=?) LIMIT 1 [1 32] - 28.445µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT id, uid, org_id, is_public FROM org_user WHERE (org_id=?) LIMIT 25 [32] - 24.944µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id IN (?,?,?,?,?,?,?,?) ORDER BY name ASC [21 11 24 30 23 27 26 34] - 97.175µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT count() FROM org_user WHERE (org_id=?) [32] - 27.841µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT count() FROM notification WHERE (user_id = ?) AND (status = ?) [1 1] - 50.165µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT id, repo_id, type, config, created_unix FROM repo_unit WHERE (repo_id = ?) [55] - 46.926µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT team.lower_name FROM team_repo INNER JOIN team ON team.id = team_repo.team_id WHERE (team_repo.repo_id = ?) ORDER BY team.lower_name [55] - 41.474µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT id, repo_id, type, config, created_unix FROM repo_unit WHERE (repo_id = ?) [58] - 41.007µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT team.lower_name FROM team_repo INNER JOIN team ON team.id = team_repo.team_id WHERE (team_repo.repo_id = ?) ORDER BY team.lower_name [58] - 38.283µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT id, repo_id, type, config, created_unix FROM repo_unit WHERE (repo_id = ?) [54] - 39.352µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT team.lower_name FROM team_repo INNER JOIN team ON team.id = team_repo.team_id WHERE (team_repo.repo_id = ?) ORDER BY team.lower_name [54] - 38.148µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT id, repo_id, type, config, created_unix FROM repo_unit WHERE (repo_id = ?) [57] - 40.906µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT team.lower_name FROM team_repo INNER JOIN team ON team.id = team_repo.team_id WHERE (team_repo.repo_id = ?) ORDER BY team.lower_name [57] - 35.576µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT id, repo_id, type, config, created_unix FROM repo_unit WHERE (repo_id = ?) [56] - 37.835µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT team.lower_name FROM team_repo INNER JOIN team ON team.id = team_repo.team_id WHERE (team_repo.repo_id = ?) ORDER BY team.lower_name [56] - 41.131µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT id, repo_id, type, config, created_unix FROM repo_unit WHERE (repo_id = ?) [53] - 36.482µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT team.lower_name FROM team_repo INNER JOIN team ON team.id = team_repo.team_id WHERE (team_repo.repo_id = ?) ORDER BY team.lower_name [53] - 38.022µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT id, repo_id, type, config, created_unix FROM repo_unit WHERE (repo_id = ?) [52] - 36.738µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT team.lower_name FROM team_repo INNER JOIN team ON team.id = team_repo.team_id WHERE (team_repo.repo_id = ?) ORDER BY team.lower_name [52] - 36.176µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT * FROM org_user  WHERE (uid=?) AND (org_id=?) AND (is_public=?) LIMIT 1 [34 32 true] - 40.31µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT * FROM org_user  WHERE (uid=?) AND (org_id=?) AND (is_public=?) LIMIT 1 [11 32 true] - 24.464µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT * FROM org_user  WHERE (uid=?) AND (org_id=?) AND (is_public=?) LIMIT 1 [24 32 true] - 20.913µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT * FROM org_user  WHERE (uid=?) AND (org_id=?) AND (is_public=?) LIMIT 1 [27 32 true] - 19.569µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT * FROM org_user  WHERE (uid=?) AND (org_id=?) AND (is_public=?) LIMIT 1 [30 32 true] - 21.964µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT * FROM org_user  WHERE (uid=?) AND (org_id=?) AND (is_public=?) LIMIT 1 [26 32 true] - 19.788µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT * FROM org_user  WHERE (uid=?) AND (org_id=?) AND (is_public=?) LIMIT 1 [21 32 true] - 24.983µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT * FROM org_user  WHERE (uid=?) AND (org_id=?) AND (is_public=?) LIMIT 1 [23 32 true] - 18.768µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 174.318µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [brenda] - 128.346µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 1.794804ms
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 1.428652ms
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 586.717µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 2.282357ms
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [zhengchaoyang] - 132.083µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 111.133µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [laowuzongheng-group] - 95.959µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [lvv_jxzh] - 97.58µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [root] - 96.654µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [lvv] - 98.852µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 155.125µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [chenhd] - 102.985µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 106.926µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [zhangkf] - 97.196µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 110.92µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [jixiezongheng] - 91.642µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 142.13µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [heibaixiangzhi] - 86.038µs
2020/10/09 01:37:44 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 119.146µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 185.331µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [laowuzongheng-group] - 134.276µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT id, org_id, lower_name, name, description, authorize, num_repos, num_members, includes_all_repositories, can_create_org_repo FROM team WHERE (org_id=?)  AND (org_id=?) LIMIT 1 [1 32] - 34.328µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT count() FROM org_user WHERE (org_id=?) [32] - 26.827µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT id, uid, org_id, is_public FROM org_user WHERE (org_id=?) LIMIT 20 [32] - 27.584µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id IN (?,?,?,?,?,?,?,?) ORDER BY name ASC [21 11 24 30 23 27 26 34] - 100.066µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT id, org_id, lower_name, name, description, authorize, num_repos, num_members, includes_all_repositories, can_create_org_repo FROM team WHERE org_id=? AND lower_name=? LIMIT 1 [32 owners] - 65.733µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT id, org_id, team_id, uid FROM team_user WHERE uid IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND (org_id=?) AND (team_id=?) [0 0 0 0 0 0 0 0 34 11 24 27 30 26 21 23 32 4] - 53.213µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT id, uid, secret, scratch_salt, scratch_hash, last_used_passcode, created_unix, updated_unix FROM two_factor WHERE uid IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) [0 0 0 0 0 0 0 0 34 11 24 27 30 26 21 23] - 43.666µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT count() FROM notification WHERE (user_id = ?) AND (status = ?) [1 1] - 41.078µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 174.957µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 108.749µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [lvv] - 289.868µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 101.549µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [root] - 388.209µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 110.398µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 2.940287ms
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 1.274737ms
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [brenda] - 144.64µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [lvv_jxzh] - 107.925µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [zhengchaoyang] - 1.8415ms
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [laowuzongheng-group] - 3.17106ms
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 125.237µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [zhangkf] - 117.127µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 102.015µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [heibaixiangzhi] - 87.785µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 103.879µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [jixiezongheng] - 81.895µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 109.827µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [chenhd] - 69.414µs
2020/10/09 01:37:48 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 139.243µs
2020/10/09 01:37:51 ...m.io/xorm/core/db.go:154:QueryContext() [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 [1602207459<PHONE_NUMBER> 1] - 183.041µs
2020/10/09 01:37:52 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 207.246µs
2020/10/09 01:37:52 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE lower_name=? LIMIT 1 [laowuzongheng-group] - 140.464µs
2020/10/09 01:37:52 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT id, org_id, lower_name, name, description, authorize, num_repos, num_members, includes_all_repositories, can_create_org_repo FROM team WHERE (org_id=?) ORDER BY CASE WHEN name LIKE 'Owners' THEN '' ELSE name END [32] - 72.379µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:36:BeginTx() [I] [SQL] BEGIN TRANSACTION [] - 45.301µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT id, uid, org_id, is_public FROM org_user WHERE (uid=?) AND (org_id=?) LIMIT 1 [11 32] - 32.694µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [32] - 105.049µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT id, org_id, lower_name, name, description, authorize, num_repos, num_members, includes_all_repositories, can_create_org_repo FROM team WHERE org_id=? AND lower_name=? LIMIT 1 [32 owners] - 51.163µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT * FROM team_user  WHERE (org_id=?) AND (team_id=?) AND (uid=?) LIMIT 1 [32 4 11] - 43.456µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT id, org_id, lower_name, name, description, authorize, num_repos, num_members, includes_all_repositories, can_create_org_repo FROM team WHERE org_id=? AND lower_name=? LIMIT 1 [32 owners] - 47.716µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM org_user WHERE id=? AND uid=? AND org_id=? AND id=? [17 11 32 17] - 212.947µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE user SET num_members=num_members-1 WHERE id=? [32] - 76.926µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [11] - 85.791µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT team.id FROM team INNER JOIN team_user ON team_user.team_id = team.id WHERE (team_user.org_id = ?) AND (team_user.uid = ?) [32 11] - 54.582µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT repository.id FROM repository INNER JOIN team_repo ON team_repo.repo_id=repository.id WHERE (team_repo.team_id IN (?)) GROUP BY repository.id,repository.updated_unix ORDER BY updated_unix DESC LIMIT 7 [4] - 63.026µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT id, user_id, repo_id, mode FROM watch WHERE user_id=? AND repo_id=? LIMIT 1 [11 55] - 24.995µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM watch WHERE id=? [208] - 63.847µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE repository SET num_watches = num_watches + ? WHERE id = ? [-1 55] - 54.198µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT id, user_id, repo_id, mode FROM watch WHERE user_id=? AND repo_id=? LIMIT 1 [11 58] - 20.866µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM watch WHERE id=? [210] - 27.708µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE repository SET num_watches = num_watches + ? WHERE id = ? [-1 58] - 35.646µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT id, user_id, repo_id, mode FROM watch WHERE user_id=? AND repo_id=? LIMIT 1 [11 54] - 27.497µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM watch WHERE id=? [209] - 17.609µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE repository SET num_watches = num_watches + ? WHERE id = ? [-1 54] - 27.133µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT id, user_id, repo_id, mode FROM watch WHERE user_id=? AND repo_id=? LIMIT 1 [11 57] - 24.065µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM watch WHERE id=? [207] - 20.137µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE repository SET num_watches = num_watches + ? WHERE id = ? [-1 57] - 28.176µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT id, user_id, repo_id, mode FROM watch WHERE user_id=? AND repo_id=? LIMIT 1 [11 56] - 19.363µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM watch WHERE id=? [206] - 19.46µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE repository SET num_watches = num_watches + ? WHERE id = ? [-1 56] - 30.424µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT id, user_id, repo_id, mode FROM watch WHERE user_id=? AND repo_id=? LIMIT 1 [11 53] - 24.114µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM watch WHERE id=? [212] - 16.088µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE repository SET num_watches = num_watches + ? WHERE id = ? [-1 53] - 32.453µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT id, user_id, repo_id, mode FROM watch WHERE user_id=? AND repo_id=? LIMIT 1 [11 52] - 24.693µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM watch WHERE id=? [211] - 17.038µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE repository SET num_watches = num_watches + ? WHERE id = ? [-1 52] - 38.558µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM access WHERE (user_id = ?) AND repo_id IN (?,?,?,?,?,?,?) [11 55 58 54 57 56 53 52] - 87.921µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT * FROM team INNER JOIN team_user ON team_user.team_id = team.id WHERE (team.org_id = ?) AND (team_user.uid=?) [32 11] - 47.122µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT * FROM team_user  WHERE (org_id=?) AND (team_id=?) AND (uid=?) LIMIT 1 [32 4 11] - 34.574µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT * FROM repository INNER JOIN team_repo ON repository.id = team_repo.repo_id WHERE (team_repo.team_id=?) ORDER BY repository.name [4] - 111.799µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM team_user WHERE org_id=? AND team_id=? AND uid=? [32 4 11] - 102.568µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE team SET num_members = ? WHERE id=? [7 4] - 39.186µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT id, repo_id, user_id, mode FROM collaboration WHERE repo_id=? AND user_id=? LIMIT 1 [56 11] - 22.914µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [32] - 97.604µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT * FROM team INNER JOIN team_repo ON team_repo.team_id = team.id INNER JOIN team_user ON team_user.team_id = team.id WHERE (team.org_id = ?) AND (team_repo.repo_id=?) AND (team_user.uid=?) [32 56 11] - 102.382µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM access WHERE user_id=? AND repo_id=? [11 56] - 21.899µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [11] - 77.763µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT id, repo_id, user_id, mode FROM collaboration WHERE repo_id=? AND user_id=? LIMIT 1 [56 11] - 37.229µs
2020/10/09 01:37:52 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT * FROM org_user  WHERE (uid=?) AND (org_id=?) LIMIT 1 [11 32] - 21.13µs
2020/10/09 01:38:01 ...m.io/xorm/core/db.go:154:QueryContext() [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 [1602207469<PHONE_NUMBER> 1] - 318.773µs
2020/10/09 01:38:09 ...m.io/xorm/core/db.go:154:QueryContext() [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 FROM user WHERE id=? LIMIT 1 [1] - 158.02µs
2020/10/09 01:38:11 ...m.io/xorm/core/db.go:154:QueryContext() [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 [1602207479<PHONE_NUMBER> 1] - 320.057µs
2020/10/09 01:38:21 ...m.io/xorm/core/db.go:154:QueryContext() [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 [1602207489<PHONE_NUMBER> 1] - 151.498µs

Great we must have another deadlock. Are you able to give us some logs from when it happens?
This is one of the rare situations where LOG_SQL = true is helpful too.

After removing the member, the server will not respond. You must restart the service. It may be a deadlock?

@zeripath 🥺

@shenqidebaozi that's just the xorm logs. It's generally easier to trace things through with a merged set of logs.
[database]
LOG_SQL = true ; set to false normally - but this is likely to be one of the rare cases where it useful

...

[log]
MODE=console ; Generally console is easiest to handle but I know some people prefer file
LEVEL=debug ; We're debugging a problem -> so we need DEBUG logs
REDIRECT_MACARON_LOG=true ; This makes for nicer macaron logging and router logging
MACARON=console ; send the macaron logs to the console
ROUTER=console ; send the router logs to the console <- means that I can easily see where the request begins and ends
COLORIZE=false ;  true is prettier but it really depends on how you're going to paste the logs.

PS I have reproduced this config in multiple issues multiple times - could people please read the logging documentation? If the documentation is not clear we can change it but it really appears that no-one even tries to change their logging.

I've cut down the log to the start of the removeOrgUser bit.

Log since the start of removeOrgUser
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:36:BeginTx() [I] [SQL] BEGIN TRANSACTION [] - 45.301µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT `id`, `uid`, `org_id`, `is_public` FROM `org_user` WHERE (uid=?) AND (org_id=?)  LIMIT 1 [32] - 105.049µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT `id`, `org_id`, `lower_name`, `name`, `description`, `authorize`, `num_repos`, `num_members`, `includes_all_repositories`, `can_create_org_repo` FROM `team` WHERE `org_id`=? AND `lower_name`=? LIMIT 1 [32 owners] - 51.163µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT * FROM `team_user`  WHERE (org_id=?) AND (team_id=?) AND (uid=?) LIMIT 1 [32 4 11] - 43.456µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT `id`, `org_id`, `lower_name`, `name`, `description`, `authorize`, `num_repos`, `num_members`, `includes_all_repositories`, `can_create_org_repo` FROM `team` WHERE `org_id`=? AND `lower_name`=? LIMIT 1 [32 owners] - 47.716µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM `org_user` WHERE `id`=? AND `uid`=? AND `org_id`=? AND `id`=? [17 11 32 17] - 212.947µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE `user` SET num_members=num_members-1 WHERE id=? [32] - 76.926µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [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` FROM `user` WHERE `id`=? LIMIT 1 [11] - 85.791µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT `team`.`id` FROM `team` INNER JOIN `team_user` ON `team_user`.team_id = team.id WHERE (`team_user`.org_id = ?) AND (`team_user`.uid = ?) [32 11] - 54.582µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT `repository`.`id` FROM `repository` INNER JOIN `team_repo` ON `team_repo`.repo_id=`repository`.id WHERE (team_repo.team_id IN (?)) GROUP BY `repository`.id,`repository`.updated_unix ORDER BY updated_unix DESC LIMIT 7 [4] - 63.026µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT `id`, `user_id`, `repo_id`, `mode` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [11 55] - 24.995µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM `watch` WHERE `id`=? [208] - 63.847µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE `repository` SET num_watches = num_watches + ? WHERE id = ? [-1 55] - 54.198µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT `id`, `user_id`, `repo_id`, `mode` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [11 58] - 20.866µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM `watch` WHERE `id`=? [210] - 27.708µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE `repository` SET num_watches = num_watches + ? WHERE id = ? [-1 58] - 35.646µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT `id`, `user_id`, `repo_id`, `mode` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [11 54] - 27.497µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM `watch` WHERE `id`=? [209] - 17.609µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE `repository` SET num_watches = num_watches + ? WHERE id = ? [-1 54] - 27.133µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT `id`, `user_id`, `repo_id`, `mode` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [11 57] - 24.065µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM `watch` WHERE `id`=? [207] - 20.137µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE `repository` SET num_watches = num_watches + ? WHERE id = ? [-1 57] - 28.176µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT `id`, `user_id`, `repo_id`, `mode` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [11 56] - 19.363µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM `watch` WHERE `id`=? [206] - 19.46µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE `repository` SET num_watches = num_watches + ? WHERE id = ? [-1 56] - 30.424µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT `id`, `user_id`, `repo_id`, `mode` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [11 53] - 24.114µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM `watch` WHERE `id`=? [212] - 16.088µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE `repository` SET num_watches = num_watches + ? WHERE id = ? [-1 53] - 32.453µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT `id`, `user_id`, `repo_id`, `mode` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [11 52] - 24.693µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM `watch` WHERE `id`=? [211] - 17.038µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE `repository` SET num_watches = num_watches + ? WHERE id = ? [-1 52] - 38.558µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM `access` WHERE (user_id = ?) AND `repo_id` IN (?,?,?,?,?,?,?) [11 55 58 54 57 56 53 52] - 87.921µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT * FROM `team` INNER JOIN `team_user` ON team_user.team_id = team.id WHERE (team.org_id = ?) AND (team_user.uid=?) [32 11] - 47.122µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT * FROM `team_user`  WHERE (org_id=?) AND (team_id=?) AND (uid=?) LIMIT 1 [32 4 11] - 34.574µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT * FROM `repository` INNER JOIN `team_repo` ON repository.id = team_repo.repo_id WHERE (team_repo.team_id=?) ORDER BY repository.name [4] - 111.799µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM `team_user` WHERE `org_id`=? AND `team_id`=? AND `uid`=? [32 4 11] - 102.568µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] UPDATE `team` SET `num_members` = ? WHERE `id`=? [7 4] - 39.186µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT `id`, `repo_id`, `user_id`, `mode` FROM `collaboration` WHERE `repo_id`=? AND `user_id`=? LIMIT 1 [56 11] - 22.914µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [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` FROM `user` WHERE `id`=? LIMIT 1 [32] - 97.604µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT * FROM `team` INNER JOIN `team_repo` ON team_repo.team_id = team.id INNER JOIN `team_user` ON team_user.team_id = team.id WHERE (team.org_id = ?) AND (team_repo.repo_id=?) AND (team_user.uid=?) [32 56 11] - 102.382µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:130:ExecContext() [I] [SQL] DELETE FROM `access` WHERE `user_id`=? AND `repo_id`=? [11 56] - 21.899µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [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` FROM `user` WHERE `id`=? LIMIT 1 [11] - 77.763µs
2020/10/09 01:37:52 ...m.io/xorm/core/tx.go:157:QueryContext() [I] [SQL] SELECT `id`, `repo_id`, `user_id`, `mode` FROM `collaboration` WHERE `repo_id`=? AND `user_id`=? LIMIT 1 [56 11] - 37.229µs
2020/10/09 01:37:52 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT * FROM `org_user`  WHERE (uid=?) AND (org_id=?) LIMIT 1 [11 32] - 21.13µs
2020/10/09 01:38:01 ...m.io/xorm/core/db.go:154:QueryContext() [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 [1602207469<PHONE_NUMBER> 1] - 318.773µs
2020/10/09 01:38:09 ...m.io/xorm/core/db.go:154:QueryContext() [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` FROM `user` WHERE `id`=? LIMIT 1 [1] - 158.02µs
2020/10/09 01:38:11 ...m.io/xorm/core/db.go:154:QueryContext() [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 [1602207479<PHONE_NUMBER> 1] - 320.057µs
2020/10/09 01:38:21 ...m.io/xorm/core/db.go:154:QueryContext() [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 [1602207489<PHONE_NUMBER> 1] - 151.498µs

I've cut down the log to the start of the removeOrgUser bit.
But let's step through things.
The Remove button to remove a team user does a POST to /org/:name/members/action/remove. Routing to:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/routers/routes/routes.go#L549
calling:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/routers/org/members.go#L71-L128
In particular:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/routers/org/members.go#L99
which calls:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L124-L127
calling:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L658-L669
in particular:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L578-L656

Now lets step through the go and map it to the SQL :
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L662-L664
; 2020/10/09 01:37:52
BEGIN TRANSACTION [] - 45.301µs

so now we step into:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L665
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L578-L590
; 2020/10/09 01:37:52
SELECT `id`, `uid`, `org_id`, `is_public` FROM `org_user` WHERE (uid=?) AND (org_id=?) LIMIT 1 [11 32] - 32.694µs

Therefore userID = 11 and orgID = 32
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L591-L594
; 2020/10/09 01:37:52
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` FROM `user` WHERE `id`=? LIMIT 1 [32] - 105.049µs

https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L595-L598
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L339-L340-L347
; 2020/10/09 01:37:52
SELECT `id`, `org_id`, `lower_name`, `name`, `description`, `authorize`, `num_repos`, `num_members`, `includes_all_repositories`, `can_create_org_repo` FROM `team` WHERE `org_id`=? AND `lower_name`=? LIMIT 1 [32 owners] - 51.163µs

https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L348
; 2020/10/09 01:37:52
SELECT * FROM `team_user`  WHERE (org_id=?) AND (team_id=?) AND (uid=?) LIMIT 1 [32 4 11] - 43.456µs

(The owners team for OrgID is clearly 4.)
Presumably UserID 11 is a member the Owners of OrgID 32 because we then immediately get
; 2020/10/09 01:37:52
SELECT `id`, `org_id`, `lower_name`, `name`, `description`, `authorize`, `num_repos`, `num_members`, `includes_all_repositories`, `can_create_org_repo` FROM `team` WHERE `org_id`=? AND `lower_name`=? LIMIT 1 [32 owners] - 47.716µs

which would map to:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L599-L600-L603
Now we are at:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L599-L604
Now presumably t.NumMembers != 1 because we don't see anything that maps to
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L605-L610
So we drop through to:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L611-L615
; 2020/10/09 01:37:52
DELETE FROM `org_user` WHERE `id`=? AND `uid`=? AND `org_id`=? AND `id`=? [17 11 32 17] - 212.947µs

again no err so we see:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L616-L618
; 2020/10/09 01:37:52
UPDATE `user` SET num_members=num_members-1 WHERE id=? [32] - 76.926µs

Now we're at:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L619-L621
Which is:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L762-L784
and causes the following SQL to be emitted:
; 2020/10/09 01:37:52
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` FROM `user` WHERE `id`=? LIMIT 1 [11] - 85.791µs
; 2020/10/09 01:37:52
SELECT `team`.`id` FROM `team` INNER JOIN `team_user` ON `team_user`.team_id = team.id WHERE (`team_user`.org_id = ?) AND (`team_user`.uid = ?) [32 11] - 54.582µs
; 2020/10/09 01:37:52

so back to removeOrgUser
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L625-L628
SELECT `repository`.`id` FROM `repository` INNER JOIN `team_repo` ON `team_repo`.repo_id=`repository`.id WHERE (team_repo.team_id IN (?)) GROUP BY `repository`.id,`repository`.updated_unix ORDER BY updated_unix DESC LIMIT 7 [4] - 63.026µs

https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L629-L633
must cause:
; 2020/10/09 01:37:52
SELECT `id`, `user_id`, `repo_id`, `mode` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [11 55] - 24.995µs
; 2020/10/09 01:37:52
DELETE FROM `watch` WHERE `id`=? [208] - 63.847µs
; 2020/10/09 01:37:52
UPDATE `repository` SET num_watches = num_watches + ? WHERE id = ? [-1 55] - 54.198µs
; 2020/10/09 01:37:52
SELECT `id`, `user_id`, `repo_id`, `mode` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [11 58] - 20.866µs
; 2020/10/09 01:37:52
DELETE FROM `watch` WHERE `id`=? [210] - 27.708µs
; 2020/10/09 01:37:52
UPDATE `repository` SET num_watches = num_watches + ? WHERE id = ? [-1 58] - 35.646µs
; 2020/10/09 01:37:52
SELECT `id`, `user_id`, `repo_id`, `mode` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [11 54] - 27.497µs
; 2020/10/09 01:37:52
DELETE FROM `watch` WHERE `id`=? [209] - 17.609µs
; 2020/10/09 01:37:52
UPDATE `repository` SET num_watches = num_watches + ? WHERE id = ? [-1 54] - 27.133µs
; 2020/10/09 01:37:52
SELECT `id`, `user_id`, `repo_id`, `mode` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [11 57] - 24.065µs
; 2020/10/09 01:37:52
DELETE FROM `watch` WHERE `id`=? [207] - 20.137µs
; 2020/10/09 01:37:52
UPDATE `repository` SET num_watches = num_watches + ? WHERE id = ? [-1 57] - 28.176µs
; 2020/10/09 01:37:52
SELECT `id`, `user_id`, `repo_id`, `mode` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [11 56] - 19.363µs
; 2020/10/09 01:37:52
DELETE FROM `watch` WHERE `id`=? [206] - 19.46µs
; 2020/10/09 01:37:52
UPDATE `repository` SET num_watches = num_watches + ? WHERE id = ? [-1 56] - 30.424µs
; 2020/10/09 01:37:52
SELECT `id`, `user_id`, `repo_id`, `mode` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [11 53] - 24.114µs
; 2020/10/09 01:37:52
DELETE FROM `watch` WHERE `id`=? [212] - 16.088µs
; 2020/10/09 01:37:52
UPDATE `repository` SET num_watches = num_watches + ? WHERE id = ? [-1 53] - 32.453µs
; 2020/10/09 01:37:52
SELECT `id`, `user_id`, `repo_id`, `mode` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [11 52] - 24.693µs
; 2020/10/09 01:37:52
DELETE FROM `watch` WHERE `id`=? [211] - 17.038µs
; 2020/10/09 01:37:52
UPDATE `repository` SET num_watches = num_watches + ? WHERE id = ? [-1 52] - 38.558µs

https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L635
Clearly len(repoIDs) > 0: (it's 7 from the above SQL)
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L636-L642
; 2020/10/09 01:37:52
DELETE FROM `access` WHERE (user_id = ?) AND `repo_id` IN (?,?,?,?,?,?,?) [11 55 58 54 57 56 53 52] - 87.921µs

https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L644-L648
; 2020/10/09 01:37:52
SELECT * FROM `team` INNER JOIN `team_user` ON team_user.team_id = team.id WHERE (team.org_id = ?) AND (team_user.uid=?) [32 11] - 47.122µs

Now we're at the removeTeamMember loop:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L649-L653
Clearly we must have at least one team. So let's look at removeTeamMember:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org_team.go#L883-L941
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org_team.go#L884
; 2020/10/09 01:37:52
SELECT * FROM `team_user`  WHERE (org_id=?) AND (team_id=?) AND (uid=?) LIMIT 1 [32 4 11] - 34.574µs

https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org_team.go#L896
; 2020/10/09 01:37:52
SELECT * FROM `repository` INNER JOIN `team_repo` ON repository.id = team_repo.repo_id WHERE (team_repo.team_id=?) ORDER BY repository.name [4] - 111.799µs

https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org_team.go#L900-L904
; 2020/10/09 01:37:52
DELETE FROM `team_user` WHERE `org_id`=? AND `team_id`=? AND `uid`=? [32 4 11] - 102.568µs

https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org_team.go#L906-L909
; 2020/10/09 01:37:52
UPDATE `team` SET `num_members` = ? WHERE `id`=? [7 4] - 39.186µs

Now we need:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org_team.go#L913
Meaning we need to iterate across the team.Repos
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org_team.go#L914
The first repo is appears to be RepoID 56.
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org_team.go#L915
The first step is to recalculateUserAccess(...):
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/access.go#L279-L324
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/access.go#L286
; 2020/10/09 01:37:52
SELECT `id`, `repo_id`, `user_id`, `mode` FROM `collaboration` WHERE `repo_id`=? AND `user_id`=? LIMIT 1 [56 11] - 22.914µs

https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/access.go#L293
; 2020/10/09 01:37:52
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` FROM `user` WHERE `id`=? LIMIT 1 [32] - 97.604µs

https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/access.go#L297-L302
; 2020/10/09 01:37:52
SELECT * FROM `team` INNER JOIN `team_repo` ON team_repo.team_id = team.id INNER JOIN `team_user` ON team_user.team_id = team.id WHERE (team.org_id = ?) AND (team_repo.repo_id=?) AND (team_user.uid=?) [32 56 11] - 102.382µs

https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/access.go#L316
; 2020/10/09 01:37:52
DELETE FROM `access` WHERE `user_id`=? AND `repo_id`=? [11 56] - 21.899µs

https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/access.go#L318
clearly here accessMode < minMode, so now we drop back to:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org_team.go#L920
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/repo_collaboration.go#L224-L235
So now we look at:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/repo_permission.go#L356-L370
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/repo_permission.go#L360
; 2020/10/09 01:37:52
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` FROM `user` WHERE `id`=? LIMIT 1 [11] - 77.763µs

https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/repo_permission.go#L365
which is:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/repo_permission.go#L145-L272
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/repo_permission.go#L169
; 2020/10/09 01:37:52
SELECT `id`, `repo_id`, `user_id`, `mode` FROM `collaboration` WHERE `repo_id`=? AND `user_id`=? LIMIT 1 [56 11] - 37.229µs

And so we finally come to actual problem:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/repo_permission.go#L181
In particular: HasOrgVisible(repo.Owner, user)
which is:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L424-L426
Note the x in hasOrgVisible(x, org, user)
That causes:
; 2020/10/09 01:37:52
SELECT * FROM `org_user`  WHERE (uid=?) AND (org_id=?) LIMIT 1 [11 32] - 21.13µs

But this query is not in the transaction started all the way up at the top and org_user is locked by:
https://github.com/go-gitea/gitea/blob/40a7660038084dfeb101fb691e7dc1c2c661d24a/models/org.go#L611-L615
And that's a deadlock.
Ceterum autem censeo exempla monstrabit x esse delendam.  - to mangle Cato.

And it is present in master too.

@zeripath I'm very sorry that I didn't see your reply in time, but thank you for solving the problem!


how to exclude dependencies that have test scope from the generated sbom in a java project.

when I run cdxgen -t java -o artifactSBOM.json --spec-version=1.4 on a java project, it gives the message "mvn org.cyclonedx:cyclonedx-maven-plugin:2.8.0:makeAggregateBom -DoutputName=bom -DincludeTestScope=true -q -DschemaVersion=1.4", but I don't want to include the dependencies that have a test scope. how to do that ?

export CDX_MAVEN_INCLUDE_TEST_SCOPE=false

https://github.com/CycloneDX/cdxgen/blob/17b83f9082a65da5f308df978cd0293c6a58627a/utils.js#L120

Thank you, please what about the others scopes : Runtime Scope, Compile Scope, Provided Scope, System Scope, if we want customize the sbom output to include only the Runtime and the compile scope?

Use the MVN_ARGS environment variable to pass additional args.
export MVN_ARGS="-DincludeCompileScope=true -DincludeProvidedScope=false"

https://github.com/CycloneDX/cdxgen/blob/master/index.js#L1226C9-L1226C29

@prabhu Do we have these options available in API? If yes, how can we do that?


Debugging with Flask does not work

Environment data

VS Code version: 1.39.2
OS and version: Windows 10 x64
Python version: Python 3.7.3 / Anaconda 3
Type of virtual environment used: Continuum Anaconda virtualenv, also with base conda

Expected behaviour
Few weeks ago, I could run the flask debugger from my main.py
Actual behaviour
This run is not possible showing the following error: "flask\cli.py", line 742, in _validate_key
is_context = isinstance(cert, ssl.SSLContext)
AttributeError: 'NoneType' object has no attribute 'SSLContext'"
Steps to reproduce:
Please find attached the gif with 3 simple steps

Thanks in advance, kind regards,
Germán

Hi @GermanCM 👋 Thank you for reaching out! I can see you've been redirected here from https://github.com/microsoft/vscode-docs/issues/3076.
I couldn't replicate the issue when following the VS Code Flask tutorial like the original poster and with this setup:

macOS 10.14.6
Python 3.7.4
Anaconda 2019.10 for Python 3.7 (conda 4.7.12)

Do you have a sample project I could use to try and reproduce this issue? Could you also answer the following questions:

Which version of the Python extension are you using?
Does debugging work if you downgrade the extension?
Does debugging work if you use a non-conda virtual environment (venv, pipenv)?
Could you paste the output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)?

Thanks!

Dear @kimadeline, please find below the answers to some of your questions (the ones I could check so far):

Which version of the Python extension are you using? Python 3.7.4, Flask 1.1.1, error message:
flask\cli.py", line 742, in _validate_key is_context = isinstance(cert, ssl.SSLContext)
AttributeError: 'NoneType' object has no attribute 'SSLContext'

Does debugging work if you downgrade the extension? I downgraded to 3.6.9 and the problem remains, but with another error:
numpy_distributor_init.py", line 34, in  from . import _mklinit
ImportError: DLL load failed

Hi @GermanCM ,
It sounds like you downgraded your version of Python (from 3.7.4 to 3.6.9), however what I meant was downgrading the Python extension: Go to the extensions list -> click on the little ⚙ for the Python extension -> Install another version, see here for the documentation.
Do you have a sample project I could use to try and reproduce your issue (the SSLContext one)?

Dear @kimadeline , thanks for your support. It seems to be due to the Python extension in VSCode as you recall, I downgraded this to another one from 4 months ago aprox. and the Flask debugging option started working again. I will try to give access to a test repository with the versions which gave me the issue

I had the same issue on Windows and resolved it by installing the non-light version of OpenSSL from https://slproweb.com/products/Win32OpenSSL.html. This issue might appear only on Windows? Selecting git bash as default shell also did seem to resolve the issue (this was before installing OpenSSL).
Environment data

VS Code version: 1.40.0
Extension version (available under the Extensions sidebar): 2019.10.44104
OS and version: Windows 10 Pro x64 build 18362.418
Python version (& distribution if applicable, e.g. Anaconda): 3.7.5 64-bit, Anaconda
Type of virtual environment used: conda 4.7.12

Hi @R290, thank you for providing a workaround! @GermanCM does @R290 's solution solve your problem?

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.


error in geofirestore update location to firestore

view error
java.lang.NoSuchMethodError: No virtual method set(Ljava/util/Map;Lcom/google/firebase/firestore/SetOptions;)Lcom/google/android/gms/tasks/Task; in class Lcom/google/firebase/firestore/DocumentReference; or its super classes (declaration of 'com.google.firebase.firestore.DocumentReference' appears in /data/app/com.2.cvcvbb-2/base.apk)
    at org.imperiumlabs.geofirestore.GeoFirestore.setLocation(GeoFirestore.java:128)

its is the same issue as #13