Release of 1.5.2

11 views
Skip to first unread message

Antonio Macrì

unread,
Aug 11, 2022, 1:53:55 PM8/11/22
to klaus-users
The latest docker image I see (https://hub.docker.com/r/jonashaag/klaus/tags) is 1.5.1, not aligned with the 1.5.2 python package.

Is that expected?

Jonas Haag

unread,
Aug 20, 2022, 5:20:22 AM8/20/22
to klaus...@googlegroups.com


> On 11. Aug 2022, at 19:53, Antonio Macrì <ing.anto...@gmail.com> wrote:
>
> The latest docker image I see (https://hub.docker.com/r/jonashaag/klaus/tags) is 1.5.1, not aligned with the 1.5.2 python package.
>
> Is that expected?

Thanks for bringing this up. I’m releasing 1.6 now.

Antonio Macrì

unread,
Aug 21, 2022, 5:08:41 AM8/21/22
to klaus-users
Thanks, I saw you released the 2.0.0.

However I'm facing a problem, I use:

FROM jonashaag/klaus:2.0.0
CMD uwsgi --plugin python --protocol http --socket 0.0.0.0:80 -w klaus.contrib.wsgi_autoreload

Whenever I open any repository, I get a 500 with the following log:

fatal: detected dubious ownership in repository at '/repos/reponame'
To add an exception for this directory, call:

        git config --global --add safe.directory /repos/reponame
[2022-08-21 09:03:41,518] ERROR in app: Exception on /reponame/ [GET]
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/flask/app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python3.10/site-packages/flask/app.py", line 1519, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python3.10/site-packages/flask/app.py", line 1517, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python3.10/site-packages/flask/app.py", line 1503, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/usr/lib/python3.10/site-packages/flask/views.py", line 84, in view
    return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/klaus/views.py", line 167, in dispatch_request
    self.make_template_context(repo, namespace, rev, path.strip("/"))
  File "/usr/lib/python3.10/site-packages/klaus/views.py", line 330, in make_template_context
    history = self.context["repo"].history(
  File "/usr/lib/python3.10/site-packages/klaus/repo.py", line 205, in history
    output = subprocess.check_output(cmd, cwd=os.path.abspath(self.path))
  File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', 'log', '--format=%H', '--max-count=11', '49070ad25e4fc6251e3c631b79dc63ea3c5cb0de']' returned non-zero exit status 128.


Should I open an issue?

Jonas Haag

unread,
Aug 21, 2022, 10:50:52 AM8/21/22
to klaus...@googlegroups.com


> On 21. Aug 2022, at 11:08, Antonio Macrì <ing.anto...@gmail.com> wrote:
>
>
> Whenever I open any repository, I get a 500 with the following log:
>
> fatal: detected dubious ownership in repository at '/repos/reponame'

Feel free to open an issue and ping the original author of the Dockerfile. (Hopefully that’s not me :-D)

Antonio Macrì

unread,
Aug 21, 2022, 11:01:55 AM8/21/22
to klaus...@googlegroups.com
Of course, the author it's me! But it's just to show you how I'm running the container.

I use your Dockerfile with that CMD. It works with 1.5.1/1.5.2, but it doesn't with 2.0.0.

I'll open an issue.

--
You received this message because you are subscribed to the Google Groups "klaus-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to klaus-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/klaus-users/25C031AF-D836-47EC-8513-70CBD51BADAD%40lophus.org.
Reply all
Reply to author
Forward
0 new messages