Skip to content

Unable to create/remove git repository on Centos 6.5 with all dependencies installed #445

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
ndthanhnet opened this issue Jun 1, 2015 · 9 comments
Assignees
Labels

Comments

@ndthanhnet
Copy link

hi there,
according to this issue #440 , i just tried again and still see the issue . please see git_hosting.log content below

2015-06-01 08:58:11 -0400 [INFO] User 'atheotsky' created a new repository 'rostanvo/r18'
2015-06-01 08:58:11 -0400 [INFO] Create tmp directory : '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-06-01 08:58:11 -0400 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-06-01 08:58:11 -0400 [ERROR] Access denied for Gitolite Admin SSH Keys
2015-06-01 08:58:11 -0400 [ERROR] Unsupported URL protocol
2015-06-01 08:58:21 -0400 [INFO] Create tmp directory : '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-06-01 08:58:21 -0400 [INFO] Testing if Redmine user 'leo' can sudo to Gitolite user 'git'...
2015-06-01 08:58:21 -0400 [INFO] OK!
2015-06-01 08:58:21 -0400 [INFO] Installing Redmine Gitolite mirroring SSH keys ...
2015-06-01 08:58:21 -0400 [INFO] Done !
2015-06-01 08:58:27 -0400 [INFO] User 'atheotsky' has removed repository 'rostanvo/r18'
2015-06-01 08:58:27 -0400 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-06-01 08:58:27 -0400 [ERROR] Access denied for Gitolite Admin SSH Keys
2015-06-01 08:58:27 -0400 [ERROR] Unsupported URL protocol

i use centos 6.5 , this is output of dependencies installation

yum groupinstall "Development Tools"; yum install libssh2 libssh2-devel cmake libgpg-error-devel
Loaded plugins: fastestmirror
Setting up Group Process
Loading mirror speeds from cached hostfile
 * base: centos-distro.cavecreek.net
 * epel: mirrors.kernel.org
 * extras: repos.lax.quadranet.com
 * passenger: passenger.stealthymonkeys.com
 * remi: mirrors.mediatemple.net
 * updates: mirrors.easynews.com
Package flex-2.5.35-9.el6.x86_64 already installed and latest version
Package gcc-4.4.7-11.el6.x86_64 already installed and latest version
Package redhat-rpm-config-9.0.3-42.el6.centos.noarch already installed and latest version
Package rpm-build-4.8.0-38.el6_6.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package patch-2.6-6.el6.x86_64 already installed and latest version
Package 1:pkgconfig-0.23-9.1.el6.x86_64 already installed and latest version
Package gettext-0.17-18.el6.x86_64 already installed and latest version
Package automake-1.11.1-4.el6.noarch already installed and latest version
Package bison-2.4.1-5.el6.x86_64 already installed and latest version
Package libtool-2.2.6-15.5.el6.x86_64 already installed and latest version
Package autoconf-2.63-5.1.el6.noarch already installed and latest version
Package gcc-c++-4.4.7-11.el6.x86_64 already installed and latest version
Package binutils-2.20.51.0.2-5.42.el6.x86_64 already installed and latest version
Package patchutils-0.3.1-3.1.el6.x86_64 already installed and latest version
Package byacc-1.9.20070509-7.el6.x86_64 already installed and latest version
Package indent-2.2.10-7.el6.x86_64 already installed and latest version
Package systemtap-2.5-5.el6.x86_64 already installed and latest version
Package diffstat-1.51-2.el6.x86_64 already installed and latest version
Package elfutils-0.158-3.2.el6.x86_64 already installed and latest version
Package cvs-1.11.23-16.el6.x86_64 already installed and latest version
Package rcs-5.7-37.el6.x86_64 already installed and latest version
Package subversion-1.6.11-12.el6_6.x86_64 already installed and latest version
Package gcc-gfortran-4.4.7-11.el6.x86_64 already installed and latest version
Package 1:doxygen-1.6.1-6.el6.x86_64 already installed and latest version
Package intltool-0.41.0-1.1.el6.noarch already installed and latest version
Package git-1.7.1-3.el6_4.1.x86_64 already installed and latest version
Package ctags-5.8-2.el6.x86_64 already installed and latest version
Package cscope-15.6-6.el6.x86_64 already installed and latest version
Package swig-1.3.40-6.el6.x86_64 already installed and latest version
Warning: Group development does not have any packages.
No packages in any requested group available to install or update
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos-distro.cavecreek.net
 * epel: mirrors.kernel.org
 * extras: repos.lax.quadranet.com
 * passenger: passenger.stealthymonkeys.com
 * remi: mirrors.mediatemple.net
 * updates: mirror.hmc.edu
Package libssh2-1.4.2-1.el6_6.1.x86_64 already installed and latest version
Package libssh2-devel-1.4.2-1.el6_6.1.x86_64 already installed and latest version
Package cmake-2.8.12.2-4.el6.x86_64 already installed and latest version
Package libgpg-error-devel-1.7-4.el6.x86_64 already installed and latest version
Nothing to do
@n-rodriguez
Copy link
Contributor

What does redmine$ ssh -i ssh_keys/redmine_gitolite_admin_id_rsa git@localhost infosay?

@n-rodriguez n-rodriguez self-assigned this Jun 2, 2015
@ndthanhnet
Copy link
Author

please see the command output below

ssh -i ssh_keys/redmine_gitolite_admin_id_rsa git@localhost -p23389 info
hello redmine_gitolite_admin_id_rsa, this is git@invisiblezero running gitolite3 v3.6.3-9-g2b918fc on git 1.9.0

 R W    gitolite-admin
 R W    testing

@n-rodriguez
Copy link
Contributor

Can you try this :

root# updatedb

root# locate rugged.so

# Should give something like that :
/home/redmine/.rvm/gems/ruby-2.1.5/extensions/x86_64-linux/2.1.0/rugged-0.21.4/rugged/rugged.so
/home/redmine/.rvm/gems/ruby-2.1.5/extensions/x86_64-linux/2.1.0/rugged-0.22.2/rugged/rugged.so
/home/redmine/.rvm/gems/ruby-2.1.5/gems/rugged-0.21.4/ext/rugged/rugged.so
/home/redmine/.rvm/gems/ruby-2.1.5/gems/rugged-0.21.4/lib/rugged/rugged.so
/home/redmine/.rvm/gems/ruby-2.1.5/gems/rugged-0.22.2/ext/rugged/rugged.so
/home/redmine/.rvm/gems/ruby-2.1.5/gems/rugged-0.22.2/lib/rugged/rugged.so

root# ldd /home/redmine/.rvm/gems/ruby-2.1.5/gems/rugged-0.22.2/lib/rugged/rugged.so

# Should give something like that :
    linux-vdso.so.1 =>  (0x00007ffffa7a4000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f5b01bad000)
    libssl.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f5b0194c000)
    libcrypto.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f5b01554000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f5b01350000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f5b01138000)
    ## Check that you have this line
    libssh2.so.1 => /usr/lib/x86_64-linux-gnu/libssh2.so.1 (0x00007f5b00f0f000) 
    ####
    libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11 (0x00007f5b00c90000)
    libruby.so.2.1 => /data/redmine-repositories/jbox/.rvm/rubies/ruby-2.1.5/lib/libruby.so.2.1 (0x00007f5b007d8000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5b005bc000)
    libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f5b00385000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5b00102000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5affd77000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f5b020ce000)
    libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f5affb73000)

@n-rodriguez
Copy link
Contributor

Also, can you try with version 1.0.7?

@ndthanhnet
Copy link
Author

i just tried 1.1.0 (latest stable) . i still got the issue

2015-06-08 05:22:51 -0400 [INFO] User 'atheotsky' created a new repository 'rostanvo/r18'
2015-06-08 05:22:51 -0400 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-06-08 05:22:51 -0400 [ERROR] Access denied for Gitolite Admin SSH Keys
2015-06-08 05:22:51 -0400 [ERROR] Unsupported URL protocol

this is ldd output

ldd vendor/bundle/ruby/2.2.0/gems/rugged-0.22.2/lib/rugged/rugged.so
    linux-vdso.so.1 =>  (0x00007fffe65ff000)
    librt.so.1 => /lib64/librt.so.1 (0x00007f80290bf000)
    libssl.so.10 => /usr/lib64/libssl.so.10 (0x00007f8028e52000)
    libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x00007f8028a6f000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007f802886b000)
    libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f8028626000)
    libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f8028340000)
    libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f802813c000)
    libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f8027f0f000)
    libz.so.1 => /lib64/libz.so.1 (0x00007f8027cf9000)
    libruby.so.2.2 => /home/leo/.rvm/rubies/ruby-2.2.1/lib/libruby.so.2.2 (0x00007f8027853000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f8027635000)
    libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f80273fe000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f802717a000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f8026de5000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f80295c5000)
    libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f8026bda000)
    libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f80269d7000)
    libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f80267bc000)
    libfreebl3.so => /usr/lib64/libfreebl3.so (0x00007f80265b9000)
    libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f8026399000)

@mariokehl
Copy link

I have same issue.

  • CentOS 7
  • Redmine 3.0.3
  • redmine_git_hosting 1.1.0

Here's my output of the commands:

[root@app01 ~]# updatedb
[root@app01 ~]# locate rugged.so
/home/redmine/.gem/ruby/gems/rugged-0.21.4/ext/rugged/rugged.so
/home/redmine/.gem/ruby/gems/rugged-0.21.4/lib/rugged/rugged.so
/home/redmine/.gem/ruby/gems/rugged-0.22.2/ext/rugged/rugged.so
/home/redmine/.gem/ruby/gems/rugged-0.22.2/lib/rugged/rugged.so
/usr/local/share/gems/gems/rugged-0.21.4/ext/rugged/rugged.so
/usr/local/share/gems/gems/rugged-0.21.4/lib/rugged/rugged.so
[root@app01 ~]# ldd /home/redmine/.gem/ruby/gems/rugged-0.22.2/lib/rugged/rugged.so 
    linux-vdso.so.1 =>  (0x00007fff720d9000)
    librt.so.1 => /lib64/librt.so.1 (0x00007f65d1292000)
    libssl.so.10 => /lib64/libssl.so.10 (0x00007f65d1025000)
    libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f65d0c3d000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007f65d0a39000)
    libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f65d07ed000)
    libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f65d0509000)
    libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f65d0305000)
    libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f65d00d3000)
    libz.so.1 => /lib64/libz.so.1 (0x00007f65cfebc000)
    libruby.so.2.0 => /lib64/libruby.so.2.0 (0x00007f65cfa5f000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f65cf843000)
    libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f65cf60b000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f65cf309000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f65cef48000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f65d179a000)
    libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f65ced38000)
    libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f65ceb34000)
    libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f65ce91a000)
    libfreebl3.so => /lib64/libfreebl3.so (0x00007f65ce716000)
    libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f65ce4f1000)
    libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f65ce28f000)
    liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f65ce06a000)
[root@app01 ~]# ruby -v
ruby 2.0.0p598 (2014-11-13) [x86_64-linux]

Update I: I'm using a non-standard SSH port.
Update II: Reverting back to 1.0.7 didn't solve the issue for me.

@mariokehl
Copy link

@leohartx the following approach fixed the error for me (after installing the dependencies as mentioned in #440):

root# su - redmine

redmine$ cd REDMINE_ROOT
redmine$ bundle clean --force
redmine$ bundle install --without development test
redmine$ gem uninstall rugged
redmine$ gem install rugged -v='0.22.2'

Please confirm that it works for you, too.

@ndthanhnet
Copy link
Author

@perltwiesekt , yes it also fixed the problem on my server as well. many thanks :)

i think bundle clean --force solved it , i didn't do it last time .

@n-rodriguez
Copy link
Contributor

@perltwiesekt Thank you !
@leohartx Glad it works for you now :)

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