This is technically accurate but real awkward for humans:
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Oct 23 2017
I pushed secure004 with that patch and it worked fine, although mysql came back up fast enough that we didn't have to wait. Since I don't have a way to actually trigger this condition, I'm going to assume this is resolved until we have evidence otherwise.
This has been stable for about a week now.
This traffic eventually stopped on October 20th.
The pruned (at 0.15 threshold), optimized ngram index for the original affected instance is only ~13GB, which is entirely manageable with the changes to backups, and we haven't run into other issues.
We hit one of more of these (db024) last week so D18725 should fix it.
In T5463#172345, @florianb wrote:I ran into the same issue, it turned out, that the permissions for /phabricator, /libphutil and /phabricator as well as for the preceding parent-directory had to be 755.
Until i figured this out i tried running all directories with less permissions (750) - which did result in a
AuthorizedKeysCommand /usr/share/phabricator-ssh-hook.sh returned status 126I really don't know which user is here trying to invoke whichever script or command (since all defined users [git, phd, www-data] are nicely coupled in their phacility-group), but since i wasn't able to track that down i think that's a good compromise. And it should be safer than letting root invoke the AuthorizedKeysCommand.
Oct 22 2017
In T12856#231964, @pouyana wrote:I wrote a small dynamic inventory client (based on almanac /passphrase conduit API). It is not open source but I can open source it, if there is a need.
Oct 21 2017
Oct 20 2017
A very rough version of this is now in master, but only active if phabricator.show-prototypes is on. These are some of the (substantial) remaining issues I'm aware of, and there are probably others:
Oct 19 2017
Oct 17 2017
Oct 16 2017
I'm going to call this tentatively done and leave it open for a week or two to see if there's any fallout.
Something is making a lot of requests
I'm getting the same #1048: Column 'filename' cannot be null running just regular "arc diff". It used to work and then at some point after updates started failing.
The behavior of mod_reqtimeout is weird in production. Some of this is the LB, but some of it I don't have a good explanation for.
The above did not work for me. The following did:
I was able to get web001 to wedge a lot of requests in "R" ("Reading Request") -- note "SS" is "seconds since beginning of most recent request".
I'm also unable to wedge secure. mod_status is working there, but since I can't wedge it it isn't very useful.
I'm going to take a more detailed look at local behavior for this specific request pattern.
Oct 14 2017
This is working somewhat better than before, but I'm still able to wedge apache with enough requests using a pre-patch version of libphutil. I'm going to take a more detailed look at local behavior for this specific request pattern.
It's currently possible for cluster hosts to hit rate limits against admin while doing normal deployment stuff, since they may make a lot of requests to admin very quickly.
I expect I can just reduce the data size to something manageable with the current workflow fairly easily
Oct 13 2017
(I also verified that real multipart/form-data works fine from a browser, by changing a project's profile picture here.)
On the server side, the connection test looks better: secure001 saw 8 HTTP 500's (this might be a bug in the multipart/form-data parser for whatever cURL is doing) and then 135 HTTP 429s, which is more or less exactly what the code is supposed to do. So I think most of the inconclusiveness on what was happening from the client side was curl / nohup stuff.
I used ab to verify the rate limiting code here, and got killed after a bit of abuse with ab -c 10 -n 200 ...:
Oct 12 2017
There's also a bug with arc here. It's supposed to limit simultaneous uploads to 4:
Oct 11 2017
Oct 10 2017
Oops, I filed it in the wrong place, my apologies!
Please file feature requests through the community forum (https://discourse.phabricator-community.org) or a support pact (https://admin.phacility.com/book/phacility/article/support_pacts/).
Doh!, I was looking at the jshint engine before, not the eslint engine. It looks like phab doesn't have built-in support for eslint yet. But this looks promising: maybe the autofixing eslint reports *is* on an error-by-error basis.
At Facebook we have a custom arcanist lint engine that wraps eslint with a custom (JS) runner that extracts more info about each fix:
Our access to superglobals in PhabricatorStartup comes from D6672, and works around an issue where PHP's (fairly insane) sanitization filters are configured.
Would auto_globals_jit help?
I think this is working properly in production, I recall getting at least one notification today.
Oct 9 2017
Oct 7 2017
We should probably update the documentation to recommend --output and --compress, since the error behavior (e.g., in the event of a full disk) is better.
Thanks for the fix on that. I have my nightly backups running again, however I had to switch from
./bin/storage dump | gzip > file.sql.gz
to
phab/bin/storage dump --output file.sql.gz --compress
This is still ongoing but it isn't impacting us so I don't plan to do anything else here.
I've deployed the slightly more formal preamble. It no longer has the remote address logging, but here are the addresses captured up to now (first column: request count; second column: address):
Thanks for the quick response. I'll try the workaround in the morning.
When enabled, the SERVER, REQUEST, and ENV variables are created when they're first used (Just In Time) instead of when the script starts.
Oct 6 2017
A wrench in the gears here is that disabling enable_post_data_reading also disables $_FILES, which we use in about 20 places with vanilla HTTP <input type="file" /> controls. So on top of initialization order issues with $_POST, we also need to build a multipart/form-data parser that can populate a synthetic $_FILES or some similar construct.
I'm going to merge this into T4369, which has some similar discussion and more context.