proxy_pool icon indicating copy to clipboard operation
proxy_pool copied to clipboard

was trying to run the docker, got an error:

Open mmuncan1980 opened this issue 4 years ago • 1 comments

┌──(jamy㉿kali)-[~/Downloads/proxy_pool-2.4.0] └─$ sudo docker run --env DB_CONN=redis://:password@ip:port/0 -p 5010:5010 jhao104/proxy_pool:2.4.0 126 ⨯ Unable to find image 'jhao104/proxy_pool:2.4.0' locally 2.4.0: Pulling from jhao104/proxy_pool Digest: sha256:da98d8565ef8b1438fc47f7d83a86d8e25fc4540053fa9c02a599a7e98323d04 Status: Downloaded newer image for jhao104/proxy_pool:2.4.0


*** ______ ********************* ______ *********** _ ******** *** | ___ _ ******************** | ___ \ ********* | | ******** *** | |/ / _ __ __ _ __ _ | |/ /__ * ___ | | ******** *** | /| // _ \ \ / /| | | || __// _ \ / _ \ | | ******** *** | | | | | () | > < \ || || | | () | () || | **** *** _| || ___/ //_\ __ |_| _/ _/ __/ **** **** __ / / ***** ************************* / / *******************************




*** ______ ********************* ______ *********** _ ******** *** | ___ _ ******************** | ___ \ ********* | | ******** *** | |/ / _ __ __ _ __ _ | |/ /__ * ___ | | ******** *** | /| // _ \ \ / /| | | || __// _ \ / _ \ | | ******** *** | | | | | () | > < \ || || | | () | () || | **** *** _| || ___/ //_\ __ |_| _/ _/ __/ **** **** __ / / ***** ************************* / / *******************************



2022-02-09 21:52:05,843 launcher.py[line:45] INFO ProxyPool Version: 2.4.0 2022-02-09 21:52:05,843 launcher.py[line:45] INFO ProxyPool Version: 2.4.0 2022-02-09 21:52:05,844 launcher.py[line:50] INFO ProxyPool configure HOST: 0.0.0.0 2022-02-09 21:52:05,844 launcher.py[line:50] INFO ProxyPool configure HOST: 0.0.0.0 2022-02-09 21:52:05,844 launcher.py[line:51] INFO ProxyPool configure PORT: 5010 2022-02-09 21:52:05,844 launcher.py[line:51] INFO ProxyPool configure PORT: 5010 2022-02-09 21:52:05,844 launcher.py[line:52] INFO ProxyPool configure PROXY_FETCHER: ['freeProxy01', 'freeProxy02', 'freeProxy03', 'freeProxy04', 'freeProxy05', 'freeProxy06', 'freeProxy07', 'freeProxy08', 'freeProxy09', 'freeProxy10'] 2022-02-09 21:52:05,844 launcher.py[line:52] INFO ProxyPool configure PROXY_FETCHER: ['freeProxy01', 'freeProxy02', 'freeProxy03', 'freeProxy04', 'freeProxy05', 'freeProxy06', 'freeProxy07', 'freeProxy08', 'freeProxy09', 'freeProxy10'] Traceback (most recent call last): File "proxyPool.py", line 43, in cli() File "/usr/local/lib/python3.6/site-packages/click/core.py", line 764, in call return self.main(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 555, in invoke return callback(*args, **kwargs) File "proxyPool.py", line 32, in schedule startScheduler() File "/app/helper/launcher.py", line 30, in startScheduler __beforeStart() File "/app/helper/launcher.py", line 38, in __beforeStart if __checkDBConfig(): File "/app/helper/launcher.py", line 57, in __checkDBConfig db = DbClient(conf.dbConn) File "/app/util/singleton.py", line 25, in call cls._inst[cls] = super(Singleton, cls).call(*args) File "/app/db/dbClient.py", line 56, in init self.parseDbConn(db_conn) File "/app/db/dbClient.py", line 64, in parseDbConn cls.db_port = db_conf.port File "/usr/local/lib/python3.6/urllib/parse.py", line 172, in port port = int(port, 10) ValueError: invalid literal for int() with base 10: 'port' Traceback (most recent call last): File "proxyPool.py", line 43, in cli() File "/usr/local/lib/python3.6/site-packages/click/core.py", line 764, in call return self.main(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 555, in invoke return callback(*args, **kwargs) File "proxyPool.py", line 39, in server startServer() File "/app/helper/launcher.py", line 24, in startServer __beforeStart() File "/app/helper/launcher.py", line 38, in __beforeStart if __checkDBConfig(): File "/app/helper/launcher.py", line 57, in __checkDBConfig db = DbClient(conf.dbConn) File "/app/util/singleton.py", line 25, in call cls._inst[cls] = super(Singleton, cls).call(*args) File "/app/db/dbClient.py", line 56, in init self.parseDbConn(db_conn) File "/app/db/dbClient.py", line 64, in parseDbConn cls.db_port = db_conf.port File "/usr/local/lib/python3.6/urllib/parse.py", line 172, in port port = int(port, 10) ValueError: invalid literal for int() with base 10: 'port'

mmuncan1980 avatar Feb 09 '22 13:02 mmuncan1980

启动时的redis配置没有改, 如果没有redis的话,使用 docker-compose up -d 启动

jhao104 avatar Feb 10 '22 01:02 jhao104