Skip to content

Automatic initialization of the repo does not work #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hubiktomas opened this issue Mar 20, 2014 · 5 comments
Closed

Automatic initialization of the repo does not work #149

hubiktomas opened this issue Mar 20, 2014 · 5 comments
Assignees
Labels

Comments

@hubiktomas
Copy link

Hello Nicolas,

I have some issues with the automatic initialization of the repos.

Here is my log:

2014-03-20 16:33:28 +0100 INFO [GitHosting] User 'tomas.hubik' created a new repository 'ibento/ibento_cms/ibento-cms-v2'
2014-03-20 16:33:28 +0100 INFO [GitWorker] Using Gitolite configuration file : 'gitolite.conf'
2014-03-20 16:33:28 +0100 INFO [GitWorker] add_repository : repository 'ibento/ibento_cms/ibento-cms-v2' does not exist in Gitolite, create it ...
2014-03-20 16:33:29 +0100 INFO [GitWorker] add_repository : let Gitolite create empty repository 'repositories/ibento/ibento_cms/ibento-cms-v2.git'
2014-03-20 16:33:29 +0100 INFO [GitWorker] add_repository : pushing to Gitolite...
2014-03-20 16:33:31 +0100 INFO [GitWorker] add_repository : done !
2014-03-20 16:33:31 +0100 ERROR [GitWorker] Error while creating README file for repository 'ibento/ibento_cms/ibento-cms-v2'
2014-03-20 16:33:31 +0100 ERROR [GitWorker] Command output : 'Cloning into '/tmp/d20140320-1216-b3lj36'...'
Environment:
  Redmine version                2.4.3.stable
  Ruby version                   1.9.3-p194 (2012-04-20) [x86_64-linux]
  Rails version                  3.2.16
  Environment                    production
  Database adapter               Mysql2
SCM:
  Git                            1.7.10.4

gitolite 2.3-1
Using devel version of the plugin.

Thank you very much for any help.

Tomas

@n-rodriguez
Copy link
Contributor

Hi!

You must allow Redmine Admin key to write on every repo to make it work.

repo    @all
  RW+                            = redmine_gitolite_admin_id_rsa

@n-rodriguez n-rodriguez self-assigned this Mar 20, 2014
@hubiktomas
Copy link
Author

Thank you very much. After adding this, there is no error in the git_hosting.log. Now I have issues with showing the content of the repo:

Started GET "/projects/web_ain/repository" for xxx.xxx.xxx.xxx at 2014-03-20 17:18:56 +0100
Processing by RepositoriesController#show as HTML
  Parameters: {"id"=>"web_ain"}
  Current user: tomas.hubik (id=1)
  Rendered plugins/redmine_git_hosting/app/views/repositories/show.html.erb within layouts/base (237.1ms)
Completed 500 Internal Server Error in 415.8ms

ActionView::Template::Error (no suitable markdown gem found):
    1: <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
    2:
    3: <div class="contextual">
    4:   <%= render :partial => 'navigation' %>
  lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
  lib/redmine/hook.rb:61:in `each'
  lib/redmine/hook.rb:61:in `block in call_hook'
  lib/redmine/hook.rb:58:in `tap'
  lib/redmine/hook.rb:58:in `call_hook'
  lib/redmine/hook.rb:158:in `call_hook'
  app/controllers/repositories_controller.rb:125:in `show'

The problem is only with this single new autoinitialized repo. Other repos are working without problem.

Thanks

T.

@n-rodriguez
Copy link
Contributor

How did you installed Redmine? With the Debian package?
If so apt-get install ruby-redcarpet

@n-rodriguez
Copy link
Contributor

Fixed here : #144

@hubiktomas
Copy link
Author

You are right. That solved my problem. Thank you very much.

Tomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants