Linux科技

gitlab数据迁移后,报错

2018-11-10  本文已影响0人  Miracle001
卸载后安装
yum -y install gitlab-ce-11.2.3-ce.0.el7.x86_64.rpm 
vim /etc/gitlab/gitlab.rb 
  unicorn['port'] = 8083
  nginx['redirect_http_to_https_port'] = 8081
gitlab-ctl reconfigure
  如果卡着不动,看下面的"卸载gitlab"
vim /var/opt/gitlab/nginx/conf/gitlab-http.conf
  listen *:8081;
vim /var/opt/gitlab/gitlab-rails/etc/unicorn.rb
  listen "127.0.0.1:8083"
gitlab-ctl restart
ls /var/opt/gitlab/backups/
chmod 777 /var/opt/gitlab/backups/1541743283_2018_11_09_11.2.3_gitlab_backup.tar 
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
ls /root/.ssh
gitlab-rake gitlab:backup:restore BACKUP=1541743283_2018_11_09_11.2.3
ls /root/.ssh/
gitlab-ctl status
gitlab-ctl start
卸载gitlab
gitlab-ctl stop
yum -y remove gitlab-ce
ps aux | grep gitlab
 kill -9 1198
find / -name gitlab | xargs rm -rf

再次安装gitlab,卡在"ruby_block[supervise_redis_sleep] action run"不动
解决方案:
1、按住CTRL+C强制结束;
2、运行:systemctl restart gitlab-runsvdir
3、再次执行:gitlab-ctl reconfigure
第一次迁移数据报错
88
ssh-keygen -R 192.168.10.185
ls /root/.ssh/known_hosts
ls /root/.ssh/known_hosts.old
gitlab-ctl restart

gitlab从185迁移到88
185
git@192.168.10.185...  拉取数据
不报错

88
git@192.168.10.88...  拉取数据
报错内容:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:FV8Q/Dp7ujgX0BKknD0ACp7jRqml8jZz5A44JVhLyUs.
Please contact your system administrator.
Add correct host key in /Users/qinjw/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/qinjw/.ssh/known_hosts:1
ECDSA host key for 192.168.10.88 has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:FV8Q/Dp7ujgX0BKknD0ACp7jRqml8jZz5A44JVhLyUs.
Please contact your system administrator.
Add correct host key in /Users/qinjw/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/qinjw/.ssh/known_hosts:1
ECDSA host key for 192.168.10.88 has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:FV8Q/Dp7ujgX0BKknD0ACp7jRqml8jZz5A44JVhLyUs.
Please contact your system administrator.
Add correct host key in /Users/qinjw/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/qinjw/.ssh/known_hosts:1
ECDSA host key for 192.168.10.88 has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
解决报错
88
git@192.168.10.88...  变为下面的信息:
主要是本机密钥的问题,需要
vim  /c/Users/Administrator/.ssh/known_hosts
把里面的IP地址删除即可--192.168.10.88删除即可
再拉取数据即可

参考文章
https://blog.csdn.net/zhoudapeng8023/article/details/77146258
上一篇下一篇

猜你喜欢

热点阅读