Installation on Pi zero , debian method


#1

Looking for help.

Used the debian method to install funkwhale on a rpi zero, running raspbian stretch.
i managed to get the landing page (192.168.1.196/library) up but can’t create a user !!!

I’d suggest my issue has to do with nginx.conf / funkwhale.conf as these files were cobbled together
from info. found on this forum…


#2

Did you create a user with the command as outlined in https://docs.funkwhale.audio/installation/debian.html#create-an-admin-account? Did this command raise an error?


#3

Yes.

python api/manage.py createsuperuser
Username: superman
Email address:
Password:
Password (again):
Superuser created successfully.

Alas when I try login with this info. the hourglass keeps spinning (terminology maybe incorrect) and
nothing happens


#4

Ok, can you share the server logs that are produced when you try to login? Those logs are available in systemd, by running journalctl -xn -u funkwhale-server


#5

journalctl -xn -u funkwhale-server
– No entries –


#6

It could be that the funkwhale-server service is not running.
You can check it with systemctl status funkwhale-server.service


#7

You are correct, it is not running…

systemctl status funkwhale-server.service

Unit funkwhale-server.service could not be found.

I restarted the service but am getting this error:

sudo systemctl restart funkwhale-server.service
Failed to restart funkwhale-server.service: Unit funkwhale-server.service not found.

I executed a find comand on /srv and cannot find funkwhale-server.service. I do see it
mentioned in the Gitlab funkwhale/deploy dir but I am not using that…ideas?


#8

You may have missed some steps in the systemd configuration, I’d go back to the documentation to check that.


#9

Parpel,

Out of interest where does this file reside?

(I have installed the software using the debian method twice…so although it looks like i stuffed up…
i’d like to know.

As much as i would love to get this up and going the install process and complexity ain’t making it easy.


#10

My stuff up…

Long story short I have 2 rpi’s with funkwhale installed on both. When I ran the funkwhale-server.service it ran on the rpi with an earlier incomplete funkwhale install.

Anyway back with more info from the (nearly running) rpi. I still have an issue/s !!

Here is the output from

sudo systemctl status funkwhale-*

● funkwhale-worker.service - Funkwhale celery worker
Loaded: loaded (/etc/systemd/system/funkwhale-worker.service; disabled; vendor preset: enabled)
Active: active (running) since Thu 2018-11-22 11:41:35 AEDT; 2min 53s ago
Main PID: 4776 (celery)
CGroup: /system.slice/funkwhale-worker.service
├─4776 /srv/funkwhale/virtualenv/bin/python3 /srv/funkwhale/virtualenv/bin/celery -A funkwhale_api.taskapp worker -l INFO
├─4805 /srv/funkwhale/virtualenv/bin/python3 /srv/funkwhale/virtualenv/bin/celery -A funkwhale_api.taskapp worker -l INFO
├─4806 /srv/funkwhale/virtualenv/bin/python3 /srv/funkwhale/virtualenv/bin/celery -A funkwhale_api.taskapp worker -l INFO
├─4807 /srv/funkwhale/virtualenv/bin/python3 /srv/funkwhale/virtualenv/bin/celery -A funkwhale_api.taskapp worker -l INFO
└─4808 /srv/funkwhale/virtualenv/bin/python3 /srv/funkwhale/virtualenv/bin/celery -A funkwhale_api.taskapp worker -l INFO

Nov 22 11:41:57 rasp_196 celery[4776]: [2018-11-22 00:41:57,367: INFO/MainProcess] Connected to redis://localhost:6379/0
Nov 22 11:41:57 rasp_196 celery[4776]: [2018-11-22 00:41:57,510: INFO/MainProcess] mingle: searching for neighbors
Nov 22 11:41:58 rasp_196 celery[4776]: [2018-11-22 00:41:58,779: INFO/MainProcess] mingle: all alone
Nov 22 11:41:58 rasp_196 celery[4776]: [2018-11-22 00:41:58,840: INFO/MainProcess] [email protected]_196 ready.
Nov 22 11:42:00 rasp_196 celery[4776]: [2018-11-22 00:42:00,308: INFO/MainProcess] Received task: federation.clean_music_cache[79b51aca
Nov 22 11:42:01 rasp_196 celery[4776]: [2018-11-22 00:42:01,580: INFO/ForkPoolWorker-2] Task federation.clean_music_cache[79b51aca-da11
Nov 22 11:43:00 rasp_196 celery[4776]: [2018-11-22 00:43:00,023: INFO/MainProcess] Received task: federation.clean_music_cache[f3ebb849
Nov 22 11:43:01 rasp_196 celery[4776]: [2018-11-22 00:43:01,220: INFO/ForkPoolWorker-4] Task federation.clean_music_cache[f3ebb849-9ecc
Nov 22 11:44:00 rasp_196 celery[4776]: [2018-11-22 00:44:00,054: INFO/MainProcess] Received task: federation.clean_music_cache[5ba35a72
Nov 22 11:44:01 rasp_196 celery[4776]: [2018-11-22 00:44:01,233: INFO/ForkPoolWorker-2] Task federation.clean_music_cache[5ba35a72-6613

● funkwhale-beat.service - Funkwhale celery beat process
Loaded: loaded (/etc/systemd/system/funkwhale-beat.service; disabled; vendor preset: enabled)
Active: active (running) since Thu 2018-11-22 11:41:35 AEDT; 2min 53s ago
Main PID: 4777 (celery)
CGroup: /system.slice/funkwhale-beat.service
└─4777 /srv/funkwhale/virtualenv/bin/python3 /srv/funkwhale/virtualenv/bin/celery -A funkwhale_api.taskapp beat -l INFO

Nov 22 11:41:35 rasp_196 systemd[1]: Started Funkwhale celery beat process.
Nov 22 11:41:54 rasp_196 celery[4777]: [2018-11-22 00:41:54,936: INFO/MainProcess] beat: Starting…
Nov 22 11:42:00 rasp_196 celery[4777]: [2018-11-22 00:42:00,128: INFO/MainProcess] Scheduler: Sending due task federation.clean_music_c
Nov 22 11:43:00 rasp_196 celery[4777]: [2018-11-22 00:43:00,007: INFO/MainProcess] Scheduler: Sending due task federation.clean_music_c
Nov 22 11:44:00 rasp_196 celery[4777]: [2018-11-22 00:44:00,038: INFO/MainProcess] Scheduler: Sending due task federation.clean_music_c

● funkwhale-server.service - Funkwhale application server
Loaded: loaded (/etc/systemd/system/funkwhale-server.service; disabled; vendor preset: enabled)
Active: active (running) since Thu 2018-11-22 11:41:35 AEDT; 2min 53s ago
Main PID: 4775 (daphne)
CGroup: /system.slice/funkwhale-server.service
└─4775 /srv/funkwhale/virtualenv/bin/python3 /srv/funkwhale/virtualenv/bin/daphne -b 127.0.0.1 -p 5000 config.asgi:applicati

Nov 22 11:44:05 rasp_196 daphne[4775]: ERROR 2018-11-22 00:44:05,802 exception 4775 1769993328 Invalid HTTP_HOST header: '192.168.1.196
Nov 22 11:44:05 rasp_196 daphne[4775]: ERROR 2018-11-22 00:44:05,869 exception 4775 1828713584 Invalid HTTP_HOST header: '192.168.1.196
Nov 22 11:44:05 rasp_196 daphne[4775]: ERROR 2018-11-22 00:44:05,922 exception 4775 1847325808 Invalid HTTP_HOST header: '192.168.1.196
Nov 22 11:44:06 rasp_196 daphne[4775]: 2018-11-22 00:44:05,738 ERROR Invalid HTTP_HOST header: ‘192.168.1.196:80’. You may need to a
Nov 22 11:44:06 rasp_196 daphne[4775]: 2018-11-22 00:44:05,744 ERROR Invalid HTTP_HOST header: ‘192.168.1.196:80’. You may need to a
Nov 22 11:44:06 rasp_196 daphne[4775]: 2018-11-22 00:44:05,802 ERROR Invalid HTTP_HOST header: ‘192.168.1.196:80’. You may need to a
Nov 22 11:44:07 rasp_196 daphne[4775]: 2018-11-22 00:44:05,869 ERROR Invalid HTTP_HOST header: ‘192.168.1.196:80’. You may need to a
Nov 22 11:44:07 rasp_196 daphne[4775]: 2018-11-22 00:44:05,922 ERROR Invalid HTTP_HOST header: ‘192.168.1.196:80’. You may need to a
Nov 22 11:44:22 rasp_196 daphne[4775]: ERROR 2018-11-22 00:44:22,779 exception 4775 1820324976 Invalid HTTP_HOST header: '192.168.1.196
Nov 22 11:44:23 rasp_196 daphne[4775]: 2018-11-22 00:44:22,779 ERROR Invalid HTTP_HOST header: ‘192.168.1.196:80’. You may need to a


#11

Sorted last issue…

My .env file was misconfigured…

I have now imported and played my first few tracks on funkwhale…what a journey.

Thanks to all


#12

\o/ a new instance is born!