gitlab 10.6.4-0051 upgrade

The discussion lounge for third-party packages.
Forum rules
Synology Community is the new platform for the enthusiasts' interaction, and it will soon be available to replace the Forum.
algodata
I'm New!
I'm New!
Posts: 3
Joined: Fri Jul 13, 2018 6:36 am

gitlab 10.6.4-0051 upgrade

Unread post by algodata » Fri Jul 13, 2018 10:53 am

The last upgrade mention that the data will be migrate from MariaDB to PGsql automatically.

But it doesn't so we do not have accès to our repository anymore.

Is there a way to migrated data by our own ?

loure
I'm New!
I'm New!
Posts: 1
Joined: Fri Jul 13, 2018 12:41 pm

Re: gitlab 10.6.4-0051 upgrade

Unread post by loure » Fri Jul 13, 2018 12:44 pm

I have the same problem. Need help to migrate data between databases

snakedoctor13
Novice
Novice
Posts: 43
Joined: Mon Oct 04, 2010 4:19 pm

Re: gitlab 10.6.4-0051 upgrade

Unread post by snakedoctor13 » Fri Jul 13, 2018 8:28 pm

Same here. I should have wait..
It sounds like the db migration did not work.

spiTcz
I'm New!
I'm New!
Posts: 2
Joined: Sun Aug 31, 2014 5:25 pm

Re: gitlab 10.6.4-0051 upgrade

Unread post by spiTcz » Sat Jul 14, 2018 7:45 am

same problem ...

snakedoctor13
Novice
Novice
Posts: 43
Joined: Mon Oct 04, 2010 4:19 pm

Re: gitlab 10.6.4-0051 upgrade

Unread post by snakedoctor13 » Sun Jul 15, 2018 10:11 pm

I tried to migrate the data accordingly to the Gitlab documentation but I faced weird problems
https://gitlab.com/gitlab-org/gitlab-ce ... tgresql.md
I had to delete some columns because the pgloader was raising an error saying that the column didn't exist in postgres schema.
I managed to make pgloader work and I could see my repositories in Gitlab but Gitlab has some weird behaviours now. My guess is that''s because of the data I lost during migration. I can't even push on my repos..

I also tried the method given here since the Gitlab package is based on sameersbn docker image but without any success either. (the psql converted file is full of errors)
https://github.com/sameersbn/docker-gitlab/issues/429

Our best chance is to ask Gitlab (they are providing the synology package) what going on and what can we do to migrate our data manually. I'm going to ask for some help on their forum.
That's really not cool to be stuck like this !

snakedoctor13
Novice
Novice
Posts: 43
Joined: Mon Oct 04, 2010 4:19 pm

Re: gitlab 10.6.4-0051 upgrade

Unread post by snakedoctor13 » Sun Jul 15, 2018 10:32 pm

I posted in the Gitlab forum.
https://forum.gitlab.com/t/synology-git ... iled/17501

Let's see if anyone can help us there as well.

algodata
I'm New!
I'm New!
Posts: 3
Joined: Fri Jul 13, 2018 6:36 am

Re: gitlab 10.6.4-0051 upgrade

Unread post by algodata » Mon Jul 16, 2018 11:19 am

I've open a ticket to the synology support center.

They try to access to our NAS to fix it...

to be continue...

snakedoctor13
Novice
Novice
Posts: 43
Joined: Mon Oct 04, 2010 4:19 pm

Re: gitlab 10.6.4-0051 upgrade

Unread post by snakedoctor13 » Mon Jul 16, 2018 9:52 pm

What kind of ticket did you opened?
I couldn't find Gitlab under Packages on the support page (both from package center support page in DSM and there https://account.synology.com/fr-fr/supp ... ate/ticket).
Hope they'll find a fix or a procedure..

algodata
I'm New!
I'm New!
Posts: 3
Joined: Fri Jul 13, 2018 6:36 am

Re: gitlab 10.6.4-0051 upgrade

Unread post by algodata » Wed Jul 18, 2018 3:53 pm

My ticket have been submitted to Taïwan developer, but we can't work for 6 days now...

snakedoctor13
Novice
Novice
Posts: 43
Joined: Mon Oct 04, 2010 4:19 pm

Re: gitlab 10.6.4-0051 upgrade

Unread post by snakedoctor13 » Wed Jul 18, 2018 8:00 pm

It seems that the update has been removed from server. Maybe they could push a new update to rollback to the previous version. We could also try to install the previous version manually but it means copying repos from the docker image, removing the package, install the previous version, copy repo and setup conf as it was.. But afterwards we won't get updates so..
Previous version can be downloaded from there
https://archive.synology.com/download/P ... .4.4-0050/

galerien
I'm New!
I'm New!
Posts: 1
Joined: Sat Jul 21, 2018 9:58 pm

Re: gitlab 10.6.4-0051 upgrade

Unread post by galerien » Sun Jul 22, 2018 12:40 am

Sorry for my english language but it isnt my native language.

I have a solution to retrieve projects without reinstall all. :D

Verify on docker container the path for docker repository. In my case, /home/git/data

You must connect in SSH on your diskstation and type following command :

Code: Select all

user@DISKSTATION:/$ sudo -i
Password:
root@DISKSTATION:~#docker exec -it synology_gitlab bash
root@synology_gitlab:/home/git/gitlab#
root@synology_gitlab:/home/git/gitlab# ls -al /home/git/data/repositories/
total 0
drwxr-xr-x 1 git git   24 Jul 21 20:36 .
drwxr-xr-x 1 git  git   118 Jul 21 21:25 ..
drwxr-xr-x 1 1026 users 250 Jul 16 18:10 root
root@synology_gitlab:/home/git/gitlab#
Ok, we have a f..... problem with 1026 user who don't exist on new release and groups incorrect. We correct this.

Code: Select all

// Move repositories
root@synology_gitlab:/home/git/gitlab#mv /home/git/data/repositories /home/git/data/test

// I recommend to save to another place repositories because when you import source directory is purged.
root@synology_gitlab:/home/git/gitlab#cp -R /home/git/data/test /home/git/data/old

// Change rights to git:git
root@synology_gitlab:/home/git/gitlab#chown -R git:git /home/git/data/test

// Reimport all repositories (import process imports all sub directories) 
sudo -u git -H bundle exec rake --trace gitlab:import:repos['/home/git/data/test'] RAILS_ENV=production
** Invoke gitlab:import:repos (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute gitlab:import:repos
* Skipping repo /home/git/data/test/root/WsusOnLinux-Node.js.wiki.git
Processing /home/git/data/test/root/CabExtractCGI.git
 * Using namespace: root
 * Created CabExtractCGI (root/CabExtractCGI)
 * Skipping repo /home/git/data/test/root/CabExtractCGI.wiki.git
 * Skipping repo /home/git/data/test/root/WsusOnLinux.wiki.git
Processing /home/git/data/test/root/WsusOnLinux-Node.js.git
 * Using namespace: root
 * Created WsusOnLinux-Node.js (root/WsusOnLinux-Node.js)
Processing /home/git/data/test/root/WsusOnLinux.git
 * Using namespace: root
 * Created WsusOnLinux (root/WsusOnLinux)
root@synology_gitlab:/home/git/gitlab#
In my case, i have retrieve all project with commit but no other information.

If i have time tomorrow morning, i continue to try to retrieve missing information.

snakedoctor13
Novice
Novice
Posts: 43
Joined: Mon Oct 04, 2010 4:19 pm

Re: gitlab 10.6.4-0051 upgrade

Unread post by snakedoctor13 » Wed Jul 25, 2018 4:20 pm

Did anyone get some news from support?

snakedoctor13
Novice
Novice
Posts: 43
Joined: Mon Oct 04, 2010 4:19 pm

Re: gitlab 10.6.4-0051 upgrade

Unread post by snakedoctor13 » Thu Aug 02, 2018 9:40 am

I finally opened a ticket to the support. They fixed the issue under 24h. Very impressive !
This is the best way to solve this I think.

Post Reply

Return to “Third-party Packages”