Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#3796 closed defect (fixed)

Git replication appears to be broken

Reported by: robe Owned by: strk
Priority: blocker Milestone: Website Management, Bots
Component: postgis Version: master
Keywords: Cc:

Description (last modified by robe)

I pushed a commit yesterday and gitlabs, dronie, github, debbie, and winnie are showing last commit from a week ago.

I'm thinking of switching debbie back to svn pull.

Change History (12)

comment:1 by robe, 7 years ago

Owner: changed from pramsey to strk

comment:2 by robe, 7 years ago

Description: modified (diff)

comment:3 by robe, 7 years ago

strk I manually synched. Can you help me finish the setup on debbie, that way things are more centralized and we can get it off running on your computer.

comment:4 by strk, 7 years ago

The problem was that the mirroring daemon was killed. Now restarted. What do you need to finish the setup ? NOTE: I've tweaked the example CGI script not to hang (although it is via the hang that i figured the daemon wasn't running..)

comment:5 by strk, 7 years ago

Resolution: fixed
Status: newclosed

comment:6 by robe, 7 years ago

Well I created an account postgis-git-synch and created a folder /postgis-git-synch that has the stuff synched.

I think I got stuck at that point. e.g. having it synch without me typing in my passwords. I forget whether it was github or gitlab but I think I have one using ssh keys I had created for the account and registered those keys under my account. Let me check where I left off with that.

After that I guess just need to set it up as service. Not sure how to do that in debian.

comment:7 by robe, 7 years ago

ah I remember where I left off. So I had registered the ssh key on my github with no problem. On gogs, it gave me this error:

Sorry, we're not able to verify your SSH key: SSH is disabled

Just tried again.

comment:8 by strk, 7 years ago

Right, Gogs has SSH disabled. You'll need to use https for that. You can configure your git client to store the https password adding the following snippet to your ~/.gitconfig:

[credential]
        helper = store

Then you fetch once to get asked the password, and next time it shoudln't prompt you for one

comment:9 by robe, 7 years ago

Okay I think that did it. So do I just do

make start-daemon

and I'm done or do I have to

comment:10 by strk, 7 years ago

make start-daemon

starts the daemon, but then you need the CGI to receive web hook. How about forgetting about the daemon and the CGI and instead having jenkins take care of that, given it's already signalled of commits ?

(or is jenkins being signalled by git instead of by svn?)

comment:11 by robe, 7 years ago

jenkins is being signaled by svn I think, but it's pulling from git. I'd have to hook in another step on all the jobs to first do a synch and then do the pull. Messy.

I could just switch her back to using svn I guess instead of git and then have the git synch be done after as an after job step. It's trickier to introduce a before step before the repo pull.

comment:12 by robe, 4 years ago

Milestone: Management 2.0Website Management, Bots

Milestone renamed

Note: See TracTickets for help on using tickets.