Skip to content

[FEAT] Where to find logs for the desktop app? #211

Closed
@bfontaine

Description

@bfontaine

Description
Hello, I still have this annoying issue on the desktop app v1.0.3, but it occurs only on some indices of one cluster so it’s hard to help you reproduce it.
Is there some place I can find logs to troubleshoot the issue?

Activity

cars10

cars10 commented on Feb 26, 2024

@cars10
Owner

Elasticvue desktop does not really offer much in terms of logging right now. I attached a version of the current develop branch that has the debug console enabled - you can use the browser console to check for any frontend errors.
elasticvue.zip

  • right click anywhere
  • inspect element
  • console

Thanks for helping me debug this issue!

cars10

cars10 commented on Feb 27, 2024

@cars10
Owner

You can also do that in version 1.0.4 released yesterday - no need to use the provided debug build.

bfontaine

bfontaine commented on Feb 28, 2024

@bfontaine
Author

Thanks! I downloaded 1.0.4 and opened the console, but I don’t see anything. I also don’t see requests in the network tab when I click on "refresh" on any of the views that have it.

This is what I have in the network tab after having navigated multiple times on all views (Home/nodes/shards/etc) and clicked on "refresh" on indices and shards multiple times:
image

The only requests I see are those made when I switch cluster, but those are HTML/JS/CSS/font/images, not actual requests to ES.

When it freezes, I can move around in the inspecter tab, but I can’t expand the HTML elements anymore:
image
Here you can see some little arrows that point down in the HTML view but the content of these elements is not shown, because the inspecter is as frozen as the view. In fact, I did alt+tab to write this here and then go back to ElasticVue, and it turned all white:
image
(I resized it because we don’t need a large screenshot to see that it’s empty)

cars10

cars10 commented on Feb 29, 2024

@cars10
Owner

Hm, i will add more logging for the desktop app.

Can you reproduce the freezing issue when reindexing via the REST page? Or does it only happen on the indices page when using the reindex functionality?

bfontaine

bfontaine commented on Feb 29, 2024

@bfontaine
Author

Wait I found the issue: I went to a small index (2.5k documents) on the "Search" page, it froze but only for ~10s or so, then it showed the list of documents and was almost unresponsive but still "usable". The list of documents was very long because the limit was set to 10k records per page; when I set it back to 20, the page became responsive again. I went to a larger index (100M+ documents) and it didn’t freeze.

The issue seems to be that at one point I set the limit to 10k records per page, probably on a small index, and then this configuration was saved for the whole cluster, so on large indices it probably froze while trying to retrieve all these documents.

Garito

Garito commented on Nov 21, 2024

@Garito

The frozen app shows up with small amount of huge documents too
To reproduce it save the response of gcloud's documentai of a page with a lot of text and try

cars10

cars10 commented on Nov 21, 2024

@cars10
Owner

Hello @Garito , can you reproduce this with the latest version (1.1.0)?

Garito

Garito commented on Nov 21, 2024

@Garito

Yes, I can confirm
It is a matter of a huge doc loaded to memory even in the list view (imagine 10, 100, etc)
If I disable the huge field in the view it goes back to "normal"

added a commit that references this issue on Nov 21, 2024
43470d4
cars10

cars10 commented on Nov 21, 2024

@cars10
Owner

Will be fixed in 1.1.1. Field value will be truncated after 200 characters, you can change this in the settings.

Garito

Garito commented on Nov 21, 2024

@Garito

A suggestion then:
the copy button should copy the complete doc

Garito

Garito commented on Nov 21, 2024

@Garito

Thanks btw

cars10

cars10 commented on Nov 21, 2024

@cars10
Owner

A suggestion then: the copy button should copy the complete doc

You can copy a document when you opened it (double click table row, then click copy Icon in editor in modal)

Garito

Garito commented on Nov 21, 2024

@Garito

I know
I meant that if you truncate the modal too (and you should, imo), the copy button should work as expected and copy the whole doc
BTW, talking about the modal and this huge docs, the colapse icon tends to not show up, at least, at the middle of the doc

cars10

cars10 commented on Nov 22, 2024

@cars10
Owner

I know I meant that if you truncate the modal too (and you should, imo), the copy button should work as expected and copy the whole doc BTW, talking about the modal and this huge docs, the colapse icon tends to not show up, at least, at the middle of the doc

The modal will never be truncated. This does not make sense, because a) we need a place to show the whole doc and b) you can edit the doc there. Saving would destroy the data if i only put truncated text in there.
You can toggle the wrap lines option in the modal to help with longer lines

Garito

Garito commented on Nov 22, 2024

@Garito

I understand but you should try what I tell you about documentai or any other huge doc:
Captura de pantalla 2024-11-22 a las 12 41 17
It takes a fair amount of time to load
Beside that, the toggler doesn't always show up there as you can see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

    Participants

    @Garito@bfontaine@cars10

    Issue actions

      [FEAT] Where to find logs for the desktop app? · Issue #211 · cars10/elasticvue