The sound distributed version control system

#2 Error on `anu remote` after a failed `anu clone` of anu repository

Closed on November 10, 2020
fabian on November 6, 2020
name = 'anu'
operating_system = 'unix:Unknown'
crate_version = '1.0.0-alpha'
explanation = '''
Panic occurred in file '/build/anu-1.0.0-alpha-vendor.tar.gz/libanu/src/pristine/sanakirja.rs' at line 71
'''
cause = 'called `Option::unwrap()` on a `None` value'
method = 'Panic'
backtrace = '''

   0: 0x5613c1932072 - anu::commands::pushpull::Remote::run::hadcb70726fb183e4
   1: 0x5613c186f222 - anu::main::{{closure}}::h3db62527d5132518
   2: 0x5613c17d669f - tokio::runtime::enter::Enter::block_on::h5ebb562d9a9f0734
   3: 0x5613c18d2d5b - tokio::runtime::thread_pool::ThreadPool::block_on::he3d3689a48294d55
   4: 0x5613c1822f2a - tokio::runtime::context::enter::h6c589068267f798d
   5: 0x5613c17a2e0c - tokio::runtime::handle::Handle::enter::h0256c01be055fec7
   6: 0x5613c18e7e4d - anu::main::h5beb346ad8e03d72
   7: 0x5613c180d183 - std::rt::lang_start::{{closure}}::h1804f61384e449c4
   8: 0x5613c1f07727 - std::rt::lang_start_internal::h7d1b27a1580794aa
   9: 0x5613c18e7f52 - main
  10: 0x7f0a24e7cc7d - __libc_start_main
  11: 0x5613c174c35a - _start
  12:        0x0 - <unresolved>'''
fabian on November 6, 2020

Seems like anu clone failed in a weird way and data got corrupted in .anu/prestine/db0

``main��``
          0`�https://nest.anu.dev/anu/anu 0@⏎
fabian on November 6, 2020

Doing: anu init on an empty directory and then anu pull on this repo doesn’t produce the same issue. The .anu/prestine/db0 file looks like this:

0 `p@P0 �������`
                main��main��``https://nest.anu.dev/anu/anu/0@P
fabian on November 6, 2020

Error is related to IPv6, connecting via IPv4 works good enough.

pmeunier added a change on November 6, 2020
This change could not be retrieved at the moment
A7JTCA76CNLA3IODP32FEZM7SQKSMAGGGE3AJ3Z6ZIVDUC3AFUMQC
pmeunier on November 6, 2020

The change I just pushed here solves one part of the problem, by first cloning into a temporary directory, and then renaming it.

The IPv6 mystery remains open.

fabian on November 6, 2020

Well this resolves the original issue, IPv6 issues might be on my end or something other than anu so I will close this for now.

Thanks UwU

fabian on November 10, 2020

closing

pmeunier closed this discussion on November 10, 2020