Yes, same issues.

I can git clone and nak req from them normally, so they aren't unreachable.

Reply to this note

Please Login to reply.

Discussion

I've noticed this in the last few weeks so maybe its that:

nostr:nevent1qqszn6ry86u7z6qxyxeq98qgaxnruhpetg6la6rt3gl6dl0hf0a2edc5c33kd

I'll need to debug further when it happen to Mr again. Are you still getting the same issue?

Still happens every single time. I have no idea of what to do. It wasn't like that before, then it started happening without me changing anything. It also happens on other ngit/grasp codebases. Yesterday I updated ngit to the latest master to see if something was fixed, but the problem remained.

Do you get the same error with older versions of ngit? The last time rust-nostr changed the connection logic was v0.39 according to the change log and its on v0.44 now. I only noticed this as an intermittent problem in the last 2 weeks. It effected connecting to other relays but never all the repo relays at once. This makes me think its a rust-nostr/ngit ssue rather than a problem at the relay end. I bumped master to rust-nostr v0.44.1 yesterday.

I was getting it yesterday with my old ngit version (like from 2 or more months before that I had been using without any issues). I only updated after I started getting the bug.

I was trying with a VPN, but I also tried without the VPN, the result was always the same.

Sometimes (rarely) I get a green check on one of the two grasp servers:

~> git push

nostr: fetching...

✔ wss://gitnostr.com no new events

✔ wss://relay.damus.io no new events

✘ wss://relay.ngit.dev timeout after 7s timeout

✔ wss://nos.lol no new events

✔ wss://pyramid.fiatjaf.com/ new events: 1 user profile

✔ wss://relay.westernbtc.com/ no new events

✔ wss://relay.nostr.band no new events nostr updates: 1 user profile

fetching relay.ngit.dev/npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6/nostrlib.git ref list over https (unauthenticated)...

list: connecting...

list: failed: failed to connect to relay.ngit.dev: Operation timed out; class=Net (12)

fetching gitnostr.com/npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6/nostrlib.git ref list over https (unauthenticated)...

list: connecting...

list: failed: failed to connect to gitnostr.com: Operation timed out; class=Net (12)

Everything up-to-date

But the push fails anyway.

Does git.shakespeare.diy work for you, same software different server?

I'm not sure how I can add that. What is the ngit command I need?

In the meantime I cooked up my own gitpusher and I get these errors trying to push with it:

Found nostr remote: npub=npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6, relay=relay.ngit.dev, identifier=nostrlib

Querying relay: wss://relay.ngit.dev

Found 5 events

Found announcement event: id::9a232a6aab42c073a6423d6324271ce13694b4ea29e43d00c8b4fa059bb0c2a5

Found state event: id::e44e0f98750f943b215ffe09c1034bc5d95ea36a487d36e84f2764915740e118

Current branch: master, commit: 4b2cec9c6d68b01aa40a0457f623afc932faac02

> setting branch master to commit 4b2cec9c6d68b01aa40a0457f623afc932faac02

> publishing updated repository state id::19167b21dbe3cc93451769dbbfedf5684829fd06933d774aa2974d763092a62f

> published to relay wss://relay.ngit.dev

> published to relay wss://nos.lol

> published to relay wss://relay.nostr.band

> published to relay wss://gitnostr.com

(!) error publishing event to relay wss://relay.damus.io: publish: given up waiting for an OK

> pushing to: https://relay.ngit.dev/npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn/nostrlib.git

(!) failed to push to https://relay.ngit.dev/npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn/nostrlib.git: exit status 1

remote: error: cannot push master to 4b2cec9 as nostr state event is at 59bd3c2

To https://relay.ngit.dev/npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn/nostrlib.git

! [remote rejected] master -> master (pre-receive hook declined)

error: failed to push some refs to 'https://relay.ngit.dev/npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn/nostrlib.git'

> pushing to: https://gitnostr.com/npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn/nostrlib.git

(!) failed to push to https://gitnostr.com/npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn/nostrlib.git: exit status 1

remote: error: cannot push master to 4b2cec9 as nostr state event is at 59bd3c2

To https://gitnostr.com/npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn/nostrlib.git

! [remote rejected] master -> master (pre-receive hook declined)

error: failed to push some refs to 'https://gitnostr.com/npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn/nostrlib.git'

Apparently the pre-receive hooks are denying my pushes because they have the wrong state.

But if I query the state directly from wss://relay.ngit.dev and wss://gitnostr.com I get 312cc32da517b290a09532e23a103745cb9f4cd4 for one and 4b2cec9c6d68b01aa40a0457f623afc932faac02 for the other. "4b2c" is the correct one (the commit I'm trying to push), "312c" is a totally unrelated one (not even mentioned in the error message).

So there seems to be some mismatch between the state events and the internal state of the pre-receive hook.

Did some testing again.

Just pushed one commit 015d686c13a09abffb097d9fffd88bc82a30259d to https://gitworkshop.dev/sebastix.dev/why-nostr-needs-noderunners (git remote url is nostr://_@sebastix.dev/nos.lol/why-nostr-needs-noderunners)

Now everything seems to be working fine :)

There seems to be a range of issues going on here. I identified a permissions issue resulting from a data migration which may have fixed the nostrlib repo on gitnostr.com and relay.ngit.dev it for now(?). I'm building a better grasp implementation contained within a single binary which should be easier to debug.

The error reasons have changed now:

~> git push

nostr: fetching...

✔ wss://pyramid.fiatjaf.com new events: new state

✔ wss://relay.westernbtc.com/ no new events

✔ wss://nos.lol no new events

✘ wss://relay.ngit.dev timeout after 7s timeout

✘ wss://relay.nostr.band timeout after 7s timeout

✔ wss://relay.damus.io no new events

✘ wss://gitnostr.com timeout after 7s timeout nostr updates: new state

git servers: listing refs...

✔ pyramid.fiatjaf.com/npub...jh6w6/nostrlib.git in sync

✘ relay.ngit.dev/npub...jh6w6/nostrlib.git relay.ngit.dev/npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6/nostrlib.git failed over https (unauthenticated)

✘ gitnostr.com/npub...jh6w6/nostrlib.git gitnostr.com/npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6/nostrlib.git failed over https (unauthenticated) failed to list from https://relay.ngit.dev/npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6/nostrlib.git: relay.ngit.dev/npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6/nostrlib.git failed over https (unauthenticated)

failed to list from https://gitnostr.com/npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6/nostrlib.git: gitnostr.com/npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6/nostrlib.git failed over https (unauthenticated)

Everything up-to-date

========================================

NGIT SYNC COMMAND

========================================

fetching updates...

✔ wss://git.shakespeare.diy no new events

✔ wss://relay.nostr.band no new events

✔ wss://relay.damus.io no new events

✘ wss://gitnostr.com timeout after 7s timeout

✔ wss://nos.lol no new events

✔ wss://relay.westernbtc.com/ no new events

✔ wss://pyramid.fiatjaf.com/ new events: 1 user profile

✘ wss://relay.ngit.dev timeout after 7s timeout updates: 1 user profile

fetching relay.ngit.dev/npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6/nostrlib.git ref list over https (unauthenticated)...

list: connecting...

list: failed: failed to connect to relay.ngit.dev: Operation timed out; class=Net (12)

fetching gitnostr.com/npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6/nostrlib.git ref list over https (unauthenticated)...

list: connecting...

list: failed: failed to connect to gitnostr.com: Operation timed out; class=Net (12)

fetching git.shakespeare.diy/npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6/nostrlib.git ref list over https (unauthenticated)...

list: connecting...

list: failed: SSL error: syscall failure: Resource temporarily unavailable; class=Os (2)

========================================

END OF NGIT SYNC OUTPUT

========================================