Projects: Issues
http://projects.andriylesyuk.com/
http://projects.andriylesyuk.com/plugin_assets/andriy_lesyuk/images/s-andy.ico
2014-08-13T12:56:42Z
Projects
Redmine
SCM Creator (+Github) - Bug #2325 (Incomplete): Cannot add existing github repo
http://projects.andriylesyuk.com/issues/2325
2014-08-13T12:56:42Z
Mikalai Turyshau
<p>Hello! i’m trying to add my github repo to project.<br />but get different errors like a “500 internal error”? but no error messages in apache log<br />I’ve also tried start rails directly via <br /><em>rails s -e production</em><br />and get the next error</p>
<p><em>NoMethodError (undefined method `[]' for nil:NilClass):<br /> app/controllers/repositories_controller.rb:55:in `create’</em></p>
<p>could you please help me?</p>
<p><strong>My environment:</strong><br />redmine configured via apache phusion passenger and mod_fastcgi<br /><em>script/about <br />sh: darcs: command not found<br />sh: hg: command not found<br />sh: cvs: command not found<br />sh: bzr: command not found<br />Environment:<br /> Redmine version 2.5.2.stable<br /> Ruby version 1.9.3-p547 (2014-05-14) [x86_64-linux]<br /> Rails version 3.2.19<br /> Environment production<br /> Database adapter PostgreSQL<br />SCM:<br /> Subversion 1.6.11<br /> Git 1.7.1<br /> Filesystem <br /> Github 1.7.1<br />Redmine plugins:<br /> redmine_scm 0.5.0b</em></p>
<p>plugin installed succesfully, db migrated.<br /><strong>scm.yml</strong><br /><em>production:<br /> deny_delete: false<br /> auto_create: false<br /> force_repository: false<br /> max_repos: 5<br /> only_creator: false<br /> allow_add_local: true<br /> allow_pickup: false<br /> git:<br /> path: /var/www/git<br /> git: git<br /> options:<br /> url: <a class="external" href="http://redmine.mrsoul.tk">http://redmine.mrsoul.tk</a><br /> update_server_info: true<br /> git_ext: false<br /> github:<br /> path: /var/www/github<br />development:</em></p>
<p><strong>redmine.conf</strong><br /><VirtualHost *:80><br /> ServerName redmine.mrsoul.tk
# !!! Be sure to point DocumentRoot to 'public'!<br /> DocumentRoot /var/www/redmine/public<br /> ErrorLog logs/redmine_error_log<br /> <Directory /var/www/redmine/public>
# This relaxes Apache security settings.<br /> Options Indexes ExecCGI FollowSymLinks -MultiViews<br /> Order allow,deny<br /> Allow from all<br /> AllowOverride all<br /> </Directory><br /></VirtualHost></p>
<p><strong>passenger.conf</strong></p>
<p><em>LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p547/gems/passenger-4.0.48/buildout/apache2/mod_passenger.so<br /> <IfModule mod_passenger.c><br /> PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p547/gems/passenger-4.0.48<br /> PassengerDefaultRuby /usr/local/rvm/gems/ruby-1.9.3-p547/wrappers/ruby<br /> PassengerDefaultUser apache<br /> </IfModule></em></p>
<p>owner of next folders is apach:apache<br />/var/www/redmine<br />/var/www/git<br />/var/www/github</p>