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)

ARM
All
task
Not set
normal

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.
Please give us complete headers of a request that goes to the full site
Whiteboard: [mamo]
This is a dump of the request headers when MAMO appears in Fennec (desktop Linux)
dump of request headers when a desktop version of AMO is displayed in Fennec (desktop Linux)
Apparently at random, several of the User-Agent headers in both sets of requests are missing the date after "Gecko/".
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.
Yeah, poor wording on my part. By "headers of a request" I meant both request and response. :(
OS: Android → All
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?
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.
Target Milestone: --- → Q1 2011
I've added the traffic script to all Zeus clusters fronting AMO.
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
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 → ---
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
Yeah, I added it to ams as well. We only have sj, ams, phx.
I'm currently seeing this with "Via: Moz-Cache-pp-zlb06" and "X-Backend-Server: pm-app-amo12".
Assignee: server-ops → jeremy.orem+bugs
Potch ran into this today too. Mobile is launching next week. Any updates here?
(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?
Sorry, no. I'm not currently seeing this, but I'll make sure to capture full headers any time I do.
Attached file request/response headers (obsolete) —
Attached file better headers —
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
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
verified on my phone, looks good
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: