Bug 1588514
| Summary: | Cannot upgrade to bacula 9.0.7-3.fc28 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Steven A. Falco <stevenfalco> | ||||
| Component: | bacula | Assignee: | Simone Caronni <negativo17> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 28 | CC: | andreas, jridky, negativo17, phracek, rvokal, stevenfalco | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | bacula-9.0.7-6.fc27 bacula-9.0.7-6.fc28 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-06-15 14:58:33 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Steven A. Falco
2018-06-07 13:14:45 UTC
Created attachment 1448714 [details]
The dnf command output is hard to read in the bug description, so here it is as an attachement
This is due to the fact that bacula provides a requirement for the main binaries on libbaccats.so, and nothing provides as the various variations provide libbacats-mysql.so, libbaccats-postgresql.so and libbaccats-sqlite.so. Then the main binary loads it through a symlink. The upstream patch that was included upstream for getting the correct soname was rejected in a rebase long time ago. Now it does not work cleanly anymore with the recent rpm build changes. bacula-9.0.7-4.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-5156ca7a45 bacula-9.0.7-4.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-98ccf382ee I tried bacula-9.0.7-4.fc28 but it still has problems. Specifically, while it installs, it won't run. /var/log/messages shows why: /usr/sbin/bacula-dir: error while loading shared libraries: libbaccats-9.0.7.so: cannot open shared object file: No such file or directory When I look in /usr/lib64, I see: saf# ll /usr/lib64/libbaccats* -rwxr-xr-x 1 root root 36296 Jun 11 07:02 /usr/lib64/libbaccats.so* -rwxr-xr-x 1 root root 24096 Jun 11 07:02 /usr/lib64/libbaccats-sqlite3.so* -rwxr-xr-x 1 root root 24096 Jun 11 07:02 /usr/lib64/libbaccats-sqlite3-9.0.7.so* -rwxr-xr-x 1 root root 36296 Jun 11 07:02 /usr/lib64/libbaccats-postgresql.so* -rwxr-xr-x 1 root root 36296 Jun 11 07:02 /usr/lib64/libbaccats-postgresql-9.0.7.so* -rwxr-xr-x 1 root root 28136 Jun 11 07:02 /usr/lib64/libbaccats-mysql.so* -rwxr-xr-x 1 root root 28136 Jun 11 07:02 /usr/lib64/libbaccats-mysql-9.0.7.so* As you can see, there is no library libbaccats-9.0.7.so so bacula-dir won't run. I can work around it by doing: saf# cd /usr/lib64 saf# ln -s libbaccats-postgresql-9.0.7.so libbaccats-9.0.7.so There might be a way to work around it with the "alternatives" command, but since it now would have to contain the version number, we'd have to re-run alternatives on every update. I don't think that is acceptable. It looks like upstream solves this problem a different way in their community edition. They build separate packages for the different databases: bacula-mysql-9.0.8-1.fc27.x86_64.rpm bacula-postgresql-9.0.8-1.fc27.x86_64.rpm That way, the whole "alternatives" mechanism becomes unnecessary, and the symlink would not be needed. Perhaps that would be a better solution for Fedora also. bacula-9.0.7-4.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-5156ca7a45 I still cannot get this to work. I tried completely removing bacula and reinstalling. I still get the error:
/usr/sbin/bacula-dir: error while loading shared libraries: libbaccats-9.0.7.so: cannot open shared object file: No such file or directory
The link is _not_ created by the command:
alternatives --set libbaccats.so /usr/lib64/libbaccats-postgresql.so
All that command does is to set up:
libbaccats.so -> /etc/alternatives/libbaccats.so
It does not set up libbaccats-9.0.7.so, which is what bacula-dir requires:
saf# ldd /usr/sbin/bacula-dir | grep libbaccats
libbaccats-9.0.7.so => not found
The only way I've found to work around the error is to manually create the link:
cd /usr/lib64
ln -s libbaccats.so libbaccats-9.0.7.so
Then the library is satisfied:
saf# ldd /usr/sbin/bacula-dir | grep libbaccats
libbaccats-9.0.7.so => /lib64/libbaccats-9.0.7.so (0x00007f570fa6a000)
Is there some other command that I am missing for creating the link to libbaccats-9.0.7.so?
bacula-9.0.7-6.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-eb96865a46 bacula-9.0.7-6.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-f4cc6b44a5 The -6 build fixes the problem. You can close this bug. bacula-9.0.7-6.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-eb96865a46 bacula-9.0.7-6.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-f4cc6b44a5 bacula-9.0.7-6.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. bacula-9.0.7-6.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report. |