Open NexusLee opened 5 years ago
I met the same problem!
I installed tensorflow-gpu 1.11.0 in anaconda.
After I type the command "bert-serving-start -model ./chinese_L-12_H-768_A-12 -num_worker=2", there comes an error:
File "zmq/backend/cython/socket.pyx", line 547, in zmq.backend.cython.socket.Socket.bind
File "zmq/backend/cython/checkrc.pxd", line 25, in zmq.backend.cython.checkrc._check_rc
zmq.error.ZMQError: Operation not permitted
I have solved this problem. It may be due to the bad or unstable Internet. I didn't do anything and the problem fixed by itself.
@zyj008 不可能吧,你确定没改动什么吗
@NexusLee 我确定我啥也没动,然后它自己就好了。所以我猜可能是网络不稳定唉。我是在实验室服务器上的anaconda上装的,我弄成功的是cpu版本的tensorflow1.11.0,gpu版本tensorflow的我后来没弄。 另外,我在katacoda上测试dockerfile的时候,不会报zmq这个错误,但是会在最后一步 read and listening的时候出不来就卡住了。
@zyj008 好的,明天我试试 1.11 版本
no, the problem is consistently reproduced.
need create dir and export to env
export ZEROMQ_SOCK_TMP_DIR=/tmp/zmq
link: https://sanidem.home.blog/tag/docker/
@IDIDIR I tried it. I think it's a problem with old tmp dir
i encounter the same problem, how did you guys solved it? help!!!!
i solved this at docker option. I think this problem caused by docker's permission. add privileged docker-option.
no, the problem is consistently reproduced. need create dir and export to env export ZEROMQ_SOCK_TMP_DIR=/tmp/zmq link:
https://sanidem.home.blog/tag/docker/
Hi It seems like the link is a private site. Can u share the solution here?
Prerequisites
bert-as-service
?README.md
?README.md
?System information
bert-as-service
version: 1.8.6Description
I'm using this command to start the server:
Then this issue shows up:
dockerfile:
run:
...