Last active
April 7, 2016 14:52
-
-
Save libbymiller/33ffe38ae6888cd67c8c33be669feb06 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# using a B+ and the default skeleton app I get no startup audio on a B+. | |
# pi 2 works perfectly. | |
# I can control audio from the webpage fine. | |
# This is what I did: | |
diskutil list | |
diskutil unmountDisk /dev/disk2 | |
sudo dd bs=1m if=~/Downloads/2016-02-26-raspbian-jessie.img of=/dev/rdisk2 | |
Put it in the Pi, login, expand the filesystem, reboot and login again. | |
Checkout the Radiodan code and provision the relevant parts. | |
git clone https://github.com/radiodan/provision.git | |
cd provision | |
git fetch origin | |
git checkout -b minimal origin/minimal | |
sudo ./provision all | |
# Logs: | |
==> /var/log/radiodan-app-1.stdout.log <== | |
Hello | |
Listening on port 5000 | |
==> /var/log/radiodan-broker-1.stdout.log <== | |
> radiodan-skeleton@0.0.0 broker /opt/radiodan/apps/skeleton | |
> radiodan-broker | |
==> /var/log/radiodan-audio-1.stdout.log <== | |
> radiodan-skeleton@0.0.0 audio /opt/radiodan/apps/skeleton | |
> radiodan-server ../../config/radiodan-config.json | |
==> /var/log/radiodan-broker-1.stdout.log <== | |
Broker started 2016-04-07 14:48:54.80128 +0000 UTC | |
Log Level: info | |
time="2016-04-07T14:48:54Z" level=info msg="Broker services on tcp://0.0.0.0:7171" | |
time="2016-04-07T14:48:54Z" level=info msg="Broker publishes on tcp://0.0.0.0:7172" | |
time="2016-04-07T14:48:54Z" level=info msg="Broker subscribes on tcp://0.0.0.0:7173" | |
time="2016-04-07T14:49:03Z" level=info msg="Adding worker \"audio-dedb9330-fccf-11e5-9ed3-2f9ffd11966d\" to audio.default" file="service/services.go" | |
time="2016-04-07T14:49:07Z" level=info msg="Adding worker \"radiodan-player-main-e1aa6aa0-fccf-11e5-9ed3-2f9ffd11966d\" to player.main" file="service/services.go" | |
==> /var/log/radiodan-audio-1.stdout.log <== | |
event name (s) is database.update.start | |
updating... | |
newdata | |
{} | |
==> /var/log/radiodan-app-1.stdout.log <== | |
database.update.start | |
sudo tail /var/log/supervisor/supervisord.log | |
2016-04-07 14:47:37,213 INFO RPC interface 'supervisor' initialized | |
2016-04-07 14:47:37,215 CRIT Server 'unix_http_server' running without any HTTP authentication checking | |
2016-04-07 14:47:37,250 INFO daemonizing the supervisord process | |
2016-04-07 14:47:37,293 INFO supervisord started with pid 786 | |
2016-04-07 14:47:38,385 INFO spawned: 'radiodan-app-1' with pid 796 | |
2016-04-07 14:47:38,619 INFO spawned: 'radiodan-audio-1' with pid 798 | |
2016-04-07 14:47:38,844 INFO spawned: 'radiodan-broker-1' with pid 802 | |
2016-04-07 14:47:39,978 INFO success: radiodan-app-1 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) | |
2016-04-07 14:47:39,979 INFO success: radiodan-audio-1 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) | |
2016-04-07 14:47:39,980 INFO success: radiodan-broker-1 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) | |
# Logs when started manually with supervisorctl | |
pi@radiodan:~ $ sudo supervisorctl restart radiodan:radiodan-app-1 | |
radiodan:radiodan-app-1: stopped | |
radiodan:radiodan-app-1: started | |
pi@radiodan:~ $ sudo tail -f /var/log/radiodan-* | |
==> /var/log/radiodan-app-1.stderr.log <== | |
==> /var/log/radiodan-app-1.stdout.log <== | |
Hello | |
Listening on port 5000 | |
database.update.end | |
[init] | |
database.update.start | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment