Skip to content

Problem: Installer is broken due to missing soundcloud, env and rabbitmq settings #24

Description

@hairmare

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.

  1. missing soundcloud config
  2. no support for env subdir in conf dir
  3. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions