Skip to content

Your description of docker installation does not work. #106

Open

Description

@kopetsch

git clone git@github.com:decidim/docker.git decidim-docker
results in

git@github.com: 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.

Activity

  1. alecslupu commented on Oct 3, 2024

    @alecslupu
    Contributor

    This seems to be an issue with your docker environment.

  2. kopetsch commented on Oct 3, 2024

    @kopetsch
    Author

    Sorry, but your answer does not really help.

  3. alecslupu commented on Oct 3, 2024

    @alecslupu
    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.

  4. kopetsch commented on Oct 3, 2024

    @kopetsch
    Author

    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)

  5. alecslupu commented on Oct 3, 2024

    @alecslupu
    Contributor

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

  6. kopetsch commented on Oct 3, 2024

    @kopetsch
    Author

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

  7. alecslupu commented on Oct 3, 2024

    @alecslupu
    Contributor

    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.

  8. kopetsch commented on Oct 3, 2024

    @kopetsch
    Author

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

  9. alecslupu commented on Oct 3, 2024

    @alecslupu
    Contributor

    @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.

  10. kopetsch commented on Oct 3, 2024

    @kopetsch
    Author

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

  11. davidbeig commented on Oct 4, 2024

    @davidbeig
    Contributor

    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.

  12. alecslupu commented on Oct 5, 2024

    @alecslupu
    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.

  13. alecslupu commented on Oct 5, 2024

    @alecslupu
    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?

  14. githubber commented on Dec 15, 2025

    @githubber

    @kopetsch You weren't wrong. I've the same problem. I had to use gh repo clone decidim/docker to get the code. Then, it wouldn't run with docker compose up because Docker wouldn't let us with the loose settings - POSTGRES_HOST_AUTH_METHOD=trust. Even after I changed that, it wouldn't start because of pgsql conflict of some kind (see below), indicating that NO OTHER pysql images can be present!

    It's disappointing when a useful piece of software can't be run. I'm not so surprised, I've always had issues with Ruby and gems.

    `
    See https://github.com/docker-library/postgres/issues/37⁠ for a (long)

       discussion around this process, and suggestions for how to do so.
    

    Error: in 18+, these Docker images are configured to store database data in a

       format which is compatible with "pg_ctlcluster" (specifically, using
    
       major-version-specific directory names).  This better reflects how
    
       PostgreSQL itself works, and how upgrades are to be performed.
    
    
       See also [https://github.com/docker-library/postgres/pull/1259⁠](https://github.com/docker-library/postgres/pull/1259)
    
    
       Counter to that, there appears to be PostgreSQL data in:
    
         /var/lib/postgresql/data (unused mount/volume)
    
    
       This is usually the result of upgrading the Docker image without
    
       upgrading the underlying database using "pg_upgrade" (which requires both
    
       versions).
    
    
       The suggested container configuration for 18+ is to place a single mount
    
       at /var/lib/postgresql which will then place PostgreSQL data in a
    
       subdirectory, allowing usage of "pg_upgrade --link" without mount point
    
       boundary issues.
    
    
       See [https://github.com/docker-library/postgres/issues/37⁠](https://github.com/docker-library/postgres/issues/37) for a (long)
    
       discussion around this process, and suggestions for how to do so.
    

    `

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions