4 Replies Latest reply on Sep 16, 2010 7:34 AM by infosecjeff

    How to fix corrupt appliance update files

    infosecjeff

      Where on the appliance can you go and delete the appliance update database?  I cannot get a new 6.8.5 appliance to pull down any appliance updates, the others work fine (AV, Proactive, URL, etc...).

        • 1. Re: How to fix corrupt appliance update files

          The actual database itself is located in /opt/webwasher-csm/conf/smartfilter/sfcontrol

           

          You can stop the webwasher-csm service and remove the file, then restart it and update now.

           

          Check the amount of free space you have left before you remove that file. It may be just that there is no working space left in /opt to download anything else. If there is little room left, then the logs are probably filling the file system. You should reduce the retention on the logs and don't keep as many on-box.

           

          • 2. Re: How to fix corrupt appliance update files
            michael_schneider

            Howdy Jeff,

             

            on the command line run yum update and let us know what that tells you.

             

            thanks,

            Michael

            • 3. Re: How to fix corrupt appliance update files
              infosecjeff

              That's what I had the client try yesterday, after we tried yum clean headers, which returned no headers to clean.

              The yum update came back with some error.  We think we corrupted the update database at some point.

               

              We did receive this error while trying to run the appliance update from the GUI.

              Internal error: not enough arguments for format string

              • 4. Re: How to fix corrupt appliance update files
                michael_schneider

                OK - here is what I did today, which is similar to what you did:

                 

                [root@MWG ~]# yum clean all
                Loading "installonlyn" plugin
                Cleaning up Everything
                0 headers removed
                0 packages removed
                15 metadata files removed
                0 cache files removed
                5 cache files removed
                [root@MWG ~]# cat /etc/yum.repos.d/cglinux.repo
                [cglinux-base]
                name = CgLinux $releasever Repository
                baseurl = http://appliance.webwasher.com/cglinux/5/base/$basearch/
                          http://appliance1.webwasher.com/cglinux/5/base/$basearch/
                          http://appliance2.webwasher.com/cglinux/5/base/$basearch/
                gpgcheck = 1

                 

                [cglinux-updates]
                name = CgLinux $releasever Updates Repository
                baseurl = http://appliance.webwasher.com/cglinux/5/updates/$basearch/
                          http://appliance1.webwasher.com/cglinux/5/updates/$basearch/
                          http://appliance2.webwasher.com/cglinux/5/updates/$basearch/
                gpgcheck = 1

                 

                [webwasher-updates]
                name = Webwasher for CgLinux $releasever Update Repository
                baseurl = http://appliance.webwasher.com/cglinux/5/webwasher/$basearch/
                          http://appliance1.webwasher.com/cglinux/5/webwasher/$basearch/
                          http://appliance2.webwasher.com/cglinux/5/webwasher/$basearch/
                gpgcheck = 1
                [root@MWG ~]# yum update
                Loading "installonlyn" plugin
                Setting up Update Process
                Setting up repositories
                dell-omsa-specific                                                   [1/5]
                dell-omsa-specific        100% |=========================| 1.9 kB    00:00    
                cglinux-base                                                         [2/5]
                cglinux-base              100% |=========================|  951 B    00:00    
                cglinux-updates                                                      [3/5]
                cglinux-updates           100% |=========================|  951 B    00:00    
                dell-omsa-indep                                                      [4/5]
                dell-omsa-indep           100% |=========================| 1.9 kB    00:00    
                webwasher-updates                                                    [5/5]
                webwasher-updates         100% |=========================|  951 B    00:00    
                Reading repository metadata in from local files
                primary.xml.gz            100% |=========================|  233 B    00:00    
                Added 0 new packages, deleted 0 old in 0.00 seconds
                primary.xml.gz            100% |=========================|  76 kB    00:00    
                cglinux-ba: ################################################## 231/231
                Added 231 new packages, deleted 0 old in 1.05 seconds
                primary.xml.gz            100% |=========================| 114 kB    00:00    
                cglinux-up: ################################################## 334/334
                Added 334 new packages, deleted 0 old in 1.71 seconds
                primary.xml.gz            100% |=========================|  233 B    00:00    
                Added 0 new packages, deleted 0 old in 0.00 seconds
                primary.xml.gz            100% |=========================| 2.2 kB    00:00    
                webwasher-: ################################################## 4/4
                Added 4 new packages, deleted 0 old in 0.03 seconds
                No Packages marked for Update/Obsoletion

                 

                Check your repo config, if it looks similar!

                 

                Do you use any update proxy for appliance updates?

                 

                thanks,

                Michael