The issue of internal links not oneboxing in a login-required Discourse instance was discussed. fefrei reported the problem, and codinghorror suspected outgoing server DNS issues. However, fefrei found that DNS resolution was working correctly.
Falco mentioned a bug involving local onebox, login required, and subdomain, but it had already been fixed. fefrei was unable to find any differences between the working and non-working instances, as both had almost the same plugins and settings.
After further investigation, fefrei found some differences, including the site with broken Oneboxes failing to upgrade to Postgres 9.5 and running on a fourth-level domain. However, Falco reported that their instance on a fifth-level domain worked fine.
Fefrei provided log entries, which appeared normal. Eventually, fefrei discovered that the problem was due to a known issue with internal oneboxing not working on topics in private categories, as discussed in another topic.
I’m operating two Discourse instances with login required, both running on the beta channel, both are up-to-date.
In one of these instances, local links to posts no longer onebox (they don’t produce a broken onebox, they just do not onebox at all). No log entries are produced.
Does anyone have an idea what could be causing this?
I just testet curling from both google.de and my domain itself from within the container, and the domain was resolved correctly. But Oneboxes are still not working (even for new links that are not in the cache)…
Any more ideas? Could I help you diagnose that in any way?
I cannot really think of any meaningful difference…
Both are non-subfolder, Docker, login required, SSO-enabled instances with almost the same plugins.
That’s why this is so hard to diagnose. You have two “identical” sites and.. one is different. We’ve never been able to repro this problem, but it has been reported a fair number of times.
The working instance is running on discourse.example.com, the broken one is project-discourse.department.example.com – so it’s a subdomain of a subdomain.
Here is the log entry for this corresponding call:
Started GET "/onebox?url=https%3A%2F%2Fvorkurs-discourse.cs.uni-saarland.de%2Ft%2Fbijektivitaet%2F547&refresh=false" for 188.210.56.176 at 2016-06-18 09:35:52 +0000
Processing by OneboxController#show as HTML
Parameters: {"url"=>"https://vorkurs-discourse.cs.uni-saarland.de/t/bijektivitaet/547", "refresh"=>"false"}
Rendered text template (0.0ms)
Completed 200 OK in 53ms (Views: 12.6ms | ActiveRecord: 17.3ms)