<html><head><style>p{margin-top:0px;margin-bottom:0px;}</style></head><body><div name='mp-default' style='font-family:돋움,Dotum;font-size:10pt;'><p>Hello Kallithea </p><p><br></p><p>Thank you for your answer ! </p><p><br></p><p>We have solved Question1 and Question3 but the second one.</p><p><br></p><p>So, let me elaborate on the second question.</p><p><br></p><p>The following attempts have been made to download kallithea-git repository which is about 150MB size:<br></p><p>1. Changed the http_server option from gearbox to waitress.</p><p>This makes it possible to download more files than the gearbox, but the 150MB file still fails.<br></p><p><br></p><p><b>>> Command that I tired.</b></p><p>ubuntu@DESKTOP-VD6IGV2:~$ git clone https://taehokim@scm.dev.my-company.net/my-company-smart/v2/hub-android</p><p>Cloning into 'hub-android'...</p><p>Password for 'https://taehokim@<span style="font-size: 13.3333px;">scm.dev.my-company</span><span style="font-size: 13.3333px;">.net</span>:</p><p>error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504</p><p>fatal: the remote end hung up unexpectedly</p><p><br></p><p><br></p><p>2. git config -> http.postbuffer=524288000</p><p>It did not work at all...</p><p>I wonder if it only works for git push command.</p><p><br></p><p>3. Nginx </p><p>I thought Nginx possibly could solve this problem so I applied this to my server : </p><p>https://kallithea.readthedocs.io/en/default/setup.html#nginx-virtual-host-example </p><p><br></p><p>then it leaves log (kallithea.access.log) as following:</p><p>13.209.204.126 - - [11/Jun/2021:07:59:04 +0000] "GET /<span style="font-size: 13.3333px;">my-company</span>-Smart/v2/hub-android/info/refs?service=git-upload-pack HTTP/1.1" 401 448 "-" "git/2.25.1"</p><p>13.209.204.126 - admin [11/Jun/2021:07:59:04 +0000] "GET /<span style="font-size: 13.3333px;">my-company</span>-Smart/v2/hub-android/info/refs?service=git-upload-pack HTTP/1.1" 401 448 "-" "git/2.25.1"</p><p>13.209.204.126 - admin [11/Jun/2021:07:59:06 +0000] "GET /<span style="font-size: 13.3333px;">my-company</span>-Smart/v2/hub-android/info/refs?service=git-upload-pack HTTP/1.1" 200 7807 "-" "git/2.25.1"</p><p><br></p><p>4. Changed repository setting</p><p>I changed <b>enable downloads </b>option. (checked the box) So I could download the zip file. </p><p>I don't think I can keep using this because all my coworkers using Sourcetree app. But </p><p>But I think it's going to be a clue to solve this problem.<br></p><p><br></p><p>Please let me know if you need me to try something else or more information.</p><p><br></p><p>Thank you again !</p><p><br></p><p><br></p></div><font style="font-family:돋움,Dotum;font-size:10pt;">----- Original Message -----<br>From : Mads Kiilerich <mads@kiilerich.com><br>To : "김태호" <taehokim@hicare.net>, <kallithea-general@sfconservancy.org><br>Cc : "박정환" <jeonghwan.park@hicare.net><br>Sent : 2021-06-10 21:26:19<br>Subject : Re: Authentication log Questions<br><br><br></font>
  
    
  
  
    <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">
      
      
      <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 target="_blank" 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:50be00fa63bd9439394194a34711639f@lw000000" 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 target="_blank" 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><p style="text-align: left;"><br></p><p style="text-align: left;"></p></body></html><img src="http://mail.hicare.net/api/notify.php?home=MjAyMTA2MTExOTA3MDJ8a2FsbGl0aGVhLWdlbmVyYWxAc2Zjb25zZXJ2YW5jeS5vcmd8dGFlaG9raW1AaGljYXJlLm5ldA==">