splunk / docker-splunk

Splunk Docker GitHub Repository
460 stars 253 forks source link

sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges? #683

Closed gordondu99 closed 1 month ago

gordondu99 commented 1 month ago

can you help below issue when docker run? thanks!

only user root (docker run -d -u root ) can avoid this.

PLAY [Run default Splunk provisioning] *****

TASK [Gathering Facts] ***** fatal: [localhost]: FAILED! => { "ansible_facts": {}, "changed": false, "failed_modules": { "ansible.legacy.setup": { "failed": true, "module_stderr": "sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1 } } }

MSG:

The following modules failed to execute: ansible.legacy.setup

gordondu99 commented 1 month ago

find the root cause, thanks!