mgr-sync fails with a xmlrpc.client.ProtocolError: 404 Not Found
This document (000021817) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Manager Server 4.3
Situation
On SUSE Manager Server, the mgr-sync
command is failing with the following error:
General error: <ProtocolError for SUSE_MANAGER_FQDN:80/rpc/api: 404 Not Found>
It was also noticed, that Auto-installation Distributions were not working probably and failing with:
Please make sure your installation medium is available.
Choose the URL to retry.
http://SUSE_MANAGER_FQDN/ks/dist/s12sp5
cd :/
hd :/
Enter another URL
However, product listing and refresh is working as expected via Web UI. In addition spacecmd
is able to connect to SUSE Manager :
INFO: Connected to https://SUSE_MANAGER_FQDN/rpc/api as wtmpx
Resolution
Using the apachectl
command it was noticed there is another Virtual Host listening on port 80:
SUMA_SRV# apachectl -S
VirtualHost configuration:
*:80 SUSE_MANAGER_FQDN (/etc/apache2/conf.d/cobbler.conf:24)
*:443 SUSE_MANAGER_FQDN (/etc/apache2/vhosts.d/vhost-ssl.conf:25)
To fix the issue, remove <VirtualHost *:80>
and </VirtualHost>
from /etc/apache2/conf.d/cobbler.conf
and then restart Apache via: systemctl restart apache2.service
Cause
The original /etc/apache2/conf.d/cobbler.conf
file coming from the cobbler package contains the following extra configuration:
23a24
> <VirtualHost *:80>
48a50
> </VirtualHost>
However, the original /etc/apache2/conf.d/cobbler.conf
file on SUSE Manager doesn't contain a configuration for VirtualHost on Port 80.
Additional Information
According to the default configuration in /etc/apache2/conf.d/zz-spacewalk-server.conf
Apache will redirect everything on port 80 to tomcat.
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:000021817
- Creation Date: 30-Apr-2025
- Modified Date:01-May-2025
-
- SUSE Manager Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com