Closed
Bug 640301
Opened 15 years ago
Closed 15 years ago
seeing non-mobile AMO in Fennec nightlies
Categories
(Infrastructure & Operations Graveyard :: WebOps: Other, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: madhava, Assigned: oremj)
Details
(Whiteboard: [mamo])
Attachments
(5 files, 1 obsolete file)
When I go to amo in Fennec nightlies, I sometimes get MAMO but at least as often I get AMO. When I get the full version, and I go and tap on the "See mobile version" link in the footer, I still get the full version.
Comment 1•15 years ago
|
||
Please give us complete headers of a request that goes to the full site
Updated•15 years ago
|
Whiteboard: [mamo]
Comment 2•15 years ago
|
||
This is a dump of the request headers when MAMO appears in Fennec (desktop Linux)
Comment 3•15 years ago
|
||
dump of request headers when a desktop version of AMO is displayed in Fennec (desktop Linux)
Comment 4•15 years ago
|
||
Apparently at random, several of the User-Agent headers in both sets of requests are missing the date after "Gecko/".
Comment 5•15 years ago
|
||
It's hard to tell what's going on without the full response headers. X-Cache-Info from the frontend cache is the first thing I look for.
Comment 6•15 years ago
|
||
Yeah, poor wording on my part. By "headers of a request" I meant both request and response. :(
OS: Android → All
Comment 7•15 years ago
|
||
Comment 8•15 years ago
|
||
Comment 9•15 years ago
|
||
good: ***** header: Via=Moz-Cache-pm-zlb-amo03
bad: ***** header: Via=Moz-Cache-pp-zlb04
oremj: I've never seen pp-zlb04 before. Where is it and does it have the trafficscript running?
| Assignee | ||
Comment 10•15 years ago
|
||
It's a proxy in PHX. I think it should only need trafficscript that affects the cache. We can check out if they match tomorrow.
Updated•15 years ago
|
Target Milestone: --- → Q1 2011
| Assignee | ||
Comment 11•15 years ago
|
||
I've added the traffic script to all Zeus clusters fronting AMO.
Comment 12•15 years ago
|
||
Calling this fixed based on comment 11. Please let us know if you still see issues.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 13•15 years ago
|
||
I'm still seeing this. Even after clicking on the "View Mobile Version" link I get the desktop version. I'm seeing it intermittently in both Minefield and Fennec. Here are headers captured from Minefield:
Request Headers
Host: addons.mozilla.org
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0b13pre) Gecko/20110315 Firefox/4.0b13pre
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: https://addons.mozilla.org/en-US/mobile/?browse=featured
Cookie: mamo=on; WT_FPC=id=27e5e626cd301b737521289875217350:lv=1300313428583:ss=1300312574787; csrftoken=e5798a68e240c4727ced189aed9b828c; __unam=f7237fc-12c6131b93a-54e522fa-36; __qca=P0-1737464479-1293545716599; wtspl=757810; __switchTo5x=86; AMOappName=firefox; amo_home_promo_seen=5; sessionid=2455ebed6b0616113f54c71d0e8341e6; s_cc=true; s_sq=mozillahacksorg%3D%2526pid%253D/2011/03/css3-planetarium/%2526pidt%253D1%2526oid%253Dhttp%25253A//mozillademos.org/demos/planetarium/demo.html%2526ot%253DA
Response Headers
Server: Apache
Vary: X-Mobile, Cookie,User-Agent, Accept-Encoding, Cookie,User-Agent
X-Backend-Server: pm-app-amo12
Cache-Control: no-cache
Content-Type: text/html; charset=utf-8
X-amo-darklaunch: z
Content-Encoding: gzip
Date: Wed, 16 Mar 2011 23:10:48 GMT
Keep-Alive: timeout=5, max=989
Transfer-Encoding: chunked
x-content-security-policy...: policy-uri /services/csp/policy
Via: Moz-Cache-ams-zlb01
Connection: Keep-Alive
X-Frame-Options: DENY
X-Cache-Info: not cacheable; response specified "Cache-Control: no-cache"
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 14•15 years ago
|
||
Via: Moz-Cache-ams-zlb01
Does amsterdam have the trafficscript? Are there other zeus clusters that need the script?
Assignee: nobody → server-ops
Component: Public Pages → Server Operations: Web Content Push
Product: addons.mozilla.org → mozilla.org
QA Contact: web-ui → mrz
Target Milestone: Q1 2011 → ---
Version: unspecified → other
| Assignee | ||
Comment 15•15 years ago
|
||
Yeah, I added it to ams as well. We only have sj, ams, phx.
Comment 16•15 years ago
|
||
I'm currently seeing this with "Via: Moz-Cache-pp-zlb06" and "X-Backend-Server: pm-app-amo12".
Updated•15 years ago
|
Assignee: server-ops → jeremy.orem+bugs
Comment 17•15 years ago
|
||
Potch ran into this today too. Mobile is launching next week. Any updates here?
| Assignee | ||
Comment 18•15 years ago
|
||
(In reply to comment #16)
> I'm currently seeing this with "Via: Moz-Cache-pp-zlb06" and "X-Backend-Server:
> pm-app-amo12".
Do you have the full headers?
Comment 19•15 years ago
|
||
Sorry, no. I'm not currently seeing this, but I'll make sure to capture full headers any time I do.
Comment 20•15 years ago
|
||
Comment 21•15 years ago
|
||
headers without mamo disabled this time. :( This is a hard-refresh of the page with the Fennec UA, got back the desktop page.
Attachment #522500 -
Attachment is obsolete: true
| Assignee | ||
Comment 22•15 years ago
|
||
Jeff tracked the problem down to these lines in django-mobility:
try:
want_mobile = int(request.META.get('HTTP_X_MOBILE', 0))
except Exception:
want_mobile = False
request.MOBILE = want_mobile
Zeus was concatenating the headers with these proxied requests, resulting in "X-Mobile: 1, 1", which caused request.MOBILE = False.
It would work in the cases where the request was already cached in SJ, since the X-Mobile header could be ignored.
I've fixed the issue by using setHeader instead of addHeader in the mobility trafficscript.
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
Comment 23•15 years ago
|
||
verified on my phone, looks good
Updated•13 years ago
|
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Updated•7 years ago
|
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•