Skip to content

Unable to init repository with README #574

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 Feb 25, 2016 · 5 comments
Closed

Unable to init repository with README #574

hubiktomas opened this issue Feb 25, 2016 · 5 comments
Assignees
Labels

Comments

@hubiktomas
Copy link

hubiktomas commented Feb 25, 2016

Hello,

I am facing a following issue:

When I create a new gitolite repo and select to initialize it with README, the repo gets created, but not initialized.

2016-02-25 10:14:03 +0000 [INFO] User 'tomas.hubik' has created a new repository 'gfl/gfl-incubator/gfl_incubator'
2016-02-25 10:14:03 +0000 [WARN] add_repository : repository 'gfl/gfl-incubator/gfl_incubator' does not exist in Gitolite, create it ...
2016-02-25 10:14:03 +0000 [INFO] add_repository : commiting to Gitolite...
2016-02-25 10:14:03 +0000 [WARN] No matching item found for 'gfl/gfl-incubator/gfl_incubator' in Recycle Bin, exiting !
2016-02-25 10:14:03 +0000 [INFO] add_repository : let Gitolite create empty repository 'repositories/gfl/gfl-incubator/gfl_incubator.git'
2016-02-25 10:14:09 +0000 [INFO] Execute Gitolite Plugins
2016-02-25 10:14:09 +0000 [INFO] Creating README file for repository 'gfl/gfl-incubator/gfl_incubator'
2016-02-25 10:14:09 +0000 [ERROR] Error while creating README file for repository 'gfl/gfl-incubator/gfl_incubator'
2016-02-25 10:14:09 +0000 [ERROR] R access for gfl/gfl-incubator/gfl_incubator DENIED to admin
(Or there may be no repository at the given path. Did you spell it correctly?)

I think, that this issue is very similar to #475, but I am not using HTTPS.

In my gitolite.conf I have:

repo    @all
  RW+                            = redmine_gitolite_admin_id_rsa

repo    gfl/gfl-incubator/gfl_incubator
  RW+                            = redmine_tomas_hubik_1
  config redminegitolite.projectid = gfl-incubator
  config redminegitolite.repositoryid = gfl_incubator
  config redminegitolite.repositorykey = yHe0JRG4Pk9OakpCeS5HEAPdCMSuJfCc4wGxBqupKdPmQE2ntnGEB7PxgWpUXRje
  config http.uploadpack = false
  config http.receivepack = false
  config multimailhook.enabled = true
  config multimailhook.mailinglist = [email protected]
  config multimailhook.from = [email protected]
  config multimailhook.emailPrefix = [REDMINE]

When I check the repositories, I can see, that the repo is created, but not initialized.

When I initialize it manually and try to push to it, I get the following log output:

git.exe push --recurse-submodules=check --progress "origin" refs/heads/master:refs/heads/master
Counting objects: 42995   
Counting objects: 57867, done.
Delta compression using up to 8 threads.
Total 57866 (delta 23989), reused 0 (delta 0)
remote: �[1G
remote: �[1GNotifying Redmine about changes to this repository : 'gfl-incubator/gfl_incubator' ...
remote: �[1GHTTP_ERROR : Net::ReadTimeout
remote: �[1G
remote: �[1GCalling additional post-receive hooks...
remote: �[1G  - Executing extra hook 'hooks/post-receive.d/mail_notifications'
remote: Sending notification emails to: [email protected]
remote: �[1G
remote: �[1G

When I try to get changesets manually, I can see the repo in the redmine interface.

Can you, please, help?

Thank you very much in advance.

Best regards
Tomas

@hubiktomas
Copy link
Author

hubiktomas commented Feb 25, 2016

I forgot to add info about my system:

Environment:
  Redmine version                3.2.0.stable
  Ruby version                   2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
  Rails version                  4.2.5
  Environment                    production
  Database adapter               Mysql2
SCM:
  Mercurial                      3.1.2
  Git                            2.1.4
  Filesystem                     
  Xitolite                       2.1.4
Redmine plugins:
  redmine_bootstrap_kit          0.2.4
  redmine_git_hosting            1.2.0

Everything is green in the plugins config test.

Best regards
Tomas

@hubiktomas
Copy link
Author

Hello,

no ideas?

Thanks.

@hubiktomas
Copy link
Author

Hello,

any news there?

Tomas

@jobhh
Copy link

jobhh commented Apr 13, 2016

The problem is that "redmine_gitolite_admin_id_rsa" has RW+ access, but the access is DENIED to "admin". I suggest you add admin to the repo @ALL RW+ in the gitolite config ;)

(If you notice manual edits to the config file being removed from the file (which happened with me), stop Redmine and clear the cache, then edit the Gitlite config and then start Redmine again)

Good luck!

@n-rodriguez n-rodriguez self-assigned this Oct 13, 2016
@n-rodriguez
Copy link
Contributor

@jobhh Good point! Thank you :)

2016-02-25 10:14:09 +0000 [ERROR] R access for gfl/gfl-incubator/gfl_incubator DENIED to admin

@hubiktomas you must not reuse the Redmine SSH key and assign it to a user.

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

3 participants