wazuh-dashboard-plugins icon indicating copy to clipboard operation
wazuh-dashboard-plugins copied to clipboard

Data could not be fetched in agent's FIM events

Open juliamagan opened this issue 3 years ago • 10 comments

Wazuh Elastic Rev Security
4.3 7.x 4301-1 Basic, ODFE, Xpack
Browser
Firefox

Description When accessing an agent, if we click on the path of any FIM event, we cannot obtain information. In addition, the option to see the complete error does not work.

*Preconditions

  1. Demo environment

Steps to reproduce

  1. Navigate to Agents>Specific agent
  2. Click on FIM: Recent events>Path
  3. Click on See the full error

Expected Result

  1. Get more information
  2. If it fails, see the full error

Actual Result

  1. Data could not be fetched for /tmp/agent.conf
  2. See full error button does nothing

Screenshots

Uncaught TypeError: right-hand side of 'in' should be an object, got boolean

https://user-images.githubusercontent.com/80041853/165348662-505c5f07-47b6-4ad0-ba6f-4d8dc8311232.mp4

juliamagan avatar Apr 26 '22 16:04 juliamagan

The API does not return data sometimes in the environment. The UI does not render the error adequately.

image

gdiazlo avatar Apr 29 '22 07:04 gdiazlo

The failing paths do not appear to be included in the agent's inventory. We need to further investigate the error and check the database. It might be related with a problem in FIM core side.

davidjiglesias avatar Apr 29 '22 08:04 davidjiglesias

The issue with the toast not showing an error string and the button of ¨Show the full error¨ not working might be related to https://github.com/wazuh/wazuh-kibana-app/issues/4030

gdiazlo avatar Apr 29 '22 09:04 gdiazlo

We need to confirm is this error appears in previous versions.

davidjiglesias avatar Apr 29 '22 15:04 davidjiglesias

Testing PR

  • The solution only fixes the error when click on error toast to see more details ("See full error") Could be tested using Sample Data FIM

Machi3mfl avatar Apr 29 '22 17:04 Machi3mfl

testing on kibana 7.10 OK

error-toast

mauceballos avatar Apr 29 '22 17:04 mauceballos

I reopen this issue as the toast was fixed but some paths do not return any information when they should.

davidjiglesias avatar May 05 '22 10:05 davidjiglesias

Hello, greetings to the community.

I would like to know if this point could be solved. I currently have wazuh version 4.7.5, app revision: 02 and I have this problem:

Data could not be fetched for c:\users\user\directory\file.txt (example)

Full error:

Error: File not found at FlyoutDetail._callee$ (https://xxxxx/47402/bundles/plugin/wazuh/wazuh.chunk.10.js:1:6181020) at tryCatch (https://xxxxx/47402/bundles/plugin/customImportMapDashboards/customImportMapDashboards.plugin.js:13:786910) at Generator.invoke [as invoke] (https://xxxxx/47402/bundles/plugin/customImportMapDashboards/customImportMapDashboards.plugin.js:13:790926) at Generator.next (https://xxxxx/47402/bundles/plugin/customImportMapDashboards/customImportMapDashboards.plugin.js:13:788105) at flyout asyncGeneratorStep (https://xxxxx/47402/bundles/plugin/wazuh/wazuh.chunk.10.js:1:6175519) at _next (https://xxxxx/47402/bundles/plugin/wazuh/wazuh.chunk.10.js:1:6175836)

j2vielchi avatar Aug 19 '24 17:08 j2vielchi

Hello, I would like to know if the issue discussed was resolved??

j2vielchi avatar Aug 27 '24 21:08 j2vielchi

NO still issue appears and many users face this issue, i think all