I have upgraded test environment from 7.13 to 8.9.1 and service desk 4.9.1. I have also upgraded all plugins include Insight.
After upgrades it gives Something went wrong.Contact administrator.
There are WARN in atlassian-jira.log file
2020-06-21 17:06:29,848+0400 SdSerialisedOffThreadProcessor:thread-1 WARN [c.a.j.cache.request.RequestCacheImpl] Incorrect usage of JIRA API. You can only create/use: RequestCacheImpl inside a context (request or Jira-Thread-Local). Check: JiraThreadLocalUtil for details. 2020-06-21 17:06:29,848+0400 SdSerialisedOffThreadProcessor:thread-1 WARN [c.a.j.cache.request.RequestCacheImpl] From Jira 9.0 version creation/usage of RequestCacheImpl will throw the IllegalStateException.
I have tried to use this in log4j.properties and it didn't help me.
log4j.logger.com.atlassian.jira.cache.request.RequestCacheImpl = ERROR, filelog
log4j.additivity.com.atlassian.jira.cache.request.RequestCacheImpl = false
I have also tried restore to restore Insight to the previous version of plugin that was installed. I have cleaned all plugins caches and this error on the web page disappeared.
When I update Insight to the newest one it is appear again.
I have the same issue after upgrading our QA from 8.7.1 to 8.9.1.
Can concur, when removing Insight the error goes away from within Jira, but the errors in the log to do not. The moment Insight is reinstalled the error returns.
But I would suspect it's a bug in the way Insight is trying to handle things
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We have the same issue on our testserver, I have created a ticket to Mindville.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So there was a preparation guide that needed to be followed. The steps I received from mindville are as follows:
The Steps to take now, as you have upgraded already are as follows (and here is the MSSQL Database example):
Start by uninstalling Insight (no Data loss is expected)
When uninstalled, query the database:
ALTER TABLE AO_8542F1_IFJ_OBJ_ATTR_VAL DROP CONSTRAINT fk_ao_8542f1_ifj_obj_attr_val_object_attribute_id;
Then, run the following SQL query:
UPDATE propertystring SET propertyvalue = '75' WHERE id = ( SELECT id FROM propertyentry WHERE property_key = 'com.riadalabs.jira.plugins.insight:build');
Install Insight version 8.5.2 (currently recommended) or 8.6.0
After installation, query the database:
ALTER TABLE AO_8542F1_IFJ_OBJ_ATTR_VAL ADD CONSTRAINT fk_ao_8542f1_ifj_obj_attr_val_object_attribute_id
FOREIGN KEY (OBJECT_ATTRIBUTE_ID) REFERENCES AO_8542F1_IFJ_OBJ_ATTR(ID);
Then (for MSSQL ONLY):
UPDATE AO_8542F1_IFJ_ICON SET TYPE_ID = 0 WHERE TYPE_ID IS NULL
It is important to run a clean re-index of Insight when the above steps are done.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This line is not passed
UPDATE AO_8542F1_IFJ_ICON SET TYPE_ID = 0 WHERE TYPE_ID IS NULL
Msg 207, Level 16, State 1, Line 1
Invalid column name 'TYPE_ID'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you a very much Andrew.
I've restored to the old 7.13 version then tried step by step upgraded to JSW 8.55 LTS version with insight 8.5.2. All works great.
Also passed this line with 'TYPE_ID'
UPDATE AO_8542F1_IFJ_ICON SET TYPE_ID = 0 WHERE TYPE_ID IS NULL
Thank you a lot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've tested this on test environment works great. But on buy prod environment it doesn't work. I've done all queries the same way but it still can't find TYPE_ID attribute for AO_8542F1_IFJ_ICON. It is missed. Why?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What I understand the issue is actually with Jira and there is an fix for this waiting to be released.
We turned the logging off for this basically on the test server, but will wait until its completely fixed before we upgrade prod.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That fixes the log display, the other issue seems to have been related to the upgrade of Insight. looking forward to the fix though, the less errors in the logs the easier it is to track down an actual issue :).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I try to fix this bug by this way, but when I want to use SQL queries return this error:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CONSTRAINT fk_ao_8542f1_ifj_obj_attr_val_object_attribute_id' at line 1
My SQL version = Ver 14.14 Distrib 5.7.31.
How I can fix this? @Andrew Downs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arman,
Sorry for the delayed response. The steps I mentioned were for Microsoft SQL.
MySQL I think is as follows:
Before installation, query the database:
ALTER TABLE AO_8542F1_IFJ_OBJ_ATTR_VAL DROP FOREIGN KEY fk_ao_8542f1_ifj_obj_attr_val_object_attribute_id; |
After installation, query the database:
ALTER TABLE AO_8542F1_IFJ_OBJ_ATTR_VAL ADD CONSTRAINT fk_ao_8542f1_ifj_obj_attr_val_object_attribute_id FOREIGN KEY (OBJECT_ATTRIBUTE_ID) REFERENCES AO_8542F1_IFJ_OBJ_ATTR(ID); |
More details are here:
https://documentation.mindville.com/insight/latest/preparing-for-insight-version-8-4-36953678.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.