-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How To Restore Gitlab After Failed Upgrade? #649
Comments
I had the same issue. Check if its your DB connection that fails and try setting the Synology IP address as the db server address instead of the 127. something that used to work before. |
Hi @mpbzh, I have so far been able to restore the projects and mysql data from a back up file in the gitlab directory. Unfortunately, that was from Jan. 21. I think Synology upgraded Gitlab from 7.9.3 to 8.2.3. And my backup stopped working. I don't even know I had enable automatic backup, but I am glad I had that. It was a process to get it restored, but it restored the projects, and other MySQL database stuff. But I would like to just deploy Gitlab 8.2.3, and have it come up with the latest data stored in the data dir. Thanks for you time. .v |
The fact that I have the backups and can restore them. Is pretty good. For the projected that existed when the backup was taken, developers just have to push and it will be fine. For projects that were created after, they will just have to recreate them. .v |
Not sure about your troubles with Synology nas. But if you had automated backups enabled then the complete gitlab instance would have been backed up on a periodic basis. The backups are saved in a backups directory of the If you are moving the gitlab instance to a linux box, then you should also be able to upgrade to the latest gitlab version after the restore. |
I had the same problem. What I´ve did is, remove my gitlab container and recreate it through docker-compose. My data files where mounted as volumes, so no data loss. Now the migration is just working... thanks for the good work @sameersbn |
@verrol were you able to resolve the issue? If not try adding |
My Gitlab Server was stuck after update to MariaDB10, always says Paket starting.. My Solution: Login to MariaDB as root, Drop database from Gitlab , Delete User Gitlab_user für MariaDB 5, and mariaDB10. After this restart your nas, maybe twice. Then you can go to Paket Store and make a fresh Gitlab installation. In my case i hafe a Backup from My Repositorys, restore it, and Done. |
Balckn0va |
Sure: I loggedin on phpMyAdmin, create a backup from Gitlab Database, IN MARIADB 5 AND 10 ! Then Restart your NAS, after this you can Remove Gitlab from PaketStation. Restart NAS, after This you can try to reinstall GitLab. |
Thx,
but i hat now a problem
I can only run a backup on a working system ;-)
root@WIFDNA0010:~# docker exec -t synology_gitlab gitlab-rake gitlab:backup:create
Error response from daemon: Container ae378e7e43667613ec8ae5afc7f5145ec1b0784bb35b8e231266af597fd87436 is not running
and the restore command is?
…_____________________________________________________________________________________________________________________________________________
Gerhard Mack | Senior IT Systems Architect
Schindler Fahrtreppen International GmbH | FIVN
Wienerbergstrasse 21-25 | 1100 Wien, Austria
_____________________________________________________________________________________________________________________________________________
From: Blackn0va [mailto:notifications@github.com]
Sent: Friday, December 15, 2017 10:13 AM
To: sameersbn/docker-gitlab <docker-gitlab@noreply.github.com>
Cc: Gerhard Mack <gerhard.mack@schindler.com>; Comment <comment@noreply.github.com>
Subject: Re: [sameersbn/docker-gitlab] How To Restore Gitlab After Failed Upgrade? (#649)
Sure:
I loggedin on phpMyAdmin, create a backup from Gitlab Database,
log in via SSH and Type "docker exec -t GitLab gitlab-rake gitlab:backup:create"
IN MARIADB 5 AND 10 !
Then in phpMyAdmin drop database GitLab
Then Restart your NAS, after this you can Remove Gitlab from PaketStation.
Restart NAS, after This you can try to reinstall GitLab.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#649 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ag9yGyEwHeaXqMDtkfQJEVBX0x_drGOuks5tAjgFgaJpZM4H5htn>.
******************************************************
Notice: The information contained in this message is intended only for use of the individual(s) named above and may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient of this message you are hereby notified that you must not use, disseminate , copy it in any form or take any action in reliance of it. If you have received this message in error please delete it and any copies of it and notify the sender immediately.
*******************************************************
|
The Restore command is sudo gitlab-rake gitlab:backup:restore BACKUP=1512477187_2017_12_05_9.4.4_gitlab_backup |
Okay, you right, i had a backup from my system.. But you can try to backup manually these files and Folders. All those files you can find on (in my case) in you case you can try to Backup all files, destroy the database and make a clean fresh install and restore your files. |
Thx,
thanks, will test it
god thank a second synology, where I can test this
…_____________________________________________________________________________________________________________________________________________
Gerhard Mack | Senior IT Systems Architect
Schindler Fahrtreppen International GmbH | FIVN
Wienerbergstrasse 21-25 | 1100 Wien, Austria
_____________________________________________________________________________________________________________________________________________
From: Blackn0va [mailto:notifications@github.com]
Sent: Friday, December 15, 2017 12:07 PM
To: sameersbn/docker-gitlab <docker-gitlab@noreply.github.com>
Cc: Gerhard Mack <gerhard.mack@schindler.com>; Comment <comment@noreply.github.com>
Subject: Re: [sameersbn/docker-gitlab] How To Restore Gitlab After Failed Upgrade? (#649)
Okay, you right, i had a backup from my system..
But you can try to backup manually these files and Folders.
Database = work with Broke sys
Repositorys = Work with broke sys
Artifacts = I think it works
builds = Work
lfs = I don´t know
Pages
Uploads
All those files you can find on (in my case)
/volume1/docker/gitlab
in you case you can try to Backup all files, destroy the database and make a clean fresh install and restore your files.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#649 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ag9yG0pomcIdD6XerA3mupxHUrWtxYmlks5tAlK2gaJpZM4H5htn>.
******************************************************
Notice: The information contained in this message is intended only for use of the individual(s) named above and may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient of this message you are hereby notified that you must not use, disseminate , copy it in any form or take any action in reliance of it. If you have received this message in error please delete it and any copies of it and notify the sender immediately.
*******************************************************
|
i becomes in few minutes direkt support from synology, maybe then i can tell you a better solution. |
thx
…_____________________________________________________________________________________________________________________________________________
Gerhard Mack | Senior IT Systems Architect
Schindler Fahrtreppen International GmbH | FIVN
Wienerbergstrasse 21-25 | 1100 Wien, Austria
_____________________________________________________________________________________________________________________________________________
From: Blackn0va [mailto:notifications@github.com]
Sent: Friday, December 15, 2017 12:37 PM
To: sameersbn/docker-gitlab <docker-gitlab@noreply.github.com>
Cc: Gerhard Mack <gerhard.mack@schindler.com>; Comment <comment@noreply.github.com>
Subject: Re: [sameersbn/docker-gitlab] How To Restore Gitlab After Failed Upgrade? (#649)
i becomes in few minutes direkt support from synology, maybe then i can tell you a better solution.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#649 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ag9yG6E3fSj8qxdcHy_220KC_AcK-mtnks5tAlnBgaJpZM4H5htn>.
******************************************************
Notice: The information contained in this message is intended only for use of the individual(s) named above and may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient of this message you are hereby notified that you must not use, disseminate , copy it in any form or take any action in reliance of it. If you have received this message in error please delete it and any copies of it and notify the sender immediately.
*******************************************************
|
i have a full backup from Gitlab but i try now something and give you a response |
On Point 6: If you cannot Remove Gitlab, then you have to Destroy some more Files from Gitlab after your BACKUP! For Example you can delete the GiLab Folter with rm -R /volume1/docker/gitlab On my Working System it will work.. |
Thx,
I'll test it right away
…_____________________________________________________________________________________________________________________________________________
Gerhard Mack | Senior IT Systems Architect
Schindler Fahrtreppen International GmbH | FIVN
Wienerbergstrasse 21-25 | 1100 Wien, Austria
_____________________________________________________________________________________________________________________________________________
From: Blackn0va [mailto:notifications@github.com]
Sent: Friday, December 15, 2017 1:14 PM
To: sameersbn/docker-gitlab <docker-gitlab@noreply.github.com>
Cc: Gerhard Mack <gerhard.mack@schindler.com>; Comment <comment@noreply.github.com>
Subject: Re: [sameersbn/docker-gitlab] How To Restore Gitlab After Failed Upgrade? (#649)
1. Go to phpMyAdmin and make a backup from gitlab Database,
2. Then login via SSH and make a backup from you comletely gitlab Folder
3. cp -R /volume1/docker/gitlab /volume1/homes/Black/docker/gitlab.backup
4. Drop The Gitlab Database
5. Restart NAS
6. Try Remove Gitlab via PaketStation
7. Restart NAS
8. Install GitLab from PaketStation USE THE SAME DATABASE ANME PORT AND PASSWORDS !!
9. Restore your Gilab Database Backup via phpMyAdmin
10. Restore gitlab Folder via SSH
11. cp -R /volume1/homes/Black/docker/gitlab.backup /volume1/docker/gitlab
12. Restart NAS and Try to Login
On my Working System it will work..
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#649 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ag9yG7v1U_w8CmOHqJirlnJR8N_D4Sr8ks5tAmJsgaJpZM4H5htn>.
******************************************************
Notice: The information contained in this message is intended only for use of the individual(s) named above and may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient of this message you are hereby notified that you must not use, disseminate , copy it in any form or take any action in reliance of it. If you have received this message in error please delete it and any copies of it and notify the sender immediately.
*******************************************************
|
but we are already talking about the MariaDB10
and from the last version
…_____________________________________________________________________________________________________________________________________________
Gerhard Mack | Senior IT Systems Architect
Schindler Fahrtreppen International GmbH | FIVN
Wienerbergstrasse 21-25 | 1100 Wien, Austria
_____________________________________________________________________________________________________________________________________________
From: Blackn0va [mailto:notifications@github.com]
Sent: Friday, December 15, 2017 1:14 PM
To: sameersbn/docker-gitlab <docker-gitlab@noreply.github.com>
Cc: Gerhard Mack <gerhard.mack@schindler.com>; Comment <comment@noreply.github.com>
Subject: Re: [sameersbn/docker-gitlab] How To Restore Gitlab After Failed Upgrade? (#649)
1. Go to phpMyAdmin and make a backup from gitlab Database,
2. Then login via SSH and make a backup from you comletely gitlab Folder
3. cp -R /volume1/docker/gitlab /volume1/homes/Black/docker/gitlab.backup
4. Drop The Gitlab Database
5. Restart NAS
6. Try Remove Gitlab via PaketStation
7. Restart NAS
8. Install GitLab from PaketStation USE THE SAME DATABASE ANME PORT AND PASSWORDS !!
9. Restore your Gilab Database Backup via phpMyAdmin
10. Restore gitlab Folder via SSH
11. cp -R /volume1/homes/Black/docker/gitlab.backup /volume1/docker/gitlab
12. Restart NAS and Try to Login
On my Working System it will work..
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#649 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ag9yG7v1U_w8CmOHqJirlnJR8N_D4Sr8ks5tAmJsgaJpZM4H5htn>.
******************************************************
Notice: The information contained in this message is intended only for use of the individual(s) named above and may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient of this message you are hereby notified that you must not use, disseminate , copy it in any form or take any action in reliance of it. If you have received this message in error please delete it and any copies of it and notify the sender immediately.
*******************************************************
|
Yes you make backups from mariaDB 5 and install the newest version on MariaDB10 |
One more step you need to restore your gitlab data.. login ssh |
This issue has been automatically marked as stale because it has not had any activity for the last 60 days. It will be closed if no further activity occurs during the next 7 days. Thank you for your contributions. |
My entire gitlab server is hosted.
I am using Sameersbn/docker-gitlab:8.2.3 though Synoloyg NAS. After upgrading their DSM to 6.0, gitlab filed to start. I decided to backup the gitlab directory (with the repositories, backups, etc.). Then I removed the Gitlab docker image and tried to reinstall. That failed too and is still failing.
I want to big up sameersbn/docker-gitlab:8.2.3 on a linux box with external mysql server and redis container. Oh, the mysql db for gitlab was deleted by Synology when I used the package manager to remove gitlab.
With the back up files, can i restore my gitlab to the way it was before using a clean setup on another server?
I would greatly appreciate some urgent help on this matter. Developers are unable to commit and share.
Thanks.
.v
The text was updated successfully, but these errors were encountered: