Does git.shakespeare.diy work for you, same software different server?
Discussion
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.
Is stuck again with the same error
nostr:nprofile1qqsqvcu68pkfcyq5y9mz9n9u7sys33835rpnuglc6mtg7j4lv40c7ugpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhsz9mhwden5te0wfjkccte9ec8y6tdv9kzumn9wshszrnhwden5te0dehhxtnvdakz7k6tgvl, are you getting the relay timeout error or the git server timeout error? Or both?😂
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
========================================
~> git push https://git.shakespeare.diy/npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6/nostrlib.git
fatal: unable to access 'https://git.shakespeare.diy/npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6/nostrlib.git/': The requested URL returned error: 504
Looking into it