Page 1 of 1

Neptune theme broken in last 2 releases?

Posted: Wed Jun 12, 2024 3:02 pm
by GldRush98
I have a user who was happily using the new Neptune gui until the last 2 releases. If you try to log in with a user with that theme set, or you switch your account to that theme, you're met with a blank screen that some times shows a generic error and is some times just all blue.

I have 2 completely separate XI servers I tried this on and both broke with the Neptune theme set in the same way.

Re: Neptune theme broken in last 2 releases?

Posted: Wed Jun 12, 2024 4:02 pm
by cnorell
GldRush98,

What version is your user's XI running? We had some issues in 2024R1.1.3 that could potentially cause the symptoms you're seeing, and have fixed several of those in 2024R1.1.4, which was released today.

Best Regards,

Cory Norell

Re: Neptune theme broken in last 2 releases?

Posted: Thu Jun 13, 2024 3:03 pm
by GldRush98
1.1.3 and 1.1.4 both exhibit the same behavior.
Capture.PNG

Re: Neptune theme broken in last 2 releases?

Posted: Thu Jun 13, 2024 3:15 pm
by cnorell
Are you familiar with web developer tools? On Chrome and Firefox, you can access them by pressing F12. Once the developer tools are open, you should see a Network tab that will track requests. I've attached a screenshot of the Chrome developer tools for reference:
Screenshot 2024-06-13 at 3.11.03 PM.png
Once you have the developer tools open, you should be able to reload the page and see exactly which request throws the 404 error. If you can copy/paste or screenshot the bad request, that would help troubleshoot. Since my last post, I heard about a different 404 error related to our translation files that could be causing your issue.

If you are uncomfortable doing any of this, you can open a case with Customer Support provided you have entitlements available.

Best Regards,

Cory Norell

Re: Neptune theme broken in last 2 releases?

Posted: Fri Jun 14, 2024 10:34 am
by swolf
If the upgrade was otherwise successful, there is one other thing the support team reported to us yesterday that you can check independently.

First, take a system level backup (i.e. VM snapshot), since we're going to muck around in the database.

In the Nagios XI terminal, look at the configured languages for all users:

Code: Select all

. /usr/local/nagiosxi/etc/xi-sys.cfg
mysql -u root -p$mysqlpass nagiosxi -Nse "SELECT * from xi_usermeta WHERE keyname = 'language'"
On systems where Neptune is working, the output looks similar to this:

Code: Select all

61	2	language	en_US	1
92	1	language	en_US	1
149	3	language	en_US	1
Some customers have had this instead:

Code: Select all

61	2	language	en	1
92	1	language	en	1
149	3	language	en	1
If you find that the language is set to "en", change it to "en_US":

Code: Select all

mysql -u root -p$mysqlpass nagiosxi -Nse "UPDATE xi_usermeta SET keyvalue = 'en_US' WHERE keyname = 'language' AND keyvalue = 'en'"
Hopefully that helps - if that doesn't resolve your issue, I'd recommend taking the debugging steps that Cory recommended.

-Sebastian

Re: Neptune theme broken in last 2 releases?

Posted: Fri Jun 14, 2024 11:07 am
by ssunga
What OS are you running Neptune on and are there any errors in the console (dev tools --> console)?

Re: Neptune theme broken in last 2 releases?

Posted: Fri Jun 14, 2024 1:36 pm
by GldRush98
swolf wrote: Fri Jun 14, 2024 10:34 am If the upgrade was otherwise successful, there is one other thing the support team reported to us yesterday that you can check independently.

First, take a system level backup (i.e. VM snapshot), since we're going to muck around in the database.

In the Nagios XI terminal, look at the configured languages for all users:

Code: Select all

. /usr/local/nagiosxi/etc/xi-sys.cfg
mysql -u root -p$mysqlpass nagiosxi -Nse "SELECT * from xi_usermeta WHERE keyname = 'language'"
On systems where Neptune is working, the output looks similar to this:

Code: Select all

61	2	language	en_US	1
92	1	language	en_US	1
149	3	language	en_US	1
Some customers have had this instead:

Code: Select all

61	2	language	en	1
92	1	language	en	1
149	3	language	en	1
If you find that the language is set to "en", change it to "en_US":

Code: Select all

mysql -u root -p$mysqlpass nagiosxi -Nse "UPDATE xi_usermeta SET keyvalue = 'en_US' WHERE keyname = 'language' AND keyvalue = 'en'"
Hopefully that helps - if that doesn't resolve your issue, I'd recommend taking the debugging steps that Cory recommended.

-Sebastian
This indeed fixed it! My users all had just en (this is a pretty old system), and changing to en_US fixed Neptune.
Thanks!

Re: Neptune theme broken in last 2 releases?

Posted: Wed Jun 19, 2024 12:20 pm
by amoss24
We found a user of ours in the same boat with the Neptune theme after doing an upgrade to 2024R1.1.4. We have a Nagios install that dates pretty far back so all users in our DB are just set to "en." Changing to en_US fixes the theme for them.
image.png
The language options show three English settings for us. Second option is en_EN or UK, third is en_US.