Page MenuHomePhabricator
Feed Advanced Search

Jul 22 2019

epriestley added a comment to T13347: During MySQL import, server may "2006 MySQL server has gone away" when "max_allowed_packet" server setting is too small, despite client setting.
190722 18:55:55 [Warning] Aborted connection 6 to db: '<instance>_differential' user: 'root' host: 'localhost' (Got a packet bigger than 'max_allowed_packet' bytes)
Jul 22 2019, 6:59 PM · Ops, Restricted Project, Phacility
epriestley added a comment to T13347: During MySQL import, server may "2006 MySQL server has gone away" when "max_allowed_packet" server setting is too small, despite client setting.

I adjusted innodb_log_file_size to 1GB and attempted the import again, but ran into the same issue.

Jul 22 2019, 6:16 PM · Ops, Restricted Project, Phacility
epriestley renamed T13347: During MySQL import, server may "2006 MySQL server has gone away" when "max_allowed_packet" server setting is too small, despite client setting from During MySQL import, server may "2006 MySQL server has gone away" when row data size is large relative to "innodb_log_file_size" to During MySQL import, server may "2006 MySQL server has gone away" when row data size is large relative to "innodb_log_file_size" (?).
Jul 22 2019, 6:13 PM · Ops, Restricted Project, Phacility
epriestley added a revision to T13347: During MySQL import, server may "2006 MySQL server has gone away" when "max_allowed_packet" server setting is too small, despite client setting: Restricted Differential Revision.
Jul 22 2019, 5:05 PM · Ops, Restricted Project, Phacility
epriestley added a revision to T13347: During MySQL import, server may "2006 MySQL server has gone away" when "max_allowed_packet" server setting is too small, despite client setting: Restricted Differential Revision.
Jul 22 2019, 4:38 PM · Ops, Restricted Project, Phacility
epriestley renamed T13347: During MySQL import, server may "2006 MySQL server has gone away" when "max_allowed_packet" server setting is too small, despite client setting from During MySQL import, server may "go away" on large dumps? to During MySQL import, server may "2006 MySQL server has gone away" when row data size is large relative to "innodb_log_file_size".
Jul 22 2019, 4:27 PM · Ops, Restricted Project, Phacility
epriestley added a comment to T13347: During MySQL import, server may "2006 MySQL server has gone away" when "max_allowed_packet" server setting is too small, despite client setting.

The "age of the last checkpoint" error appears to primarily implicate innodb_log_file_size, which is currently set to the default value (5MB):

Jul 22 2019, 4:26 PM · Ops, Restricted Project, Phacility
epriestley added a comment to T13347: During MySQL import, server may "2006 MySQL server has gone away" when "max_allowed_packet" server setting is too small, despite client setting.

I'll also double check wait_timeout and interactive_timeout...

Jul 22 2019, 4:01 PM · Ops, Restricted Project, Phacility
epriestley added a comment to T13347: During MySQL import, server may "2006 MySQL server has gone away" when "max_allowed_packet" server setting is too small, despite client setting.

Aha! The MySQL error log actually appears to have something useful:

Jul 22 2019, 3:55 PM · Ops, Restricted Project, Phacility
epriestley added a comment to T13347: During MySQL import, server may "2006 MySQL server has gone away" when "max_allowed_packet" server setting is too small, despite client setting.

Run it with source ...;

Jul 22 2019, 3:54 PM · Ops, Restricted Project, Phacility
epriestley added a comment to T13347: During MySQL import, server may "2006 MySQL server has gone away" when "max_allowed_packet" server setting is too small, despite client setting.

Unzip the dump before running it.

Jul 22 2019, 3:45 PM · Ops, Restricted Project, Phacility
epriestley added a comment to T13347: During MySQL import, server may "2006 MySQL server has gone away" when "max_allowed_packet" server setting is too small, despite client setting.

Look at the unzipped dump and see if line 13935 is bad in some obvious way.

Jul 22 2019, 3:40 PM · Ops, Restricted Project, Phacility
epriestley added a comment to T13347: During MySQL import, server may "2006 MySQL server has gone away" when "max_allowed_packet" server setting is too small, despite client setting.

(Whatever the resolution is here might also motivate tailoring our restore/import instructions, since this error is pretty opaque and the next steps aren't obvious.)

Jul 22 2019, 3:21 PM · Ops, Restricted Project, Phacility
epriestley added a comment to T13347: During MySQL import, server may "2006 MySQL server has gone away" when "max_allowed_packet" server setting is too small, despite client setting.

(Internally, see also PHI1329.)

Jul 22 2019, 3:18 PM · Ops, Restricted Project, Phacility
epriestley triaged T13347: During MySQL import, server may "2006 MySQL server has gone away" when "max_allowed_packet" server setting is too small, despite client setting as Low priority.
Jul 22 2019, 3:18 PM · Ops, Restricted Project, Phacility

Jul 17 2019

epriestley moved T10696: Aphlict slowly grows to use an uncomfortably large amount of memory if the disk is full from vNext to Far Future on the Aphlict board.
Jul 17 2019, 6:30 PM · Aphlict, Phacility, Ops

Jul 15 2019

epriestley triaged T13341: Phacility/Phortune invoice email merchant behavior changed circa June 22 as Low priority.
Jul 15 2019, 6:42 PM · Phortune, Phacility

Jun 29 2019

epriestley closed T13320: Unannounced/unlogged AWS reboots are apparently routine procedure, not cosmic rays / ghosts as Resolved.

This is deployed everywhere now, and kicking secure004 over seemed to work correctly, at least.

Jun 29 2019, 6:57 PM · Phacility
epriestley closed T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date as Resolved.

This stuff is all deployed, now.

Jun 29 2019, 6:56 PM · Daemons, Phacility
epriestley closed T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date, a subtask of T13320: Unannounced/unlogged AWS reboots are apparently routine procedure, not cosmic rays / ghosts, as Resolved.
Jun 29 2019, 6:56 PM · Phacility

Jun 27 2019

epriestley created T13329: In Phacility, inviting an email address that belongs to a bot/mailing list account hits new "import" language in a confusing way.
Jun 27 2019, 6:05 PM · Phacility

Jun 26 2019

epriestley added a comment to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date.

cd provides "at least once" delivery guarantees.

Jun 26 2019, 1:44 AM · Daemons, Phacility
amckinley added a comment to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date.

cd provides "at least once" delivery guarantees.

Jun 26 2019, 12:13 AM · Daemons, Phacility

Jun 25 2019

epriestley added a revision to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date: Restricted Differential Revision.
Jun 25 2019, 10:21 PM · Daemons, Phacility
epriestley added a revision to T13320: Unannounced/unlogged AWS reboots are apparently routine procedure, not cosmic rays / ghosts: Restricted Differential Revision.
Jun 25 2019, 5:50 PM · Phacility
epriestley added a comment to T13320: Unannounced/unlogged AWS reboots are apparently routine procedure, not cosmic rays / ghosts.

This incantation seems to work as an upstart job:

Jun 25 2019, 5:46 PM · Phacility
epriestley added a comment to T13320: Unannounced/unlogged AWS reboots are apparently routine procedure, not cosmic rays / ghosts.

I'm going to install an upstart task on secure004 and kick it a few times, some stuff might be sketchy until I figure that out.

Jun 25 2019, 5:17 PM · Phacility
epriestley added a comment to T13328: Database dumps can buffer (?) too much data to hold in memory.

The stalled production backup process completed successfully after deploying the change.

Jun 25 2019, 3:54 PM · Restricted Project, Infrastructure, Phacility
epriestley added a comment to T13328: Database dumps can buffer (?) too much data to hold in memory.

I'm going to try to sneak this out to the db tier to resolve things before the west coast wakes up, at least.

Jun 25 2019, 2:17 PM · Restricted Project, Infrastructure, Phacility
epriestley added a revision to T13328: Database dumps can buffer (?) too much data to hold in memory: Restricted Differential Revision.
Jun 25 2019, 12:25 PM · Restricted Project, Infrastructure, Phacility
epriestley added a comment to T13328: Database dumps can buffer (?) too much data to hold in memory.

PHP Fatal error: Out of memory (allocated 311164928) (tried to allocate 105988097 bytes) in /core/lib/libphutil/src/future/exec/ExecFuture.php on line 246

Jun 25 2019, 12:18 PM · Restricted Project, Infrastructure, Phacility
epriestley created T13328: Database dumps can buffer (?) too much data to hold in memory.
Jun 25 2019, 12:06 PM · Restricted Project, Infrastructure, Phacility
epriestley added a revision to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date: Restricted Differential Revision.
Jun 25 2019, 12:51 AM · Daemons, Phacility

Jun 24 2019

epriestley closed T13327: When all payment account members are disabled, subscription workers fail infinitely as Resolved by committing Restricted Diffusion Commit.
Jun 24 2019, 10:29 PM · Phortune, Phacility
epriestley added a revision to T13327: When all payment account members are disabled, subscription workers fail infinitely: Restricted Differential Revision.
Jun 24 2019, 9:50 PM · Phortune, Phacility
epriestley created T13327: When all payment account members are disabled, subscription workers fail infinitely.
Jun 24 2019, 9:33 PM · Phortune, Phacility

Jun 22 2019

epriestley added a comment to T13306: Provide a mechanism for importing local disk file backups into the Phacility cluster.

See one followup in T13326. The "import from disk" part seems to have worked properly in production.

Jun 22 2019, 4:51 PM · Phacility, Files

Jun 20 2019

epriestley added a comment to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date.

I just ran into this for the first time:

Jun 20 2019, 11:04 PM · Daemons, Phacility
epriestley added a revision to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date: Restricted Differential Revision.
Jun 20 2019, 10:44 PM · Daemons, Phacility
epriestley added a comment to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date.

I've also never seen anyone use kill -TERM `cat /path/to/pidfile` in real life over some flavor of pkill, which is basically the same thing as "pattern match the process titles".

Jun 20 2019, 10:36 PM · Daemons, Phacility
epriestley added a comment to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date.

provided I'm not missing some secret reason to retain PID files.

Jun 20 2019, 10:34 PM · Daemons, Phacility
epriestley added a revision to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date: Restricted Differential Revision.
Jun 20 2019, 10:33 PM · Daemons, Phacility
epriestley added a revision to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date: Restricted Differential Revision.
Jun 20 2019, 10:11 PM · Daemons, Phacility
epriestley added a revision to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date: Restricted Differential Revision.
Jun 20 2019, 10:05 PM · Daemons, Phacility
epriestley added a revision to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date: Restricted Differential Revision.
Jun 20 2019, 9:57 PM · Daemons, Phacility
epriestley added a revision to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date: Restricted Differential Revision.
Jun 20 2019, 9:36 PM · Daemons, Phacility
epriestley added a revision to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date: Restricted Differential Revision.
Jun 20 2019, 9:25 PM · Daemons, Phacility
epriestley added a revision to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date: Restricted Differential Revision.
Jun 20 2019, 9:23 PM · Daemons, Phacility
epriestley added a revision to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date: Restricted Differential Revision.
Jun 20 2019, 9:14 PM · Daemons, Phacility
epriestley added a revision to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date: Restricted Differential Revision.
Jun 20 2019, 9:03 PM · Daemons, Phacility
epriestley added a comment to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date.

I have a patch for this which basically says "don't try to kill any process which doesn't look like a daemon process".

Jun 20 2019, 8:04 PM · Daemons, Phacility
epriestley added a comment to T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date.

This is probably somewhat entangled with T13253 and/or T11037 and this whole thing is kind of a mess.

Jun 20 2019, 7:32 PM · Daemons, Phacility
amckinley added a comment to T13320: Unannounced/unlogged AWS reboots are apparently routine procedure, not cosmic rays / ghosts.

systemd.gif (320×480 px, 3 MB)

Jun 20 2019, 6:40 PM · Phacility
epriestley added a comment to T13320: Unannounced/unlogged AWS reboots are apparently routine procedure, not cosmic rays / ghosts.

But wait! It says there are two ways! The other way is:

Jun 20 2019, 6:40 PM · Phacility
epriestley added a comment to T13320: Unannounced/unlogged AWS reboots are apparently routine procedure, not cosmic rays / ghosts.

If you are just writing an upstart job that needs to start the service after the basic facilities are up, either of these will work:

start on (local-filesystems and net-device-up IFACE!=lo)
Jun 20 2019, 6:38 PM · Phacility
epriestley created T13321: "bin/phd" may try to kill processes it does not own if the daemon PID logfiles on disk are out of date.
Jun 20 2019, 3:20 PM · Daemons, Phacility
epriestley updated the task description for T13320: Unannounced/unlogged AWS reboots are apparently routine procedure, not cosmic rays / ghosts.
Jun 20 2019, 3:17 PM · Phacility
epriestley created T13320: Unannounced/unlogged AWS reboots are apparently routine procedure, not cosmic rays / ghosts.
Jun 20 2019, 2:58 PM · Phacility

Jun 19 2019

epriestley added a comment to T13318: Phacility developer setup documentation omits "local.*" hosts.

🐫 Does this button work ------>>^^^

Jun 19 2019, 8:36 PM · Phacility
epriestley closed T13317: Unverified/nonsense account emails can trigger inbound CCs (was: Inbound support pact email sometimes CCs disabled user `@maxhodges` in Phacility) as Resolved by committing Restricted Diffusion Commit.
Jun 19 2019, 7:51 PM · Mail, Phacility
epriestley added a revision to T13317: Unverified/nonsense account emails can trigger inbound CCs (was: Inbound support pact email sometimes CCs disabled user `@maxhodges` in Phacility): Restricted Differential Revision.
Jun 19 2019, 6:15 PM · Mail, Phacility

Jun 18 2019

epriestley closed T13308: Phacility account import flow can misfire when both invites and account links are present as Resolved by committing Restricted Diffusion Commit.
Jun 18 2019, 10:49 PM · Phacility
epriestley closed T13146: Phacility account import tool fails to recognize usernames with differing case, e.g. "Alice" vs "alice" as Resolved by committing Restricted Diffusion Commit.
Jun 18 2019, 10:31 PM · Phacility
epriestley updated subscribers of T13156: Plans: Improve Phacility UI for managing instance managers and cards.

See PHI954. The "support pact members" cache is currently updated only when you actually click "Support", but this is often silly and unintuitive.

Jun 18 2019, 6:22 PM · Plans, Phacility
epriestley created T13318: Phacility developer setup documentation omits "local.*" hosts.
Jun 18 2019, 6:20 PM · Phacility
epriestley renamed T13317: Unverified/nonsense account emails can trigger inbound CCs (was: Inbound support pact email sometimes CCs disabled user `@maxhodges` in Phacility) from Inbound support pact email sometimes CCs disabled user `@maxhodges` in Phacility to Unverified/nonsense account emails can trigger inbound CCs (was: Inbound support pact email sometimes CCs disabled user `@maxhodges` in Phacility).
Jun 18 2019, 5:22 PM · Mail, Phacility
epriestley added a comment to T13317: Unverified/nonsense account emails can trigger inbound CCs (was: Inbound support pact email sometimes CCs disabled user `@maxhodges` in Phacility).

Aha! This user very cleverly added noreply@admin.phacility.com to their user account before they were disabled.

Jun 18 2019, 5:22 PM · Mail, Phacility
epriestley created T13317: Unverified/nonsense account emails can trigger inbound CCs (was: Inbound support pact email sometimes CCs disabled user `@maxhodges` in Phacility).
Jun 18 2019, 5:15 PM · Mail, Phacility

Jun 13 2019

epriestley added a revision to T13308: Phacility account import flow can misfire when both invites and account links are present: Restricted Differential Revision.
Jun 13 2019, 10:15 PM · Phacility
epriestley added a comment to T13308: Phacility account import flow can misfire when both invites and account links are present.

To reproduce the first issue, do this:

Jun 13 2019, 8:43 PM · Phacility
epriestley created T13308: Phacility account import flow can misfire when both invites and account links are present.
Jun 13 2019, 8:23 PM · Phacility
epriestley added a revision to T13146: Phacility account import tool fails to recognize usernames with differing case, e.g. "Alice" vs "alice": Restricted Differential Revision.
Jun 13 2019, 8:10 PM · Phacility

Jun 5 2019

epriestley added a revision to T13306: Provide a mechanism for importing local disk file backups into the Phacility cluster: Restricted Differential Revision.
Jun 5 2019, 9:36 PM · Phacility, Files
epriestley claimed T13306: Provide a mechanism for importing local disk file backups into the Phacility cluster.
Jun 5 2019, 5:59 PM · Phacility, Files
epriestley created T13306: Provide a mechanism for importing local disk file backups into the Phacility cluster.
Jun 5 2019, 5:59 PM · Phacility, Files

May 23 2019

epriestley edited projects for T10152: Allow uri.allowed-protocols to be configured in the Phacility cluster, added: Phacility; removed Customer Impact, Remarkup, Feature Request.
May 23 2019, 2:46 PM · Phacility

Apr 11 2019

epriestley updated the task description for T13230: Native Applications.
Apr 11 2019, 4:29 PM · Phacility

Apr 10 2019

epriestley added a revision to T11413: Support renaming Phacility instances: Restricted Differential Revision.
Apr 10 2019, 7:43 PM · Phacility

Mar 26 2019

epriestley added a comment to T11413: Support renaming Phacility instances.

After a few followup fixes, this now appears to be working. Remaining stuff I'd like to do:

Mar 26 2019, 7:37 PM · Phacility

Mar 23 2019

epriestley updated the task description for T13267: Cluster daemons can spiral to death over contentious cache fills.
Mar 23 2019, 5:17 PM · Phacility
epriestley triaged T13267: Cluster daemons can spiral to death over contentious cache fills as Normal priority.
Mar 23 2019, 4:56 PM · Phacility

Mar 16 2019

epriestley placed T7607: Invoicing emails probably need some work up for grabs.
Mar 16 2019, 8:41 PM · Phortune, Phacility
epriestley placed T11456: Don't lose user in NUX flow because of Timezone issues up for grabs.
Mar 16 2019, 8:41 PM · Design, Phacility, NUX
epriestley placed T11132: New Phabricator NUX up for grabs.
Mar 16 2019, 8:41 PM · Design, Phacility, NUX
epriestley placed T9515: Build a "quorum" mechanism and associated UI up for grabs.
Mar 16 2019, 8:41 PM · Restricted Project, Notifications, Phacility, Auth

Mar 15 2019

epriestley added a revision to T11413: Support renaming Phacility instances: Restricted Differential Revision.
Mar 15 2019, 8:55 PM · Phacility

Mar 1 2019

epriestley added a revision to T13121: Remove "-q" from SSH commands executed by `bin/remote` and similar cluster commands: Restricted Differential Revision.
Mar 1 2019, 5:53 PM · Phacility, Ops
epriestley added a revision to T13121: Remove "-q" from SSH commands executed by `bin/remote` and similar cluster commands: Restricted Differential Revision.
Mar 1 2019, 5:52 PM · Phacility, Ops
epriestley added a comment to T13121: Remove "-q" from SSH commands executed by `bin/remote` and similar cluster commands.

Another possible approach is to use -o LogLevel=ERROR. This gets us into trouble if there are useful INFO messages other than "permanently added X to list of known hosts", but presumably all the important stuff is rasied at ERROR or better.

Mar 1 2019, 5:43 PM · Phacility, Ops
epriestley added a comment to T13121: Remove "-q" from SSH commands executed by `bin/remote` and similar cluster commands.

For Drydock/Harbormaster, the only real way forward I see here is:

Mar 1 2019, 5:38 PM · Phacility, Ops

Feb 25 2019

epriestley updated the task description for T13230: Native Applications.
Feb 25 2019, 8:03 PM · Phacility
epriestley added a comment to T11760: Phacility Cluster: Ad-Hoc Query Log.

I ran a query against a subset of instances to determine if "Mute Notifications" sees any usage whatsover (see T13068):

Feb 25 2019, 2:29 PM · Phacility

Feb 13 2019

epriestley closed T7441: Support OAuth providers in the cluster as Resolved.

I think there's not much actionable here and this has all more or less resolved:

Feb 13 2019, 12:16 PM · Auth, Phacility

Feb 11 2019

amckinley added a comment to T11413: Support renaming Phacility instances.

This load chart for admin001, where steady state CPU load has dropped from ~20% to ~10%, suggests that the new scheme is legitimately more efficient and the deploy actually changed something:

Feb 11 2019, 12:26 AM · Phacility

Feb 10 2019

epriestley added a comment to T11413: Support renaming Phacility instances.

I don't want to speak too soon, but the instances.state cache doesn't seem to have any other glaring issues. This load chart for admin001, where steady state CPU load has dropped from ~20% to ~10%, suggests that the new scheme is legitimately more efficient and the deploy actually changed something:

Feb 10 2019, 6:49 PM · Phacility
epriestley added a comment to T11413: Support renaming Phacility instances.

We can trivially serialize() before grabbing the lock to reduce the lock window. We could also write before grabbing the lock.

Feb 10 2019, 6:40 PM · Phacility
epriestley added a comment to T11413: Support renaming Phacility instances.

... and can take some real amount of time ...

Feb 10 2019, 6:37 PM · Phacility
epriestley added a comment to T11413: Support renaming Phacility instances.

Deploying the "instances.state" cache hit one issue on the repo tier:

Feb 10 2019, 6:32 PM · Phacility

Jan 31 2019

epriestley added a revision to T11413: Support renaming Phacility instances: Restricted Differential Revision.
Jan 31 2019, 5:39 PM · Phacility

Jan 30 2019

epriestley added a comment to T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile.

Success! D20046 worked to fix the "profiler not sticking across form posts" issue on secure. 🐈

Jan 30 2019, 7:56 PM · XHProf, Ops, Phacility