Skip to content
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

redmine 5.1 with redmine-git-hosting ( gitolite ), impossible to reach. #105

Open
gu1llohm opened this issue Jan 15, 2025 · 1 comment
Open

Comments

@gu1llohm
Copy link

Good morning,
Thanks first for your project and your contribution. I got frustrated after few hours of test... could you please help me :

I tried many ways, following the README file, setup a project and a repo in public mode, but i got a message :
[cd9059b5-463b-425e-95c4-0bf093a4796c] Errno::ENOENT (No such file or directory @ dir_chdir - repositories/test.git):

redmine is setup with redmine user
gitolite is setup with git user. It contains the repositories folder.

My questions are :

  • Is your plugin consider private projects too ? how the system suppose to know witch user is login in ?
  • What about this error message ? Do you already have a case of redmine-git-hosting configuration i can apply ?

Thanks for your help and consideration

BR,
GUillaume.

@koppen
Copy link
Owner

koppen commented Jan 17, 2025

Is your plugin consider private projects too ?

Yes.

how the system suppose to know witch user is login in ?

Redmine Github Hook doesn't know anything about users, nor does it care. That said, whatever user Redmine is running as needs permissions to do the following things:

  • Read from the remote repository on GitHub
  • Read and write to the local repository on the Redmine server

This means you need to add that users SSH keys on GitHub. If the user doesn't already have an SSH key, generate one and add the public SSH key as a Deploy Key for the repository on GitHub (or as one of your own keys, if you prefer that).

What about this error message ?

I can't tell what the context of that line is, so it's hard to tell anything specific. Although No such file or directory @ dir_chdir - repositories/test.git would indicate that you have no local git repository called test.git in repositories/. Have you succesfully added the repository to your project?

Do you already have a case of redmine-git-hosting configuration i can apply ?

No.

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

No branches or pull requests

2 participants