question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Molecule won't start Docker container - fatal: [centos8]: UNREACHABLE! => {"changed": false, "msg": "Authentication or permission failure ...

See original GitHub issue

When run molecule test, I got the following error: fatal: [centos8]: UNREACHABLE! => {“changed”: false, “msg”: “Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in "/tmp". Failed command was: ( umask 77 && mkdir -p "echo ~/.ansible/tmp/ansible-tmp-1602159340.7644343-138649041382011" && echo ansible-tmp-1602159340.7644343-138649041382011="` echo ~/.ansible/tmp/ansible-tmp-1602159340 exited with result 1”, “unreachable”: true}

After this failure, “docker ps -a” return nothing, which means no docker containers were started.

My platform is wsl 2 on Window 10 coomand “docker run hello-world” indicates the docker is working properly

the versions of pip and python are: Python 3.8.5 and pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8) the molecule.yml:

dependency: name: galaxy driver: name: docker platforms:

  • name: centos7 image: geerlingguy/docker-centos7-ansible provisioner: name: ansible verifier: name: ansible

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

3reactions
rcooper85commented, Nov 23, 2020

Hi, i’m getting the exact same error message using molecule version 2.20.2.

If I run, molecule converge, molecule verify, molecule destroy separately, it works fine. I only seem to get the UNREACHABLE error when I use the molecule test command. I have nothing within my ~/.cache/molecule directory either.

0reactions
ghostcommented, Oct 12, 2020

@shanxijie Glad to hear you were able to figure it out!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Molecule cannot connect to docker - ansible - Stack Overflow
I cannot make molecule test. I got error as below: fatal: [instance]: UNREACHABLE! => {"changed": false, "msg": "Failed to create temporary ...
Read more >
Overview | Docker Documentation
This page contains information on: How to diagnose and troubleshoot Docker Desktop issues; Check the logs; Find workarounds for common problems ...
Read more >
Building, running, and managing containers
This guide describes the tools provided to perform those tasks that run directly on RHEL systems. Unlike other container tools implementations, the tools ......
Read more >
Testing Ansible playbooks with Molecule - Sysbee
Molecule will provision the environment you need to run tests, ... to use the Podman driver and use docker.io/pycontribs/centos:8 image.
Read more >
How to fix the `/usr/bin/python: not found` error in Ansible
The shell helpfully points out that we have python3 installed and can use that instead. The reason our Ansible failed even though python3...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found