Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run example from documentation #630

Open
BitResolution opened this issue Aug 25, 2015 · 1 comment
Open

Can't run example from documentation #630

BitResolution opened this issue Aug 25, 2015 · 1 comment

Comments

@BitResolution
Copy link

Hi,
I've set up a disco cluster on EC2 using ansible to provision the machines. I can successfully lauch disco, can see the black nodes on the status page, but when I try and execute the sample code (word count) from the documentation I get the following error.

disco@ip-172-31-30-166:~/disco$ ./disco-smoke-test.py 
/usr/local/lib/python2.7/dist-packages/disco/fileutils.py:141: UserWarning: Duplicate name: 'usr/local/lib/python2.7/dist-packages/disco/job.py'
  self.write(file, file)
/usr/local/lib/python2.7/dist-packages/disco/fileutils.py:141: UserWarning: Duplicate name: 'usr/local/lib/python2.7/dist-packages/disco/worker/classic/worker.py'
  self.write(file, file)
Job@5a0:7ba4d:4cf2:
Traceback (most recent call last):
  File "./disco-smoke-test.py", line 18, in <module>
    for word, count in result_iterator(job.wait(show=True)):
  File "/usr/local/lib/python2.7/dist-packages/disco/core.py", line 366, in wait
    event_monitor.refresh()
  File "/usr/local/lib/python2.7/dist-packages/disco/eventmonitor.py", line 184, in refresh
    status = self.status
  File "/usr/local/lib/python2.7/dist-packages/disco/eventmonitor.py", line 175, in status
    .format(tuple(self.stats)))
  File "/usr/local/lib/python2.7/dist-packages/disco/eventmonitor.py", line 166, in stats
    first = pipeline[0]
IndexError: list index out of range

I did see #443 and have execute the commands you asked them to:

disco@ip-172-31-30-166:~$ echo $LANG
en_US.UTF-8
disco@ip-172-31-30-166:~$ python --version
Python 2.7.6
disco@ip-172-31-30-166:~$ erl version
Erlang R16B03 (erts-5.10.4) [source] [64-bit] [async-threads:10] [kernel-poll:false]

I've also tried running the healthcheck but I get the following output:

disco@ip-172-31-30-166:~$ ./healthcheck.sh nodes.txt 
inspecting discomaster {"init terminating in do_boot",{{badmatch,pang},[{pinger,pingit,1,[{file,"pinger.erl"},{line,5}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

I have had this running with the same ansible scripts on a local virtualbox vms (I'm using vagrant to spin up VMs then Ansible to provision). The problem only exhibits itself on my EC2 environment.

@ghost
Copy link

ghost commented Dec 17, 2016

I had a similar issue, it was something to do with using the newer pipeline worker vs classic

possibly defining self.pipeline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant