When configuring an indescribable service on the ucloud international version machine today, we encountered the error of socket.error: [errno 99] cannot assign requested address. The details are as follows:
[[email protected] ~]# docker logs c0c34ba49967 2019-07-15 00:02:26 INFO loading libcrypto from libcrypto.so.1.0.0 2019-07-15 00:02:26 INFO starting server at 22.214.171.124:8002 Traceback (most recent call last): File "/usr/local/bin/ssserver", line 11, in sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/shadowsocks/server.py", line 68, in main tcp_servers.append(tcprelay.TCPRelay(a_config, dns_resolver, False)) File "/usr/local/lib/python2.7/dist-packages/shadowsocks/tcprelay.py", line 582, in __init__ server_socket.bind(sa) File "/usr/lib/python2.7/socket.py", line 228, in meth return getattr(self._sock,name)(*args) socket.error: [Errno 99] Cannot assign requested address
Originally thought it was the problem of resolver, but it was still unsolved when Google’s nameservers were specified, so I thought it might be the problem of server IP address setting, because Alibaba cloud defaulted to bind the intranet IP address to the network card.
Then modify the server IP in the configuration file of a service to 0.0.0.0, and then start the service. The problem is solved.
Remember to release the used port (generally 8001) in the security group.
Public addressFree AdmissionProvide CSDN download service, massive it learning resources,If you are ready to enter the IT pit and aspire to become an excellent program ape, these resources are suitable for you, including but not limited to Java, go, python, springcloud, elk, embedded, big data, interview materials, front-end and other resources. At the same time, we have set up a technology exchange group, in which there are many tycoons who will share technical articles from time to time. If you want to learn and improve together, you can reply back in the public account.【2】, free invitation plus technology exchange group to learn from each other and improve, and will share programming it related resources from time to time.
Scan the code to pay attention to the wonderful content and push it to you at the first time