KB Article #177749

API Portal - zypper segmentation fault

Problem

When trying to use zypper to update packages on the API Portal SuSE Linux Appliance there is a segmentaion fault.

# zypper update apiportal
Retrieving repository 'AP-LATEST-UPDATES' metadata [\]Segmentation fault

Resolution

Here are the 2 procedures which can be used to fix this issue:

Case 1: For Customers who have not removed libcurl4-openssl1 or those who have no information that they can’t upgrade rpms on the machine/VM where API Portal is installed
1. ssh to VM/hostmachine
2. sudo su (be root)
3. vi /etc/ld.so.conf
4. find and delete /opt/suse/lib64 (It will be 1st line in the file)
5. put /opt/suse/lib64 at the end of file
6. vi /etc/sysconfig/apache2
7. paste below 2 lines at the end of the file and save
LD_LIBRARY_PATH="/opt/suse/lib64:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
8. issue ldconfig
9. service apache2 restart
10. zypper refresh to test
11. apiportal test - the standard method used


Case 2: For customers who have removed libcurl4-openssl1 based on our previous instructions, below are the steps to fix :
1. zypper install libcurl4-openssl1 (since we have this rpm in our update server, customer should be able to execute this command)
2. ssh to VM/hostmachine
3. sudo su (be root)
4. vi /etc/ld.so.conf
5. find and delete /opt/suse/lib64 (It will be 1st line in the file)
6. put /opt/suse/lib64 at the end of file
7. vi /etc/sysconfig/apache2
8. paste below 2 lines at the end of the file and save
LD_LIBRARY_PATH="/opt/suse/lib64:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
9. issue ldconfig
10. service apache2 restart
11. zypper refresh to test
12. apiportal test - the standard method used