ansible-navigator
ansible-navigator copied to clipboard
Unable to extract collection json from stdout, when listing collections through navigator
ISSUE TYPE
- Bug Report
SUMMARY
ANSIBLE-NAVIGATOR VERSION
ansible-navigator 2.1.0
CONFIGURATION
---
ansible-navigator:
execution-environment:
image: quay.io/ansible/creator-ee
enabled: true
container-engine: docker
pull:
policy: always
LOG FILE
2022-09-08T16:59:33.372130+00:00 ERROR 'ansible_navigator.actions.collections._parse' Unable to extract collection json from stdout
2022-09-08T16:59:33.372193+00:00 DEBUG 'ansible_navigator.actions.collections._parse' error json loading output: 'not enough values to unpack (expected 2, got 1)'
2022-09-08T16:59:33.372249+00:00 DEBUG 'ansible_navigator.actions.collections._parse' WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
docker: Error response from daemon: Mounts denied:
The path /opt/homebrew/share/ansible_navigator/utils is not shared from the host and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
See https://docs.docker.com/desktop/mac for more info.
ERRO[0000] error waiting for container: context canceled
STEPS TO REPRODUCE
Running ansible-navigator collections
or ansible-navigator collections -m stdout
results in same errors on logfile
EXPECTED RESULTS
No errors
ACTUAL RESULTS
2022-09-08T16:59:33.372130+00:00 ERROR 'ansible_navigator.actions.collections._parse' Unable to extract collection json from stdout
2022-09-08T16:59:33.372193+00:00 DEBUG 'ansible_navigator.actions.collections._parse' error json loading output: 'not enough values to unpack (expected 2, got 1)'
2022-09-08T16:59:33.372249+00:00 DEBUG 'ansible_navigator.actions.collections._parse' WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
docker: Error response from daemon: Mounts denied:
The path /opt/homebrew/share/ansible_navigator/utils is not shared from the host and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
See https://docs.docker.com/desktop/mac for more info.
ERRO[0000] error waiting for container: context canceled
ADDITIONAL INFORMATION
Ansible navigator running on apple silicone with docker engine MacOS Monterey Docker version
Docker version 20.10.17, build 100c701
➜ ansible_development ls -al /opt/homebrew/bin/ansible-navigator
-rwxr-xr-x 1 anshul admin 248 7 Sep 20:58 /opt/homebrew/bin/ansible-navigator
@anshulbehl Can you try this again from using main? There have been a number of changes recently and the tests are now passing when running on macOS w/ docker
You may also have to allow docker to mount that directory.
In the next couple weeks those files will be moved into the source tree that should help as well