-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Socket Errors Upgrading from 15 to 16 #32
Comments
Oh, that's a weird one I've not seen before. Just to double check, there's no partitions anywhere running out of disk space or anything along those lines when the error occurs yeah? Mostly asking that just in case, as a filled disk can cause all kinds of weird errors. Note that I'm just about to hit the sack personally, and it looks like I've caught either the flu or Covid (for a 2nd time, ugh). So I might not be looking at any response here for a while. Hopefully some of the other team members have ideas on what the cause and fix for this might be. 😄 |
If all else fails and you need to debug the problem, you can start the container with the environment variable If you do that, then you can exec into the container and manually run the upgrade script commands one (or a few) at a time until you reach the point where it's going wrong/breaking. With doing that, it should be feasible to figure out exactly why it's breaking, then figure out a fix. Which could then be applied to the repo here for everyone to benefit from. That's the theory anyway. 😄 If you're already pretty familiar with shell scripting then it might be a useful option. 😄 |
There are some great pointers there, thank you very much. I'll take a look on Monday when I'm back in the office, and will be sure to update you on any progress made. Thanks for the quick reply, and I hope you start to feel better soon. |
The failure was very much with the I found a solution on a similar library: tianon/docker-postgres-upgrade#83 (comment) The issue was due to M-chip Macs not supporting the Unix socket filetype, so I had to update the /usr/local/bin/pg_upgrade --username="${POSTGRES_USER}" --link -d "${OLD}" -D "${NEW}" -b "${OLDPATH}/bin" -B /usr/local/bin --socketdir="/var/run/postgresql" Note: the addition of The command then ran fine. Thanks for the pointers. I now have other errors (to do with my DB), but this issue is resolved. I'll leave it open for now though, as I'm not sure if you'd want to include something in the main README for this, or a way to specify the |
Oh wow, that's totally unexpected. I had no idea that limitation existed. It sounds like we could include your |
Initial testing on my desktop system here (Debian 12 x86_64) looks like it works fine too, so I've just thrown together a PR to add the |
k, that PR has been merged. Once the automatic GitHub Actions rebuild of the docker images happens then you should be fine to use them without worrying about this particular issue again. In theory. 😉 |
Amazing. Thanks for the quick turnaround. 👍🏻 |
No worries at all. Thanks for taking the time to investigate the root cause and figure out a solid solution. 😄 |
I can confirm that the latest image from DockerHub works perfectly. 👍🏻 Thanks again. |
I am having exactly the same issues as mentioned in this issue even after the addition of I am not sure if the fact that I am running on Also the data is actually coming from TimescaleDB, but I understand that the underlying storage format is the same as with vanilla PostgreSQL. Here is the command I was running:
And this is the output I keep getting:
Thank you very much for the help. |
Oh. That kind of sounds like your PostgreSQL configuration file ( Are you ok to paste that configuration file here for us to look over? |
Sure, we are using just the default I also noted that the data (including config file) is in
|
Thanks @miroslavkovac. I can't look at this properly today (a whole bunch of higher priority tasks hit my inbox today), but should have time to sometime over the next few days. 😄 |
Hi @justinclift, have you had a chance to look into the logs? Any hints on what I can try or how I can help? Thank you very much for your efforts. |
Oh crap, I completely forgot about this. Um, I'll try and get to it tomorrow. |
Ugh. Yesterday was a complete write off. I'll add this to today's ToDo list instead. |
Hi, I've recently found this package which looks extremely promising for upgrading our development environments from Postgres 15 to Postgres 16.
I'm trying to attempt the one-shot upgrade of a large (~20GB) Postgres 15 databsse to 16, without success. I have attached the output of the command/logs below.
Command
The output I get in the terminal is (reduced for brevity; let me know if you need earlier logs)
With the log file showing
Ay assistance or pointers would be greatly appreciated.
Hardware: MacBook Pro M2
Original Postgres Image:
postgres:15
The text was updated successfully, but these errors were encountered: