Open scheiblr opened 6 years ago
I'm seeing this too. Did you discover the cause?
EDIT: Ah, I think it was just that I followed some invalid older instructions which turned off too much of the system (instead of just shutting down unicorn/sidekiq).
so, how did you do it? could you please give an example of the commands?
The instructions from https://docs.gitlab.com/ce/raketasks/backup_restore.html#restore-for-omnibus-installations
I had previously done a gitlab-ctl stop
which takes down everything and the gRPC error is obvious in that case.
In the end the restore process is:
sudo gitlab-ctl stop unicorn
sudo gitlab-ctl stop sidekiq
sudo gitlab-rake gitlab:backup:restore BACKUP=<your backup file in /var/opt/gitlab/backups>
And manually copying over gitlab-secrets.json in /etc/gitlab if required (which I did).
To be fair, I'm doing all this in a Docker container on Kubernetes hosted on GKE, so I'm not actually using the artefacts of this repo, but the process should be the same/very similar. I launched the new Gitlab instance in a new container/pod and connected to that pod and executed the above commands after copying my backup to /var/opt/gitlab/backups.
There are specific instructions for this in this project's README: https://github.com/sameersbn/docker-gitlab#restoring-backups
@scheiblr what was the command you ran?
I'm having the same issue, follow the backup/restore guide in this project's README always throw the GRPC::Unavailable: 14:Connect Failed
error(Gitlab version 11.0.1 and 11.0.3 both have this problem). After some research, I found a way to fix this.
The error is because of some service is not running when you're doing backup or restore, so to fix the problem, just make sure your gitlab is fully running when you are doing backup or restore.
For me, the procedure is:
/sbin/entrypoint.sh app:rake gitlab:backup:restore
to restore a backupFor backup procedure, simply execute /sbin/entrypoint.sh app:rake gitlab:backup:create
command when you're in gitlab container's shell.
I'm having the same issue, follow the backup/restore guide in this project's README always throw the
GRPC::Unavailable: 14:Connect Failed
error(Gitlab version 11.0.1 and 11.0.3 both have this problem). After some research, I found a way to fix this.The error is because of some service is not running when you're doing backup or restore, so to fix the problem, just make sure your gitlab is fully running when you are doing backup or restore.
For me, the procedure is:
1. Starting the gitlab container 2. Enter the gitlab's bash shell 3. Execute `/sbin/entrypoint.sh app:rake gitlab:backup:restore` to restore a backup 4. When restore finish, just restart gitlab container, and all is done.
For backup procedure, simply execute
/sbin/entrypoint.sh app:rake gitlab:backup:create
command when you're in gitlab container's shell.
I will try...
It's very good.., Very 3Q...
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.
I tried to restore a backup and get the following error after the database scripts have been processed: