Hi,
I'm trying to install barman on a new PostgreSQL server, i already have some installed, but I'm experiencing some issue.
# yum install barman
Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
rhel-7-server-rpms | 2.0 kB 00:00:00
rhel-7-server-satellite-tools-6.5-rpms | 2.1 kB 00:00:00
rhel-7-server-satellite-tools-6.6-rpms | 2.1 kB 00:00:00
rhel-server-rhscl-7-rpms | 2.0 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package barman.noarch 0:2.10-5.el7 will be installed
--> Processing Dependency: python2-barman = 2.10 for package: barman-2.10-5.el7.noarch
--> Running transaction check
---> Package python2-barman.noarch 0:2.10-5.el7 will be installed
--> Processing Dependency: python2-psycopg2 >= 2.4.2 for package: python2-barman-2.10-5.el7.noarch
--> Running transaction check
---> Package python2-psycopg2.x86_64 0:2.8.5-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Installing:
barman noarch 2.10-5.el7 2ndquadrant-dl-default-release-pg10 35 k
Installing for dependencies:
python2-barman noarch 2.10-5.el7 2ndquadrant-dl-default-release-pg10 340 k
python2-psycopg2 x86_64 2.8.5-1.el7 2ndquadrant-dl-default-release-pg10 168 k
Transaction Summary
========================================================================================================================================================================
Install 1 Package (+2 Dependent packages)
Total size: 543 k
Installed size: 543 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction check error:
file /usr/lib64/python2.7/site-packages/psycopg2/__init__.py from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/__init__.pyc from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/__init__.pyo from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/_json.py from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/_json.pyc from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/_json.pyo from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/_psycopg.so from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/_range.py from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/_range.pyc from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/_range.pyo from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/errorcodes.py from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/errorcodes.pyc from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/errorcodes.pyo from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/extensions.py from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/extensions.pyc from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/extensions.pyo from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/extras.py from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/extras.pyc from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/extras.pyo from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/pool.py from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/pool.pyc from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/pool.pyo from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/tz.py from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/tz.pyc from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
file /usr/lib64/python2.7/site-packages/psycopg2/tz.pyo from install of python2-psycopg2-2.8.5-1.el7.x86_64 conflicts with file from package python-psycopg2-2.5.1-4.el7.x86_64
Error Summary
-------------
Uploading Enabled Repositories Report
Loaded plugins: langpacks, product-id, subscription-manager
So python2-psycopg2-2.8.5-1.el7.x86_64 conflict with python-psycopg2-2.5.1-4.el7.x86_64
If I remove
# yum erase python-psycopg2-2.5.1-4.el7.x86_64
I'm able to install
# yum install barman
......
Installed:
barman.noarch 0:2.10-5.el7
Dependency Installed:
python2-barman.noarch 0:2.10-5.el7 python2-psycopg2.x86_64 0:2.8.5-1.el7
Complete!
But every minutes, wner cron runs, it happens this error
>N 1 us...@localhost.local Tue Jul 14 08:53 223/10742 "[abrt] barman: __init__.py:51:<module>:ImportError: /usr/lib64/python2.7/site-packages/psycopg2/_psycopg.so: "
& 1
Message 1:
From us...@localhost.localdomain Tue Jul 14 08:53:01 2020
Return-Path: <us...@localhost.localdomain>
X-Original-To: root@localhost
Delivered-To: ro...@localhost.localdomain
Date: Tue, 14 Jul 2020 08:53:01 +0000
From: us...@localhost.localdomain
To: ro...@localhost.localdomain
Subject: [abrt] barman: __init__.py:51:<module>:ImportError:
/usr/lib64/python2.7/site-packages/psycopg2/_psycopg.so: undefined symbol:
PQconninfo
User-Agent: Heirloom mailx 12.5 7/5/10
Content-Type: text/plain; charset=us-ascii
Status: R
reason: __init__.py:51:<module>:ImportError: /usr/lib64/python2.7/site-packages/psycopg2/_psycopg.so: undefined symbol: PQconninfo
cmdline: /usr/bin/python2 /usr/bin/barman -q cron
executable: /usr/bin/barman
package: barman-2.10-5.el7
component: barman
pid: 4380
hostname: jxppsqlq01
count: 27
abrt_version: 2.1.11
analyzer: Python
architecture: x86_64
duphash: e3c911ba999a8892b7b5e6512d79a7f7b908fe5b
event_log:
kernel: 3.10.0-1062.9.1.el7.x86_64
last_occurrence: 1594716781
os_release: Red Hat Enterprise Linux Server release 7.7 (Maipo)
pkg_arch: noarch
pkg_epoch: 0
pkg_fingerprint: 9904 CD4B D6BA F0C3
pkg_name: barman
pkg_release: 5.el7
pkg_version: 2.10
runlevel: N 3
time: Mon 13 Jul 2020 01:56:01 PM UTC
type: Python
uid: 167
username: barman
uuid: e3c911ba999a8892b7b5e6512d79a7f7b908fe5b
backtrace:
:__init__.py:51:<module>:ImportError: /usr/lib64/python2.7/site-packages/psycopg2/_psycopg.so: undefined symbol: PQconninfo
:
:Traceback (most recent call last):
: File "/usr/bin/barman", line 9, in <module>
: load_entry_point('barman==2.10', 'console_scripts', 'barman')()
: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
: return get_distribution(dist).load_entry_point(group, name)
: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
: return ep.load()
: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
: entry = __import__(self.module_name, globals(),globals(), ['__name__'])
: File "/usr/lib/python2.7/site-packages/barman/cli.py", line 38, in <module>
: from barman.server import Server
: File "/usr/lib/python2.7/site-packages/barman/server.py", line 60, in <module>
: from barman.postgres import PostgreSQLConnection, StreamingConnection
: File "/usr/lib/python2.7/site-packages/barman/postgres.py", line 26, in <module>
: import psycopg2
: File "/usr/lib64/python2.7/site-packages/psycopg2/__init__.py", line 51, in <module>
: from psycopg2._psycopg import ( # noqa
:ImportError: /usr/lib64/python2.7/site-packages/psycopg2/_psycopg.so: undefined symbol: PQconninfo
:
:Local variables in innermost frame:
:__builtins__: {'bytearray': <type 'bytearray'>, 'IndexError': <type 'exceptions.IndexError'>, 'all': <built-in function all>, 'help': Type help() for interactive help,
or help(object) for help about object., 'vars': <built-in function vars>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'unicode': <type 'unicode'>, 'UnicodeDecodeEr
ror': <type 'exceptions.UnicodeDecodeError'>, 'memoryview': <type 'memoryview'>, 'isinstance': <built-in function isinstance>, 'copyright': Copyright (c) 2001-2013 Pyth
on Software Foundation.
:All Rights Reserved.
:
:Copyright (c) 2000 BeOpen.com.
:All Rights Reserved.
:
:Copyright (c) 1995-2001 Corporation for National Research Initiatives.
:All Rights Reserved.
:
:Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
:All Rights Reserved., 'NameError': <type 'exceptions.NameError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'dict': <type 'dict'>, 'input': <built-in function
input>, 'oct': <built-in function oct>, 'bin': <built-in function bin>, 'SystemExit': <type 'exceptions.SystemExit'>, 'StandardError': <type 'exceptions.StandardError'>
, 'format': <built-in function format>, 'repr': <built-in function repr>, 'sorted': <built-in function sorted>, 'False': False, 'RuntimeWarning': <type 'exceptions.Runt
imeWarning'>, 'list': <type 'list'>, 'iter': <built-in function iter>, 'reload': <built-in function reload>, 'Warning': <type 'exceptions.Warning'>, '__package__': None
, 'round': <built-in function round>, 'dir': <built-in function dir>, 'cmp': <built-in function cmp>, 'set': <type 'set'>, 'bytes': <type 'str'>, 'reduce': <built-in fu
nction reduce>, 'intern': <built-in function intern>, 'issubclass': <built-in function issubclass>, 'Ellipsis': Ellipsis, 'EOFError': <type 'exceptions.EOFError'>, 'loc
als': <built-in function locals>, 'BufferError': <type 'exceptions.BufferError'>, 'slice': <type 'slice'>, 'FloatingPointError': <type 'exceptions.FloatingPointError'>,
'sum': <built-in function sum>, 'getattr': <built-in function getattr>, 'abs': <built-in function abs>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'print': <buil
t-in function print>, 'True': True, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'None': None, 'hash': <built
-in function hash>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'len': <built-in function len>, 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporati
on and a cast of thousands
: for supporting Python development. See
www.python.org for more information., 'frozenset': <type 'frozenset'>, '__name__': '__builtin__', 'ord': <built-in function
s.KeyboardInterrupt'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'filter': <built-in function filter>, 'range': <built-in function range>, 'staticmethod': <type '
staticmethod'>, 'SystemError': <type 'exceptions.SystemError'>, 'BaseException': <type 'exceptions.BaseException'>, 'pow': <built-in function pow>, 'RuntimeError': <typ
e 'exceptions.RuntimeError'>, 'float': <type 'float'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'globals': <b
uilt-in function globals>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'apply': <built-in function apply>, 'LookupError': <type 'exceptions.L
ookupError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'basestring': <type 'basestring'>, 'UnicodeError': <type 'exceptions.Un
icodeError'>, 'zip': <built-in function zip>, 'hex': <built-in function hex>, 'long': <type 'long'>, 'next': <built-in function next>, 'ImportError': <type 'exceptions.
ImportError'>, 'chr': <built-in function chr>, 'xrange': <type 'xrange'>, 'type': <type 'type'>, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNotew
orthy: None is the `nil' object; Ellipsis represents `...' in slices.", 'Exception': <type 'exceptions.Exception'>, 'tuple': <type 'tuple'>, 'UnicodeTranslateError': <t
ype 'exceptions.UnicodeTranslateError'>, 'reversed': <type 'reversed'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'IOError': <type 'exceptions.IOErr
or'>, 'hasattr': <built-in function hasattr>, 'delattr': <built-in function delattr>, 'setattr': <built-in function setattr>, 'raw_input': <built-in function raw_input>
, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'compile': <built-in function compile>, 'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'str': <type 'str'
>, 'property': <type 'property'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'int': <type 'int'>, '__import__': <built-in function __import__>, 'KeyError': <ty
pe 'exceptions.KeyError'>, 'coerce': <built-in function coerce>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'file': <type 'file'>, 'Env
ironmentError': <type 'exceptions.EnvironmentError'>, 'unichr': <built-in function unichr>, 'id': <built-in function id>, 'OSError': <type 'exceptions.OSError'>, 'Depre
cationWarning': <type 'exceptions.DeprecationWarning'>, 'min': <built-in function min>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'execfile': <built-in func
tion execfile>, 'any': <built-in function any>, 'complex': <type 'complex'>, 'bool': <type 'bool'>, 'ValueError': <type 'exceptions.ValueError'>, 'NotImplemented': NotI
mplemented, 'map': <built-in function map>, 'buffer': <type 'buffer'>, 'max': <built-in function max>, 'object': <type 'object'>, 'TabError': <type 'exceptions.TabError
'>, 'callable': <built-in function callable>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, 'eval': <built-in function eval>, '__debug__': True, 'Indentat
ionError': <type 'exceptions.IndentationError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'classmethod': <type 'classmethod'>, 'UnboundLocalError': <type '
exceptions.UnboundLocalError'>, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'OverflowError': <
type 'exceptions.OverflowError'>}
:__file__: None
:__package__: None
:__path__: None
:__name__: None
:__doc__: None
dso_list:
:python2-psycopg2-2.8.5-1.el7.x86_64
:python-setuptools-0.9.8-7.el7.noarch
:python2-barman-2.10-5.el7.noarch
environ:
:LANG=en_US.UTF-8
:SHELL=/bin/sh
:XDG_RUNTIME_DIR=/run/user/167
:SHLVL=1
:PWD=/var/lib/barman
:LOGNAME=barman
:USER=barman
:HOME=/var/lib/barman
:PATH=/usr/bin:/bin
:XDG_SESSION_ID=6088
:_=/usr/bin/barman
machineid:
:systemd=9754d4b2c87d4a36990e4e3ff7fbfc2a
:sosreport_uploader-dmidecode=6ae51c97972dadf6e7fd99a4eefaf368cb26cb09f3c357065f4c1ab3edc397a3
os_info:
:NAME="Red Hat Enterprise Linux Server"
:VERSION="7.7 (Maipo)"
:ID="rhel"
:ID_LIKE="fedora"
:VARIANT="Server"
:VARIANT_ID="server"
:VERSION_ID="7.7"
:PRETTY_NAME="Red Hat Enterprise Linux Server 7.7 (Maipo)"
:ANSI_COLOR="0;31"
:CPE_NAME="cpe:/o:redhat:enterprise_linux:7.7:GA:server"
:
:REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
:REDHAT_BUGZILLA_PRODUCT_VERSION=7.7
:REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
:REDHAT_SUPPORT_PRODUCT_VERSION="7.7"