Does git.shakespeare.diy work for you, same software different server?
Thread
Login to reply
Replies (3)
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-relay Instance
A pure HTML example, without dependencies.
ngit-relay Instance
A pure HTML example, without dependencies.
ngit-relay Instance
A pure HTML example, without dependencies.
ngit-relay Instance
A pure HTML example, without dependencies.
ngit-relay Instance
A pure HTML example, without dependencies.
ngit-relay Instance
A pure HTML example, without dependencies.
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.
========================================
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
========================================