QingdaoU / OnlineJudgeDeploy

537 stars 370 forks source link

求问部署失败如何解决 #69

Closed OmniscientEternity closed 3 years ago

OmniscientEternity commented 3 years ago

acm@acm-PC:~$ docker version Client: Docker Engine - Community Version: 20.10.6 API version: 1.41 Go version: go1.13.15 Git commit: 370c289 Built: Fri Apr 9 22:46:45 2021 OS/Arch: linux/amd64 Context: default Experimental: true Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/version: dial unix /var/run/docker.sock: connect: permission denied acm@acm-PC:~$ sudo wget -c -t 0 https://github.com/docker/compose/releases/download/1.27.4/docker-compose-`uname -s-uname -m` -O /usr/local/bin/docker-compose --2021-04-28 20:13:47-- https://github.com/docker/compose/releases/download/1.27.4/docker-compose-Linux-x86_64 正在解析主机 github.com (github.com)... 192.30.255.113 正在连接 github.com (github.com)|192.30.255.113|:443... 已连接。 已发出 HTTP 请求,正在等待回应... 302 Found 位置:https://github-releases.githubusercontent.com/15045751/95c8d700-fe8e-11ea-99bf-c46b4884fe50?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210428%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210428T121419Z&X-Amz-Expires=300&X-Amz-Signature=06e7105cf5cdf76ad7e53ccae9f08526b81c32c519ea8d478a68b792d8dcd7d2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=15045751&response-content-disposition=attachment%3B%20filename%3Ddocker-compose-Linux-x86_64&response-content-type=application%2Foctet-stream [跟随至新的 URL] --2021-04-28 20:14:20-- https://github-releases.githubusercontent.com/15045751/95c8d700-fe8e-11ea-99bf-c46b4884fe50?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210428%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210428T121419Z&X-Amz-Expires=300&X-Amz-Signature=06e7105cf5cdf76ad7e53ccae9f08526b81c32c519ea8d478a68b792d8dcd7d2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=15045751&response-content-disposition=attachment%3B%20filename%3Ddocker-compose-Linux-x86_64&response-content-type=application%2Foctet-stream 正在解析主机 github-releases.githubusercontent.com (github-releases.githubusercontent.com)... 185.199.110.154, 185.199.109.154, 185.199.111.154, ... 正在连接 github-releases.githubusercontent.com (github-releases.githubusercontent.com)|185.199.110.154|:443... 已连接。 已发出 HTTP 请求,正在等待回应... 200 OK 长度:12218968 (12M) [application/octet-stream] 正在保存至: “/usr/local/bin/docker-compose”

/usr/local/bin/docker-compo 100%[=========================================>] 11.65M 5.35MB/s 用时 2.2s

2021-04-28 20:14:28 (5.35 MB/s) - 已保存 “/usr/local/bin/docker-compose” [12218968/12218968]) acm@acm-PC:~$ sudo chmod a+rx /usr/local/bin/docker-compose acm@acm-PC:~$ docker-compose -v docker-compose version 1.27.4, build 40524192 acm@acm-PC:~$ cd OnlineJudgeDeploy/ acm@acm-PC:~/OnlineJudgeDeploy$ docker-compose up -d Traceback (most recent call last): File "urllib3/connectionpool.py", line 677, in urlopen File "urllib3/connectionpool.py", line 392, in _make_request File "http/client.py", line 1252, in request File "http/client.py", line 1298, in _send_request File "http/client.py", line 1247, in endheaders File "http/client.py", line 1026, in _send_output File "http/client.py", line 966, in send File "docker/transport/unixconn.py", line 43, in connect PermissionError: [Errno 13] Permission denied

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "requests/adapters.py", line 449, in send File "urllib3/connectionpool.py", line 727, in urlopen File "urllib3/util/retry.py", line 403, in increment File "urllib3/packages/six.py", line 734, in reraise File "urllib3/connectionpool.py", line 677, in urlopen File "urllib3/connectionpool.py", line 392, in _make_request File "http/client.py", line 1252, in request File "http/client.py", line 1298, in _send_request File "http/client.py", line 1247, in endheaders File "http/client.py", line 1026, in _send_output File "http/client.py", line 966, in send File "docker/transport/unixconn.py", line 43, in connect urllib3.exceptions.ProtocolError: ('Connection aborted.', PermissionError(13, 'Permission denied'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "docker/api/client.py", line 205, in _retrieve_server_version File "docker/api/daemon.py", line 181, in version File "docker/utils/decorators.py", line 46, in inner File "docker/api/client.py", line 228, in _get File "requests/sessions.py", line 543, in get File "requests/sessions.py", line 530, in request File "requests/sessions.py", line 643, in send File "requests/adapters.py", line 498, in send requests.exceptions.ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "bin/docker-compose", line 3, in File "compose/cli/main.py", line 67, in main File "compose/cli/main.py", line 123, in perform_command File "compose/cli/command.py", line 69, in project_from_options File "compose/cli/command.py", line 132, in get_project File "compose/cli/docker_client.py", line 43, in get_client File "compose/cli/docker_client.py", line 170, in docker_client File "docker/api/client.py", line 188, in init File "docker/api/client.py", line 213, in _retrieve_server_version docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied')) [33476] Failed to execute script docker-compose acm@acm-PC:~/OnlineJudgeDeploy$