airnotifier at Ec2 ubuntu running error

airnotifier at Ec2 ubuntu running error

by Mounir Abderrahmani -
Number of replies: 2

I got the app from https://github.com/moodlehq/airnotifier/tree/moodle2 

followed the steps in https://github.com/airnotifier/airnotifier/wiki/Installation 

-- python airnotifier.py

INFO     Starting AirNotifier server

INFO     AirNotifier is running

and stuck at this point ctrl+c to intrupt and shows this error "airnotifier.err"

Traceback (most recent call last):

  File "airnotifier.py", line 151, in <module>

    (AirNotifierApp(apnsconnections=apnsconns, gcmconnections=gcmconns)).main()

  File "airnotifier.py", line 103, in main

    tornado.ioloop.IOLoop.instance().start()

  File "/usr/local/lib/python2.7/dist-packages/tornado/ioloop.py", line 627, in start

    event_pairs = self._impl.poll(poll_timeout)

KeyboardInterrupt


what is responsible for this error ? or what I am doing wrong ?!


 

Average of ratings: -
In reply to Mounir Abderrahmani

Re: airnotifier at Ec2 ubuntu running error

by Mounir Abderrahmani -

I updated the steps again and made about 10 instances and tried about 20 times still can't figure out how to make it run 

I used the following steps 

starting an ec2 ubuntu and after connecting with ssh 

sudo apt-get install python-pip python-dev build-essential mongodb git


sudo mkdir -p /var/airnotifier/pemdir


git clone -b moodle2 --single-branch https://github.com/moodlehq/airnotifier.git airnotifier


cd airnotifier


sudo pip install -r requirements.txt


nano airnotifier.conf-sample


#Change

[ pemdir = “/var/airnotifier/files”  to  pemdir = “/var/airnotifier/pemdir” 

Https = False ]

Ctrl c  then y then save as airnotifir.conf


python install.py 


sudo python airnotifier.py >> airnotifier.log 2>> airnotifier.err


Nano airnotifier.err shows the following 

“”

[I 170203 20:12:20 airnotifier:189] Starting AirNotifier server

[I 170203 20:12:20 airnotifier:202] AirNotifier is ready

[I 170203 20:12:46 airnotifier:206] AirNotifier is quiting

”” 

why still not working !