4

为什么我会收到此错误?

在美分 6.4 上将 Git 5.4 升级到 6.0

遵循升级指南 https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/5.4-to-6.0.md

完成后我试着盯着我 git

启动 GitLab Unicorn Web 服务器...

/etc/init.d/gitlab: line 131: script/web: No such file or directory

启动 GitLab Sidekiq 事件调度程序...

/etc/init.d/gitlab: line 139: script/background_jobs: No such file or directory

GitLab 未运行。

init.dgitlab 文件中

+    119 # Starts Unicorn and Sidekiq.  
+    120 start() {  
+    121   check_stale_pids  
+    122   
+    123   # Then check if the service is running. If it is: don't start again.  
+    124   if [ "$web_status" = "0" ]; then  
+    125     echo "The Unicorn web server already running with pid $wpid, not restarting."  
+    126   else  
+    127     echo "Starting the GitLab Unicorn web server..."  
+    128     # Remove old socket if it exists  
+    129     rm -f "$socket_path"/gitlab.socket 2>/dev/null  
+    130     # Start the webserver  
+    131     RAILS_ENV=$RAILS_ENV script/web start  
+    132   fi  
+    133   
+    134   # If sidekiq is already running, don't start it again.  
+    135   if [ "$sidekiq_status" = "0" ]; then    
+    136     echo "The Sidekiq job dispatcher is already running with pid $spid, not restarting"  
+    137   else    
+    138     echo "Starting the GitLab Sidekiq event dispatcher..."  
+    139     RAILS_ENV=$RAILS_ENV script/background_jobs start  
+    140     # We are sleeping a bit here because sidekiq is slow at writing it's pid  
+    141     sleep 2  
+    142   fi  
4

1 回答 1

6

可能您正在尝试使用较新版本的 init 脚本(例如,您的 gitlab 版本是 6.0,而您正在使用 6.2 的 init 脚本)

尝试从您安装的版本中复制 init.d 脚本的原始版本。以root进入控制台:

cp {GITLAB_HOME}/gitlab/lib/support/init.d/gitlab /etc/init.d/gitlab && chmod 755 /etc/init.d/gitlab && /etc/init.d/gitlab start

当然换{GITLAB_HOME}到你安装了 gitlab 的地方。

于 2013-10-18T09:44:17.603 回答