Error on starting AirNotifier

Error on starting AirNotifier

by suman bogati -
Number of replies: 2

Hi Everyone,

I am following the instruction from here to install the Air Notifier, have installed all the requirements.

I run the below command under  setup AirNotifier header

python install.py

But I got the following error, Shall I need to do something which is not mentioned on tutorial.



How can I fix this problem ? 

Average of ratings: -
In reply to suman bogati

Re: Error on starting AirNotifier

by suman bogati -

Hi Everyone,

I am working in Centos 6.5. By installing the mongodb  as suggested by install mongodb and  new Python2.7 did solved the problem produced by python install.py

After installed these requirements, The error is gone by running python2.7 install.py,

But when I start AirNotifier server by this command

sudo python2.7 airnotifier.py >> airnotifier.log 2>> airnotifier.err

The following error would come, I created  two certificate files, which have mentioned in airnotifier.conf

[I 160701 12:03:01 airnotifier:192] Starting AirNotifier server
Traceback (most recent call last):
File "airnotifier.py", line 288, in <module>
AirNotifierApp(services=services).main()
File "airnotifier.py", line 197, in main
ssl_ctx.load_cert_chain(options.httpscertfile, options.httpskeyfile)
IOError: [Errno 2] No such file or directory

Why the aIrnotifier.py can not load the certificate and key files, Can you please suggest how can I get rid of this?

In reply to suman bogati

Re: Error on starting AirNotifier

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

maybe is about file permissions? Are you sure the file is readable by the python process?

Try to assign the file the same owner that the airnotifier process has

Juan