Skip to content

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

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

Open
hobbitten123 opened this issue Jun 8, 2018 · 2 comments

Comments

@hobbitten123
Copy link

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"

@Byron
Copy link
Member

Byron commented Jun 10, 2018

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.

@hobbitten123
Copy link
Author

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

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

No branches or pull requests

2 participants