无法将git集成到Redmine 2.3.2中

时间:2013-08-13 10:13:12

标签: git passenger redmine

我在我的Ubuntu Server 12.04 LTS上安装了Bitnami Redmine。它运作良好!

但现在我想将git整合到redmine中,并按照办公室教程How_to_configure_Redmine_for_advanced_integration_with_Git

进行操作

步骤3.a成功

和步骤4,我将脚本复制并添加到/usr/local/share/redmine/apache2/conf/httpd.conf并重启redmine

这是httpd.conf

的一部分
LoadModule passenger_module /usr/local/share/redmine/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.2/libout/apache2/mod_passenger.so
PassengerRoot /usr/local/share/redmine/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.2
PassengerRuby /usr/local/share/redmine/ruby/bin/ruby

<VirtualHost *:8088>
   DocumentRoot "/usr/local/share/redmine/apache2/htdocs/grack/public"
<Directory "/usr/local/share/redmine/apache2/htdocs/grack/public">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
 </Directory>
</VirtualHost>

然后在我的Mac上测试并获得以下信息

Hseecoms-iMac:Githsee itHsee$ git clone http://192.168.100.1:8088/test
Cloning into 'test'...
error: Failed connect to 192.168.100.1:8088; Connection refused while accessing     http://192.168.100.1:8088/test/info/refs?service=git-upload-pack
fatal: HTTP request failed

这是我从/ usr / local / share / redmine / apache2 / log / error_log获取的日志

[Mon Aug 12 14:31:57.349295 2013] [mpm_prefork:notice] [pid 30562] AH00169: caught SIGTERM, shutting down
[Mon Aug 12 14:32:01.837475 2013] [ssl:warn] [pid 31114] AH01909: RSA certificate configured for localhost:8443 does NOT include an ID which matches the server name
[ 2013-08-12 14:32:01.8552 31118/7f955dfad740 agents/HelperAgent/Main.cpp:554 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.31114/generation-0/request.socket
[ 2013-08-12 14:32:01.8643 31124/7f9e8c0c0740 agents/LoggingAgent/Main.cpp:272 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.31114/generation-0/logging.socket
[Mon Aug 12 14:32:02.125219 2013] [ssl:warn] [pid 31134] AH01909: RSA certificate configured for localhost:8443 does NOT include an ID which matches the server name
[Mon Aug 12 14:32:02.125366 2013] [lbmethod_heartbeat:notice] [pid 31134] AH02282: No slotmem from mod_heartmonitor
[ 2013-08-12 14:32:02.1594 31138/7fd91d40d740 agents/HelperAgent/Main.cpp:554 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.31134/generation-0/request.socket
[ 2013-08-12 14:32:02.1684 31144/7f76267bf740 agents/LoggingAgent/Main.cpp:272 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.31134/generation-0/logging.socket
[Mon Aug 12 14:32:02.172329 2013] [mpm_prefork:notice] [pid 31134] AH00163: Apache/2.4.4 (Unix) OpenSSL/1.0.1e PHP/5.4.17 Phusion_Passenger/4.0.2 mod_perl/2.0.8-dev Perl/v5.16.3 configured -- resuming normal operations
[Mon Aug 12 14:32:02.172398 2013] [core:notice] [pid 31134] AH00094: Command line: '/usr/local/share/redmine/apache2/bin/httpd -f /usr/local/share/redmine/apache2/conf/httpd.conf'
/usr/local/share/redmine/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.2/helper-scripts/prespawn:105:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
    from /usr/local/share/redmine/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.2/helper-scripts/prespawn:105:in `new'
    from /usr/local/share/redmine/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.2/helper-scripts/prespawn:105:in `connect'
    from /usr/local/share/redmine/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.2/helper-scripts/prespawn:86:in `socket'
    from /usr/local/share/redmine/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.2/helper-scripts/prespawn:90:in `head_request'
    from /usr/local/share/redmine/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.2/helper-scripts/prespawn:145:in `<main>'
/usr/local/share/redmine/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.2/helper-scripts/prespawn:105:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
    from /usr/local/share/redmine/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.2/helper-scripts/prespawn:105:in `new'
    from /usr/local/share/redmine/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.2/helper-scripts/prespawn:105:in `connect'
    from /usr/local/share/redmine/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.2/helper-scripts/prespawn:86:in `socket'
    from /usr/local/share/redmine/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.2/helper-scripts/prespawn:90:in `head_request'
    from /usr/local/share/redmine/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.2/helper-scripts/prespawn:145:in `<main>'
[ 2013-08-12 14:32:05.0932 31138/7fd91d316700 Pool2/Spawner.h:739 ]: [App 31212 stdout] 
[ 2013-08-12 14:32:05.6724 31138/7fd91d2d5700 Pool2/Spawner.h:159 ]: [App 31212 stderr] /usr/local/share/redmine/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:216: warning: Insecure world writable dir /usr/local/share/redmine in PATH, mode 040777
[ 2013-08-12 14:32:08.4796 31138/7fd91d316700 Pool2/SmartSpawner.h:300 ]: Preloader for /usr/local/share/redmine/apps/redmine/htdocs started on PID 31212, listening on unix:/tmp/passenger.1.0.31134/generation-0/backends/preloader.31212
sysadmin@Hsee:/usr/local/share/redmine/apache2/logs$ 

有没有人可以帮我解决这个问题?非常感谢!

1 个答案:

答案 0 :(得分:-1)

我不知道Bitnami,但我自己在Ubuntu上安装了Redmine。所以我希望我的回答会以某种方式帮助你。

您确定您的Apache服务器位于此目录中:/usr/local/share/redmine/apache2/conf/httpd.conf在您的Redmine目录中,而不是/etc/apache2/

你确定要使用端口:8088吗?在您链接的教程中,他们使用的是8080和80,但不是8088。

我认为您的Passenger仍未正确配置。我最后一次这样做已经很长时间了,但无论如何这些HowTos帮助了我:

http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_Ubuntu_step_by_step#Configuring-Apache http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_212_in_Ubuntu_1210_and_Apache_Passenger

这是一个自编的如何将GIT随后整合到Redmine中:

http://www.redmine.org/projects/redmine/wiki/HowTo_Easily_integrate_a_%28SSH_secured%29_GIT_repository_into_redmine

希望这有帮助