<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Hi</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 6/10/21 9:25 AM, 김태호 wrote:<br>
</div>
<blockquote type="cite"
cite="mid:20210610072602.2014.64403@me226.mailplug.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style>p{margin-top:0px;margin-bottom:0px;}</style>
<div name="mp-default"
style="font-family:돋움,Dotum;font-size:10pt;"><b>>>
Question 1</b>
<p><br>
</p>
<p>We are constantly getting this kind of log as following (at
WARNING level) : </p>
<p>...</p>
<p>2021-06-10 07:04:42.989 ERROR
[kallithea.lib.auth_modules.auth_internal] user admin had a
bad password</p>
<p>2021-06-10 07:04:42.989 WARNI [kallithea.lib.auth_modules]
User `admin` failed to authenticate against
kallithea.lib.auth_modules.auth_internal</p>
<p>2021-06-10 07:04:48.507 WARNI [kallithea.lib.auth] user is
anonymous and NOT authenticated with regular auth @
HomeController:index</p>
<p>2021-06-10 07:04:48.853 WARNI [kallithea.lib.auth] user is
anonymous and NOT authenticated with regular auth @
HomeController:index</p>
<p>2021-06-10 07:05:18.535 WARNI [kallithea.lib.auth] user is
anonymous and NOT authenticated with regular auth @
HomeController:index</p>
<p>2021-06-10 07:05:18.848 WARNI [kallithea.lib.auth] user is
anonymous and NOT authenticated with regular auth @
HomeController:index</p>
<p>2021-06-10 07:05:48.560 WARNI [kallithea.lib.auth] user is
anonymous and NOT authenticated with regular auth @
HomeController:index</p>
<p>2021-06-10 07:05:48.859 WARNI [kallithea.lib.auth] user is
anonymous and NOT authenticated with regular auth @
HomeController:index</p>
<p>2021-06-10 07:06:18.592 WARNI [kallithea.lib.auth] user is
anonymous and NOT authenticated with regular auth @
HomeController:index</p>
<p>2021-06-10 07:06:18.865 WARNI [kallithea.lib.auth] user is
anonymous and NOT authenticated with regular auth @
HomeController:index</p>
<p>2021-06-10 07:06:39.255 WARNI [kallithea.lib.auth_modules]
User `member1` failed to authenticate against
kallithea.lib.auth_modules.auth_crowd</p>
<p>2021-06-10 07:06:45.635 WARNI [kallithea.lib.auth_modules]
User `<span style="font-size: 13.3333px;">member1</span>`
failed to authenticate against
kallithea.lib.auth_modules.auth_crowd</p>
<p>2021-06-10 07:06:48.719 WARNI [kallithea.lib.auth] user is
anonymous and NOT authenticated with regular auth @
HomeController:index</p>
<p>2021-06-10 07:06:48.884 WARNI [kallithea.lib.auth] user is
anonymous and NOT authenticated with regular auth @
HomeController:index</p>
<p>[2021-06-10 07:07:10 +0000] [5664] [INFO] Handling signal:
winch</p>
<p>2021-06-10 07:07:18.640 WARNI [kallithea.lib.auth] user is
anonymous and NOT authenticated with regular auth @
HomeController:index</p>
<p>2021-06-10 07:07:18.911 WARNI [kallithea.lib.auth] user is
anonymous and NOT authenticated with regular auth @
HomeController:index</p>
<p>2021-06-10 07:07:22.535 WARNI [kallithea.lib.auth_modules]
User `<span style="font-size: 13.3333px;">member1</span>`
failed to authenticate against
kallithea.lib.auth_modules.auth_crowd</p>
<p>2021-06-10 07:07:28.507 WARNI [kallithea.lib.auth_modules]
User `<span style="font-size: 13.3333px;">member1</span>`
failed to authenticate against
kallithea.lib.auth_modules.auth_crowd</p>
<p>...</p>
<p><br>
</p>
<p>I wonder why the log prints that the authentication
failed even if login is successful.</p>
</div>
</blockquote>
<p><br>
</p>
<p>It is very possible that some of the logging statements in the
code are too verbose. The code path might seem warning-ish when
looking at the particular function, but perhaps less relevant when
used in production. We can fix that.</p>
<p><br>
</p>
<p>For example, I noticed that one of the messages seems too verbose
and not helpful, so I will propose something like
<a class="moz-txt-link-freetext" href="https://kallithea-scm.org/repos/kallithea-incoming/changeset/2b37222f8d71">https://kallithea-scm.org/repos/kallithea-incoming/changeset/2b37222f8d71</a>
for next release.</p>
<p><br>
</p>
<p>Even if not a Python programmer, it should be possible for you to
find the log statements in the code and get an idea under what
circumstances it is emitted. That can provide a good argument why
the logging should be different.<br>
</p>
<p><br>
</p>
<p>For the log entries you show, the timestamps are so different
that it must be for different requests. INFO logging for
[logger_kallithea] will give more context ... but also make the
logging much more verbose and impossible to read if there are
multiple simultaneous requests.</p>
<p><br>
</p>
<p>Can you be more precise about which "wrong" log statements come
from <b>one</b> successful login?</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:20210610072602.2014.64403@me226.mailplug.com">
<div name="mp-default"
style="font-family:돋움,Dotum;font-size:10pt;">
<p><b>>> Question 2</b></p>
<p><b><br>
</b></p>
<p>We changed http_server to waitress to download a large size
file from my kallithea-git.</p>
<p>Also I put larger value for channel_timeout
and max_request_body_size(channel_timeout = 180,
max_request_body_size = 322122547200) in my .ini file.</p>
<p>But I still haven't received the same size file as the next
attached picture.<br>
</p>
<p><br>
</p>
<p><b>But I can still download small size files from Kallithea. </b></p>
<p><img alt="image.16233092690410.png"
src="cid:part1.D8EBEA05.4B280F40@kiilerich.com" style=""
class="" width="314" height="168" border="0"><br>
</p>
</div>
</blockquote>
<p><br>
</p>
<p>(Is this related to the other question asked some days ago? If
so: It is much better to follow up in that thread so we have all
the relevant information in one place, without mixing things up.
And make sure to answer all questions if you want help.)</p>
<p><br>
</p>
<p>Exactly what problem do you see? Can you reproduce it in a test
setup? Can you describe how you think we can reproduce the
problem?<br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:20210610072602.2014.64403@me226.mailplug.com">
<div name="mp-default"
style="font-family:돋움,Dotum;font-size:10pt;">
<p><b>>> Question 3</b></p>
<p>As a guest, whenever I push to git repositoy, the following
error message occurs.</p>
<p><br>
</p>
<p><b>ERROR MESSAGE 1:</b></p>
<p><span style="color: rgb(37, 46, 63); font-family: Arial,
"Nanum Barun Gothic"; font-size: 15px;
background-color: rgb(245, 246, 246);">POST git-receive-pack (642 bytes)</span><br
style="box-sizing: inherit; color: rgb(37, 46, 63);
font-family: Arial, "Nanum Barun Gothic";
font-size: 15px; background-color: rgb(245, 246, 246);">
<span style="color: rgb(37, 46, 63); font-family: Arial,
"Nanum Barun Gothic"; font-size: 15px;
background-color: rgb(245, 246, 246);">remote: Traceback (most recent call last): </span><br
style="box-sizing: inherit; color: rgb(37, 46, 63);
font-family: Arial, "Nanum Barun Gothic";
font-size: 15px; background-color: rgb(245, 246, 246);">
<span style="color: rgb(37, 46, 63); font-family: Arial,
"Nanum Barun Gothic"; font-size: 15px;
background-color: rgb(245, 246, 246);">remote: File "hooks/pre-receive", line 16, in <module> </span><br
style="box-sizing: inherit; color: rgb(37, 46, 63);
font-family: Arial, "Nanum Barun Gothic";
font-size: 15px; background-color: rgb(245, 246, 246);">
<span style="color: rgb(37, 46, 63); font-family: Arial,
"Nanum Barun Gothic"; font-size: 15px;
background-color: rgb(245, 246, 246);">remote: from kallithea.lib.hooks import handle_git_pre_receive as _handler </span><br
style="box-sizing: inherit; color: rgb(37, 46, 63);
font-family: Arial, "Nanum Barun Gothic";
font-size: 15px; background-color: rgb(245, 246, 246);">
<span style="color: rgb(37, 46, 63); font-family: Arial,
"Nanum Barun Gothic"; font-size: 15px;
background-color: rgb(245, 246, 246);">remote: ModuleNotFoundError: No module named 'kallithea'
</span><br style="box-sizing: inherit; color: rgb(37,
46, 63); font-family: Arial, "Nanum Barun Gothic";
font-size: 15px; background-color: rgb(245, 246, 246);">
</p>
<p><span style="color: rgb(37, 46, 63); font-family: Arial,
"Nanum Barun Gothic"; font-size: 15px;
background-color: rgb(245, 246, 246);"><br>
</span></p>
<p style="font-size: 13.3333px;"><b>ERROR MESSAGE 2:</b></p>
<div><span style="color: rgb(37, 46, 63); font-family: Arial,
"Nanum Barun Gothic"; font-size: 15px;
background-color: rgb(245, 246, 246);">Enumerating objects: 46, done.</span><br
style="box-sizing: inherit; color: rgb(37, 46, 63);
font-family: Arial, "Nanum Barun Gothic";
font-size: 15px; background-color: rgb(245, 246, 246);">
<span style="color: rgb(37, 46, 63); font-family: Arial,
"Nanum Barun Gothic"; font-size: 15px;
background-color: rgb(245, 246, 246);">Delta compression using up to 8 threads</span><br
style="box-sizing: inherit; color: rgb(37, 46, 63);
font-family: Arial, "Nanum Barun Gothic";
font-size: 15px; background-color: rgb(245, 246, 246);">
<span style="color: rgb(37, 46, 63); font-family: Arial,
"Nanum Barun Gothic"; font-size: 15px;
background-color: rgb(245, 246, 246);">Total 32 (delta 17), reused 0 (delta 0), pack-reused 0</span><br
style="box-sizing: inherit; color: rgb(37, 46, 63);
font-family: Arial, "Nanum Barun Gothic";
font-size: 15px; background-color: rgb(245, 246, 246);">
<span style="color: rgb(37, 46, 63); font-family: Arial,
"Nanum Barun Gothic"; font-size: 15px;
background-color: rgb(245, 246, 246);">POST git-receive-pack (34113 bytes)</span><br
style="box-sizing: inherit; color: rgb(37, 46, 63);
font-family: Arial, "Nanum Barun Gothic";
font-size: 15px; background-color: rgb(245, 246, 246);">
<span style="color: rgb(37, 46, 63); font-family: Arial,
"Nanum Barun Gothic"; font-size: 15px;
background-color: rgb(245, 246, 246);">Remote: Traceback (most recent call last): </span><br
style="box-sizing: inherit; color: rgb(37, 46, 63);
font-family: Arial, "Nanum Barun Gothic";
font-size: 15px; background-color: rgb(245, 246, 246);">
<span style="color: rgb(37, 46, 63); font-family: Arial,
"Nanum Barun Gothic"; font-size: 15px;
background-color: rgb(245, 246, 246);">Remote: File "hooks/pre-receive", line 16, in <module> </span><br
style="box-sizing: inherit; color: rgb(37, 46, 63);
font-family: Arial, "Nanum Barun Gothic";
font-size: 15px; background-color: rgb(245, 246, 246);">
<span style="color: rgb(37, 46, 63); font-family: Arial,
"Nanum Barun Gothic"; font-size: 15px;
background-color: rgb(245, 246, 246);">Remote: from kallithea.lib.hooks import handle_git_pre_receive as _handler </span><br
style="box-sizing: inherit; color: rgb(37, 46, 63);
font-family: Arial, "Nanum Barun Gothic";
font-size: 15px; background-color: rgb(245, 246, 246);">
<span style="color: rgb(37, 46, 63); font-family: Arial,
"Nanum Barun Gothic"; font-size: 15px;
background-color: rgb(245, 246, 246);">Remote: ModuleNotFoundError: No module named 'kallithea'
</span><br style="box-sizing: inherit; color: rgb(37,
46, 63); font-family: Arial, "Nanum Barun Gothic";
font-size: 15px; background-color: rgb(245, 246, 246);">
</div>
<p><br>
</p>
<p>Why cannot it find the 'kallithea' module?</p>
</div>
</blockquote>
<p><br>
</p>
<p>This hook must have been installed by a previous Kallithea
version. Did you follow
<a class="moz-txt-link-freetext" href="https://kallithea.readthedocs.io/en/default/upgrade.html#reinstall-internal-git-repository-hooks">https://kallithea.readthedocs.io/en/default/upgrade.html#reinstall-internal-git-repository-hooks</a>
?<br>
</p>
<p><br>
</p>
<p>/Mads<br>
</p>
</body>
</html>