Thread

Replies (20)

🛡️
Something is wrong. They continue to not work for me: ✔ wss://relay.damus.io no new events ✔ wss://nos.lol no new events ✔ wss://pyramid.fiatjaf.com/ new events: 1 user profile ✔ wss://relay.nostr.band no new events ✘ wss://gitnostr.com timeout after 7s timeout ✔ wss://relay.westernbtc.com/ no new events ✘ wss://relay.ngit.dev timeout after 7s timeout I've tried this a million times in the last hours. My git clone URLs only have stuff up to some old commit and gitworkshop says it's out of sync or something, but `ngit sync` doesn't work either, I keep getting this: 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) (By the way, I keep getting that "1 user profile" every time, I don't know why but it feels wrong.)
I've noticed this in the last few weeks so maybe its that: I'll need to debug further when it happen to Mr again. Are you still getting the same issue?
DanConwayDev's avatar DanConwayDev
`Relay::try_connect` is less reliable at establishing a connection than say nak, or other web based tools. Under certain network conditions, and with specific relays, `Relay::try_connect` will consistantly fail where nak will consistantly succeed (usually after a short delay <2s and the configured timeout). During these periods I can repeat the connection 10+ times. This hasn't been too noticable as connections to other relays pick up the slack but sometimes important events are only on that relay. I started noticing it with v0.43 but it may have been like this for a while. Have you noticed this? Next time this happens I'll try and investigate and debug further.
View quoted note →
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.
🛡️
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: (!) failed to push to : exit status 1 remote: error: cannot push master to 4b2cec9 as nostr state event is at 59bd3c2 To ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://relay.ngit.dev/npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn/nostrlib.git' > pushing to: (!) failed to push to : exit status 1 remote: error: cannot push master to 4b2cec9 as nostr state event is at 59bd3c2 To ! [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.
🛡️
======================================== 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 ========================================
🛡️
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 : relay.ngit.dev/npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6/nostrlib.git failed over https (unauthenticated) failed to list from : gitnostr.com/npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6/nostrlib.git failed over https (unauthenticated) Everything up-to-date