I was able to create the db yesterday. However, when I am building the docker compose, I see this error
2023-04-25 11538, 2023
akshaaatt
`failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: `
2023-04-25 11519, 2023
akshaaatt
I think I am missing some steps. Can you please guide me a bit?
2023-04-25 11518, 2023
akshaaatt
Also, while trying to get it up, I see `Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:5000 -> 0.0.0.0:0: listen tcp 0.0.0.0:5000: bind: address already in use` How can I change the port?
Thanks lucifer! Worked well for me. 5000 is hardcoded at a lot of places so I had to Replace it everywhere with a different port to get things working.
2023-04-25 11558, 2023
akshaaatt
I think I should have only updated it for the Dockerfile in dev area.
2023-04-25 11501, 2023
atj
Pretty irritating how Docker registry and MB both default to port 5000
2023-04-25 11518, 2023
akshaaatt
I still don't have the right config yet atj. Please tell me where to update the port exactly.
mayhem, atj: fixed, the record was missing for listenbrainz.org, added & tested
2023-04-25 11538, 2023
atj
nice one zas
2023-04-25 11515, 2023
atj
if that's the worst they've found mayhem then I'd be very happy!
2023-04-25 11530, 2023
mayhem
Indeed!
2023-04-25 11537, 2023
mayhem
!m zas and atj
2023-04-25 11538, 2023
BrainzBot
You're doing good work, zas and atj!
2023-04-25 11503, 2023
mayhem
I'll respond to the mail.
2023-04-25 11531, 2023
mayhem
Already done, I see. :)
2023-04-25 11549, 2023
zas
about floyd & pink upgrade options, the natural upgrade would be PX93 + hardware RAID10, but it would double the monthly cost compared to current cost. AX102 with software RAID1 would keep cost at ~same level. Since CPU is much faster, RAM is DDR5, and SSDs will be NVMe I don't think performance will be too much impacted (but only experience can tell). There's a few days delay to have one.
2023-04-25 11548, 2023
zas
I think to go with option 2 upgrade (different IP, run in parallel) (https://docs.hetzner.com/robot/dedicated-server/g…) I'll coordinate with bitmap for the move (as it will require to switch to new IP).
2023-04-25 11514, 2023
zas
this way we run benchmarks having both machines in parallel. It will also let some time to ensure the machine is stable. If we detect anything annoying, we'll decide what to do.
2023-04-25 11526, 2023
zas
bitmap: ^^
2023-04-25 11548, 2023
atj
Software raid is preferable these days IMO
2023-04-25 11528, 2023
mayhem
atj: why is that?
2023-04-25 11545, 2023
mayhem
I'm happy that it is, but why?
2023-04-25 11507, 2023
mayhem
and if we dont have a lot of disk io (as planned) the software raid should be ok, no?
2023-04-25 11516, 2023
atj
Hardware RAID is a black box, and can fail in weird ways. Different controllers behave very differently and often don't pass through SMART data on the individual disks so you can't monitor them effectively
2023-04-25 11507, 2023
mayhem
ah, ok
2023-04-25 11541, 2023
atj
Unless you have a memory backed write cache they don't offer much benefit
2023-04-25 11502, 2023
the4oo4 has quit
2023-04-25 11525, 2023
the4oo4 joined the channel
2023-04-25 11533, 2023
mayhem
atj: > if that's the worst they've found mayhem then I'd be very happy!
2023-04-25 11540, 2023
mayhem
well, we just received another one. :)
2023-04-25 11542, 2023
mayhem
forwarded.
2023-04-25 11507, 2023
atj
again not really that significant IMV, if we don't have any legacy HTTP endpoints then we can add it
HSTS isn't enabled for most websites (it should once we are sure we don't serve over HTTP anymore), atm it is enabled only for picard website, it can be done through docker-server-configs, see https://github.com/metabrainz/docker-server-confi…
2023-04-25 11540, 2023
zas
enabling HSTS for a service still using HTTP is a serious mess...
the report we got by email isn't clear about the domain tested
2023-04-25 11504, 2023
zas
if we go for enabling HSTS for all websites, we might need to change things a bit to have a short max-age in case of (and later increase it once everything is sure). HSTS is like permanent redirections, it is hard to undo as everything happens on browser side.
2023-04-25 11550, 2023
atj
I don't think it's reasonable to enable HSTS on all sites, but maybe we can look at what is HTTPS only
2023-04-25 11557, 2023
bitmap
zas: ready to help whenever the machine is ready
2023-04-25 11545, 2023
bitmap
the plan is to clone floyd first, i.e. have two standbys running side-by-side and compare their performance?
2023-04-25 11533, 2023
Zhele has quit
2023-04-25 11542, 2023
bitmap
reosarevok: I think the code should probably be taking an intersection of the attributes, rather than a union
I was just suggesting this because there may be mismatch between now playing and bp
2023-04-25 11525, 2023
monkey
We plan on showing listening now and pinned recordings at the top
2023-04-25 11535, 2023
monkey
Between the website and the app you mean?
2023-04-25 11554, 2023
jasje
no the website only
2023-04-25 11505, 2023
jasje
in case lets say someone else (my brother) is listening songs on my phone
2023-04-25 11512, 2023
jasje
that submits a different now playing
2023-04-25 11547, 2023
jasje
but I, on website, sees that my now playing and BrainzPlayer entry is glitching out
2023-04-25 11504, 2023
jasje
(but is actually not)
2023-04-25 11520, 2023
monkey
Well, it would accurately show that you(-ish) are listening to a song on your phone
2023-04-25 11541, 2023
jasje
it does that?
2023-04-25 11549, 2023
akshaaatt
I don’t think we should work on solving this problem. Even netflix accounts are shared by multiple people but all comes under the same person
2023-04-25 11500, 2023
monkey
It can if you submit that information in the listen
2023-04-25 11502, 2023
monkey
In any case that seems like an edge case to me.
2023-04-25 11516, 2023
jasje
alright that solves it
2023-04-25 11536, 2023
jasje
(not in my case, thats a regular case :P)
2023-04-25 11545, 2023
jasje
in my**
2023-04-25 11504, 2023
akshaaatt
I would be fine with keeping an array of playing nows if that is easy enough. Otherwise, I agree with monkey that it is an edge case and we can ignore it
2023-04-25 11515, 2023
monkey
jasje: time to get your brother a listenbrainz account :p