1 - 2小时前我试图在我的FreeBSD Dedicated-Server上安装gitlab。 在我完成之前,我检查了所有是否正在使用此命令运行:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
我得到以下输出: 检查GitLab Shell ...
GitLab Shell version >= 3.2.1 ? ... OK (3.2.1)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ... can't check, you have no projects
Running /usr/home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
/usr/home/git/.ssh/authorized_keys: OK
Send ping to redis server: gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... no
Try fixing it:
sudo -u git -H RAILS_ENV=production bin/background_jobs start
For more information see:
doc/install/installation.md in section "Install Init Script"
see log/sidekiq.log for possible errors
Please fix the error above and rerun the checks.
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... skipped (no tmp uploads folder yet)
Init script exists? ... no
Try fixing it:
Install the init script
For more information see:
doc/install/installation.md in section "Install Init Script"
Please fix the error above and rerun the checks.
Init script up-to-date? ... can't check because of previous errors
projects have namespace: ... can't check, you have no projects
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.2.6)
Your git bin path is "/usr/local/bin/git"
Git version >= 2.7.3 ? ... yes (2.11.0)
Active users: 1
Checking GitLab ... Finished
在我读完之后,我开始检查init脚本是否存在,我发现它位于名为“gitlab”的“/usr/local/etc/rc.d/”下。然后我尝试了“尝试修复它”的命令:sudo -u git -H RAILS_ENV = production bin / background_jobs start 没有输出...所以我再次运行第一个命令,我得到了相同的输出。然后我尝试使用installation.md中的教程再次安装init脚本。毕竟我一次又一次检查相同的输出...然后我读了sidekiq.log:
2017-02-20T19:18:22.576Z 18632 TID-7whi9lg INFO: Shutting down
2017-02-20T19:18:22.576Z 18632 TID-7yu1pks INFO: Scheduler exiting...
2017-02-20T19:18:22.577Z 18632 TID-7whi9lg INFO: Terminating quiet workers
2017-02-20T19:18:22.577Z 18632 TID-7yylx3s INFO: Scheduler exiting...
2017-02-20T19:18:23.109Z 18632 TID-7whi9lg INFO: Pausing to allow workers to finish...
2017-02-20T19:18:25.172Z 18632 TID-7whi9lg INFO: Bye!
Sidekiq shut down gracefully.
2017-02-20T19:18:34.957Z 18898 TID-7whi9lg INFO: Booting Sidekiq 4.1.4 with redis options {:url=>"unix:/usr/local/var/run/redis/redis.sock", :namespace=>"resque:gitlab"}
2017-02-20T19:18:34.965Z 18898 TID-7whi9lg INFO: Cron Jobs - add job with name: stuck_ci_builds_worker
2017-02-20T19:18:34.967Z 18898 TID-7whi9lg INFO: Cron Jobs - add job with name: expire_build_artifacts_worker
2017-02-20T19:18:34.971Z 18898 TID-7whi9lg INFO: Cron Jobs - add job with name: repository_check_worker
2017-02-20T19:18:34.973Z 18898 TID-7whi9lg INFO: Cron Jobs - add job with name: admin_email_worker
2017-02-20T19:18:34.975Z 18898 TID-7whi9lg INFO: Cron Jobs - add job with name: repository_archive_cache_worker
2017-02-20T19:18:34.977Z 18898 TID-7whi9lg INFO: Cron Jobs - add job with name: import_export_project_cleanup_worker
2017-02-20T19:18:38.199Z 18898 TID-7whi9lg INFO: Running in ruby 2.2.6p396 (2016-11-15 revision 56800) [amd64-freebsd11]
2017-02-20T19:18:38.199Z 18898 TID-7whi9lg INFO: See LICENSE and the LGPL-3.0 for licensing details.
2017-02-20T19:18:38.199Z 18898 TID-7whi9lg INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org
我不知道该怎么办...我试图在谷歌上搜索,但我一无所获。
这里有关于我的服务器的一些细节: 专用服务器 32 GB Ram 3TB硬盘 英特尔酷睿i7-3770 FreeBSD 11 64位
我希望你能提供帮助我的信息! 我知道我的英语不是最好的,我尽我所能。 =)
祝你好运, Tycan