NetSUS Branch URL creation "Not Found"

gm7cadd9
New Contributor III

Whenever I create a branch in the NetSUS appliance, I test it by copying the URL into a new window, and I always get a "The requested URL /content/catalogs/index_catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1_test.sucatalog was not found on this server" error.

Obviously this means the client won't work either, I can verify the URL of my old SUS just fine, it displays the XML no issue. Any reason as to why catalogs I am making in this appliance aren't working?

7 REPLIES 7

mm2270
Legendary Contributor III

That URL doesn't look right to me. Is that the actual error you get, copied and pasted?
It shouldn't be "/content/catalogs/index_catalogs/others/index" it should be "/content/catalogs/others/index-"

You have an "index_catalogs" section in the middle there that is likely throwing it off.

Can you post some of the settings as they appear on your appliance?

gm7cadd9
New Contributor III

So none of this is in production and I can wipe/add anything, I've been following the guide for the appliance, but I do not understand the best practices for adding branches.

I was under the impression I could just create two branches, one called "test" and the other "production" When I do I get the following URL's generated for me:

FYI: This is my base URL: https://la-reposado.hallmarkchannel.com

https://la-reposado.hallmarkchannel.com/content/catalogs/index_test.sucatalog

https://la-reposado.hallmarkchannel.com/content/catalogs/index_production.sucatalog

Neither of those work in the browser, I get the same 404 error. I thought maybe it's because I need to follow the proper URL config for Mountain Lion, Lion, etc that includes the long "merged" URL, but I still get the same 404, this seems more like a configuration/permissions error on my end, but I have no idea where, or how to fix it.

mm2270
Legendary Contributor III

So using the above, have you tried the following URLs in a browser?

https://la-reposado.hallmarkchannel.com/content/catalogs/others/index-mountainlion-lion-snowleopard-...

https://la-reposado.hallmarkchannel.com/content/catalogs/others/index-mountainlion-lion-snowleopard-...

Based on how I see the URLs get set up, those should work, provided there are no configuration issues, as you say. I do see your URL is using SSL (https) Are you certain its set up properly for that? You can try the same URLs as above but with http instead to see if you can pull them up.

Finally, if you haven't done so already, look at the reposado github page. I find the included documentation in the NetSUS appliance too slim. The project page has better information about branches and how they work.
https://github.com/wdas/reposado

gm7cadd9
New Contributor III

dzhang
New Contributor II

Did you find the resolution? I have the same problem as yours.

Banks
Contributor
  1. You can't browse to an htaccess URL-rewritten site in a browser - the only client meant to work to access the 'expanded' URL is the softwareupdate binary. Complicating matters is the fact Mavericks can't use the old --CatalogURL testing method, so you should be setting it for the system with ``` sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL "http://foo.bar/content/catalogs/index_test.sucatalog" ``` and then running softwareupdate -l
  2. Without providing a valid cert(or seeding it on client workstations,) https will fail from the client with this (somewhat obvious) error:
    Finding available software
    The certificate for this server is invalid. You might be connecting to a server that is pretending to be “foo.bar” which could put your confidential information at risk.

So the GUI may not be lying to you about what the 'index' URL should be, but it doesn't mean the service is 100% functional for both the cert reason and the fact rewrites seem borked - for example the test listed here: https://github.com/wdas/reposado/blob/master/docs/URL_rewrites.txt doesn't seem to be working:

curl --user-agent "Darwin/13" http://foo.bar/content/catalogs/index_test.sucatalog
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /content/catalogs/index_test.sucatalog was not found on this server.</p>
<hr>
<address>Apache/2.2.22 (Ubuntu) Server at 10.0.111.28 Port 80</address>
</body></html>

ukspvmalapati
New Contributor III

Hi All,
were you able to sort this issue? I do see the same issue. Till last week I am able to view content in branch URL , now it is no more?

any suggestions please?

Thanks
VM