Bug 2192576 - [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'))
Summary: [abrt] docker-compose: connect(): client.py:221:_retrieve_server_version:dock...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: docker-compose
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Tomecek
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:b953939c0fd4c480d50a85f77b3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-02 10:49 UTC by Andrei Nevedomskii
Modified: 2023-06-25 08:12 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-02 12:28:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (6.51 KB, text/plain)
2023-05-02 10:49 UTC, Andrei Nevedomskii
no flags Details
File: mountinfo (3.74 KB, text/plain)
2023-05-02 10:49 UTC, Andrei Nevedomskii
no flags Details
File: namespaces (171 bytes, text/plain)
2023-05-02 10:49 UTC, Andrei Nevedomskii
no flags Details
File: open_fds (394 bytes, text/plain)
2023-05-02 10:49 UTC, Andrei Nevedomskii
no flags Details
File: os_info (734 bytes, text/plain)
2023-05-02 10:49 UTC, Andrei Nevedomskii
no flags Details
File: cpuinfo (2.97 KB, text/plain)
2023-05-02 10:49 UTC, Andrei Nevedomskii
no flags Details
File: environ (2.71 KB, text/plain)
2023-05-02 10:49 UTC, Andrei Nevedomskii
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.