Bug 2192576

Summary: [abrt] docker-compose: connect(): client.py:221:_retrieve_server_version:docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
Product: [Fedora] Fedora Reporter: Andrei Nevedomskii <little.angry.satan>
Component: docker-composeAssignee: Tomas Tomecek <ttomecek>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: dtrunk90, error, little.angry.satan, roman, sergio, ttomecek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/7d52acf685ddde2226e1e45916a3973ee6d6242
Whiteboard: abrt_hash:b953939c0fd4c480d50a85f77b39eb9ed32a8fc6;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-02 12:28:29 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: mountinfo
none
File: namespaces
none
File: open_fds
none
File: os_info
none
File: cpuinfo
none
File: environ none

Description Andrei Nevedomskii 2023-05-02 10:49:14 UTC
Description of problem:
Was trying to run a container

Version-Release number of selected component:
docker-compose-1.29.2-7.fc38

Additional info:
reporter:       libreport-2.17.9
comment:        Was trying to run a container
interpreter:    python3-3.11.3-1.fc38.x86_64
uid:            1000
reason:         client.py:221:_retrieve_server_version:docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
crash_function: connect
type:           Python3
cmdline:        /usr/bin/python3 /usr/bin/docker-compose --ansi never -f /home/monosoul/IdeaProjects/jooq-gradle-plugin/examples/external-database/docker-compose.yml -p 3950fd172e3e08d55e15854619f6cc07_external-database_ build
executable:     /usr/bin/docker-compose
exception_type: FileNotFoundError
package:        docker-compose-1.29.2-7.fc38
kernel:         6.2.12-300.fc38.x86_64
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-jetbrains\x2didea-18625.scope
runlevel:       N 5

Truncated backtrace:
#1 [/usr/lib/python3.11/site-packages/docker/transport/unixconn.py:30] connect
#2 [/usr/lib64/python3.11/http/client.py:976] send
#3 [/usr/lib64/python3.11/http/client.py:1038] _send_output
#4 [/usr/lib64/python3.11/http/client.py:1278] endheaders
#5 [/usr/lib64/python3.11/http/client.py:1329] _send_request
#6 [/usr/lib64/python3.11/http/client.py:1283] request
#7 [/usr/lib/python3.11/site-packages/urllib3/connectionpool.py:398] _make_request
#8 [/usr/lib/python3.11/site-packages/urllib3/connectionpool.py:703] urlopen


Potential duplicate: bug 1944601

Comment 1 Andrei Nevedomskii 2023-05-02 10:49:17 UTC
Created attachment 1961654 [details]
File: backtrace

Comment 2 Andrei Nevedomskii 2023-05-02 10:49:19 UTC
Created attachment 1961655 [details]
File: mountinfo

Comment 3 Andrei Nevedomskii 2023-05-02 10:49:20 UTC
Created attachment 1961656 [details]
File: namespaces

Comment 4 Andrei Nevedomskii 2023-05-02 10:49:22 UTC
Created attachment 1961657 [details]
File: open_fds

Comment 5 Andrei Nevedomskii 2023-05-02 10:49:23 UTC
Created attachment 1961658 [details]
File: os_info

Comment 6 Andrei Nevedomskii 2023-05-02 10:49:25 UTC
Created attachment 1961659 [details]
File: cpuinfo

Comment 7 Andrei Nevedomskii 2023-05-02 10:49:26 UTC
Created attachment 1961660 [details]
File: environ

Comment 8 Tomas Tomecek 2023-05-02 12:28:29 UTC
This just means that the unix socket where docker-compose and docker API talk, is not present. Please make sure to run your dockerd or podman.

Comment 9 Nick 2023-06-19 12:18:12 UTC
I plugged my charger into my laptop and after that i changed the Power mode from Balanced to Performance. Then the OS started freezing until it was unresponsive.


reporter:       libreport-2.17.10
type:           Python3
interpreter:    python3-3.11.3-2.fc38.x86_64
package:        docker-compose-1.29.2-7.fc38
executable:     /usr/bin/docker-compose
cmdline:        /usr/bin/python3 /usr/bin/docker-compose up
comment:        I plugged my charger into my laptop and after that i changed the Power mode from Balanced to Performance. Then the OS started freezing until it was unresponsive.
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-3a1d369a-6204-45cf-9512-0e570ac38726.scope
exception_type: FileNotFoundError
uid:            1000
crash_function: connect
runlevel:       N 5
reason:         client.py:221:_retrieve_server_version:docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
kernel:         6.3.8-200.fc38.x86_64

Comment 10 Danny 2023-06-24 20:53:40 UTC
I was running "docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d"


reporter:       libreport-2.17.10
kernel:         6.3.8-200.fc38.x86_64
cmdline:        /usr/bin/python3 /usr/bin/docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-720c4f64-22e0-4537-8eb8-bf134ebf8a07.scope
uid:            1000
reason:         client.py:221:_retrieve_server_version:docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
executable:     /usr/bin/docker-compose
type:           Python3
package:        docker-compose-1.29.2-7.fc38
runlevel:       N 5
exception_type: FileNotFoundError
crash_function: connect
interpreter:    python3-3.11.3-2.fc38.x86_64
comment:        I was running "docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d"

Comment 11 Danny 2023-06-25 08:12:56 UTC
(In reply to Danny from comment #10)
> I was running "docker-compose -f docker-compose.yml -f
> docker-compose.dev.yml up -d"
> 
> 
> reporter:       libreport-2.17.10
> kernel:         6.3.8-200.fc38.x86_64
> cmdline:        /usr/bin/python3 /usr/bin/docker-compose -f
> docker-compose.yml -f docker-compose.dev.yml up -d
> cgroup:        
> 0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.
> Terminal.slice/vte-spawn-720c4f64-22e0-4537-8eb8-bf134ebf8a07.scope
> uid:            1000
> reason:        
> client.py:221:_retrieve_server_version:docker.errors.DockerException: Error
> while fetching server API version: ('Connection aborted.',
> FileNotFoundError(2, 'No such file or directory'))
> executable:     /usr/bin/docker-compose
> type:           Python3
> package:        docker-compose-1.29.2-7.fc38
> runlevel:       N 5
> exception_type: FileNotFoundError
> crash_function: connect
> interpreter:    python3-3.11.3-2.fc38.x86_64
> comment:        I was running "docker-compose -f docker-compose.yml -f
> docker-compose.dev.yml up -d"

Turned out I just had to manually enable/start the docker systemctl service, add my user to the docker group and doing a reboot. Thought installing the package would do that for me.