Open u-raison opened 2 years ago
您好 目前不推荐在goorm上使用,后面会尝试在heroku上测试
你是在哪里搭建的?能给个嘛,我先测试一下这个
我之前是在自己mac上跑的,全局外网环境下
[root@iZuf6ipmo2u6vumm1rm9k8Z DarkNet_ChineseTrading]# docker-compose build --pull && docker-compose --env-file .env.default up Sending build context to Docker daemon 28.23MB Step 1/11 : FROM ubuntu:20.04 20.04: Pulling from library/ubuntu Digest: sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322 Status: Image is up to date for ubuntu:20.04 ---> ba6acccedd29 Step 2/11 : RUN apt update && apt install --no-install-recommends -y procps gcc tor python3-dev python3-pip ---> Using cache ---> ef6aa69f6737 Step 3/11 : WORKDIR /opt/darknet ---> Using cache ---> dd354f843779 Step 4/11 : COPY darknet ./darknet ---> Using cache ---> 406321f8104b Step 5/11 : COPY requirements.txt . ---> Using cache ---> 13e635112e0a Step 6/11 : COPY grafana.sql . ---> Using cache ---> f710b5c81ebd Step 7/11 : COPY entrypoints.sh / ---> Using cache ---> 5a115658d659 Step 8/11 : RUN pip install --no-cache-dir -r /opt/darknet/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ ---> Using cache ---> d6fdeab3c3e7 Step 9/11 : RUN rm -rf /var/lib/apt/lists/* ---> Using cache ---> 973cda97f3d0 Step 10/11 : EXPOSE 80 ---> Using cache ---> ea662c664388 Step 11/11 : CMD ["/bin/sh", "/entrypoints.sh"] ---> Using cache ---> 738f790131a6 Successfully built 738f790131a6 Successfully tagged darknet_chinesetrading_crawler:latest
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[+] Running 2/2
⠿ Container darknet_chinesetrading-db-1 Recreated 0.2s
⠿ Container darknet_chinesetrading-crawler-1 Recreated 0.1s
Attaching to darknet_chinesetrading-crawler-1, darknet_chinesetrading-db-1
darknet_chinesetrading-db-1 | 2021-12-31 02:00:13+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.5+maria~focal started.
darknet_chinesetrading-db-1 | 2021-12-31 02:00:13+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
darknet_chinesetrading-db-1 | 2021-12-31 02:00:14+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.5+maria~focal started.
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] mariadbd (server 10.6.5-MariaDB-1:10.6.5+maria~focal) starting as process 1 ...
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] InnoDB: Using transactional memory
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] InnoDB: Number of pools: 1
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] InnoDB: Using Linux native AIO
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] InnoDB: Completed initialization of buffer pool
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] InnoDB: 128 rollback segments are active.
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] InnoDB: Creating shared tablespace for temporary tables
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] InnoDB: 10.6.5 started; log sequence number 42329; transaction id 14
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] Plugin 'FEEDBACK' is disabled.
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] Server socket created on IP: '0.0.0.0'.
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] Server socket created on IP: '::'.
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] InnoDB: Buffer pool(s) load completed at 211231 2:00:14
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Warning] 'proxies_priv' entry '@% root@73bb6e1cc46a' ignored in --skip-name-resolve mode.
darknet_chinesetrading-db-1 | 2021-12-31 2:00:14 0 [Note] mariadbd: ready for connections.
darknet_chinesetrading-db-1 | Version: '10.6.5-MariaDB-1:10.6.5+maria~focal' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
darknet_chinesetrading-crawler-1 | Dec 31 02:00:14.749 [notice] Tor 0.4.2.7 running on Linux with Libevent 2.1.11-stable, OpenSSL 1.1.1f, Zlib 1.2.11, Liblzma 5.2.4, and Libzstd 1.4.4.
darknet_chinesetrading-crawler-1 | Dec 31 02:00:14.749 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
darknet_chinesetrading-crawler-1 | Dec 31 02:00:14.749 [notice] Read configuration file "/opt/torrc".
darknet_chinesetrading-crawler-1 | Dec 31 02:00:14.750 [warn] ControlPort is open, but no authentication method has been configured. This means that any program on your computer can reconfigure your Tor. That's bad! You should upgrade your Tor controller as soon as possible.
darknet_chinesetrading-crawler-1 | Dec 31 02:00:14.752 [notice] Opening Socks listener on 127.0.0.1:9050
darknet_chinesetrading-crawler-1 | Dec 31 02:00:14.752 [notice] Opened Socks listener on 127.0.0.1:9050
darknet_chinesetrading-crawler-1 | Dec 31 02:00:14.752 [notice] Opening Control listener on 127.0.0.1:9051
darknet_chinesetrading-crawler-1 | Dec 31 02:00:14.752 [notice] Opened Control listener on 127.0.0.1:9051
darknet_chinesetrading-crawler-1 | [2021-12-31 02:00:16,520]self.domain='xxxxxxxx3a3kuuhhw5w7stk25fzhttrlpiomij5bogkg7yyqsng5tqyd.onion'
darknet_chinesetrading-crawler-1 | [2021-12-31 02:00:16,521]reload tor
darknet_chinesetrading-crawler-1 | [2021-12-31 02:00:16,528]GETCONF owningcontrollerprocess (runtime: 0.0003)
darknet_chinesetrading-crawler-1 | [2021-12-31 02:02:18,856][ make_new_tor_id]: SOCKSHTTPConnectionPool(host='icanhazip.com', port=80): Max retries exceeded with url: / (Caused by ...
darknet_chinesetrading-crawler-1 | [2021-12-31 02:04:18,928][ predict_captcha]: SOCKSHTTPConnectionPool(host='xxxxxxxx3a3kuuhhw5w7stk25fzhttrlpiomij5bogkg7yyqsng5tqyd.onion', port=...
darknet_chinesetrading-crawler-1 | [2021-12-31 02:06:18,001]sleeping: SOCKSHTTPConnectionPool(host='xxxxxxxx3a3kuuhhw5w7stk25fzhttrlpiomij5bogkg7yyqsng5tqyd.onion', port=80): Max r...
darknet_chinesetrading-crawler-1 | [2021-12-31 02:06:48,051]Retrying (Retry(total=2, connect=None, read=None, redirect=0, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7bb28ebeb0>, 'Connection to api.telegram.org timed out. (connect timeout=30)')': /botNone/sendMessage
darknet_chinesetrading-crawler-1 | [2021-12-31 02:07:18,080]Retrying (Retry(total=1, connect=None, read=None, redirect=0, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7bb28ebfd0>, 'Connection to api.telegram.org timed out. (connect timeout=30)')': /botNone/sendMessage
darknet_chinesetrading-crawler-1 | [2021-12-31 02:07:48,111]Retrying (Retry(total=0, connect=None, read=None, redirect=0, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7bb290f130>, 'Connection to api.telegram.org timed out. (connect timeout=30)')': /botNone/sendMessage
darknet_chinesetrading-crawler-1 | Traceback (most recent call last):
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/socks.py", line 809, in connect
darknet_chinesetrading-crawler-1 | negotiate(self, dest_addr, dest_port)
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/socks.py", line 443, in _negotiate_SOCKS5
darknet_chinesetrading-crawler-1 | self.proxy_peername, self.proxy_sockname = self._SOCKS5_request(
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/socks.py", line 533, in _SOCKS5_request
darknet_chinesetrading-crawler-1 | raise SOCKS5Error("{:#04x}: {}".format(status, error))
darknet_chinesetrading-crawler-1 | socks.SOCKS5Error: 0x06: TTL expired
darknet_chinesetrading-crawler-1 |
darknet_chinesetrading-crawler-1 | During handling of the above exception, another exception occurred:
darknet_chinesetrading-crawler-1 |
darknet_chinesetrading-crawler-1 | Traceback (most recent call last):
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/urllib3/contrib/socks.py", line 96, in _new_conn
darknet_chinesetrading-crawler-1 | conn = socks.create_connection(
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/socks.py", line 209, in create_connection
darknet_chinesetrading-crawler-1 | raise err
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/socks.py", line 199, in create_connection
darknet_chinesetrading-crawler-1 | sock.connect((remote_host, remote_port))
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/socks.py", line 47, in wrapper
darknet_chinesetrading-crawler-1 | return function(*args, kwargs)
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/socks.py", line 814, in connect
darknet_chinesetrading-crawler-1 | raise GeneralProxyError("Socket error", error)
darknet_chinesetrading-crawler-1 | socks.GeneralProxyError: Socket error: 0x06: TTL expired
darknet_chinesetrading-crawler-1 |
darknet_chinesetrading-crawler-1 | During handling of the above exception, another exception occurred:
darknet_chinesetrading-crawler-1 |
darknet_chinesetrading-crawler-1 | Traceback (most recent call last):
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
darknet_chinesetrading-crawler-1 | httplib_response = self._make_request(
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 394, in _make_request
darknet_chinesetrading-crawler-1 | conn.request(method, url, httplib_request_kw)
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 239, in request
darknet_chinesetrading-crawler-1 | super(HTTPConnection, self).request(method, url, body=body, headers=headers)
darknet_chinesetrading-crawler-1 | File "/usr/lib/python3.8/http/client.py", line 1256, in request
darknet_chinesetrading-crawler-1 | self._send_request(method, url, body, headers, encode_chunked)
darknet_chinesetrading-crawler-1 | File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
darknet_chinesetrading-crawler-1 | self.endheaders(body, encode_chunked=encode_chunked)
darknet_chinesetrading-crawler-1 | File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
darknet_chinesetrading-crawler-1 | self._send_output(message_body, encode_chunked=encode_chunked)
darknet_chinesetrading-crawler-1 | File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
darknet_chinesetrading-crawler-1 | self.send(msg)
darknet_chinesetrading-crawler-1 | File "/usr/lib/python3.8/http/client.py", line 951, in send
darknet_chinesetrading-crawler-1 | self.connect()
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 205, in connect
darknet_chinesetrading-crawler-1 | conn = self._new_conn()
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/urllib3/contrib/socks.py", line 127, in _new_conn
darknet_chinesetrading-crawler-1 | raise NewConnectionError(
darknet_chinesetrading-crawler-1 | urllib3.exceptions.NewConnectionError: <urllib3.contrib.socks.SOCKSConnection object at 0x7f7bb28eb8e0>: Failed to establish a new connection: 0x06: TTL expired
darknet_chinesetrading-crawler-1 |
darknet_chinesetrading-crawler-1 | During handling of the above exception, another exception occurred:
darknet_chinesetrading-crawler-1 |
darknet_chinesetrading-crawler-1 | Traceback (most recent call last):
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/requests/adapters.py", line 439, in send
darknet_chinesetrading-crawler-1 | resp = conn.urlopen(
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
darknet_chinesetrading-crawler-1 | retries = retries.increment(
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/urllib3/util/retry.py", line 574, in increment
darknet_chinesetrading-crawler-1 | raise MaxRetryError(_pool, url, error or ResponseError(cause))
darknet_chinesetrading-crawler-1 | urllib3.exceptions.MaxRetryError: SOCKSHTTPConnectionPool(host='xxxxxxxx3a3kuuhhw5w7stk25fzhttrlpiomij5bogkg7yyqsng5tqyd.onion', port=80): Max retries exceeded with url: /entrance/registers.php (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f7bb28eb8e0>: Failed to establish a new connection: 0x06: TTL expired'))
darknet_chinesetrading-crawler-1 |
darknet_chinesetrading-crawler-1 | During handling of the above exception, another exception occurred:
darknet_chinesetrading-crawler-1 |
darknet_chinesetrading-crawler-1 | Traceback (most recent call last):
darknet_chinesetrading-crawler-1 | File "/opt/darknet/darknet/main.py", line 230, in fn
must be thread-safe
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/urllib3/request.py", line 170, in request_encode_body
darknet_chinesetrading-crawler-1 | return self.urlopen(method, url, extra_kw)
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/urllib3/poolmanager.py", line 375, in urlopen
darknet_chinesetrading-crawler-1 | response = conn.urlopen(method, u.request_uri, **kw)
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 783, in urlopen
darknet_chinesetrading-crawler-1 | return self.urlopen(
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 783, in urlopen
darknet_chinesetrading-crawler-1 | return self.urlopen(
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 783, in urlopen
darknet_chinesetrading-crawler-1 | return self.urlopen(
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
darknet_chinesetrading-crawler-1 | retries = retries.increment(
darknet_chinesetrading-crawler-1 | File "/usr/local/lib/python3.8/dist-packages/urllib3/util/retry.py", line 574, in increment
darknet_chinesetrading-crawler-1 | raise MaxRetryError(_pool, url, error or ResponseError(cause))
darknet_chinesetrading-crawler-1 | urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /botNone/sendMessage (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7bb290f280>, 'Connection to api.telegram.org timed out. (connect timeout=30)'))
darknet_chinesetrading-db-1 | 2021-12-31 2:08:18 4 [Warning] Aborted connection 4 to db: 'db' user: 'root' host: '172.20.0.3' (Got an error reading communication packets)
root@goorm:/workspace/DarkNet_ChineseTradi/DarkNet_ChineseTrading(new_site_2019)# docker-compose build --pull && docker-compose --env-file .env.default up
` Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/docker/api/client.py", line 214, in _retrieve_server_version return self.version(api_version=False)["ApiVersion"] File "/usr/local/lib/python3.7/site-packages/docker/api/daemon.py", line 181, in version return self._result(self._get(url), json=True) File "/usr/local/lib/python3.7/site-packages/docker/utils/decorators.py", line 46, in inner return f(self, *args, kwargs) File "/usr/local/lib/python3.7/site-packages/docker/api/client.py", line 237, in _get return self.get(url, self._set_request_timeout(kwargs)) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 543, in get return self.request('GET', url, kwargs) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 530, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 643, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 498, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/bin/docker-compose", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/compose/cli/main.py", line 81, in main
command_func()
File "/usr/local/lib/python3.7/site-packages/compose/cli/main.py", line 200, in perform_command
project = project_from_options('.', options)
File "/usr/local/lib/python3.7/site-packages/compose/cli/command.py", line 70, in project_from_options
enabled_profiles=get_profiles_from_options(options, environment)
File "/usr/local/lib/python3.7/site-packages/compose/cli/command.py", line 153, in get_project
verbose=verbose, version=api_version, context=context, environment=environment
File "/usr/local/lib/python3.7/site-packages/compose/cli/docker_client.py", line 43, in get_client
environment=environment, tls_version=get_tls_version(environment)
File "/usr/local/lib/python3.7/site-packages/compose/cli/docker_client.py", line 170, in docker_client
client = APIClient(use_ssh_client=not use_paramiko_ssh, **kwargs)
File "/usr/local/lib/python3.7/site-packages/docker/api/client.py", line 197, in init
self._version = self._retrieve_server_version()
File "/usr/local/lib/python3.7/site-packages/docker/api/client.py", line 222, in _retrieve_server_version
f'Error while fetching server API version: {e}'
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))`
请问这个是怎么回事呢