Bug 1840698

Summary: [abrt] docker-compose: connect(): utils.py:76:is_ubuntu:AttributeError: module 'platform' has no attribute 'linux_distribution'
Product: [Fedora] Fedora Reporter: Vincenzo Luongo <luongo.vincenzo.92>
Component: docker-composeAssignee: Michael Hampton <error>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: carl, error, roman, ttomecek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/8a657cc8ee97fe498b7aceabe970f65b88b24090
Whiteboard: abrt_hash:60fe302ea3e32e08ec89f2063cff0a747d5b28a8;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-05 03:44:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Vincenzo Luongo 2020-05-27 13:00:01 UTC
Description of problem:
run docket compose and out error

Version-Release number of selected component:
docker-compose-1.25.4-1.fc32

Additional info:
reporter:       libreport-2.13.1
cgroup:         0::/user.slice/user-1000.slice/user/apps.slice/apps-org.gnome.Terminal.slice/vte-spawn-a244323f-6bb0-4bff-b6bb-1c2fa614bb26.scope
cmdline:        /usr/bin/python3 /usr/bin/docker-compose up -d apache mysql phpmyadmin redis workspace
crash_function: connect
exception_type: FileNotFoundError
executable:     /usr/bin/docker-compose
interpreter:    python3-3.8.2-2.fc32.x86_64
kernel:         5.6.13-300.fc32.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
#1 [/usr/lib/python3.8/site-packages/docker/transport/unixconn.py:43] connect
#2 [/usr/lib64/python3.8/http/client.py:944] send
#3 [/usr/lib64/python3.8/http/client.py:1004] _send_output
#4 [/usr/lib64/python3.8/http/client.py:1225] endheaders
#5 [/usr/lib64/python3.8/http/client.py:1276] _send_request
#6 [/usr/lib64/python3.8/http/client.py:1230] request
#7 [/usr/lib/python3.8/site-packages/urllib3/connectionpool.py:387] _make_request
#8 [/usr/lib/python3.8/site-packages/urllib3/connectionpool.py:665] urlopen

Comment 1 Vincenzo Luongo 2020-05-27 13:00:04 UTC
Created attachment 1692690 [details]
File: backtrace

Comment 2 Vincenzo Luongo 2020-05-27 13:00:06 UTC
Created attachment 1692691 [details]
File: cpuinfo

Comment 3 Vincenzo Luongo 2020-05-27 13:00:08 UTC
Created attachment 1692692 [details]
File: environ

Comment 4 Vincenzo Luongo 2020-05-27 13:00:10 UTC
Created attachment 1692693 [details]
File: mountinfo

Comment 5 Vincenzo Luongo 2020-05-27 13:00:11 UTC
Created attachment 1692694 [details]
File: namespaces

Comment 6 Vincenzo Luongo 2020-05-27 13:00:13 UTC
Created attachment 1692695 [details]
File: open_fds

Comment 7 Michael Hampton 2020-05-28 19:49:28 UTC
I'm unable to determine what is happening here. It looks like it may be a local issue rather than a bug. Can you provide a docker-compose.yml which reproduces this problem?

Comment 8 Vincenzo Luongo 2020-05-29 17:37:48 UTC
Yes, i try install https://laradock.io/

Commands:

git clone https://github.com/Laradock/laradock.git

cp env-example .env

docker-compose up -d nginx mysql phpmyadmin redis workspace

Comment 9 Michael Hampton 2020-06-05 03:44:35 UTC
After running this very lengthy docker-compose successfully, I took a closer look at the full backtrace. It appears that either your docker daemon is not running or its socket file /run/docker.sock has been deleted. Ensure that docker is running and that it is correctly creating the socket file /run/docker.sock. If you are trying to use Docker running on a remote host, or you moved the socket to another location, set the DOCKER_HOST environment variable before running docker-compose.