Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Base URL deoes not propagate

Hi

We are installing Jira Software on a new server
After restoring from a backup file of the old server, we changed the base URL to match the new server. 
Jira Software works fine.
But I can not access Portfolio from the Jira software menu: the base URL displayed in the browser is still the old base URL. 
How can I change the base URL for the apps that I have: Portfolio and Tempo TimeSheet?
Thanks
Nghia

1 answer

0 votes

Hello @nph ,

With the base URL changing the setting should update the behavior consistently across the whole application so since this is updated correctly in some locations but not in others, first off I would say to do a restart on the Server with a server side application caching flush / rebuild to clear out anything hanging server side and also do a clear out on browser side caching as well to make sure nothing is hung up locally.

To manually flush out the server side Application caching 

  • Stop Jira
  • Remove/Delete the application cache files ".bundled-plugins" and ".osgi-plugins" manually from the <Jira Home >/plugins directory (These are hidden by default):
    • $jira-home/plugins/.bundled-plugins
    • $jira-home/plugins/.osgi-plugins
  • Delete the contents of the work directory (!) Only remove the contents, do not remove the base work directory itself, or the path will not rebuild correctly, this one is located at:
    • $jira-install/work/*
  • Restart your JIRA instance

This action will trigger a full reload to the installed applications into the application caching.

I would also suggest looking at the server.xml context paths and proxy configurations as discussed in the following Community Thread, where a similar base URL error was traced back to a context path misconfiguration:

Regards,
Earl

Hi Earl

Thanks. I tried but no success so far :-(

Any other ideas?

 

Thx

Nghia

Hi @nph ,

Sorry for the delayed reply, but looking at this the menue options for the applications should be using the same base URL as the main application, so navigating through Jira should have the same behavior as navigating through installed apps. 

I am wondering if there is something in your DNS or Proxy settings doing a URL redirect based on the full application menu URL options, possibly a load balancer that is sending some of the requests to the new server and some to the old one.  I would recomend reaching out to your network team to see if they can check out the settings and see if there are any redirects set up for the Jira Server.

Also something you could do to verify nothing is copying over URL wise in the restore is that you could take a site backup of the site, extract the zip and check the entities.xml file for any mention of the old URL.  If you find anything you could do a manual search and replace of all URL elements in the file, and then re-import to scrub out any occurrence of the old url with the new one.

To do this you could use the following format on a linux/unix based OS:

sed -r -e 's/oldvalue/newvalue/g' <export-file-name>

So as an EXE if you wanted to change the base url from "http://mycompany.com" to "http://mynewcompanyname.com" You would make a backup and extract the zip file it contains Two files, entities.xml and activeobjects.xml, you would use the following command to update the entities.xml where the data portion lives, and the active objects is the database mappings, no update to the second file:

sed -r -e 's/mycompany.com/mynewcompanyname.com/g' entities.xml

Once the date is updated you re zip the two files, and use the new zip to restore the site.

Regards,
Earl

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Advanced Roadmaps

3 short videos to help you get started with Advanced Roadmaps

Hi community, I’m Roi, a product manager working on Advanced Roadmaps for Jira. While Advanced Roadmaps is a powerful tool to plan and track work at scale, we know it can be challenging to get star...

4,711 views 24 17
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you