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

analysis summary thumbnail not loading #487

Closed
gubuntu opened this issue Nov 15, 2018 · 8 comments
Closed

analysis summary thumbnail not loading #487

gubuntu opened this issue Nov 15, 2018 · 8 comments
Assignees
Labels

Comments

@gubuntu
Copy link
Contributor

gubuntu commented Nov 15, 2018

https://geonode.ingc.gov.mz/geosafe/analysis/create/157
Screenshot 2018-11-15 at 12.35.08.png

@myarjunar
Copy link
Collaborator

myarjunar commented Nov 15, 2018

there is indeed no thumbnail generated for this layer.. better assign it to thumbnail master cc @boney-bun

selection_314

@gubuntu gubuntu assigned boney-bun and NyakudyaA and unassigned myarjunar Nov 15, 2018
@gubuntu
Copy link
Contributor Author

gubuntu commented Nov 15, 2018

@myarjunar the layer itself is not loading in the geonode layer view https://geonode.ingc.gov.mz/layers/geonode:impact_analysis_1

@lucernae
Copy link
Collaborator

I can't think of any other explanations other than the impact layer files itself is missing.

@NyakudyaA
Copy link
Collaborator

@lucernae cc @gubuntu the layer is there but very big so I think it's just an issue with QGIS rendering the layer.
analysis

If you try to render the layer nginx becomes unstable and sometimes times out.
nginx

I think this issue is about improving the performance of QGIS - Maybe we need to seed the cache of layers nightly or maybe add a button in the admin to preseed a layer.

@gubuntu
Copy link
Contributor Author

gubuntu commented Nov 15, 2018

yip, that does seem to be the problem, it's drawing now. @NyakudyaA please create a new issue for that in the backlog

@gubuntu gubuntu closed this as completed Nov 15, 2018
@gubuntu gubuntu removed the ready label Nov 15, 2018
@lucernae
Copy link
Collaborator

But if QGIS who handled it can't open the layer, it will not be able to seed the layer reliably either.
I also found out that there are permissions problem previously (QGIS Server not able to open the layer)
So, QGIS thinks the layer doesn't exists. (Fixed this just now)

screen shot 2018-11-15 at 18 45 34

Then after it was able to read the layer, it hits the problem that @NyakudyaA 's mentioned. QGIS Server hits server timeout that it's Apache config allowed, causing timeout in django, then causing timeout in nginx.

Since our tile seeder generation relies on WMS request to QGIS Server, that seeding will not work in this case.
Meanwhile, Report generation works nicely because Headless draws the layer using python API with direct QGISLayer connection (not via WMS). So the layer is there, the report is there, but we can't see it via GeoNode because it's too big.

Maybe recreate the analysis with smaller extents will work? (we know it works, it's just big)

@NyakudyaA
Copy link
Collaborator

@lucernae I wonder why QGIS server would have permissions problems for some layers and not all of them.
Looking at the permissions for all layers it seems to be consistent across the folder.
matrix

Unless maybe it needs to be rw-rw-rw for all layers.

@lucernae
Copy link
Collaborator

the folder for QGIS is in geonode/qgis_layer directory.
I had the scripts that runs permission checks on it when django restarts. However, it doesn't seems to work previously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants