This was introduced by #14 and needs to be fixed. I looks like it needs a multi pronged fix since there are two main failures.
- missing soundcloud config
- no support for env subdir in conf dir
- setup does not create
cloud_storage.conf and leaves rabbitmq-analyzer.ini empty
Workaround from #14 (comment)
# after completing setup (ie no error from rabbitmq, but it hangs in the end)
#sudo bash -c 'echo soundcloud_client_id = 0 >> /etc/airtime/airtime.conf'
#sudo bash -c 'echo soundcloud_client_secret = 0 >> /etc/airtime/airtime.conf'
#sudo bash -c 'echo soundcloud_redirect_uri = http://example.org >> /etc/airtime/airtime.conf'
# sudo ln -s /etc/airtime /etc/airtime/production
#sudo cp ./airtime_mvc/tests/conf/testing/cloud_storage.conf /etc/airtime/
# do these before running sudo commands in the last setup step!
sudo bash -c 'cat > /etc/airtime/rabbitmq-analyzer.ini <<EOD
[rabbitmq]
host = 127.0.0.1
port = 5672
user = airtime
password = airtime
vhost = /airtime
EOD'
# start icecast
sudo sed -i -e 's/ENABLE=false/ENABLE=true/' /etc/default/icecast2
sudo service icecast2 start
# reload page and you should be on the default radio page
Solution: Add soundcloud_* defaults to config file during initial generation and make /etc/airtime/<env>/ installer location sane.
We can refactor it to fall back on LIBRETIME_CONF_DIR/*.conf if LIBRETIME_CONF_DIR/ENVIRONMENT/*.conf is missing later, I need to read up on how to best do that in python.
Do we want to have nice setup steps for the soundcloud and cloud storage steps? Is anyone currently not using a file backend in cloud_storage.conf that can share an S3 example?
This was introduced by #14 and needs to be fixed. I looks like it needs a multi pronged fix since there are two main failures.
cloud_storage.confand leavesrabbitmq-analyzer.iniemptyWorkaround from #14 (comment)
Solution: Add soundcloud_* defaults to config file during initial generation and make
/etc/airtime/<env>/installer location sane.cloud_storage.confinstall to the setup scriptrabbitmq-analyzer.iniis empty and fix thatWe can refactor it to fall back on
LIBRETIME_CONF_DIR/*.confifLIBRETIME_CONF_DIR/ENVIRONMENT/*.confis missing later, I need to read up on how to best do that in python.Do we want to have nice setup steps for the soundcloud and cloud storage steps? Is anyone currently not using a
filebackend incloud_storage.confthat can share an S3 example?