Bug 818761 - "Unable to re-install or upgrade server on same host and port due to 404 /coregui/ not found"
Summary: "Unable to re-install or upgrade server on same host and port due to 404 /cor...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Documentation
Version: JON 3.1.0
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: DR01
: JON 3.3.0
Assignee: Jay Shaughnessy
QA Contact: Mike Foley
URL:
Whiteboard:
: 640212 (view as bug list)
Depends On:
Blocks: jon310-sprint11, rhq44-sprint11 820736
TreeView+ depends on / blocked
 
Reported: 2012-05-03 21:13 UTC by Mike Foley
Modified: 2014-10-23 12:26 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 820736 (view as bug list)
Environment:
Last Closed: 2014-06-06 14:57:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 821093 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 821093

Description Mike Foley 2012-05-03 21:13:33 UTC
Description of problem:  "Unable to re-install or upgrade server on same host and port due to 404 /coregui/ not found"


Specifically ... step #11 on this document ..


http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/3.0/html/Installation_Guide/upgrading.html

Says:
Open the web UI.
http://hostname:7080

But the redirection is not happening.

This happens to me all the time on install ... and will affect customers on install and upgrade.  I have become sort of numb and desensitived to it ... and just enter the /welcome.jsf and /coregui on my URI ... but this is not in the doc.

Comment 1 Larry O'Leary 2012-05-03 21:17:31 UTC
This is a result of browser caching a redirect:

http://localhost:7080/   --->  http://localhost:7080/coregui/


So, once a server is installed and the browser goes to http://localhost:7080 and gets redirected to http://localhost:7080/coregui/ it can never be redirected to http://localhost:7080/installer/welcome.jsf (which is what is supposed to happen on first install) due to the cached redirect.

Comment 2 John Mazzitelli 2012-05-09 13:38:50 UTC
i'm pretty sure we send the no-cache HTTP headers in the installer jsp pages, but maybe not all of them that all browsers honor. Anyone know which no-cache HTTP headers we should ensure we send to get this to not be cached?

Comment 3 Jay Shaughnessy 2012-05-10 14:03:16 UTC
*** Bug 640212 has been marked as a duplicate of this bug. ***

Comment 4 Jay Shaughnessy 2012-05-10 14:26:18 UTC
I may end up giving this back, I'm not very sure about this stuff.

Here's what seems to be happening, starting with a clean browser cache:

1) Unzip RHQ and start it.

2) http://localhost:7080/ will bring you to the installer because:

   - ROOT.war web.xml sets its welcome-file to index.html
   - which sends you to /installer/welcome.jsf
   - it also specifies no-cache

3) You perform the install and it deploys rhq.ear:

   - in application.xml we set portal.war as the context root
   - portal war sets its welcome file to its index.html
   - the index.html redirects to /coregui/ (via meta refresh with a 0 interval)

I think maybe this can get cached.  So, perhaps if we add no-cache to
portal-war's index.html we'll be ok.  So, if rhq.ear/portal-war are not running, like when we're upgrading, that the installer would again get precedence.

Worth a try...

Comment 5 Jay Shaughnessy 2012-05-10 20:14:50 UTC
A fix has been committed for the upstream BZ.  Awaiting verification.

Comment 6 Larry O'Leary 2012-05-11 20:41:23 UTC
Captured documentation task Bug 821093 to identify this as a Known Issue seeing that even with this fix, the problem will exist for previous installations.

Comment 7 Jay Shaughnessy 2012-05-21 15:42:57 UTC
Cherry pick from master: Commit c321a60e4e828fa6a538d08ed9198dc83ace130b


Note You need to log in before you can comment on or make changes to this bug.