Closed willcl-ark closed 6 months ago
Hi @willcl-ark! First thanks for your interest in my repo. I will do my best to provide some help.
Your first issue with the extra songs (85 vs apparent 66) appearing in the database makes me think of two possibilities. Also, them appearing blank seems incidental, and would make sense if the files are not populated by both title and artist metadata.
docker compose down
(verifying the postgres
component is removed) then docker compose up
.Your second issue diagnosis about the disconnect between the frontend and radio services seems to be correct to me. A couple more possibilities I can think of:
docker compose down
docker compose pull
docker compose up
install.sh
script? If so, the value you populate for Stream address
is what will exactly be copied to the frontend. I'm going to gloss over some of the details here, but that value is passed around until it is ultimately set by Cadence into the audio source that connects the frontend to Icecast. I would start by verifying that this is correct, rerunning ./install.sh
if necessary.Let's start with these for now. Let me know if any problems are alleviated, I will follow up. Thanks!
Thanks so much for the detailed (and fast!) reply. It didn't exactly solve my issue, but was enough to get me thinking correctly so that I was able to myself :)
My issue was that I am already running Caddy on the base metal, so needed to disable nginx, and modify the ports being used from 80 and 8080 to 81 and 8081. Then make sure those changes were also matching in docker-compose.yml. Now that I've managed that, and set the DNS records the right way around, I have it all working!
The phantom db entries seemed to sort themselves out too, which is a nice bonus.
Now I just need to fix my tags, and I'm away :)
Thanks again
Happy to assist, or at least put you on the right track! Enjoy your station!
Hi, first of all, thanks for this interesting stack!
I do have a few issues though, (probably all related):
Backend logs meanwhile look something like this:
Details
```log root@dsb27088 ~/s/cadence (master)# docker compose up WARN[0000] /root/src/cadence/docker-compose.yml: `version` is obsolete [+] Running 6/0 ✔ Container postgres Created 0.0s ✔ Container redis Created 0.0s ✔ Container icecast2 Created 0.0s ✔ Container liquidsoap Created 0.0s ✔ Container cadence Created 0.0s ✔ Container nginx Created 0.0s Attaching to cadence, icecast2, liquidsoap, nginx, postgres, redis postgres | postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization postgres | postgres | 2024-05-08 00:21:44.403 UTC [1] LOG: starting PostgreSQL 15.6 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit postgres | 2024-05-08 00:21:44.403 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 postgres | 2024-05-08 00:21:44.403 UTC [1] LOG: listening on IPv6 address "::", port 5432 postgres | 2024-05-08 00:21:44.748 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" postgres | 2024-05-08 00:21:44.856 UTC [24] LOG: database system was shut down at 2024-05-08 00:19:54 UTC postgres | 2024-05-08 00:21:45.006 UTC [1] LOG: database system is ready to accept connections redis | 8:C 08 May 2024 00:21:45.271 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. redis | 8:C 08 May 2024 00:21:45.271 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo redis | 8:C 08 May 2024 00:21:45.271 * Redis version=7.2.4, bits=64, commit=00000000, modified=0, pid=8, just started redis | 8:C 08 May 2024 00:21:45.271 * Configuration loaded redis | 8:M 08 May 2024 00:21:45.271 * monotonic clock: POSIX clock_gettime redis | 8:M 08 May 2024 00:21:45.301 * Running mode=standalone, port=6379. redis | 8:M 08 May 2024 00:21:45.301 * Module 'RedisCompat' loaded from /opt/redis-stack/lib/rediscompat.so redis | 8:M 08 May 2024 00:21:45.463 *The songs do include some youtube rips, however I sanitised filenames (no spaces) and largely populated ID3 tags, though some are certainly missing Artist names.
I have also tried just putting a single (properly tagged) MP3 in the source directory, however whilst this give a correct db on the frontend, there is no volume when played?
The stream is available/working in both cases via the direct icecast mount on port 80, so it seems icecast and liquidsoap are both working properly, only the frontend seems to not be working.