Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Task Log not displayed after hitting submit #2085

Closed
nicpenning opened this issue Jun 15, 2021 · 10 comments
Closed

[Bug] Task Log not displayed after hitting submit #2085

nicpenning opened this issue Jun 15, 2021 · 10 comments
Assignees
Labels
bug priority:high High Priority TheHive4 TheHive4 related issues

Comments

@nicpenning
Copy link

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu
OS version (client) 10
Virtualized Env. True
Dedicated RAM 8 GB
vCPU 8
TheHive version / git hash 4.1.6
Package Type DEB
Database Cassandra
Index type Elasticsearch
Attachments storage Local
Browser type & version Chrome 91.0.4472.101 (Official Build) (64-bit)

Problem Description

Task logs are no longer populating immediately after submission. The page needs to be refreshed before the new task log that was created can be seen.

Steps to Reproduce

  1. Go to tasks
  2. Click Add New Task Log
  3. Click Add Log
  4. Watch the the log does not appear

Possible Solutions

When the user clicks on add log then immediately display the task so the user knows that the task log was successfully added.

Complementary information

Here is a demonstration of trying to create the task log and it not showing up. After about 5 seconds I click on the refresh button in the browser to then show that the task log was created.

magic

@nicpenning nicpenning added bug TheHive4 TheHive4 related issues labels Jun 15, 2021
@nicpenning
Copy link
Author

Ahh, looks like I am really late on this. This is a duplicate of:
#1977

This can be closed or deleted as needed.

@nadouani
Copy link
Contributor

This is completely weird, as I don't reproduce it :( Let me try it again.

@nadouani nadouani self-assigned this Jun 16, 2021
@nadouani
Copy link
Contributor

@nicpenning what version of ES do you use here? Just to make sure I try to reproduce it with the exact same environment

@nicpenning
Copy link
Author

I have Elasticsearch 7.12.1.

Working on upgrading to 7.13.1.

This same behavior happened in 4.1.5.

Anything else you might need?

@nicpenning
Copy link
Author

nicpenning commented Jun 17, 2021

I figured out that if the Live Stream on the right hand side is open, then the task is shown right away when the task is added. However, if the Live Stream is not open on the right hand side, then it will not show the task log after hitting complete.

@nicpenning
Copy link
Author

@nadouani We have found that this same behavior occurs on adding observables as well.

The observable does not show until you refresh the page. Or if you have the Live Stream open on the right, then it will immediately show when the observable gets created.

@nicpenning
Copy link
Author

Also, I can confirm this same activity happens with Creating New Tasks in Cases.

@Canon88
Copy link

Canon88 commented Jun 21, 2021

Also, I can confirm this same activity happens with Creating New Tasks in Cases.

I had the same problem

@nadouani nadouani added the priority:high High Priority label Jun 21, 2021
@nicpenning nicpenning reopened this Jun 23, 2021
@nicpenning
Copy link
Author

This is resolved by a configuration change found here: #1977 (comment)

@nicpenning
Copy link
Author

Closing as this is duplicate and it can be resolved by adding this configuration setting (as noted above in the original post):

db.janusgraph.index.search.elasticsearch.bulk-refresh=wait_for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug priority:high High Priority TheHive4 TheHive4 related issues
Projects
None yet
Development

No branches or pull requests

3 participants