-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Problem with docker.asc in keyrings after last chore(deps): update ghcr.io/element-hq/synapse docker tag to v1.108.0 #3340
Comments
This should have not been an issue due to 3a4e58c, but.. Hmm.. |
Sorry, I didn't offer a translation from German... here it is: E:Contradictory values set for option Signed-By regarding the source https://download.docker.com/linux/debian/ bullseye: /etc/apt/trusted.gpg.d/docker.asc != /etc/apt/keyrings/docker.asc, E: The list of sources could not be read'. |
It seems I had two lines, both valid but conflicting with each other, in /etc/apt/source.list.d/docker.list. Now with just: deb [arch=arm64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian bullseye stable (I've chosen the newest one, the other line as above but with /etc/apt/trusted.gpg.d/docker.asc) it seems to work till the end: TASK [galaxy/playbook_help : Update apt cache] ************************************************************************************** A confirmation I guessed right would be helpful, because I'm not that keen when digging into /etc/apt/ ... Best regards |
3a4e58c should have removed the whole Removing the file will make the Docker role recreate it properly and there won't be a conflict. The playbook is not automatically detecting this faulty line and is not removing the file for you, it seems. You are reporting being on the "upgrade Synapse to v1.108.0" commit, which is newer than 3a4e58c, so I would have expected it to work. Maybe there's something special in your setup (Raspberry Pi..) and it failed to do it correctly for you. Anyway, I'm glad to hear that the problem has been fixed for you. If it happens again (to someone else), we may revisit this issue and figure out why 3a4e58c is not doing its job correctly in some instances. |
As it seems, it is not a problem caused by RasperryPi with Raspian bullseye, but it happens also on a RaspberryPi with a fresh installed Ubuntu Server 24.04 LTS (via rpi-imager) Ansible stops with message at: TASK [galaxy/docker : Add Docker apt key.] ************************************************************************************************************************* TASK [galaxy/docker : Ensure curl is present (on older systems without SNI).] ************************************************************************************** TASK [galaxy/docker : Add Docker apt key (alternative for older systems without SNI).] ***************************************************************************** TASK [galaxy/docker : Add Docker repository.] ********************************************************************************************************************** PLAY RECAP ********************************************************************************************************************************************************* Checking /etc/apt/keyrings/ one finds it empty. TASK [galaxy/docker : Add Docker apt key.] ************************************************************************************************************************* TASK [galaxy/docker : Ensure curl is present (on older systems without SNI).] ************************************************************************************** TASK [galaxy/docker : Add Docker apt key (alternative for older systems without SNI).] ***************************************************************************** TASK [galaxy/docker : Add Docker repository.] ********************************************************************************************************************** TASK [galaxy/docker : Install Docker packages.] ******************************************************************************************************************** TASK [galaxy/docker : Install Docker packages (with downgrade option).] ******************************************************************************************** but than a new problem appears with the exim-relay pull (I think, the two problems are not correlated, but I may be mistaken): TASK [galaxy/exim_relay : Ensure exim-relay image is pulled] A google search for the last msg above give some hints, but at this point I need definitely help... E.g. at google-deepmind/alphafold#867 - still opened - it is suggested to use docker compose instead of docker-compose - possibly a solution also for this problem? But to be painfully honest, I don't really understand all what is said there... Thank you for the kind help and suggestions! Highly appreciated. Best regards |
.. sounds like too-old Ansible and/or other modules. See |
Hi, I stumbled upon the same issue as @UehgxEQbFiw4Tlw8 above - the 'got an unexpected keyword argument "chunked"' error for a 24.04 LTS server. Luckily, I found a "solution", which is honestly rather a quick fix, that helped me: google-deepmind/alphafold#867 (comment) Basically, the idea is to create a virtualenv on the matrix server
and in your inventory/hosts file specifying the venv-python-binary:
Hope it helps... |
Another solution might be to install the updated python-docker package: sudo apt install python3-docker -t noble-updates |
Describe the bug
A clear and concise description of what the bug is.
After running the yesterday update about docker with just roles etc. I receive the message from Ansible:
TASK [galaxy/playbook_help : Update apt cache] *************************************************************************************************************************************************
fatal: [...]: FAILED! => changed=false
msg: 'E:Widersprüchliche Werte gesetzt für Option Signed-By betreffend die Quelle https://download.docker.com/linux/debian/ bullseye: /etc/apt/trusted.gpg.d/docker.asc != /etc/apt/keyrings/docker.asc, E: Die Liste der Quellen konnte nicht gelesen werden.'
I checekd on the server the two docker.asc files with a diff, they are equal, the first is older, the second was written yesterday in the keyring.
Checking also on the Debian download-website under gpg, it seems to me, also the file there has no deviations from the other twos.
Ergo: the ansible Warning seems to be wrong at first inspection.
To Reproduce
My
vars.yml
file looks like this:Of no interest and it didn't change during the last few months.
Expected behavior
A clear and concise description of what you expected to happen.
Normal behavior by Ansible. The server successfully updated.
Matrix Server:
Ansible:
On my Laptop with Ubuntu 22.04 LTS installed and up-to-date compatible with the packages on distribution
ansible [core 2.12.8]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/myname/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
ansible collection location = /home/myname/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
jinja version = 3.0.3
libyaml = True
Client:
Additional context
Possible workaround: to copy the older docker.asc
-rw-r--r-- 1 root root 3817 11. Dez 2022 docker.asc
into keyrings? Now still
-rw-r--r-- 1 root root 3817 28. Mai 07:24 docker.asc
Thanks for helping! Have a nice day
Best
M.
The text was updated successfully, but these errors were encountered: