"Schema file not found" when running setup-sca or setup-sdp
This document (000020689) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 12 SP5
Situation
#################################################################### # Supportconfig Analysis Pattern Setup Tool v1.0.5 #################################################################### ERROR: Schema file not found: /usr/share/doc/packages/sca-appliance/patdev/SCAPatterns_DB.sql
The Supportconfig analysis appliance packages are installed on the system and do not report any RPM validation errors.
# rpm -V sca-appliance-patdev # rpm -V sca-appliance-agent # rpm -V sca-appliance-common # rpm -V sca-appliance-broker
A listing of sca-appliance-* packages in the /usr/share/doc/packages directory shows missing files and directories. There should be a directory for each sca-appliance-* package.
# ls -l /usr/share/doc/packages/ | grep sca- drwxr-xr-x 2 root root 4096 Mar 30 2021 sca-patterns-base
The rpm.install.excludedocs option is set to yes in /etc/zypp/zypp.conf
# grep "rpm.install.excludedocs" /etc/zypp/zypp.conf rpm.install.excludedocs = yes
Resolution
- Change the default behavior of zypper to include all documentation and re-install the sca-appliance-* packages.
- Manually install the sca-appliance-* packages with documentation and leave the default behavior of zypper unchanged.
Option 1 - Change the default behavior and re-install
rpm.install.excludedocs = yesto no:
rpm.install.excludedocs = no
Once this option is set and the file saved, re-install the sca-appliance-* packages.
# zypper in --force sca-appliance-*
zypper in --download-only --force sca-appliance-*
Re-install the files with rpm without using the --excludedocs option.
# rpm -Uvh --force /var/cache/zypp/packages/Server_Applications_Module_15_SP4_x86_64\:SLE-Module-Server-Applications15-SP4-Pool/noarch/sca-appliance-*
Cause
Additional Information
# find /var/cache/zypp/packages/ -name sca-appliance-*rpm /var/cache/zypp/packages/Server_Applications_Module_15_SP4_x86_64:SLE-Module-Server-Applications15-SP4-Pool/noarch/sca-appliance-broker-1.3.1-1.1.noarch.rpm /var/cache/zypp/packages/Server_Applications_Module_15_SP4_x86_64:SLE-Module-Server-Applications15-SP4-Pool/noarch/sca-appliance-common-1.3-10.1.noarch.rpm /var/cache/zypp/packages/Server_Applications_Module_15_SP4_x86_64:SLE-Module-Server-Applications15-SP4-Pool/noarch/sca-appliance-patdev-1.3.1-1.1.noarch.rpm /var/cache/zypp/packages/Server_Applications_Module_15_SP4_x86_64:SLE-Module-Server-Applications15-SP4-Pool/noarch/sca-appliance-agent-1.3.1-1.1.noarch.rpm
The missing documentation files are the result of the rpm install command being called with the --excludedocs option. This option is added to rpm commands run during zypper installations if the rpm.install.excludedocs option is set to yes in /etc/zypp/zypp.conf.
As the RPMs were installed with --excludedocs option, the rpm command expects the documentation files to be missing. This is why verifying their installation with rpm -V does not show any problems.
This error can also be caused by manually installing individual RPMs with the --excludedocs option. If this is the case, re-install the RPMs without specifying --excludedocs.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000020689
- Creation Date: 30-Jun-2022
- Modified Date:06-Jul-2022
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com