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

Dashboard replay command not working #31

Open
didiazm opened this issue Jun 7, 2023 · 6 comments
Open

Dashboard replay command not working #31

didiazm opened this issue Jun 7, 2023 · 6 comments

Comments

@didiazm
Copy link

didiazm commented Jun 7, 2023

Hi,

I downloaded the new release v0.4.3 - replay results for linux and ran my script with the following commands:

./k6 run --out json=test_result.json my-script.js
./k6 dashboard replay test_result.json

The server at http://127.0.0.1:5665 is working but the request to http://127.0.0.1:5665/events is always pending.
I also tried with the docker version and got the same result.

dashboard-replay

I have tried with different json results, even with the file testdata/result.json but it still doesn't work

On the other hand, with the same script it does work when I run:

./k6 run -l --out dashboard my-script.js

OS

Ubuntu 20.04.6 LTS

@szkiba
Copy link
Collaborator

szkiba commented Jun 7, 2023

Hi, thank you for reporting this.

The server at http://127.0.0.1:5665/ is working but the request to http://127.0.0.1:5665/events is always pending.
Probably this is the primary problem, and as I see it is independent from actual saved data.
Could you try it on different port please? for example:

./k6 dashboard replay --port 7634 test_result.json

My other tip is to try with hzip-ed data (use test_result.json.gz to save and replay)

@didiazm
Copy link
Author

didiazm commented Jun 8, 2023

I tried with the following:

./k6 run --out json=test_result.json.gz my-script.js
./k6 dashboard replay test_result.json.gz

and

./k6 run --out json=test_result.json.gz my-script.js
./k6 dashboard replay --port 7634 test_result.json.gz

but it still doesn't work

@krzwiatrzyk-lgd
Copy link

Confirm, it doesn't work for me as well.

@szkiba
Copy link
Collaborator

szkiba commented Jun 26, 2023

Sorry for the delay. I'm asking for a little more patience, I'm on vacation, and then I'll start a new job. I can probably deal with the problem in mid-August.

@szkiba
Copy link
Collaborator

szkiba commented Aug 18, 2023

Hi @didiazm , @krzwiatrzyk-lgd, May I ask you to check again with the latest (v0.5.2) version?
Is the normal dashboard (k6 run --out dashboard) works and only "dashboard replay" has problem?
Thank you for cooperation...

@Keoven
Copy link

Keoven commented Oct 27, 2023

@szkiba I'm also encountered this -- details as follows:

❯ ./k6 version
k6 v0.46.0 ((devel), go1.21.3, darwin/arm64)
Extensions:
  github.com/grafana/xk6-dashboard v0.6.1, dashboard [output]

I can confirm that the normal dashboard works -- but dashboard replay or reply with report to html doesn't work.
Also tried via the docker image and resulted to the same issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants