Repository navigation
Closed
Labels
bugSomething isn't working
Description
Bug Report
It require libcrypt.so.1 for initdb, which is provided by libxcrypt-compat on EL system and libcrypt1 on debian systems. Consider adding them to package dependencies
/usr/pgsql/bin/initdb: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "/usr/bin/patroni", line 33, in <module>
sys.exit(load_entry_point('patroni==4.0.5', 'console_scripts', 'patroni')())
File "/usr/lib/python3.9/site-packages/patroni/__main__.py", line 362, in main
return patroni_main(args.configfile)
File "/usr/lib/python3.9/site-packages/patroni/__main__.py", line 243, in patroni_main
abstract_main(Patroni, configfile)
File "/usr/lib/python3.9/site-packages/patroni/daemon.py", line 174, in abstract_main
controller.run()
File "/usr/lib/python3.9/site-packages/patroni/__main__.py", line 203, in run
super(Patroni, self).run()
File "/usr/lib/python3.9/site-packages/patroni/daemon.py", line 143, in run
self._run_cycle()
File "/usr/lib/python3.9/site-packages/patroni/__main__.py", line 212, in _run_cycle
logger.info(self.ha.run_cycle())
File "/usr/lib/python3.9/site-packages/patroni/ha.py", line 2293, in run_cycle
info = self._run_cycle()
File "/usr/lib/python3.9/site-packages/patroni/ha.py", line 2110, in _run_cycle
return self.post_bootstrap()
File "/usr/lib/python3.9/site-packages/patroni/ha.py", line 1987, in post_bootstrap
self.cancel_initialization()
File "/usr/lib/python3.9/site-packages/patroni/ha.py", line 1980, in cancel_initialization
raise PatroniFatalException('Failed to bootstrap cluster')
patroni.exceptions.PatroniFatalException: Failed to bootstrap cluster
IvorySQL Version
4.5
OS Version (uname -a)
EL9 and others
Configuration options ( config.status --config )
Current Behavior
Missing dependencies
Expected behavior/code
Add dependencies to RPM / DEB packages so that IvorySQL can be installed along with deps.
Step to reproduce
Additional context that can be helpful for identifying the problem
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Type
Projects
- StatusShow more project fieldsDone
Activity
OreoYang commentedon Jul 1, 2025
Hi Vonng, good afternon.
I'm trying to reproduce the issue,
highgo@ubuntu:~/work/test/tmp$ rpm2cpio IvorySQL-4.5-0ffca11-20250527.aarch64.rpm | cpio -idmv
./usr/ivory-4/lib/libcrypto.so.1.1
./usr/ivory-4/lib/libcrypto.so.10
==> the dependencies( included libcrypto.so.1.1 ) has been packaged into the .rpm
please correct me if the .rpm package is not the right one.
Vonng commentedon Jul 2, 2025
It's not libcrypto, it's libcrypt from
libxcrypt-compatlibxcrypt-compatOreoYang commentedon Jul 3, 2025
Sorry for that and thanks for your feedback.
As I learnt Debian9 ships libcrypt.so.1 by default, some others are don't.
So your EL9 system is RHEL9 right? and docker environment or not?
We must handle adding them to package dependencies carefully, if the derived libcrypt.so.1 conflicted with native one, system can't boot up never ... I just try it~~
OreoYang commentedon Jul 3, 2025
@Vonng Hi Vonng Sir,
For your local test please get:
wget https://yum.highgo.com/dists/tmp/IvorySQL-4.5-0ffca11-20250703.aarch64.rpm
bf94480f1ef210909190fe83b7a89e62 IvorySQL-4.5-0ffca11-20250703.aarch64.rpm
Vonng commentedon Jul 4, 2025
It just work as expected. You can give me el.amd, deb.amd, deb.arm too. Or forge a new release directly.
Vonng commentedon Jul 8, 2025
ping ;), any updates
OreoYang commentedon Jul 8, 2025
Copy, will let you know as soon as it's done.
OreoYang commentedon Jul 9, 2025
Hello @Vonng Sir,
el.amd, deb.amd, deb.arm all available now,
You can fetch them via wget https://yum.highgo.com/dists/tmp/IvorySQL-4.5-0ffca11-20250709.arm64.deb
or replace IvorySQL-4.5-0ffca11-20250709.arm64.deb with followings
IvorySQL-4.5-0ffca11-20250703.aarch64.rpm
IvorySQL-4.5-0ffca11-20250709.arm64.deb
IvorySQL-4.5-0ffca11-20250703.aarch64.rpm.md5
IvorySQL-4.5-0ffca11-20250709.arm64.deb.md5
IvorySQL-4.5-0ffca11-20250709.aarch64.tar.gz
IvorySQL-4.5-0ffca11-20250709.x86_64.rpm
IvorySQL-4.5-0ffca11-20250709.aarch64.tar.gz.md5
IvorySQL-4.5-0ffca11-20250709.x86_64.rpm.md5
IvorySQL-4.5-0ffca11-20250709.amd64.deb
IvorySQL-4.5-0ffca11-20250709.x86_64.tar.gz
IvorySQL-4.5-0ffca11-20250709.amd64.deb.md5
IvorySQL-4.5-0ffca11-20250709.x86_64.tar.gz.md5
Thanks for your feedback.
OreoYang commentedon Jul 9, 2025
We can reproduce the issue 'libcrypt.so.1: cannot open shared object file' on the RHEL9-aarch64 system successfully.
However, unfortunately, the issue could not be reproduced on Debian 10 aarch64.
Could you share more infos about the release number of el.amd, deb.amd, and deb.arm?
Vonng commentedon Jul 9, 2025
I've see this on ubuntu 24 too so I assume ubuntu 22 or lower may be similar.
Vonng commentedon Jul 19, 2025
Ping, any updates on other supported platforms?
OreoYang commentedon Jul 21, 2025
Sad, i'm wait for your response and wrongly assume that platforms aarch64/arm64/arm64 are meet the requirements.
mips64el.deb and mips64el.rpm are processing now.
OreoYang commentedon Jul 21, 2025
@Vonng Feng Sir,
All image packages are ready now.
You can fetch them via:
wget https://yum.highgo.com/dists/tmp/IvorySQL-4.5-0ffca11-20250721.mips64el.debReplace the corresponding names to obtain the corresponding media package.
Vonng commentedon Jul 25, 2025
works all as expected.
Minor problem:
IvorySQL psql seems have some trouble with xterm-256color
besides, are these
testextensions part of the final release?OreoYang commentedon Jul 25, 2025
"xterm-256color" is a term info entry, it should be in /usr/share/terminfo/x/, which provided by the file system.
I also had the opportunity to learn more about APP-PSQL-PROMPTING, thanks vonng.
You're right, we'll take this issue and fix it in the coming release.