Page MenuHomePhabricator

phab.wmfusercontent.org "homepage" yields a 500
Closed, ResolvedPublic

Description

I was looking at top URLs for 500s and it seems https://phab.wmfusercontent.org/ yields a 500 with

Unhandled Exception ("AphrontMalformedRequestException")	

This Phabricator install is configured as "https://phabricator.wikimedia.org", but you are using the domain name "phab.wmfusercontent.org" to access a page which is trying to set a cookie. Access Phabricator on the configured primary domain or a configured alternate domain. Phabricator will not set cookies on other domains for security reasons.

We could probably just redirect to phabricator's homepage from phab.wmfusercontent.org / @mmodell ?

Event Timeline

Yeah a redirect would make sense.

fwiw, class phabricator::redirector has:

16     $alt_host    = 'fab.wmfusercontent.org'

but "Host fab.wmfusercontent.org not found: 3(NXDOMAIN)".

fab vs. phab

@Dzahn: good catch but that's overridden:

In modules/role/manifests/phabricator/main.pp

$altdom = hiera('phabricator_altdomain', 'phab.wmfusercontent.org')

I saw there's indeed a phabricator redirect map (in php), would that be the place @mmodell or some other place like apache?

Well apache would probably be a better choice but we could do it in php land for sure.

Change 355769 had a related patch set uploaded (by Filippo Giunchedi; owner: Filippo Giunchedi):
[operations/puppet@production] phabricator: redirect serveraliases homepage to phab_servername

https://gerrit.wikimedia.org/r/355769

@mmodell ok thanks! I gave it a try with https://gerrit.wikimedia.org/r/355769 for all server aliases, if that's too broad we can pass in alt_dom into ::phabricator as a standalone parameter

mmodell triaged this task as Medium priority.May 26 2017, 9:47 PM

Change 355769 merged by Filippo Giunchedi:
[operations/puppet@production] phabricator: redirect serveraliases homepage to phab_servername

https://gerrit.wikimedia.org/r/355769

mmodell assigned this task to fgiunchedi.