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

infinite loop when creating election #216

Open
jsperezg opened this issue May 4, 2018 · 1 comment
Open

infinite loop when creating election #216

jsperezg opened this issue May 4, 2018 · 1 comment

Comments

@jsperezg
Copy link

jsperezg commented May 4, 2018

Good morning. I've been trying to install agora following the instructions. At this moment I'm stuck with election creation. The election itself is written into the database however I can't start the it. The browser log shows that when I press the 'Create election' the api call create is invoked and it returs the following json:

{"date":"2018-05-04 10:26:56.791","payload":"ok"}

After this call it seems to enter into an infinite loop asking for election data and election stats. Seems that it's waiting for something to happen.

/elections/api/election/41

{"date":"2018-05-04 10:26:57.816","payload":{"id":41,"configuration":{"id":41,"layout":"simple","director":"aut1.aspgems.com","authorities":["aut2.aspgems.com"],"title":"New election","description":"","questions":[{"description":"","layout":"accordion","max":1,"min":1,"num_winners":1,"title":"New question 0","tally_type":"plurality-at-large","answer_total_votes_percentage":"over-total-valid-votes","answers":[{"id":0,"category":"","details":"","sort_order":0,"urls":[],"text":"Yes"}],"extra_options":{"shuffle_categories":true,"shuffle_all_options":true,"shuffle_category_list":[],"show_points":false}}],"start_date":"2015-01-27T16:00:00.001","end_date":"2015-01-27T16:00:00.001","presentation":{"share_text":[{"network":"Twitter","button_text":"","social_message":"I have just voted in election __URL__, you can too! #nvotes"},{"network":"Facebook","button_text":"","social_message":"__URL__"}],"theme":"default","urls":[],"theme_css":""},"real":false,"extra_data":"{}","virtual":false,"virtualSubelections":[],"logo_url":""},"state":"registered","startDate":"2015-01-27T16:00:00.001","endDate":"2015-01-27T16:00:00.001","real":false,"virtual":false,"logo_url":""}}

and /elections/api/election/41/stats

{"date":"2018-05-04 10:26:57.899","payload":{"totalVotes":0,"votes":0,"days":[]}}
@jsperezg
Copy link
Author

jsperezg commented May 4, 2018

I don't know if it's related or not but dump_pks from command line finishes with the following error:

$ ./admin.py dump_pks 43
400 {"date":"2018-05-04 11:05:34.021","payload":{"error":"No PKS for election 43","code":7}}
(env)agoraelec

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