Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Metron singlenode pcap_replay step failing

avatar
Master 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

1 ACCEPTED SOLUTION

avatar
New Member

Do you have any antivirus software?

View solution in original post

4 REPLIES 4

avatar
New Member

Do you have any antivirus software?

avatar
New Member

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

avatar
Master Guru

@cstella no antivirus software.

avatar
Expert Contributor

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
fi

# ansible
echo "--"
ansible --version

# vagrant
echo "--"
vagrant --version

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

# maven
echo "--"
mvn --version

# operating system
echo "--"
uname -a

Thanks!

-David...