Skip to content

fetch: SSL error: unknown error #3851

@Zoybean

Description

@Zoybean

Description

During jj git fetch --remote upstream, jj takes over a minute before crashing with an opaque error:
Error: SSL error: unknown error; class=Ssl (16)

Using git directly seems to have resolved the issue when I return to jj.

Terminal output (with a few minor omissions):

> jj git fetch --remote upstream
 19%  14.6 MiB at  96.0 KiB/s [██████████████████████████████████▍                                                                                                                                                ]
Error: SSL error: unknown error; class=Ssl (16)
> jj git fetch --remote upstream
 17%   3.3 MiB at 214.1 KiB/s [██████████████████████████████                                                                                                                                                     ]^C
> jj git fetch --remote upstream
 19%  12.7 MiB at 220.8 KiB/s [██████████████████████████████████                                                                                                                                                 ]
Error: SSL error: unknown error; class=Ssl (16)
> git status
HEAD detached at 9007923b3
nothing to commit, working tree clean
> git fetch upstream
remote: Enumerating objects: 323, done.
remote: Counting objects: 100% (186/186), done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 323 (delta 171), reused 162 (delta 162), pack-reused 137
Receiving objects: 100% (323/323), 350.14 KiB | 563.00 KiB/s, done.
Resolving deltas: 100% (182/182), completed with 81 local objects.
From https://github.com/helix-editor/helix
   9b2cda959..7273f355f  gh-pages                          -> upstream/gh-pages
   889bbefeb..aa1630a41  master                            -> upstream/master
 + 917ada37d...b13999952 reverse-query-precedence-ordering -> upstream/reverse-query-precedence-ordering  (forced update)
> jj git fetch --remote upstream
Abandoned 5 commits that are no longer reachable.
Done importing changes from the underlying Git repo.
branch: pwd@upstream                        [deleted] untracked
branch: reset-diff-change-in-range@upstream [deleted] untracked
Abandoned 2 commits that are no longer reachable.

upstream remote was https://github.com/helix-editor/helix.
Also observed that the progress percentage was inconsistent (if 17% is 3.3 MiB then 19% can't be 12.7 MiB) - I figure the progress is made up, but if not, this could indicate an error.

Steps to Reproduce the Problem

  1. jj git fetch --remote upstream

Expected Behavior

jj quickly fetches the upstream changes

Actual Behavior

jj loads for over a minute before crashing

Specifications

  • Platform: linux mint
  • Version: jj 0.17.1-b1e5ca5348a4f818eeda2d3e307e77dd0936bceb

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions