Netboot/SUS Appliance - SUS branches not showing available packages

plawrence
Contributor II

I have setup the SUS on the appliance with the following details:

Base URL: http://sus.fqdn
Store updates on this SUS: ticked

I then pressed the Sync SUS button and let it download 50GB of updates overnight, the Dashboard shows that amount of SUS Disk Usage. I created a new branch, but there are no packages listed in there to select. I tried creating new branches and setting on as the Root Branch, but still no packages appear in branch screen. I ran another sync, but it didn't change anything.

I SSH'd into the appliance and I can see that it is creating .sucatalog files in /srv/SUS/html/content/catalogs for each of the branches but their contents are as follows:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>ApplePostURL</key>
    <string>http://swquery.apple.com/WebObjects/SoftwareUpdatesStats</string>
    <key>IndexDate</key>
    <date>2012-03-07T21:17:36Z</date>
    <key>Products</key>
    <dict>
    </dict>
</dict>
</plist>

Is there something I am missing to get these updates to display?

1 ACCEPTED SOLUTION

plawrence
Contributor II

I just removed this VM and made a new one. The branches are populating correctly now.

View solution in original post

10 REPLIES 10

plawrence
Contributor II

I just removed this VM and made a new one. The branches are populating correctly now.

andyinindy
Contributor II

I am seeing the same issue. In fact, it seems as if the branches themselves are not even being created properly, as I do not see anything appear in /srv/SUS/html/content/catalogs when I create a branch in the GUI.

Is there no way to remedy this without reinstalling the VM?

On a related note, why are the Reposado tools (repoutil, repo_sync) not included in the VM? If these were present, I could use them to manually create and populate branches (since the GUI seems to be broken in this regard).

--Andy

ClassyLee
New Contributor III

Hey Guys,

I too am having the exact same issue with the SUS branches not showing any of the updates.

I've noticed a lot of errors in the apache2 error logs, but am not sure if these errors are related to this issue. I just find it kind of odd that every time I try to view a branch these three error messages are populated to the log:

Fri May 11 10:47:02 2012] [error] [client 10.5.10.25] File does not exist: /var/www/webadmin/scripts/jquery, referer: https://reposado.mycompany.com/webadmin/admin.php?service=SUS
[Fri May 11 10:47:02 2012] [error] [client 10.5.10.25] File does not exist: /var/www/webadmin/scripts/jquery.bt.js, referer: https://reposado.mycompany.com/webadmin/admin.php?service=SUS
[Fri May 11 10:47:02 2012] [error] [client 10.5.10.25] File does not exist: /var/www/favicon.ico

--Dan

plawrence
Contributor II

Andy

The Reposado tools are available in /var/lib/reposado/ try running them manually and see if there is any errors in the output.

andyinindy
Contributor II

Aha, yes they are! Thanks for this info.

I am currently running 'repo_sync' and it appears that all of the updates are being downloaded a second time. My disk will probably fill up before this completes.

Prior to this I ran 'repoutil --products' and got an odd message:

Product 041-4712 is missing the sort key {'AppleCatalogs': ['http://swscan.apple.com/content/catalogs/others/index-leopard-snowleopard.merged-1.sucatalog'], 'CatalogEntry': {'ServerMetadataURL': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/iMacWi-FiUpdate.smd', 'PostDate': datetime.datetime(2012, 3, 21, 3, 31, 34), 'Packages': [{'URL': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/iMacWi-FiUpdate.pkg', 'MetadataURL': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/iMacWi-FiUpdate.pkm', 'Size': 1345578}], 'Distributions': {'el': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.el.dist', 'ca': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.ca.dist', 'sv': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.sv.dist', 'ar': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.ar.dist', 'Dutch': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.Dutch.dist', 'cs': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.cs.dist', 'ru': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.ru.dist', 'Italian': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.Italian.dist', 'pt': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.pt.dist', 'no': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.no.dist', 'tr': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.tr.dist', 'French': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.French.dist', 'th': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.th.dist', 'ro': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.ro.dist', 'pt_PT': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.pt_PT.dist', 'pl': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.pl.dist', 'hr': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.hr.dist', 'zh_TW': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.zh_TW.dist', 'hu': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.hu.dist', 'English': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.English.dist', 'fi': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.fi.dist', 'da': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.da.dist', 'he': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.he.dist', 'zh_CN': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.zh_CN.dist', 'German': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.German.dist', 'ko': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.ko.dist', 'Japanese': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.Japanese.dist', 'sk': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.sk.dist', 'uk': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.uk.dist', 'Spanish': 'http://swcdn.apple.com/content/downloads/01/33/041-4712/59HgwNcTXgvg5s3qqZ2MqRnK9yWkS48XDQ/041-4712.Spanish.dist'}}}! Product info database may be incomplete.

So maybe the initial sync was unsuccessful? I guess we'll see what happens when/if this second attempt completes.

Thanks again for the info.

--Andy

andyinindy
Contributor II

Found this:

https://groups.google.com/group/reposado/browse_thread/thread/52cfef8bbdee7a4b?pli=1

I deleted ProductInfo.plist, removed all of the updates, and I am now re-running repo_sync. Hoping it helps...

andyinindy
Contributor II

FYI, removing the plist and resyncing fixed the problem for me. My "testing" branch is now populated with updates. However, I appear to be missing several recent updates, including 10.7.4. Not sure why these would not have been synced down... anyone have any ideas?

--EDIT--

Upon closer inspection, it seems that NONE of the 10.7 updates are showing up in the GUI or when I do a 'repoutil --updates'. However, the updates themselves have been downloaded, and are available in the "index-lion-snowleopard-leopard.merged-1.sucatalog". Sigh...

ClassyLee
New Contributor III

I ended up deleting the VM and starting over again. And of course everything appears to be working.

Srinivasan
New Contributor

I tried deleting the VM and recreating a new one and still jupdates havent been seen. i imported the appliance through Oracle VB
can anyone help?

mcooper
New Contributor III

We ran into this issue as well. Recreating the VM did not fix our problem because we kept repeating the same mistake when configuring the appliance. There seems to be a bug, after creating a branch, if you check "Store software updates on the NetBoot/SUS server" before manually running the sync, the updates will download, but they'll never show up in the list of available updates. The only way we've been able to get the list of updates to appear correctly is to first run the manual sync, and let it download the 50MB or so worth of list data. Once that has downloaded you'll see the list of updates, then go back and check the option to store the software updates.

Every time we checked to store the updates, before syncing first, the list of updates would never appear. Even if we unchecked the option, the sync operation would continue to download the updates, but the list of updates would never populate. Conversely, every time we ran the manual sync first, then checked to store the updates, the list would properly populate.