setting up development environment: git clone stops

Started by planetf1, May 31, 2024, 09:21:35 AM

Previous topic - Next topic
May 31, 2024, 09:21:35 AM Last Edit: May 31, 2024, 09:23:16 AM by planetf1
I've been trying to setup a development environment as per https://docs.opnsense.org/development/workflow.html

As a base I used a clean vm from the latest opnsense image. I've also tried on a clear OpenBSD 14 OS.

I hit the same issue as reported in https://forum.opnsense.org/index.php?topic=5009.msg19937#msg19937 where the git clone hits an error on the src repo

>>> Cloning /usr/src:
Cloning into '/usr/src'...
remote: Enumerating objects: 3352210, done.
remote: Counting objects: 100% (395998/395998), done.
remote: Compressing objects: 100% (112732/112732), done.
error: RPC failed; curl 56 Recv failure: Connection reset by peer
error: 7666 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
*** Error code 128

I use git a lot, but mostly on macos & linux. network is solid, low latenxy ~ 500/70.  I was able to clone the src repo fine on both of these

Oddly, whilst the x86 (via proxmox) VMs failed, a FreeBSD 14 on macoS (arm) succeeded in doing the git clone.

Updating the opnsense dev environment (base+packages) made no difference

I've tried a variety of suggestions to change compression behavior, buffer sizes etc, but these have not been effective so far.

Whilst not opnsense specific, it does look some kind of freebsd issue, perhaps config... Any ideas?

> error: RPC failed; curl 56 Recv failure: Connection reset by peer

There is an issue with the connection. The client thinks the server closed the connection, but I doubt it. So something in between reset the connection for whatever reason. Like a firewall timeout or some sort of "security" scanner.


Cheers,
Franco