<div id="geary-body" dir="auto"><div>Control: retitle -1 gitlab ssh access broken with protobuf 3.10</div><div>Control: severity -1 serious</div></div><div id="geary-quote" dir="auto"><br>On ബു, Nov 13, 2019 at 23:44, Pirate Praveen <praveen@onenetbeyond.org> wrote:<br><blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;">On Mon, 11 Nov 2019 22:15:20 +0530 Pirate Praveen
<<a href="mailto:praveen@onenetbeyond.org">praveen@onenetbeyond.org</a>> wrote:
<blockquote> Control: retitle -1 ssh access fails with gitaly-upload-pack: fatal:
error: %v
On Sat, 2 Nov 2019 14:51:42 +0100 Romain Bignon <<a href="mailto:romain@symlink.me">romain@symlink.me</a>> wrote:
> Hello,
>
> The problem is still here, and is so not related to compatibility between
> versions of gitlab/gitlab-shell/gitality…
>
> Is there anything I can do to find the origin of this issue?
Fortunately or unfortunately the same error hit my instance as well. I'm
digging deeper into it now.
As a workaround you can use https access till we fix this (only ssh
access is affected).
</blockquote>
Found the root cause to be ruby-google-protobuf update from 3.7 to 3.10.
But to actually get it work is tricky.
If we downgrade ruby-google-protobuf to 3.7.1, then gitaly fails to build.
</div></blockquote><span style="white-space: pre-wrap;"><br></span><p data-sourcepos="1:1-1:175" dir="auto"><a href="https://people.debian.org/~praveen/gitlab/" rel="nofollow noreferrer noopener" target="_blank">https://people.debian.org/~praveen/gitlab/</a> has protobuf 3.7 and grpc 1.19. You need to downgrade both and use gitaly 1.59.3+dfsg-1~bpo10+2 (which allows these versions).</p>
<p data-sourcepos="3:1-3:110" dir="auto">And because of <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944698" rel="nofollow noreferrer noopener" target="_blank">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944698</a> you may need to regenrate Gemfile.lock</p>
<pre class="code highlight js-syntax-highlight plaintext white" v-pre="true" lang="plaintext"><code><span id="LC1" class="line" lang="plaintext"># cd /usr/share/gitlab</span>
<span id="LC2" class="line" lang="plaintext"># sudo -u gitlab truncate -s0 Gemfile.lock</span>
<span id="LC3" class="line" lang="plaintext"># sudo -u gitlab bundle install --local</span>
<span id="LC4" class="line" lang="plaintext"># systemctl restart gitlab-sidekiq</span>
<span id="LC5" class="line" lang="plaintext"># systemctl restart gitlab gitaly</span></code></pre><pre class="code highlight js-syntax-highlight plaintext white" v-pre="true" lang="plaintext"><code><span class="line" lang="plaintext"><br></span></code></pre><pre class="code highlight js-syntax-highlight plaintext white" v-pre="true" lang="plaintext"><code><span class="line" lang="plaintext">I had to use a separate repo with protobuf 3.10 and grpc 1.23 -> https://people.debian.org/~praveen/protobuf/ to build gitaly</span></code></pre><pre class="code highlight js-syntax-highlight plaintext white" v-pre="true" lang="plaintext"><code><span class="line" lang="plaintext"><br></span></code></pre><pre class="code highlight js-syntax-highlight plaintext white" v-pre="true" lang="plaintext"><code><span class="line" lang="plaintext">I'm keeping this bug open till we can use same version of protobuf for both gitaly build and gitlab. I have opened https://gitlab.com/gitlab-org/gitaly/issues/2164 to work with upstream on this</span></code></pre></div>