cannot create repo; but can create repo group

Mads Kiilerich mads at kiilerich.com
Wed Nov 20 20:08:31 UTC 2024


On 20/11/2024 10:13, Ed Wong wrote:
> Hi,
>
> I'm using Kallithea 0.7.99 and am trying to create a
> repository under a patches group (as a Kallithea Admin).


(.99 is just a placeholder for the default / development branch. The 
actual commit hash would be more relevant. But I assume you use latest 
head. I just updated the default branch with some fixes that had landed 
on stable. But probably nothing related.)


> 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"


It works for me. I assume it also used to work for you. Something must 
be different...

kallithea/controllers/admin/repos.py:122 shows that a traceback should 
have been logged before showing the error page. Do you not have that 
further up in the log?


> This is the following log:
> ...
> 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.

"None" is the top level repository. This log snippet seems to be from 
rendering the error page to tell you it failed. This is not where the 
actual creation failed. I don't think there is a problem here.

/Mads



More information about the kallithea-general mailing list