Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your description of docker installation does not work. #106

Open
kopetsch opened this issue Oct 3, 2024 · 13 comments
Open

Your description of docker installation does not work. #106

kopetsch opened this issue Oct 3, 2024 · 13 comments

Comments

@kopetsch
Copy link

kopetsch commented Oct 3, 2024

git clone [email protected]:decidim/docker.git decidim-docker
results in

[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Instead I used
git clone https://github.com/decidim/docker.git

it works, but

docker-compose up

throws error:
docker.errors.DockerException: Error while fetching server API version: HTTPConnection.request() got an unexpected keyword argument 'chunked'
Trace:

Traceback (most recent call last):
  File "/usr/bin/docker-compose", line 33, in <module>
    sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 81, in main
    command_func()
  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 200, in perform_command
    project = project_from_options('.', options)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 60, in project_from_options
    return get_project(
           ^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 152, in get_project
    client = get_client(
             ^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 41, in get_client
    client = docker_client(
             ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 170, in docker_client
    client = APIClient(use_ssh_client=not use_paramiko_ssh, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 197, in __init__
    self._version = self._retrieve_server_version()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 221, in _retrieve_server_version
    raise DockerException(
docker.errors.DockerException: Error while fetching server API version: HTTPConnection.request() got an unexpected keyword argument 'chunked'

Thanks for help.

@alecslupu
Copy link
Contributor

This seems to be an issue with your docker environment.

@kopetsch
Copy link
Author

kopetsch commented Oct 3, 2024

Sorry, but your answer does not really help.

@alecslupu
Copy link
Contributor

Sorry, but your answer does not really help.

I cannot help, as i do not know your setup , versions etc ... This Ubuntu bug report may be related to your issue:
https://bugs.launchpad.net/ubuntu/+source/python-docker/+bug/2065348

My initial thought is that you were using an ancient version of docker & docker compose.

@kopetsch
Copy link
Author

kopetsch commented Oct 3, 2024

docker-ce is already the newest version (5:27.3.1-1ubuntu.24.04noble)
docker-compose is already the newest version (1.29.2-6ubuntu1)

@alecslupu
Copy link
Contributor

As i was saying, this is an Ubuntu issue, not related to Decidim.

@kopetsch
Copy link
Author

kopetsch commented Oct 3, 2024

Please, can you give me a hint, what to do?

@alecslupu
Copy link
Contributor

alecslupu commented Oct 3, 2024

have you checked the issue i gave?

https://bugs.launchpad.net/ubuntu/+source/python-docker/+bug/2065348/comments/18

Closing as the issue is not related to Decidim / or decidim Docker image.

@kopetsch
Copy link
Author

kopetsch commented Oct 3, 2024

Thank you.
I will try out another E-Participation Software.

@alecslupu
Copy link
Contributor

alecslupu commented Oct 3, 2024

@kopetsch you can always try Decidim in nightly.decidim.org and also on try.decidim.org

I have closed the issue as the issue you're reporting is not related to Decidim, and most likely no other participatory platform that offers a docker compose recepy would actually work on your computer.

About "what to do" ? Perform the test on an older version of Linux / docker, Install the python3-docker from the ticket ... and so on .. I do not have access to your computer, so i cannot advise fully on the matter.

@kopetsch
Copy link
Author

kopetsch commented Oct 3, 2024

Pointless!
a software, which can not deployed within the latest environment, is not suitable for us.
I close this conversation now.
Bye

@davidbeig
Copy link

Can you try with just docker compose up?

Here it seems that they are facing the same problem and it results in just a problem with the old docker-compose and the new docker compose command.

@alecslupu
Copy link
Contributor

@kopetsch can you make sure that you run before starting the container a chmod +x ./scripts/hello-world.sh ?
I cannot fully reproduce the error you're encounter, but i see that when i do not have enough rights on the file i get Permission denied.

Yes, the error you may be Decidim related.

Also, please note this Docker image, is actually running Decidim 0.24 (with a release date of Mar 26, 2021).
Will update the scripts and come back with some new info.

@alecslupu alecslupu reopened this Oct 5, 2024
@alecslupu
Copy link
Contributor

I cannot reproduce your error

having the following packs installed. Maybe is some kind of setting that i've done some time ago. My installed packages are:

$ apt list --installed | grep docker 

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

docker-buildx-plugin/noble,now 0.17.1-1~ubuntu.24.04~noble amd64 [installed]
docker-ce-cli/noble,now 5:27.3.1-1~ubuntu.24.04~noble amd64 [installed]
docker-ce-rootless-extras/noble,now 5:27.3.1-1~ubuntu.24.04~noble amd64 [installed,automatic]
docker-ce/noble,now 5:27.3.1-1~ubuntu.24.04~noble amd64 [installed]
docker-compose-plugin/noble,now 2.29.7-1~ubuntu.24.04~noble amd64 [installed]

Could you paste somewhere (gist.github.com) the entire output of your docker compose up command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants