/srv/irclogs.ubuntu.com/2019/06/23/#ubuntu-server.txt

lordievaderGood morning08:49
fooDoes this look acceptable? I had a postgres server randomly restart in production: https://paste.ofcode.org/pTsNXxfXPBuCFZ3fTiLmQr19:26
blackflowfoo: there's /var/log/postgresql/...   log, what does that say for those time frames?19:29
fooblackflow: I have nothing there in postgresql-10-main.log. hmm20:09
blackflowfoo: checked the rotated logs?20:10
blackflowJun 21st was two-ish days ago, the logs rotate daily20:10
blackflowfoo: however.... "Starting Daily apt upgrade and clean activities" ... do you have unattended upgrades or something? did the package upgrade? that would restart the service.20:11
fooblackflow: yes, I did - I checked both /var/log/postgresql/postgresql-10-main.log and /var/log/postgresql/postgresql-10-main.log.1 ... .1 starts at 2019-06-16 13:01:33. I would expect to see something there too.20:11
fooNot that I know of. And I don't think I have any automatic apt updates or anything in place20:12
fooThis is the first time I've seen this behavior in 6 months20:12
blackflowfoo: check /var/log/apt/history.log for that time frame20:13
fooblackflow: thank you, didn't realize apt kept a log. Great. https://paste.ofcode.org/XPJPcfdPTYi94CAnsv9j2i20:23
fooblackflow: Upgrade: postgresql-10:amd64 (10.8-0ubuntu0.18.04.1, 10.9-0ubuntu0.18.04.1)20:23
fooblackflow: I wonder if that's a needed security update? This is on digital ocean. I didn't realize this was happening but maybe it's a critical postgres security issue or such20:24
foo... if it's even DO.20:24
blackflowI don't do unattended upgrades for this very reason. Always review and test updates manually.20:24
blackflowrestarting postgres DB is a bad thing. many apps don't re-connect and hang in broken state with no DB connection, so restarting postgres needs to be done carefully and in concert with those apps. I so much hate .deb world and its idiotic maintainer scripts that restart services willy nilly20:25
fooblackflow: ... agreed. I've never had this happen before... in about 10 years. We migrated to 18.04 early this year. I wonder if this was a new thing?20:26
blackflowit's not, maybe you just didn't pay attention20:27
blackflowor actually.. I think unattended upgrades are now default on -server? dunno. I install from debootstrap, because the default image is chock full of bloatware like snapd, cloud-init, netplan....20:28
blackflow(now = as of Bionic; but I'm not sure, I never install it, and debootstrapped ubuntu-minimal doesn't either)20:28
fooblackflow: aha, thank you. Ok.20:59
fooblackflow: I'm going to be moving postgres to digital ocean's managed database service soon anyway. But this is still good to be mindful of. I'll likely disable.21:00
foo... although posgres is the most critical thing21:00
blackflowfoo: this managed db, is it postgresql?21:07
fooblackflow: yes21:10
fooblackflow: similar to amazon rds21:10
blackflowbut is it actually postgres, or some in-house concoction like amazon's?21:10
fooblackflow: postgres. Ain't nobody got time for amazon's concotions! (And I'm actually on digital ocean, using something similar to rds, with postgres)21:13
blackflowI see.21:15
fooblackflow: Do you have opinions on such systems?21:15
blackflowI do. I don't trust them and prefer my own installations. In fac, since january 2018, we no longer touch public clouds with a ten feet pole.21:17
fooblackflow: good to know. I've been doing my own installations for over 20 years. I thought I'd give it a try... alternative option is to spin up another digital ocean instance and devote it to postgres.21:17
blackflowI don't know how anyone can use public clouds in the post-meltdown-spectre era :)21:18
blackflowthey were problematic even before (eg. rowhammer attacks at cheap VPS providers that never used ECC, there's an PoC in one of CCC conferences from few years go)21:18
blackflow*ago21:18
fooblackflow: thank you!21:35
fooI like the idea of not thinking about the database performance or optimizing and thought I'd give it a shot... but I could re-evaluate21:35
blackflowyou know what they say. If you want something done right.... do it youself :)21:36
foohaha21:37
footrue.21:37

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!