Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Dashboard error on my Linux installation that affects menu rendering

Sylhos March 15, 2018

Hello, I am getting the following in my system dashboard (start screen):

Failed to load resource: the server responded with a status of 401 ()

and seems to be coming from:

http://x.x.x.x:8080/rest/analytics/1.0/publish/bulk

The screen menus do not seem to finish rendering since they have tags visible such as "<u>H</u>ome".

I looked around for a solution but those I found seem to refer to old Jira versions.

1 answer

0 votes
Andy Heinzer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2018

I do not believe that an error on that rest endpoint could cause the problem you are reporting here.  My thought is that this error too might be correlated to the source problem. But I am also not 100% clear on the problem you are seeing here. 

  1. Could you post a screenshot of the error you are seeing?
  2. What version of Jira is this?
  3. When did this problem start?
Sylhos March 15, 2018

Capture.PNGHere is a screenshot.   I get inconsistencies for the same user avatar and the menu rendering.  I temporarily disabled the cache to make sure I was getting the latest from the server, but the problem occurs with and without it.   Thanks for the help.

Sylhos March 15, 2018

This is a new installation with Jira Software version v7.8.0#78000-sha1:4568b9d

Andy Heinzer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2018

That does look very strange.

Does this problem only happen on Dashboards in Jira?  Or are you seeing this on all the pages in Jira, like issue details, Agile Boards, reporting, system admin, etc?

As I see it, there could be a couple of different causes here:

  • A plugin
  • A custom script
  • Some other unexpected translation problem.

To see if a plugin to Jira is causing this, I would be interested to see if you can try to disable all the 3rd party plugins in Jira temporarily to see if the problem goes away.  You can follow the steps in Disabling and enabling add-ons to test this.  

If this problem does not show up when the plugins are disabled, then at least we know one of those plugins is likely the cause of this problem.

If the problem persists, then I would be interested to see if there is some kind of script being injected into the page.   I would start with checking the announcement banner in Jira system administrator menu.  We have seen some admins use this form to inject javascript onto every page of Jira.  But this is not the only place that custom scripts can live in Jira.  Many times these are stored in custom field descriptions.   If that happens you should be able to run the following SQL queries against your Jira database to see if you might have some such scripts:

select * from fieldconfigscheme where description like '%<script%' OR description like '%<SCRIPT%';
select * from customfield where description like '%<script%' OR description like '%<SCRIPT%';    
select * from customfield where description like '039avascript%' OR description like '%html%' OR description like '%css%';
select * from fieldconfiguration where description like '039avascript%' OR description like '%html%' OR description like '%css%';

 

If that does not turn up any results, then I think the next step is to see if you can temporarily revert the system language Jira is set to use back to English.  It could be this is a new bug in regards to translations, but I am not confident this is the case.  Just want to understand more about what might be causing this.

Please let us know the results.

Andy

Sylhos March 15, 2018

Since it is a brand new installation, there are no third party add-ons installed.  When I went to the section mentioned, there was an update notification for the "Universal Plugin Manager" component.  I did that and then reindexing was suggested.  That I did too.

The announcement banner is empty.

All scripts returned no records.

In terms of language, the system's default language is English, but my Admin user preference is set to Spanish.  When I went to the profile section to change it I get a "Your session timed out" error every time I click on the edit button near the preferences.

I assume there is a way to can change the language directly on the database?

Capture.PNG

Sylhos March 15, 2018

Andy, I forgot to mention.  The menu artifacts show everywhere, but I have only seen the POST error in the Dashboard (start page).

Andy Heinzer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2018

Hi Victor,

Thank you for explaining all of that.  With this information I was able to try to switch my Jira 7.8.0 instance into Spanish.  The place to do this is a bit different than the user profiles: It is explained in the documentation Choosing a default language.

Only when I put my system into Spanish, do I too see these HTML tags in the menus.  This is clearly a bug.   Please see https://jira.atlassian.com/browse/JRASERVER-66829 for details.

The good news is that there is a documented work-around to fix this:

 

Workarounds

While the issue is officially resolved, you may use the Jira 7.7.0 Language pack in the following way:

  1. Download the Jira 7.7.0 Spanish Lang Pack: jira-core-language-pack-es_ES-7.7.0.v20180108103548.jar
  2. Go to <Jira Installation Folder>/WEB-INF/atlassian-bundled-plugins/
  3. locate and remove the file jira-core-language-pack-es_ES-7.#.#.v#############.jar (you may want to back it up somewhere...)
  4. Place the Jira 7.7.1 Lang pack in the directory.
  5. Restart Jira.
  • This will fix most of the regressions introduced in the language packs of Jira 7.7.2 and 7.8.
  • This workaround originally suggested the pack from Jira 7.7.1 but it seems it had a few translation errors already in it, so 7.7.0 seems a better fix, even if it is just temporary.
Sylhos March 15, 2018

Yes.  That fixed the problem.  Still have the user icons not displaying consistently.

Do you think that would be a different issue?

For what I see, the user pics coming from gravatar.com show, but those coming from /download/attachments/xxxx/user-avatar?s=yy fail.

Andy Heinzer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 16, 2018

Hi Victor,

In this case, I don't think these two problems are related.  It might help to instead create a different thread for this different issue.

Sylhos March 16, 2018

I believe so too.  thanks for all the help Andy!  Much appreciated!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events