That was the command rimskii ran, from what I can tell from the logs.
rimskii[m]
lucifer: yep i tried it too
lucifer
oh i see, i didn't look at the logs but just the command.
hmm, that should work.
according to logs, the port forwarding worked.
monkey[m]
Could it be something regarding "127.0.0.1:5432" vs. "localhost:5432" ?
I mean, I assume not, but ...
lucifer
shuoldn't be. but its a mac
monkey[m]
I tried to connect in the same way, works for me (on linux)
One thing I had to adjust to be able to connect to the DB was username and password
lucifer
the latest error points to a port forwarding error
atj[m]
you can see from the logs that it is listening on 127.0.0.1 and ::1
so localhost vs. 127.0.0.1 is irrelevant
I will test on my MacBook but never had any issues on Linux vs. MacOS in this area
monkey[m]
Same here, used to do port forwarding fine on macos
Maybe something related to the macos firewall?
mayhem[m]
or a university/home router configuration?
atj[m]
not sure how that could make any difference, it's a local port forward
so the router isn't involved
rimskii: what terminal are you using?
monkey[m]
Sorry if I'm way out, but where is the connection error coming from? Inside Docker? if so, does the local port 5433 need to be added to the docker container ports?
rimskii[m]
atj[m]: the default one? mac?
lucifer
mayhem[m]: atj[m]: i just hopped on a call with rimskii port forwarding is working. but the service that needs to access the port is inside docker.
monkey[m]: yeah that
monkey[m]
Might be good to try connecting with psql to remove any potential docker-related issue
not really relevant at this point but just a suggestion
monkey[m] backs out of everyone's business
lucifer
rimskii[m]: can you replace `localhost` in MB_DATABASE_URI with `host.docker.internal` ?
mayhem[m]
wow, that's shitty hetzner: "It´s possible to remove the default drives but there will be no price reduction for it."
rimskii[m]
lucifer: omg it works!
now i got a new error haha
rimskii[m] uploaded an image: (145KiB) < https://matrix.chatbrainz.org/_matrix/media/v3/download/matrix.org/runZuVjtOYXpNkFuknRoSuNM/Screenshot%202024-06-19%20at%2016.04.39.png >
mayhem[m]
one step forward....
lucifer
rimskii[m]: i see, we don't have the mapping tables on wolf but i can run a script to create them there.
will take a few hours for it complete.
yvanzo[m]
atj: Is a new snapshot needed for upgrading Solr version in the cluster? Or should we test it separately?
rimskii[m]
lucifer: mybe i can do that
atj[m]
yvanzo[m]: I don't think so, if it works in 9.6.0 it will work in 9.6.1
If we do it separately I can write docs on that too :)
lucifer
rimskii[m]: sure. so there are two ways to do it, 1 is running the command locally with the databases connected over ssh but that means you need a stable network connection for a few hours at least.
yvanzo[m]
OK, let’s try upgrading Solr 9.6.1 at first then.
lucifer
alternative is cloning the listenbrainz-server on wolf. and running the commands from there.
yvanzo[m]
I’m building the snapshot in parallel.
lucifer
i think this way will work better for you
mayhem[m] fires off another salvo of chatgpt drivel to hetzner.
rimskii[m]
lucifer: ok
atj[m]
yvanzo: just FYI, IME Solr can sometimes refuse to stop in an orderly fashion and the stop script waits 180 seconds before killing it
so if you see the restart task hanging, don't worry it's normal (ish)
just wait
yvanzo[m]
atj: I pushed a commit to the `solr` branch and update the node 8 as suggested.
lucifer
rimskii[m]: let me know when have cloned the repo and i can help update the script and let you know the commands to build the cache.
atj[m]
yvanzo: LGTM, want to upgrade the entire cluster?
yvanzo[m] uploaded an image: (83KiB) < https://matrix.chatbrainz.org/_matrix/media/v3/download/chatbrainz.org/WGSgqrySvDbPSeUWVXmkoNhQ/errors-when-updating-solr.png >
yvanzo[m]
Those are transient errors that occurred when updating the node 8.
rimskii[m]
lucifer: okay
i have to build the docket too right?
atj[m]
yvanzo[m]: that's normal AFAIU
lucifer
rimskii[m]: yes but different containers.
yvanzo[m]
atj: Should we pause between updating each node to preserve service availability?
-f1 is certainly useful
rimskii[m]
lucifer: which containers?
cloned the repo & updated config
yvanzo[m]
atj: Ideally we should have a `wait_for` the node is available again before moving to another task.
atj: That would be for production though, I’ll proceed as documented for now.
it should only need a minor update to the playbook
yvanzo: can I squash your commit into mine?
I need to force push to the solr branch really otherwise it gets messy and I just want to merge one big commit
yvanzo[m]
atj: No problem.
lucifer
rimskii[m]: `cd mbid_mapping` then `cp config.py.sample config.py`.
edit `config.py`, set `MBID_MAPPING_DATABASE_URI` and `MB_DATABASE_MASTER_URI` to `dbname=musicbrainz_db user=musicbrainz host=db port=5432 password=musicbrainz`
kellnerd[m]
monkey: My MetaBrainz Tabler icon [pull request](https://github.com/tabler/tabler-icons/pull/1171) is up, FYI. Let's see if it is really that simple to get an icon added.
this is better than -f1 because it means the entire play will be run on each node serially rather than each task
so the "restart" and the "wait for start" handlers will run before moving on to the next host
kellnerd[m]
<kellnerd[m]> "monkey, mayhem: Since my GSoC..." <- ^ Reminder just in case you have missed my message mayhem, last year an org admin was required to do that change on the SoC page IIRC (CC monkey).
rimskii[m]
<lucifer> "edit `config.py`, set `MBID_MAPP..." <- done !
lucifer
rimskii[m]: run `./build.sh`
yvanzo[m]
atj: Now testing!
rimskii[m]
lucifer: done !
now "python mapper/manage.py canonical-data"?
lucifer
run `tmux`
then `docker run --rm -it --network musicbrainz-docker_default metabrainz/mbid-mapping python3 manage.py create-all`
rimskii[m] uploaded an image: (515KiB) < https://matrix.chatbrainz.org/_matrix/media/v3/download/matrix.org/qygdBSoPyHjbKNBmzZarLYMH/Screenshot%202024-06-19%20at%2017.03.04.png >
rimskii[m]
lucifer: should I change sqlaclhemy one too?
lucifer
rimskii[m]: hmm i see, okay try this instead. `docker run --rm -it --network musicbrainz-docker_default metabrainz/mbid-mapping python3 manage.py canonical-data --use-mb-conn`
yvanzo[m]
atj: Oops, I cannot edit solr.yml at the same time.
(?)
atj[m]
what do you mean?
yvanzo[m]
I was editing solr.yml in the meantime and realized that ansible-playbook was still running, so interrupted it, restored the file, and started it again.
Not sure if it is watching changes to solr.yml though.
atj[m]
oh right, yes it's read when the process starts
iconoclasthero has quit
yvanzo[m]
It is actually downloading the JAR again when updating Solr.
rimskii[m]
<lucifer> "rimskii: hmm i see, okay try..." <- done ! it works
lucifer
rimskii[m]: did it finish already?
yvanzo[m]
atj: Would there be a way to prevent routing requests to a node during the update?
rimskii[m] uploaded an image: (1887KiB) < https://matrix.chatbrainz.org/_matrix/media/v3/download/matrix.org/UcpsbUTxTdaTvElKqSBvakNw/Screenshot%202024-06-19%20at%2017.18.40.png >