'remote' is not a valid copy for 'repo'

8 views
Skip to first unread message

Dirk Heinrichs

unread,
Jul 26, 2021, 5:43:32 AM7/26/21
to gito...@googlegroups.com
Hi,

I'm running a gitlolite setup with mirroring w/o any problems since a
couple of years now, but suddenly I get strange errors when pushing to
a repo copy:

FATAL: master: 'remote' is not a valid copy for 'repo'

I didn't change anything in the setup and

gitolite mirror status remote repo

doesn't show any problem.

Any idea what could be causing this w/o having changed anything in the
configuration since months?

Thanks in advance...

Dirk
--
Dirk Heinrichs <dirk.he...@altum.de>
Matrix-Adresse: @heini:chat.altum.de
GPG Public Key: 80F1540E03A3968F3D79C382853C32C427B48049
Privacy Handbuch: https://www.privacy-handbuch.de
signature.asc

Sitaram Chamarty

unread,
Jul 30, 2021, 10:04:11 PM7/30/21
to Dirk Heinrichs, gito...@googlegroups.com
On Mon, Jul 26, 2021 at 11:43:28AM +0200, Dirk Heinrichs wrote:
> Hi,
>
> I'm running a gitlolite setup with mirroring w/o any problems since a
> couple of years now, but suddenly I get strange errors when pushing to
> a repo copy:
>
> FATAL: master: 'remote' is not a valid copy for 'repo'
>
> I didn't change anything in the setup and
>
> gitolite mirror status remote repo
>
> doesn't show any problem.
>
> Any idea what could be causing this w/o having changed anything in the
> configuration since months?

Sorry for the delay.

I can't think of any reason why that would happen without
something else changing. Perhaps the logs on all the machines
involved have a clue? (Logs are in ~/.gitolite/logs on each
server's hosting userid)

Dirk Heinrichs

unread,
Jul 31, 2021, 10:00:53 AM7/31/21
to gito...@googlegroups.com
Sitaram Chamarty:

I've already checked the logs but they don't contain anything useful. On
the remote, where I push to, it shows:

2021-07-29.15:08:44     2162596 ssh     ARGV=username       
SOC=git-receive-pack 'repo.git'        FROM=ipv6-addr-of-pushing-machine
2021-07-29.15:08:44     2162596 pre_git repo   username     W      
any     refs/.*
2021-07-29.15:08:44     2162596        
mirror,pre_git,repo,user=username,sender=,mode=copy
2021-07-29.15:08:44     2162596         redirect to master

Whereas on the master it shows:

2021-07-29.15:08:45     837852  ssh     ARGV=server-remote      
SOC=USER=username SOC=git-receive-pack 'repo.git'   FROM=ipv6-addr-of-remote
2021-07-29.15:08:45     837852  pre_git repo   username     W      
any     refs/.*
2021-07-29.15:08:45     837852         
mirror,pre_git,repo,user=username,sender=remote,mode=master,redirected
2021-07-29.15:08:45     837852  die     master: 'remote' is not a valid
copy for 'repo'

That's all. The only difference I see from when it last worked was that
the master had "FROM=ipv4-addr-of-remote" instead of
"FROM=ipv6-addr-of-remote". The only "change" I did since then were
package upgrades, followed by a reboot, though. However, gitolite was
last updated in late 2020.

Bye...

Dirk Heinrichs

unread,
Aug 1, 2021, 4:32:21 AM8/1/21
to gito...@googlegroups.com
Dirk Heinrichs:

> That's all. The only difference I see from when it last worked was
> that the master had "FROM=ipv4-addr-of-remote" instead of
> "FROM=ipv6-addr-of-remote". The only "change" I did since then were
> package upgrades, followed by a reboot, though. However, gitolite was
> last updated in late 2020.

Just did another reboot, and everything is working fine again. Strange...
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages