packages on SUMA server's filesystem not found by client
This document (000020953) is provided subject to the disclaimer at the end of this document.
Environment
Situation
Retrieving package supportutils-plugin-susemanager-client-4.3.2-6.24.1.noarch (1/1), 13.5 KiB ( 21.4 KiB unpacked) Retrieving: supportutils-plugin-susemanager-client-4.3.2-6.24.1.noarch.rpm .......................................[not found] File './getPackage/NULL/b353d5598088939f9f043d0250de1c57d68c3e97d4736755708c0e9adeb0820e/supportutils-plugin-susemanager-client-4.3.2-6.24.1.noarch.rpm' not found on medium 'https://redactedhostname:443/rhn/manager/download/sle-manager-tools12-updates-x86_64-sp5?eyJhbGciOiJIUzI1Niz9.eyJleHAi0jE2OTUxNDg4ODQsImlhdCI6MTY2MzYxMjz4NCwibmJmIjoxNjYzNjEyNzY0LCJqdGkiOiJSmhSTlhKN2v2QkhtTE1VVRHhnIiw1b3JnIjoxLCJvbmx5Q22hhbm5lbHMiOlsic2xlLW1nbmFnZXItdG9vbHMxMi11cGRhdGVzLXg4Nl82NC1zcDUiXX0.q0LcTMBlU_YBiTERmmcGR5lQz53K0RMlbsYNB0dcO3s' Abort, retry, ignore? [a/r/i/...? shows all options] (a): a Problem occurred during or after installation or removal of packages: Installation aborted by user Please see the above error message for a hint.
While investigating the issue, the missing package is seen on the filesystem on the SUSE Manager server and is available in the expected channel according to the WebUI and spacecmd output. When inspected with 'ls -l' or 'stat', the permissions for one or more directories in /var/spacewalk/packages/NULL is different than 'drwxr-xr-x', or the permissions for one or more files in these directories is different than '-rw-r--r--'.
Resolution
To set the permissions for all of these directories, run the following command on the SUSE Manager server's CLI:
find /var/spacewalk/packages/NULL -type d -exec chmod 755 {} \;
To set the permissions to the correct value for all files in these directories, use this command:
find /var/spacewalk/packages/NULL -type f -exec chmod 644 {} \;
Cause
Additional Information
To use spacecmd to check if a package is on the server, use the 'softwarechannel_listpackages' function:
spacecmd -u <admin username> softwarechannel_listpackages <channel name> | grep "package name"
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:000020953
- Creation Date: 24-Jan-2023
- Modified Date:20-Mar-2023
-
- SUSE Manager Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com