Hello,
I am trying to setup an AMI to run boto's "sonofmmm" service. I have managed to do the following so far:
* Created input and output queues, buckets and sdb domain,
* Installed ffmpeg,
* Git cloned latest (2.3.0) boto source and installed it,
* Put the following into rc.local:
sudo -b -i -u <username> /usr/bin/python /home/<username>/boto/boto/pyami/bootstrap.py
sudo -b -i -u <username> /usr/bin/python /home/<username>/boto/boto/pyami/startup.py
* Bundled, uploaded and registered new AMI
I have the attached my "sonofmmm.cfg" to this post.
The problem I am experiencing is when I use the boto service "bs.py" script.
When I start a new instance like this:
$ cd /home/<username>/boto/boto/services
$ ./bs.py -k <my_pk> sonofmmm.cfg start
once the new instance is launched I get the following error in syslog:
Traceback (most recent call last):
File "/home/<username>/boto/boto/pyami/startup.py", line 60, in <module>
su.main()
File "/home/<username>/boto/boto/pyami/startup.py", line 52, in main
self.run_scripts()
File "/home/<username>/boto/boto/pyami/startup.py", line 49, in run_scripts
raise e
AttributeError: 'NoneType' object has no attribute 'read'
I have also logged in via ssh to this instance and looked at boto's log files, look at the boto source code and it seems that this issue has to do with the default region that is set for the input queue (sqs). It is set to "us-east-1" and I can't seem to find a proper way to set region for aws services to "eu-west-1".
Setting "ec2_region_name" and "ec2_region_endpoint" in the service config file doesn't seem to help.
I have also tried the following:
$ cd /home/<username>/boto/boto/services
$ ./bs.py -p ~/<dir_containing_movie_files> sonofmmm.cfg submit
It informs me that all the files were submitted and prints the "Batch Identifier". I can confirm that these files are stored in the input bucket but no new messages are created in the input queue.
Any help would be appreciated.
Kind Regards,
Nikola