Issue #307: Creating a new repository results in an infinate loop
Reported by: | Insane |
State: | new |
Created on: | 2018-02-09 19:26 |
Updated on: | 2018-02-10 17:40 |
Description
I've installed kallithea on Ubuntu 16.04. I've set up the location of the repositories at /data/repositories and this directory is owned by the same user that runs kallithea on the system.
When I use the "Add Repository" button in the dashboard, (either a git or hg repository) I am shown a message that says "Repository "test" is being created, you will be redirected when this process is finished. "
However, it never redirects. If I look at the logs, there are 4 lines that are repeated over and over until I navigate to another location.
2018-02-09 13:20:23.191 INFO [kallithea.RequestWrapper] IP: <my IP> Request to /test/crepo_check time: 0.034s 2018-02-09 13:20:24.215 INFO [kallithea.lib.base] IP: <my IP> User: <AuthUser('id:2[fred] auth:True')> accessed /test/crepo_check 2018-02-09 13:20:24.216 INFO [kallithea.lib.auth] user <AuthUser('id:2[fred] auth:True')> authenticated with regular auth @ ReposController:__before__ 2018-02-09 13:20:24.229 INFO [kallithea.lib.auth] user <AuthUser('id:2[fred] auth:True')> authenticated with regular auth @ ReposController:repo_check
On the file system, a repository is not created.
I am able to create repository groups. Those appear on the file system as expected. I am not about to create repositories within the repository groups though.
Attachments
Comments
Comment by Thomas De Schampheleire, on 2018-02-09 20:56
This is not really an infinite loop: the page that says "Repository is being created" polls regularly to the system to see if the repository is already created. This polling is done by accessing a URL, which causes these lines in the log. That by itself is thus normal. It is of course not normal if it happens endlessly.
Are you creating an empty repository, or are you setting a URL to clone from?
Have you already enabled DEBUG logging in the ini file? Near the end of the ini file, set 'level = DEBUG' under the topic '[handler_console]'. Then restart Kallithea and try to create a repository again.
How did you install Kallithea? Which version? Did you enable celery or not?
Comment by Thomas De Schampheleire, on 2018-02-09 20:58
Also, please check for any other warning/error in the log before all this polling happens.
Comment by Mads Kiilerich, on 2018-02-10 17:40
(I am afraid the looping actually might be infinite in some failure situations. We should indeed find this failure situation and fix that.)