Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Metron singlenode pcap_replay step failing

Solved Go to solution
Highlighted

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Metron singlenode pcap_replay step failing

New Contributor

Do you have any antivirus software?

4 REPLIES 4

Re: Metron singlenode pcap_replay step failing

New Contributor

Do you have any antivirus software?

Re: Metron singlenode pcap_replay step failing

New Contributor

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

Re: Metron singlenode pcap_replay step failing

Super Guru

@cstella no antivirus software.

Re: Metron singlenode pcap_replay step failing

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
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...

Don't have an account?
Coming from Hortonworks? Activate your account here