GitPython icon indicating copy to clipboard operation
GitPython copied to clipboard

Problem with apache using mod_wsgi and python 3.6 on RedHat 7.2 using the gitpython package .... specifically the push ...

Open hobbitten123 opened this issue 7 years ago • 2 comments

Hi -

I am having a problem with apache using mod_wsgi and python 3.6 on RedHat 7.2 using the gitpython package .... specifically the push ...

I get no errors ... the server that I am pushing to ... receives no push ... the result from the push is: 2018-06-08 13:03:17,584 - ProcessGit - INFO - push:[] Documentaion states:

If the operation fails completely, the length of the returned IterableList will be null."""

The same code on the same machine running through Flask runserver ... Works 2018-06-08 11:48:01,593 - ProcessGit - INFO - push:[<git.remote.PushInfo object at 0x7f1c3cf34518>]

The call that I am using is: .....

  repo_origin = repo_ref.remotes.origin
  repo_origin.push()

#-> /usr/sbin/httpd -V

Server version: Apache/2.4.6 (Red Hat Enterprise Linux)

Server built: Sep 17 2015 09:06:30

Server's Module Magic Number: 20120211:24

Server loaded: APR 1.4.8, APR-UTIL 1.5.2

Compiled using: APR 1.4.8, APR-UTIL 1.5.2

Architecture: 64-bit

Server MPM: prefork

threaded: no

forked:     yes (variable process count)

Server compiled with....

-D APR_HAS_SENDFILE

-D APR_HAS_MMAP

-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)

-D APR_USE_SYSVSEM_SERIALIZE

-D APR_USE_PTHREAD_SERIALIZE

-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT

-D APR_HAS_OTHER_CHILD

-D AP_HAVE_RELIABLE_PIPED_LOGS

-D DYNAMIC_MODULE_LIMIT=256

-D HTTPD_ROOT="/etc/httpd"

-D SUEXEC_BIN="/usr/sbin/suexec"

-D DEFAULT_PIDLOG="/run/httpd/httpd.pid"

-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"

-D DEFAULT_ERRORLOG="logs/error_log"

-D AP_TYPES_CONFIG_FILE="conf/mime.types"

-D SERVER_CONFIG_FILE="conf/httpd.conf"

hobbitten123 avatar Jun 08 '18 22:06 hobbitten123

Thanks for letting us know, and sorry to hear you are running into this!

This seems related to another issue (which I can't find it seems) which has similar problems. Currently the push implementation actively ignores errors in some cases. This can and should be fixed, but help is required.

Byron avatar Jun 10 '18 18:06 Byron

I ended up changing the git push to use pygit2 to do the push ... and it works ... there is something wrong with the way gitpython does a push under mod_wsgi

hobbitten123 avatar Jun 11 '18 01:06 hobbitten123