Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matomo forums - Cannot load app #12588

Closed
fdellwing opened this issue Feb 28, 2018 · 10 comments
Closed

Matomo forums - Cannot load app #12588

fdellwing opened this issue Feb 28, 2018 · 10 comments
Labels
c: Website matomo.org For issues related to our matomo.org website. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.

Comments

@fdellwing
Copy link
Contributor

This problem is quite strange, but reproduce able.

  1. Open some post in the forum that contains any external link, e.g. https://forum.matomo.org/t/piwik-empfangt-trotz-erfolgreicher-installation-keine-daten/25912/5
  2. Click on the link
  3. Use the back function of your browser
  4. Cannot load app - It looks like you are offline! Please check your network connection and try again.

Even a hard reload does not fix it, it seems like something gets lost there.

@fdellwing
Copy link
Contributor Author

After leaving this post I discovered, that the link above is not working. So it seems like something is completely preventing hot-linking any thread in the forums.

@Findus23
Copy link
Member

Findus23 commented Feb 28, 2018

Hi, thanks for reporting.
I can't really reproduce this. When I click on the link in the forum post it opens in a new tab and when I close that again he forum works as before.

Can you show if there are errors in the Javascript console? And maybe provide a bit more general information (which browser are you using?).

@fdellwing
Copy link
Contributor Author

No errors in DevTools.

For me the link in forum is not opening in a new tab! It opens in the same tab and after using back button, not luck. Does the link above work for you?

Here the HAR of that connection:

{
  "log": {
    "version": "1.1",
    "creator": {
      "name": "Firefox",
      "version": "58.0.2"
    },
    "browser": {
      "name": "Firefox",
      "version": "58.0.2"
    },
    "pages": [
      {
        "startedDateTime": "2018-02-28T15:05:12.933+01:00",
        "id": "page_1",
        "title": "Piwik empfängt trotz erfolgreicher Installation keine Daten - Deutschsprachiges forum (German) - Matomo forums",
        "pageTimings": {
          "onContentLoad": -1,
          "onLoad": -1
        }
      }
    ],
    "entries": [
      {
        "pageref": "page_1",
        "startedDateTime": "2018-02-28T15:05:12.933+01:00",
        "time": null,
        "request": {
          "bodySize": 0,
          "method": "GET",
          "url": "https://forum.matomo.org/t/piwik-empfangt-trotz-erfolgreicher-installation-keine-daten/25912/6",
          "httpVersion": "HTTP/1.1",
          "headers": [
            {
              "name": "Host",
              "value": "forum.matomo.org"
            },
            {
              "name": "User-Agent",
              "value": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0"
            },
            {
              "name": "Accept",
              "value": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
            },
            {
              "name": "Accept-Language",
              "value": "de"
            },
            {
              "name": "Accept-Encoding",
              "value": "gzip, deflate, br"
            }
          ],
          "cookies": [],
          "queryString": [],
          "headersSize": 0
        },
        "response": {
          "status": 200,
          "statusText": "OK",
          "httpVersion": "HTTP/1.1",
          "headers": [
            {
              "name": "server",
              "value": "openresty"
            },
            {
              "name": "date",
              "value": "Wed, 10 Jan 2018 12:05:21 GMT"
            },
            {
              "name": "content-type",
              "value": "text/html; charset=utf-8"
            },
            {
              "name": "transfer-encoding",
              "value": "chunked"
            },
            {
              "name": "connection",
              "value": "keep-alive"
            },
            {
              "name": "x-frame-options",
              "value": "SAMEORIGIN"
            },
            {
              "name": "x-xss-protection",
              "value": "1; mode=block"
            },
            {
              "name": "x-content-type-options",
              "value": "nosniff"
            },
            {
              "name": "x-discourse-route",
              "value": "offline/index"
            },
            {
              "name": "cache-control",
              "value": "no-store, must-revalidate, no-cache, private"
            },
            {
              "name": "x-discourse-trackview",
              "value": "1"
            },
            {
              "name": "content-encoding",
              "value": "gzip"
            }
          ],
          "cookies": [],
          "content": {
            "mimeType": "text/html; charset=utf-8",
            "size": 717,
            "text": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">\n\n<head>\n  <meta http-equiv=\"Content-type\" name=\"viewport\" content=\"initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width\">\n  <title>Matomo forums</title>\n</head>\n<body>\n<div style=\"padding:100px 40px; text-align:center; font-family: Helvetica, Arial, sans-serif;\">\n  <h1 style=\"font-size: 36px; color: #333;\">Cannot load app</h1>\n  <p style=\"margin: 40px; font-size: 18px; color: #555;\">\n    It looks like you are offline! Please check your network connection and try again.\n  </p>\n</div>\n</body>\n\n</html>\n"
          },
          "redirectURL": "",
          "headersSize": 0,
          "bodySize": null
        },
        "cache": {},
        "timings": {
          "blocked": 0,
          "dns": 0,
          "ssl": 0,
          "connect": 0,
          "send": 0,
          "wait": 0,
          "receive": 0
        }
      }
    ]
  }
}

@Findus23
Copy link
Member

Update: The opening in a new tab is a user setting I have enabled. But even when I disable it, I can go back to the site works properly.

I'll forward you post to the host of our forum.

@Findus23
Copy link
Member

Findus23 commented Feb 28, 2018

Ha, you issue looks really like https://meta.discourse.org/t/serviceworker-thinks-im-offline-when-im-not/77886

The service worker seem to think you are offline and doesn't change it's opinion if you clear cache or revisit the site. (That's also why you get an 200 response saying you are offline)

Can you try removing the service worker manually? In firefox this can be done in about:debugging#workers

@fdellwing
Copy link
Contributor Author

fdellwing commented Feb 28, 2018

  1. Deleted service worker.
  2. Opened https://forum.matomo.org/t/piwik-empfangt-trotz-erfolgreicher-installation-keine-daten/25912/5
  3. Worked
  4. Closed it
  5. Opened again
  6. Didn't work

Could that be the reason?

Service-Worker unterstützen derzeit nicht mehrere Inhaltsprozesse.
In der aktuellen Version kann mittels der Einstellung "dom.ipc.multiOptOut" ein einzelner Inhaltsprozess erzwungen werden.

@Findus23 Findus23 added the c: Website matomo.org For issues related to our matomo.org website. label Feb 28, 2018
@Findus23
Copy link
Member

@fdellwing
Question from Jeff Altwood (Discourse):

Make sure the user making the report is not using a beta browser, that is essential.

Which browser are you using exactly?

If you want to, you can answer directly here:
https://meta.discourse.org/t/serviceworker-thinks-im-offline-when-im-not/77886/14

@fdellwing
Copy link
Contributor Author

Using FF58 on Ubuntu 14, it's the current stable version. Will try it tomorrow in safe mode (no addons and default config).

@fdellwing
Copy link
Contributor Author

Ok, I was able to pin it down to Adblock Plus.

The interesting part here is, it does not matter if you have it enabled on matomo.org, which I haven't. It only matters if the addon at all is enabled in about:addons. I'm quite sure this is a bug, but I'm not able to tell if the bug is in the addon or in the forum software, but I have not got this problem anywhere else.

@Findus23
Copy link
Member

Findus23 commented Mar 1, 2018

@fdellwing I posted it here: https://meta.discourse.org/t/serviceworker-thinks-im-offline-when-im-not/77886/18?u=lw1

I guess that's the most we can do.

@Findus23 Findus23 closed this as completed Mar 1, 2018
@Findus23 Findus23 added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Website matomo.org For issues related to our matomo.org website. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

No branches or pull requests

2 participants