pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)
Res facta quae tamen fingi potuit ([personal profile] pauamma) wrote in [site community profile] dw_dev2026-03-11 01:39 am
Entry tags:

Question thread #149

It's time for another question thread!

The rules:

- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.

[personal profile] adrenalinerush 2026-04-04 08:56 pm (UTC)(link)
https://dw-dev.dreamwidth.org/244094.html?thread=1900670#cmt1900670

Nearly a year later, circling back re: the above thread. My little corner of the web trucked along just fine for awhile, everything functioning as intended, until a system reboot a couple months ago ate a bunch of the comments and posts we've been playing around with.

Initially, I thought it was something to do with memcached and I've been poking at that, but I finally went elbows-deep into the database tables to cross-reference what's still there versus what's been eaten to actually be able to watch comments posting 'live' and I'm finding a bunch are being written into the database tables as "  " (no quotes LOL) rather than the actual text. There doesn't seem to be any rhyme or reason as to which ones are going into the database versus which ones are giving the blank text (varying lengths, emojis or not, etc) but a test reboot of the server confirmed that those comments encoded as  disappear from live view on the front end while hard-coded comments remain and I'm totally out of ideas for where I can start troubleshooting this.

Any ideas would be greatly appreciated. 😭
Edited 2026-04-04 20:57 (UTC)

[personal profile] adrenalinerush 2026-04-04 08:57 pm (UTC)(link)
Also - Thank you in advance! Hit post too soon and it won't let me actually edit, go figure.

[personal profile] adrenalinerush 2026-04-09 01:28 pm (UTC)(link)
Apparently putting it out there into the world is enough for the answer to pop up into my face. 😂 Just circling back in case anyone else runs into this issue with installation (and I don't recall seeing anything specifically about this in the install guidelines I used but I very well could have overlooked it and online documentation for MySQL seems to indicate this would not be an issue):

The problem was, in fact, with the database, specifically within the character_set and collation parameters and a mismatch with the character_set_system being utf8mb3 where everything else was utf8mb4/utf8mb4_0900_ai_ci.

Essentially what was happening is the utf8mb3 was causing the garbage/blank character spaces to actually write to the database in lieu of some posted comments/posts - I was able to track that down with watching the database table populate between comments to spot the pattern (it was specifically related to some emojis and iOS "special" characters like curly quotes). All seemed fine on the front end with Memcached masking the issue - they'd post correctly to Memcached but fail in the database, so with restarts - bye bye data.

Thank you again!