IMatch Dashboard is constantly showing the following error message

Started by mrmsa_2022, June 26, 2023, 11:20:02 AM

Previous topic - Next topic

mrmsa_2022

IMatch Dashboard is constantly showing the following error message: "Oops. Something went wrong (Entities). Click here to refresh the Database or press <F5> to reload the Databoard." 

Mario

Doe you have any persons or events created for this database?
Entities refers to the IMatch Graph, which manages people, events, groups and families.

I've just tried with a fresh database. The Dashboard works. Also for a fresh installation on a fresh Windows 11.

The log shows no warnings (except for a not installed spell checker dictionary).

When you open the View menu > Panels > Output Panel and switch to the Dashboard, do you see warnings or errors in the "App" tab in the Output Panel?
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

mrmsa_2022

"Doe you have any persons or events created for this database? "
8846 people, 0 event, 102341 faces.

" When you open the View menu > Panels > Output Panel and switch to the Dashboard, do you see warnings or errors in the "App" tab in the Output Panel? "
No warning, only empty panel

Mario

Hm. I see the Dashboard error in the log, but I can tell only that a request to fetch data failed for some entities.
At least I have improved the error message output for the 2023.1.14 release for this case.

When you open the Dashboard properties (Gear icon in the toolbar) and remove the check in front of "Events and People" and commit with "Done", does the Dashboard load?
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

thrinn

Thorsten
Win 10 / 64, IMatch 2018, IMA

Mario

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Mario

Please do this:
In IMatch, select the Media & Folders View.
Open your web browser (Chrome/Edge preferred) and press <F12> to open the developer tools.
Click on the Network tab to make it active.
No navigate to this URL:

127.0.0.1:50519/imatch/apps/features/dashboard

This opens the dashboard in your web browser.
You should see red error messages with a name containing entities in the Network tab.
Click on these rows to see more details, including the response received from IMWS and on the "Response" tab to see the error message IMWS has returned.

Here are some (example) failed requests.

Image1.jpg
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook


Mario

Let us know it the browser shows error messages in the Network tab or Console.
Or if disabling the Persons & Events Panel as asked for above solved it.

Isolated issues like this, which happen only on one PC are always tricky to analyze.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

mrmsa_2022

Quote from: Mario on June 26, 2023, 03:44:10 PMPlease do this:
In IMatch, select the Media & Folders View.
Open your web browser (Chrome/Edge preferred) and press <F12> to open the developer tools.
Click on the Network tab to make it active.
No navigate to this URL:

127.0.0.1:50519/imatch/apps/features/dashboard

This opens the dashboard in your web browser.
You should see red error messages with a name containing entities in the Network tab.
Click on these rows to see more details, including the response received from IMWS and on the "Response" tab to see the error message IMWS has returned.

Here are some (example) failed requests.

Image1.jpg
There are two red error messages
1.
"entities?schema=people&id=" and then quite amount of number codes after that

Response: Error 400: Bad Request
Malformed message

2.
info?filename=C:%5CUsers%5Cmarko%5CAppData%5CLocal%5CTemp%5CIMatchPackAndGo_diag.txt&auth_token=85d5298e1986c187636452665296f8a4058d39eccc65f76742e5467e3f3917bd

Response
{
"error":{
  "code":2,
  "message":"File does not exist"
}


mrmsa_2022

Quote from: Mario on June 26, 2023, 04:21:32 PMLet us know it the browser shows error messages in the Network tab or Console.
Or if disabling the Persons & Events Panel as asked for above solved it.

Isolated issues like this, which happen only on one PC are always tricky to analyze.
Errors from Console as screen snip.


Mario

We can ignore the "File Does not exist". The dashboard just checks if diagnosis log files exist.

The first error is interesting. Does it really read:

"entities?schema=people&id="

I would to see the full string aka parameters.

When you select an entry in the Networks tab, the Payload tab shows all parameters in a readable fashion.

If this ends in id=  the Dashboard would have requested information for a person without specifying the person. Which would cause an error code 400.

For one of the bad requests ion the console with error 400 for v1/entities, please show us the contents of the Payload tab.

I have a hunch that the 9000 persons you manage in your database cause a query that exceeds the bugger size.
But there is no change with that between 2021 and 2023 and you said it worked in IMatch 2021...
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

mrmsa_2022

Quote from: Mario on June 26, 2023, 04:21:32 PMLet us know it the browser shows error messages in the Network tab or Console.
Or if disabling the Persons & Events Panel as asked for above solved it.

Isolated issues like this, which happen only on one PC are always tricky to analyze.
If you mean closing the "Events" and "People" view, I can't do that. Right click on those views show gray panel, Ctrl+F4 not active.

mrmsa_2022

Quote from: Mario on June 26, 2023, 04:44:16 PMWe can ignore the "File Does not exist". The dashboard just checks if diagnosis log files exist.

The first error is interesting. Does it really read:

"entities?schema=people&id="

I would to see the full string aka parameters.

When you select an entry in the Networks tab, the Payload tab shows all parameters in a readable fashion.

If this ends in id=  the Dashboard would have requested information for a person without specifying the person. Which would cause an error code 400.

For one of the bad requests ion the console with error 400 for v1/entities, please show us the contents of the Payload tab.

I have a hunch that the 9000 persons you manage in your database cause a query that exceeds the bugger size.
But there is no change with that between 2021 and 2023 and you said it worked in IMatch 2021...
here you go

ADMIN: Please don't just copy & paste tons of junk text in your post.
This is bad for other users and the community search engine. Always use the feature to attach text and other files available in the post editor.
I did that for you this time.

mrmsa_2022

Quote from: Mario on June 26, 2023, 04:44:16 PMWe can ignore the "File Does not exist". The dashboard just checks if diagnosis log files exist.

The first error is interesting. Does it really read:

"entities?schema=people&id="

I would to see the full string aka parameters.

When you select an entry in the Networks tab, the Payload tab shows all parameters in a readable fashion.

If this ends in id=  the Dashboard would have requested information for a person without specifying the person. Which would cause an error code 400.

For one of the bad requests ion the console with error 400 for v1/entities, please show us the contents of the Payload tab.

I have a hunch that the 9000 persons you manage in your database cause a query that exceeds the bugger size.
But there is no change with that between 2021 and 2023 and you said it worked in IMatch 2021...
Yes, it did worked 2021 thus I regret now to switch to 2023 and want to roll-back. It was not fast,but it worked.

Mario

This probably explains the problem, I think.
But no change was done in the way the People & Events panel retrieves person data so I will need to analyze what the problem can be. First I need to create a database with 9,000 persons.

I'm sure when you disable the People & Events panel for the Dashboard, the Dashboard works again, correct?

Question: Do you assign a gender to your persons?
The new thing in this release is that this is checked and the persons without gender are counted and output in the Person & Events panel.

If there are multiple thousands of persons without gender in your database, my "simple" approach will not work because the request will be too long because IMatch tries to list them (like recently viewed).
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Mario

I have made a change in case you have really thousands of persons with an unspecified gender.

Close IMatch.

1. Download the attached ZIP file

2. Extract the contents to
C:\ProgramData\photools.com\IMatch6\webroot\imatch\apps\FEATURES\dashboard
replacing the files contained in that folder (Windows Explorer must show a warning.

3. Delete the folder
C:\ProgramData\photools.com\IMatch6\browser

The Dashboard will now not attempt to display the thousands of persons with unknown gender.
It will limit the display to the first 200 and display an warning with the total number of unknown persons.

Let me know if this solved the problem.

Ps.: Do you have telemetry enabled for IMatch?

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

mrmsa_2022

Quote from: Mario on June 26, 2023, 06:05:03 PMThis probably explains the problem, I think.
But no change was done in the way the People & Events panel retrieves person data so I will need to analyze what the problem can be. First I need to create a database with 9,000 persons.

I'm sure when you disable the People & Events panel for the Dashboard, the Dashboard works again, correct?

Question: Do you assign a gender to your persons?
The new thing in this release is that this is checked and the persons without gender are counted and output in the Person & Events panel.

If there are multiple thousands of persons without gender in your database, my "simple" approach will not work because the request will be too long because IMatch tries to list them (like recently viewed).
Yes, disabling the People & Events panel from the Dashboard error message disappears.
Not every person has assigned gender, perhaps most not.

Mario

If you have the time, try out the updated version of the Dashboard I've attached below.
This should solve the problem.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

mrmsa_2022

Quote from: Mario on June 26, 2023, 06:38:40 PMI have made a change in case you have really thousands of persons with an unspecified gender.

Close IMatch.

1. Download the attached ZIP file

2. Extract the contents to
C:\ProgramData\photools.com\IMatch6\webroot\imatch\apps\FEATURES\dashboard
replacing the files contained in that folder (Windows Explorer must show a warning.

3. Delete the folder
C:\ProgramData\photools.com\IMatch6\browser

The Dashboard will now not attempt to display the thousands of persons with unknown gender.
It will limit the display to the first 200 and display an warning with the total number of unknown persons.

Let me know if this solved the problem.

Ps.: Do you have telemetry enabled for IMatch?


This didn't solve the problem. Only difference is that message comes visible after few minutes, it is not visible when IMatch starts, but when I wait perhaps 2-4 minutes, it'll come visible. By pressing F5, message disappears, but it'll come back in about 2-4 minutes.

I do have telemetry settings as YES.

Mario

So, the Dashboard is doing "stuff" with your 9,000 persons and that takes so long.
I shall setup a database with 9,000 persons when I have a free time slot. I'd hoped this quick fix would solve the issue.
I'm currently working on other bug reports that came in end of last week so this particular problem that apparently affects only one user will have to wait a bit until I can schedule a slot.

Keep the People & Events panel disabled when you want to use the Dashboard.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook