Cloning of a channel with thousands of packages fails with "500 Internal Server Error"
This document (000021609) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Manager 5.0 Server
Situation
Cloning a channel with high number of packages (e.g. RES-AS 8 channel with 35601 packages) from webUI, the webpage remains loading after several hours.
If such a channel is cloned from command line interface, it fails with "500 Internal Server Error" error.
uyuni-server:# spacecmd
Welcome to spacecmd, a command-line interface to Spacewalk.
Type: 'help' for a list of commands
'help <cmd>' for command-specific help
'quit' to quit
Spacewalk Username: admin
Spacewalk Password:
INFO: Connected to http://localhost/rpc/api as admin spacecmd {SSM: 0}> software channel_clonetree
Source Channels:
rhel8-pool-x86_64
Select source channel: rhel8-pool-x86_64 Prefix: clone-
Copy source channel GPG details? [y/N]: y
Original State (No Errata) [y/N]: N
INFO: Cloning rhel8-pool-x86_64 as clone-rhel8-pool-x86_64 INFO: Cloning res-8-updates-x86_64 as clone-res-8-updates-x86_64
INFO: Cloning res-as-8-updates-x86_64 as clone-res-as-8-updates-x86_64 ERROR: <ProtocolError for localhost/rpc/api: 500 Internal Server Error>
Resolution
Increase the Java memory by edit /etc/rhn/rhn.conf and appending this parameter:
taskomatic.java.maxmemory=8192
Restart spacewalk-service status:
# spacewalk-service restart
Cause
Not enough dedicated java memory to clone a channel with the high number of packages.
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:000021609
- Creation Date: 04-Nov-2024
- Modified Date:05-Nov-2024
-
- SUSE Manager Server
- SUSE Manager
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com