Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql gitlab健康检查不健康_Mysql_Ruby_Postgresql_Gitlab - Fatal编程技术网

Mysql gitlab健康检查不健康

Mysql gitlab健康检查不健康,mysql,ruby,postgresql,gitlab,Mysql,Ruby,Postgresql,Gitlab,我正在将gitlab迁移到另一台服务器。旧的gitlab服务器使用postgresql,新的gitlab服务器使用mysql 我正在使用名为“dbconvertformysql&PostgreSQL”的工具对其进行转换。 数据库已成功转换,并且repo文件也复制到新的gitlab服务器。 但我的项目无法使用,当单击项目时,它会注意到http代码500 在gitlab健康检查中,它注意到 Migrations are pending. To resolve this issue, run: b

我正在将gitlab迁移到另一台服务器。旧的gitlab服务器使用postgresql,新的gitlab服务器使用mysql

我正在使用名为“dbconvertformysql&PostgreSQL”的工具对其进行转换。
数据库已成功转换,并且repo文件也复制到新的gitlab服务器。
但我的项目无法使用,当单击项目时,它会注意到http代码500

在gitlab健康检查中,它注意到

Migrations are pending.  
To resolve this issue, run: bin/rake db:migrate RAILS_ENV=production"
当我运行这个cmd时,它会注意到“找不到Rakefile”

如何从那里开始?

确保从GitLab CE安装文件夹执行
db:migrate RAILS\u ENV=production

或者从同一个GitLab文件夹中尝试:

bundle exec rake db:migrate RAILS_ENV=production"
我的src和dstgitlab版本是8.8.4,它是相同的


在这种情况下,只需不执行任何
db:migrate RAILS_ENV=production
:这将避免创建重复的表。

问题重新解决,请参阅链接@VonC感谢您的回答,我是从源代码处安装gitlab的,在gitlab安装路径下,执行
bin/rake db:migrate RAILS_ENV=production
bundle exec rake db:migrate RAILS_ENV=production
,我得到了相同的输出:
Mysql2::错误:重复的列名'real_size':
您从哪个版本的GitLab迁移?请参见Hi VonC我的src和dst gitlab版本是8.8.4,它是相同的。在您给我的页面上,我发现了
状态迁移ID迁移名称
up 20160204144558添加真实大小以合并请求差异
。这与我在系统中运行cmd时的情况相同,我得到了输出:
==20160204144558 addRealSizeToMergeRequestDiff:migrating==
。这些信息对我有帮助吗?我已经编辑了我的答案,虽然我不太明白,但还是谢谢你!