cancel
Showing results for 
Search instead for 
Did you mean: 
infosecjeff
Level 7

How to fix corrupt appliance update files

Jump to solution

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...).

0 Kudos
1 Solution

Accepted Solutions
McAfee Employee

Re: How to fix corrupt appliance update files

Jump to solution

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

0 Kudos
4 Replies
eelsasser
Level 15

Re: How to fix corrupt appliance update files

Jump to solution

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.

0 Kudos
McAfee Employee

Re: How to fix corrupt appliance update files

Jump to solution

Howdy Jeff,

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

thanks,

Michael

0 Kudos
infosecjeff
Level 7

Re: How to fix corrupt appliance update files

Jump to solution

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

0 Kudos
McAfee Employee

Re: How to fix corrupt appliance update files

Jump to solution

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

0 Kudos