-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Never loads? #302
Comments
For info, I had the same info and |
In alpine's case, you might also need e.g. on alpine you need if you uninstall |
that's just a warning... there is no error |
@cgoldberg, it's true it is just a warning, when locust is not running in distributed mode ~ # locust --host=http://qq.com
/usr/local/lib/python3.6/site-packages/locust/rpc/__init__.py:6: UserWarning: WARNING: Using pure Python socket RPC implementation instead of zmq. If running in distributed mode, this could cause a performance decrease. We recommend you to install the pyzmq python package when running in distributed mode.
warnings.warn("WARNING: Using pure Python socket RPC implementation instead of zmq. If running in distributed mode, this could cause a performance decrease. We recommend you to install the pyzmq python package when running in distributed mode.")
[2017-11-10 21:32:40,422] 6d17d09d802b/INFO/locust.main: Starting web monitor at *:8089
[2017-11-10 21:32:40,423] 6d17d09d802b/INFO/locust.main: Starting Locust 0.8.1 However, if you try running in ~ # locust --host=http://qq.com --master
/usr/local/lib/python3.6/site-packages/locust/rpc/__init__.py:6: UserWarning: WARNING: Using pure Python socket RPC implementation instead of zmq. If running in distributed mode, this could cause a performance decrease. We recommend you to install the pyzmq python package when running in distributed mode.
warnings.warn("WARNING: Using pure Python socket RPC implementation instead of zmq. If running in distributed mode, this could cause a performance decrease. We recommend you to install the pyzmq python package when running in distributed mode.")
[2017-11-10 21:31:29,226] 6d17d09d802b/INFO/locust.main: Starting web monitor at *:8089
[2017-11-10 21:31:29,227] 6d17d09d802b/ERROR/stderr: Traceback (most recent call last):
[2017-11-10 21:31:29,228] 6d17d09d802b/ERROR/stderr: File "/usr/local/bin/locust", line 11, in <module>
[2017-11-10 21:31:29,229] 6d17d09d802b/ERROR/stderr:
[2017-11-10 21:31:29,229] 6d17d09d802b/ERROR/stderr: sys.exit(main())
[2017-11-10 21:31:29,230] 6d17d09d802b/ERROR/stderr:
[2017-11-10 21:31:29,231] 6d17d09d802b/ERROR/stderr: File "/usr/local/lib/python3.6/site-packages/locust/main.py", line 439, in main
[2017-11-10 21:31:29,233] 6d17d09d802b/ERROR/stderr:
[2017-11-10 21:31:29,233] 6d17d09d802b/ERROR/stderr: runners.locust_runner = MasterLocustRunner(locust_classes, options)
[2017-11-10 21:31:29,234] 6d17d09d802b/ERROR/stderr:
[2017-11-10 21:31:29,234] 6d17d09d802b/ERROR/stderr: File "/usr/local/lib/python3.6/site-packages/locust/runners.py", line 247, in __init__
[2017-11-10 21:31:29,235] 6d17d09d802b/ERROR/stderr:
[2017-11-10 21:31:29,236] 6d17d09d802b/ERROR/stderr: self.server = rpc.Server(self.master_bind_host, self.master_bind_port)
[2017-11-10 21:31:29,236] 6d17d09d802b/ERROR/stderr:
[2017-11-10 21:31:29,237] 6d17d09d802b/ERROR/stderr: File "/usr/local/lib/python3.6/site-packages/locust/rpc/socketrpc.py", line 74, in __init__
[2017-11-10 21:31:29,238] 6d17d09d802b/ERROR/stderr:
[2017-11-10 21:31:29,238] 6d17d09d802b/ERROR/stderr: self.event_queue = gevent.queue.Queue()
[2017-11-10 21:31:29,239] 6d17d09d802b/ERROR/stderr:
[2017-11-10 21:31:29,239] 6d17d09d802b/ERROR/stderr: AttributeError
[2017-11-10 21:31:29,240] 6d17d09d802b/ERROR/stderr: :
[2017-11-10 21:31:29,241] 6d17d09d802b/ERROR/stderr: module 'gevent' has no attribute 'queue'
[2017-11-10 21:31:29,241] 6d17d09d802b/ERROR/stderr: after ~ # apk add --update g++
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
(1/16) Installing libgcc (5.3.0-r0)
(2/16) Installing libstdc++ (5.3.0-r0)
(3/16) Installing binutils-libs (2.26-r1)
(4/16) Installing binutils (2.26-r1)
(5/16) Installing gmp (6.1.0-r0)
(6/16) Installing isl (0.14.1-r0)
(7/16) Installing libgomp (5.3.0-r0)
(8/16) Installing libatomic (5.3.0-r0)
(9/16) Installing pkgconf (0.9.12-r0)
(10/16) Installing pkgconfig (0.25-r1)
(11/16) Installing mpfr3 (3.1.2-r0)
(12/16) Installing mpc1 (1.0.3-r0)
(13/16) Installing gcc (5.3.0-r0)
(14/16) Installing musl-dev (1.1.14-r16)
(15/16) Installing libc-dev (0.7-r0)
(16/16) Installing g++ (5.3.0-r0)
Executing busybox-1.24.2-r13.trigger
OK: 186 MiB in 51 packages
~ # locust --host=http://qq.com --master
[2017-11-10 21:34:33,709] 6d17d09d802b/INFO/locust.main: Starting web monitor at *:8089
[2017-11-10 21:34:33,713] 6d17d09d802b/INFO/locust.main: Starting Locust 0.8.1 I believe there're some dependencies in |
yikes.. we borked something.. so the warning alone is informational only.. it just tells you it is running the pure python rpc code found in but there is a bug in that rpc code. so, it's only triggered under the following conditions:
it looks the cause was a removed import in #552. the fix is to re-add the @Shuliyey |
thanks for looking into this @cgoldberg , this is my FROM python:alpine
MAINTAINER "base2Services" <itsupport@base2services.com>
RUN apk --update add tzdata g++ make \
&& pip install locustio \
&& apk del make \
&& rm -rf /var/cache/apk/* /root/__pycache__
ADD locustfile.py /root/
ADD run.sh /root/
ENV MODE ""
ENV ENDPOINT ""
WORKDIR /root
# PORTS
EXPOSE 5557
EXPOSE 8089
CMD ["./run.sh"] when i change this line apk del make to apk del make g++ this message occurs
as you can see, for some particular reason g++ is required, even after |
locust doesn't use |
@cgoldberg what i'm trying to say here is, this error only seem to apply to specific OS. In this specific case, it's alpine (and possibily macOSX) on alpine, if you uninstall ~ # cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.4.6
PRETTY_NAME="Alpine Linux v3.4"
HOME_URL="http://alpinelinux.org"
BUG_REPORT_URL="http://bugs.alpinelinux.org"
~ # locust --host=http://qq.com
[2017-11-11 21:34:11,527] bc270b92830e/INFO/locust.main: Starting web monitor at *:8089
[2017-11-11 21:34:11,527] bc270b92830e/INFO/locust.main: Starting Locust 0.8.1
~ # apk del g++
(1/16) Purging g++ (5.3.0-r0)
(2/16) Purging gcc (5.3.0-r0)
(3/16) Purging binutils (2.26-r1)
(4/16) Purging isl (0.14.1-r0)
(5/16) Purging libatomic (5.3.0-r0)
(6/16) Purging pkgconfig (0.25-r1)
(7/16) Purging pkgconf (0.9.12-r0)
(8/16) Purging libc-dev (0.7-r0)
(9/16) Purging musl-dev (1.1.14-r16)
(10/16) Purging libstdc++ (5.3.0-r0)
(11/16) Purging libgcc (5.3.0-r0)
(12/16) Purging binutils-libs (2.26-r1)
(13/16) Purging mpc1 (1.0.3-r0)
(14/16) Purging mpfr3 (3.1.2-r0)
(15/16) Purging gmp (6.1.0-r0)
(16/16) Purging libgomp (5.3.0-r0)
Executing busybox-1.24.2-r13.trigger
OK: 56 MiB in 37 packages
~ # locust --host=http://qq.com
/usr/local/lib/python3.6/site-packages/locust/rpc/__init__.py:6: UserWarning: WARNING: Using pure Python socket RPC implementation instead of zmq. If running in distributed mode, this could cause a performance decrease. We recommend you to install the pyzmq python package when running in distributed mode.
warnings.warn("WARNING: Using pure Python socket RPC implementation instead of zmq. If running in distributed mode, this could cause a performance decrease. We recommend you to install the pyzmq python package when running in distributed mode.")
[2017-11-11 21:34:48,326] bc270b92830e/INFO/locust.main: Starting web monitor at *:8089
[2017-11-11 21:34:48,326] bc270b92830e/INFO/locust.main: Starting Locust 0.8.1 however if you try and do the same thing on ubuntu/debian, this error doesn't appear. root@1385d568ec93:/# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/
root@1385d568ec93:/# locust --host=http://qq.com --master
[2017-11-11 20:23:04,093] 1385d568ec93/INFO/locust.main: Starting web monitor at *:8089
[2017-11-11 20:23:04,055] 1385d568ec93/INFO/locust.main: Starting Locust 0.8.1
root@1385d568ec93:/# apt-get purge g++ gcc make
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'g++' is not installed, so not removed
Package 'gcc' is not installed, so not removed
Package 'make' is not installed, so not removed
The following packages were automatically installed and are no longer required:
g++-4.9 libstdc++-4.9-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
root@1385d568ec93:/# locust --host=http://qq.com --master
[2017-11-11 21:25:05,047] 1385d568ec93/INFO/locust.main: Starting web monitor at *:8089
[2017-11-11 21:25:05,050] 1385d568ec93/INFO/locust.main: Starting Locust 0.8.1 so in conclusion, the alpine (removal of I've created a new issue #680, addressing the |
Installed on OSX and I'm getting the following issue:
I'm not using distributed mode.
Also happens when I tried installing in a custom vagrant box (Ubuntu 14.04) I already had on my system. I followed the instructions perfectly from the docs page.
The text was updated successfully, but these errors were encountered: