cannot create repo; but can create repo group

Ed Wong cc at pw-wspx.org
Thu Nov 21 00:03:39 UTC 2024


Mads Kiilerich wrote:
> 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.)

I just updated to head and ran the necessary upgrade procedure.

I still get the error.
> 
> 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?
> 

Nope. I don't see that when I ran 'gearbox server -c ./my.ini'.  After
changing to debug=true,  I see something.

2024-11-21 08:12:09.389 ERROR [kallithea.controllers.admin.repos]
Traceback (most recent call last):
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/utils/functional.py",
line 32, in __call__
    return self.__value__
AttributeError: 'ChannelPromise' object has no attribute '__value__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/transport/virtual/base.py",
line 951, in create_channel
    return self._avail_channels.pop()
IndexError: pop from empty list

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/transport/redis.py",
line 1121, in _prepare_virtual_host
    vhost = int(vhost)
ValueError: invalid literal for int() with base 10: 'kallitheavhost'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/www/kallithea/kallithea/controllers/admin/repos.py", line
119, in create
    RepoModel().create(form_result, request.authuser.user_id)
  File "/var/www/kallithea/kallithea/model/repo.py", line 407, in create
    return create_repo(form_data, cur_user)
  File "/var/www/kallithea/kallithea/lib/celerylib/__init__.py", line
61, in f_wrapped
    t = runner.apply_async(args=args, kwargs=kwargs)
  File "/home/kali/venv/lib/python3.9/site-packages/celery/app/task.py",
line 561, in apply_async
    return app.send_task(
  File "/home/kali/venv/lib/python3.9/site-packages/celery/app/base.py",
line 749, in send_task
    amqp.send_task_message(P, name, message, **options)
  File "/home/kali/venv/lib/python3.9/site-packages/celery/app/amqp.py",
line 523, in send_task_message
    ret = producer.publish(
  File "/home/kali/venv/lib/python3.9/site-packages/kombu/messaging.py",
line 186, in publish
    return _publish(
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/connection.py", line
556, in _ensured
    return fun(*args, **kwargs)
  File "/home/kali/venv/lib/python3.9/site-packages/kombu/messaging.py",
line 195, in _publish
    channel = self.channel
  File "/home/kali/venv/lib/python3.9/site-packages/kombu/messaging.py",
line 218, in _get_channel
    channel = self._channel = channel()
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/utils/functional.py",
line 34, in __call__
    value = self.__value__ = self.__contract__()
  File "/home/kali/venv/lib/python3.9/site-packages/kombu/messaging.py",
line 234, in <lambda>
    channel = ChannelPromise(lambda: connection.default_channel)
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/connection.py", line
953, in default_channel
    self._ensure_connection(**conn_opts)
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/connection.py", line
459, in _ensure_connection
    return retry_over_time(
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/utils/functional.py",
line 318, in retry_over_time
    return fun(*args, **kwargs)
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/connection.py", line
934, in _connection_factory
    self._connection = self._establish_connection()
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/connection.py", line
860, in _establish_connection
    conn = self.transport.establish_connection()
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/transport/virtual/base.py",
line 975, in establish_connection
    self._avail_channels.append(self.create_channel(self))
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/transport/virtual/base.py",
line 953, in create_channel
    channel = self.Channel(connection)
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/transport/redis.py",
line 744, in __init__
    self.client.ping()
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/utils/objects.py",
line 40, in __get__
    return super().__get__(instance, owner)
  File "/usr/lib/python3.9/functools.py", line 993, in __get__
    val = self.func(instance)
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/transport/redis.py",
line 1257, in client
    return self._create_client(asynchronous=True)
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/transport/redis.py",
line 1213, in _create_client
    return self.Client(connection_pool=self.async_pool)
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/transport/redis.py",
line 1251, in async_pool
    self._async_pool = self._get_pool(asynchronous=True)
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/transport/redis.py",
line 1217, in _get_pool
    params = self._connparams(asynchronous=asynchronous)
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/transport/redis.py",
line 1191, in _connparams
    connparams['db'] = self._prepare_virtual_host(
  File
"/home/kali/venv/lib/python3.9/site-packages/kombu/transport/redis.py",
line 1123, in _prepare_virtual_host
    raise ValueError(
ValueError: Database is int between 0 and limit - 1, not kallitheavhost

I'm running kallithea behind a proxyhost.  Does this mean (and I'm
grasping at straws) I should move to a mod_wsgi setup?

Thanks

Ed


More information about the kallithea-general mailing list