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
Building python3 based packages for RHEL7 fails #324
Comments
I can reproduce this failure in a centos:7 Docker container after installing python3 and rpmdevtools, but Can you not use the Barman packages from PGDG instead? |
Thanks for your response! Which packages do you mean? I usually download what I think are the official ones via https://www.pgbarman.org which hosts them on sourceforge. But they only provide python2 packages for RHEL7. |
@GuusHoutzager I was suggesting to use the RPM packages from dl.enterprisedb.com or yum.postgresql.org. Anyway, I tried this again with the Barman 2.13 release using Python3 on Centos7, and the problem is still there with
I investigated a little more and found this setuptools issue that looks relevant. Indeed, the file However, given the existence of easily-available RPMs of Barman from multiple sources, and the fact there doesn't seem to be a single authoritative workaround/fix for the problem upstream (but just a collection of varying hacks), this is not exactly a high priority. But I'm leaving the issue open anyway. |
Hi, |
OK, trying it on RHEL8 makes sense, let us know how it goes. Also:
What sort of problems did you encounter? |
One of the issues we're having is issue #308 which I saw you're going to look at. The other one I haven't logged a ticket for but it's kinda related. If you run the default barman cron job that runs every minute but the previous run hasn't completed yet, these runs "pile up" somewhere inside barman, so when the run completes, it runs all of the "missed" runs in very quick succession (within a few seconds). This means barman logs in to the database potentially a lot of times in quick succession, making it cross some (default) limits which in turns generates alarms for our postgres databases. I wrote a wrapper script around the "barman cron" cron.d entry that uses locking, so it doesn't kick it off if the previous run hasn't completed. But I don't see the need for these runs to "pile up" inside barman, so hopefully that can be fixed too. |
Each invocation of
…but this I'm a little confused by. Why/how is Barman logging in to your database when you run |
(Neither of these problems sounds like it is likely to be anything to do with Python 2 vs. 3.) |
Yeah good question. I'm not 100% sure why it does this, maybe to verify settings (replication slot maybe?)? I'm very sure that it does this, because I can correlate the logins in the database to what barman is doing when you put the logging in debug mode. |
Right, OK. I'm going to close this issue because this problem affects only I did spend time trying (and failing) to find a solution. It would have been nice to fix, but this has reached the point where it feels like going a little too far to fix a Python 2 problem for an installation mode that we don't otherwise support to begin with. |
Hi,
Looks like something is going wrong when trying to build RPMS with python 3 on RHEL7.
I'm running 'python3 setup.py bdest_rpm'. Stuff seems to be going well, but it goes wrong when handling the man pages.
It copies them to the right directory, but then it runs /usr/lib/rpm/redhat/brp-compress which compresses them. During the next step it fails, because the files are now called for example barman.1.gz instead of barman.1. So then I get a bunch of error messages like this:
error: File not found: /home/vagrant/barman-2.12/build/bdist.linux-x86_64/rpm/BUILDROOT/barman-2.12-1.x86_64/usr/share/man/man1/barman.1
(and the same for the other man pages)
And then it stops:
error: command 'rpmbuild' failed with exit status 1
So no rpms :(
Is there a way I can fix this? Or is this a bug in the package? Thanks!
Cheers,
Guus
The text was updated successfully, but these errors were encountered: