time="2021-12-13T14:03:26Z" level=warning msg="Could not get a VU from the buffer for 400ms" executor=ramping-vus

Hi,
On K6 version 27, I get following message while running the script in docker container. In the local setup, I never received this error.

time="2021-12-13T14:03:26Z" level=warning msg="Could not get a VU from the buffer for 400ms" executor=ramping-vus

What could be the issue?

:thinking: It shouldn’t matter whether you run k6 in docker or directly with the binary. This looks like a potential bug in k6. Since k6 v0.27.0 is quite old, can you try updating to the latest k6 version, v0.35.0, to see if that resolves the issue? And if it doesn’t, can you please share a cleaned up version of your script (without any sensitive data) that allows us to reproduce the issue?

Ok. In my docker file I am adding K6 version 27 like following.

WORKDIR /tmp
ADD https://github.com/loadimpact/k6/releases/download/v0.27.1/k6-v0.27.1-linux64.tar.gz /tmp/k6-v0.27.1-linux64.tar.gz
RUN tar -xzf k6-v0.27.1-linux64.tar.gz
RUN mv k6-v0.27.1-linux64/k6 /usr/bin/k6

Could you please tell us how to add latest version or version 35 like above ? I will use retest with version 35 and come back with results.

I suggest just using the official k6 docker image, loadimpact/k6

You can just build your own Docker image on top of it, or use this in your Docker file:

COPY --from=loadimpact/k6:latest /usr/bin/k6 /usr/bin/k6

And finally, if you really want to continue doing what you’re doing, you can certainly do that, just update the used version from v0.27.1 to v0.35.0

I will try with COPY statement.

But just updating from used version from v0.27.1 to v0.35.0 … did not work. It can not find the tar.gz at the given url.

This is how I updated it.
ADD https://github.com/loadimpact/k6/releases/download/v0.35.0/k6-v0.35.0-linux64.tar.gz /tmp/k6-v0.35.0-linux64.tar.gz
RUN tar -xzf k6-v0.35.0-linux64.tar.gz
RUN mv k6-v0.35.0-linux64/k6 /usr/bin/k6

Instead of k6-v0.35.0-linux64.tar.gz, try to use k6-v0.35.0-linux-amd64.tar.gz or k6-v0.35.0-linux-arm64.tar.gz, depending on what is your load generator machine architecture.

Actual links to the k6 v0.35.0 distributives can be found here: Release v0.35.0 · grafana/k6 · GitHub

2 Likes