Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Metron singlenode pcap_replay step failing

Super Guru

trying to bring up singlenode vm on my macbook pro. I am reaching the step of pcap_replay where it fails:

TASK [pcap_replay : Install example pcap file] ********************************* fatal: [node1]: FAILED! => {"failed": true, "msg": "ERROR! error while accessing the file /Users/smanjee/Documents/Hortonworks/Products/incubator-metron-Metron_0.1BETA_rc7/deployment/roles/pcap_replay/files/example.pcap, error was: [Errno 13] Permission denied: u'/Users/smanjee/Documents/Hortonworks/Products/incubator-metron-Metron_0.1BETA_rc7/deployment/roles/pcap_replay/files/example.pcap'"} PLAY RECAP ********************************************************************* node1 : ok=189 changed=108 unreachable=0 failed=1 Ansible failed to complete successfully. Any error output should be visible above. Please fix these errors and try again.

I did a quick ls -l on the file:

singlenode-vagrant smanjee$ ls -l /Users/smanjee/Documents/Hortonworks/Products/incubator-metron-Metron_0.1BETA_rc7/deployment/roles/pcap_replay/files/example.pcap

-rw-r--r-- 1 smanjee staff 507865 Apr 23 21:23 /Users/smanjee/Documents/Hortonworks/Products/incubator-metron-Metron_0.1BETA_rc7/deployment/roles/pcap_replay/files/example.pcap

I have also attached log file ansible-copylog.txt



Do you have any antivirus software?

View solution in original post



Do you have any antivirus software?


I ask because sometimes antivirus software has some issues with that file and will either remove it or prevent it from being accessed.

Super Guru

@cstella no antivirus software.

Rising Star

Could you add:

ansible.verbose = "vvv"

to /Users/smanjee/Documents/Hortonworks/Products/incubator-metron-Metron_0.1BETA_rc7/deployment/vagrant/singlenode-vagrant/Vagrantfile between lines 61-62, re-run and re-attach ansible.log?

Also, please run the following from /Users/smanjee/Documents/Hortonworks/Products/incubator-metron-Metron_0.1BETA_rc7/deployment/vagrant/singlenode-vagrant and attach the output.

# is this a git repo?
IS_GIT_REPO=`git rev-parse --is-inside-work-tree`
if [ "$IS_GIT_REPO" == "true" ]; then

  # current branch
  echo "--"
  git branch | grep "*"

  # last commit
  echo "--"
  git log -n 1

  # local changes since last commit
  echo "--"
  git diff --stat

# ansible
echo "--"
ansible --version

# vagrant
echo "--"
vagrant --version

# python
echo "--"
python --version 2>&1

# maven
echo "--"
mvn --version

# operating system
echo "--"
uname -a



Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.