Project

General

Profile

advanced git integration: cannot push

Added by Volker Kopetzky about 9 years ago

Hi there,

(1) config
$ bin/about 
sh: 1: darcs: not found
sh: 1: hg: not found
sh: 1: cvs: not found
sh: 1: bzr: not found
Environment:
  Redmine version                3.0.3.stable
  Ruby version                   2.0.0-p645 (2015-04-13) [x86_64-linux]
  Rails version                  4.2.1
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.8.13
  Git                            1.9.5
  Filesystem                     
Redmine plugins:
  no plugin installed

(2) Setup
The setup is done with the lastet bitnami stack, everything in the web UI runs nicely. I followed tbe instructions at https://wiki.bitnami.com/Applications/BitNami_Redmine#How_to_configure_Redmine_for_advanced_integration_with_Git that are based on http://www.redmine.org/projects/redmine/wiki/HowTo_configure_Redmine_for_advanced_git_integration.

The advanced integration uses the grack as shown in both instructions.

The only difference I currently implemented is that the virtual host uses SSL and port 443.

(3) git issue
git clone works, git push does not.
Note: SRVURI is masked to prevent redmine from calling this post spam;)

$ git clone <SRVURI>testgit
Cloning into 'testgit'...
warning: You appear to have cloned an empty repository.
Checking connectivity... done.

$ cd testgit/

$ cat > test
Hello World
^D

$ git add test 

$ git commit -m "hello world" 
[master (root-commit) e297ecf] hello world
 1 file changed, 1 insertion(+)
 create mode 100644 test

$ git status
On branch master
nothing to commit, working directory clean

$ git push 
Counting objects: 3, done.
Writing objects: 100% (3/3), 215 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: error: insufficient permission for adding an object to repository database ./objects
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To <SRVURI>/testgit
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to '<SRVURI>/testgit'

(4) Virtual Host conf
<VirtualHost *:443>
    ServerName git.insel-development.com
    PassengerEnabled on
    PassengerAppRoot "/opt/bitnami/apache2/htdocs/grack/" 
    DocumentRoot "/opt/bitnami/apache2/htdocs/grack/public" 
    <Directory "/opt/bitnami/apache2/htdocs/grack/public">
        Options None
        AllowOverride None
        <IfVersion < 2.3 >
        Order allow,deny
        Allow from all
        </IfVersion>
        <IfVersion >= 2.3>
        Require all granted
        </IfVersion>
    </Directory>

    SSLEngine On
    SSLCertificateFile "/opt/ssl/insel-development.crt" 
    SSLCertificateKeyFile "/opt/ssl/insel-development.key" 
    SSLCertificateChainFile "/opt/ssl/GandiProSSLCA.pem" 

    PerlLoadModule Apache::Redmine
     <Location "/">
       AuthType Basic
       AuthName "Insel redmine git" 
       Require valid-user

       # hack according to http://www.redmine.org/boards/2/topics/35428?r=37981#message-37981
       AuthUserFile /dev/null
       # the only difference is that there are no error_log entries about a missing AuthUserFile

       PerlAccessHandler Apache::Authn::Redmine::access_handler
       PerlAuthenHandler Apache::Authn::Redmine::authen_handler
       RedmineDSN "DBI:mysql:database=bitnami_redmine;host=localhost;mysql_socket=/opt/bitnami/mysql/tmp/mysql.sock" 
       RedmineDbUser "bitnami" 
       RedmineDbPass "c2854697d9" 
       RedmineGitSmartHttp yes
     </Location>
</VirtualHost>

(5) Project Setup

  • Project Identifier: testgit
  • git repo identifer: tried empty identifier and testgit
  • repopath: /opt/git/testgit

I have the usual feeling that I'm missing something obvious, any help in pointing me into the right direction will ge greatly appreciated.

Many thanx in advance!
Volker


Replies (1)

upd: httpd error log - Added by Volker Kopetzky about 9 years ago

There is no output when using the config shown in (4).
If I do not use the AuthUserFile /dev/null directive, it shows

[Wed Jul 08 15:15:36.485525 2015] [authn_file:error] AH01619: AuthUserFile not specified in the configuration

    (1-1/1)