cannot create repo; but can create repo group
Ed Wong
cc at pw-wspx.org
Wed Nov 20 09:13:07 UTC 2024
Hi,
I'm using Kallithea 0.7.99 and am trying to create a
repository under a patches group (as a Kallithea Admin).
The new repo is a git repository.
1) I selected the patches group (which I created earlier)
2) Click on + Add Repository
3) Entered "ccpatches" in the Name field.
4) Changed "Type" to "git"
5) Checked "Copy parent group permissions:"
6) Clicked on Add
Got the error:
"Error creating repository ccpatches"
This is the following log:
2024-11-20 17:10:13.179 DEBUG [sqlalchemy.engine.base.Engine] Col
('repositories_user_id', 'repositories_statistics',
'repositories_downloads', 'repositories_landing_revision',
'repositories_changeset_cache', 'repositories_repo_id',
'repositories_repo_name', 'repositories_repo_state',
'repositories_clone_uri', 'repositories_repo_type',
'repositories_private', 'repositories_description',
'repositories_created_on', 'repositories_updated_on',
'repositories_fork_id', 'repositories_group_id')
2024-11-20 17:10:13.180 DEBUG [kallithea.lib.auth] Getting repository
group permissions for <AuthUser 2: 'ewong'>
2024-11-20 17:10:13.181 INFO [sqlalchemy.engine.base.Engine] SELECT
user_repo_group_to_perm.group_to_perm_id AS
user_repo_group_to_perm_group_to_perm_id,
user_repo_group_to_perm.user_id AS user_repo_group_to_perm_user_id,
user_repo_group_to_perm.group_id AS user_repo_group_to_perm_group_id,
user_repo_group_to_perm.permission_id AS
user_repo_group_to_perm_permission_id, groups_1.group_parent_id AS
groups_1_group_parent_id, groups_1.user_id AS groups_1_user_id,
groups_1.group_id AS groups_1_group_id, groups_1.group_name AS
groups_1_group_name, groups_1.group_description AS
groups_1_group_description, groups_1.created_on AS groups_1_created_on,
permissions_1.permission_id AS permissions_1_permission_id,
permissions_1.permission_name AS permissions_1_permission_name
FROM user_repo_group_to_perm LEFT OUTER JOIN groups AS groups_1 ON
groups_1.group_id = user_repo_group_to_perm.group_id LEFT OUTER JOIN
permissions AS permissions_1 ON permissions_1.permission_id =
user_repo_group_to_perm.permission_id
WHERE user_repo_group_to_perm.user_id = ?
2024-11-20 17:10:13.182 INFO [sqlalchemy.engine.base.Engine] (1,)
2024-11-20 17:10:13.182 DEBUG [sqlalchemy.engine.base.Engine] Col
('user_repo_group_to_perm_group_to_perm_id',
'user_repo_group_to_perm_user_id', 'user_repo_group_to_perm_group_id',
'user_repo_group_to_perm_permission_id', 'groups_1_group_parent_id',
'groups_1_user_id', 'groups_1_group_id', 'groups_1_group_name',
'groups_1_group_description', 'groups_1_created_on',
'permissions_1_permission_id', 'permissions_1_permission_name')
2024-11-20 17:10:13.182 DEBUG [sqlalchemy.engine.base.Engine] Row (1, 1,
1, 7, None, 2, 1, 'code', 'code', '2024-02-29 08:31:35.248400', 7,
'group.read')
2024-11-20 17:10:13.182 DEBUG [sqlalchemy.engine.base.Engine] Row (2, 1,
2, 7, 1, 2, 2, 'code/central', 'central', '2024-02-29 08:33:39.174291',
7, 'group.read')
2024-11-20 17:10:13.182 DEBUG [sqlalchemy.engine.base.Engine] Row (3, 1,
3, 7, 1, 2, 3, 'code/release', 'release', '2024-02-29 08:34:12.091734',
7, 'group.read')
2024-11-20 17:10:13.183 DEBUG [sqlalchemy.engine.base.Engine] Row (4, 1,
4, 7, None, 2, 4, 'infrastructure', 'infrastructure', '2024-02-29
10:30:02.973408', 7, 'group.read')
2024-11-20 17:10:13.183 DEBUG [sqlalchemy.engine.base.Engine] Row (5, 1,
5, 7, 2, 2, 5, 'code/central/patches', 'patches', '2024-03-01
08:28:10.420124', 7, 'group.read')
2024-11-20 17:10:13.183 DEBUG [sqlalchemy.engine.base.Engine] Row (10,
1, 6, 7, None, 2, 6, 'patches', 'patches', '2024-11-20 16:38:49.343218',
7, 'group.read')
2024-11-20 17:10:13.183 DEBUG [kallithea.lib.auth] Checking if user
'ewong' can 'read' repo group 'code' (RepoGroupList): True (has
'group.admin')
2024-11-20 17:10:13.184 DEBUG [kallithea.lib.auth] Checking if user
'ewong' can 'read' repo group 'infrastructure' (RepoGroupList): True
(has 'group.admin')
2024-11-20 17:10:13.184 DEBUG [kallithea.lib.auth] Checking if user
'ewong' can 'read' repo group 'patches' (RepoGroupList): True (has
'group.admin')
2024-11-20 17:10:13.186 DEBUG [kallithea.lib.auth] Getting global
permissions for <AuthUser 2: 'ewong'>
2024-11-20 17:10:13.186 DEBUG [kallithea.lib.auth] Check ewong for
global ('hg.admin',) (access admin main page): True
2024-11-20 17:10:13.188 DEBUG [kallithea.lib.auth] Checking if user
'ewong' can 'admin' repo group None (can write into group index page):
False (has None)
2024-11-20 17:10:13.188 DEBUG [kallithea.lib.auth] Checking if user
'ewong' can 'write' repo group None (can write into group index page):
False (has None)
2024-11-20 17:10:13.188 DEBUG [kallithea.lib.auth] Check ewong for
global ('hg.admin', 'hg.create.repository') (None): True
2024-11-20 17:10:13.188 DEBUG [kallithea.lib.auth] Check ewong for
global ('hg.admin',) (None): True
2024-11-20 17:10:13.189 DEBUG [tg.appwrappers.errorpage]
ErrorPageApplicationWrapper response: / -> 200 @ text/html
2024-11-20 17:10:13.195 DEBUG [tg.support.middlewares] Removing
DBSession from current thread
It's probably something simple; but looking at the log, I'm
not sure why it keeps on checking against the repo group None.
What am I missing?
Any help appreciated,
Ed
More information about the kallithea-general
mailing list