-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Fixes #4322] SESSION_EXPIRED_CONTROL_ENABLE=True breaks GeoNode #4343
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4343 +/- ##
==========================================
- Coverage 57.98% 57.72% -0.26%
==========================================
Files 202 203 +1
Lines 11718 11838 +120
Branches 1683 1713 +30
==========================================
+ Hits 6795 6834 +39
- Misses 4375 4454 +79
- Partials 548 550 +2 |
@frafra seems like spc_geonode does not like the session middleware at all :| |
@afabiani tests seem to work only if you wait for a while before running them, maybe because of the 60 seconds timeout you added. A similar issue happens with the standard Docker setup, and should be avoided in my opinion, or at least we should have a simple and robust mechanism to determine if the system is ready to be used or not. I would prefer to avoid API-only solutions, as even a user should be aware if the platform is ready or not, and if you have your system running with a nice homepage the user will think that everything is fine, while it is not. |
@frafra agree, any suggestion? I'll start thinking about a solution too as soon as I can devote some time here again. |
@frafra ... which timeout? The DB one? |
@frafra what about a geonode endpoint |
I haven´t followed all of the discussion but why would it not be enough checking the status code of geoserver endpoint?
+1 for informing users whenever gs is down.
|
Yes, but I am not sure if that's what causes the issue.
In that scenario, how to determine if LOCAL_GEOSERVER is up? Should we check if GeoServer returns a 2xx HTTP code? We are already doing that in geonode-selenium, thanks to Docker healthchecks, but it is still failing on this pull request.
That's what is already happening. It seems to me that there are certain cases where GeoNode and GeoServer can be both up and running, but not ready to accept uploads. It would be nice to understand why, because we could fix the standard Docker setup too (which is not possible to test automatically with geonode-selenium because we do not know when it is really ready to be tested #4259). |
@frafra uhm, I'm not fully sure it is a timeout problem here. It looks to me more a setup issue instead. Something related to the fixtures, not loaded correctly or something. However, I'll investigate a bit more on this as soon as I have some time slots available. |
@frafra @t-book with the latest commits:
This PR also refers to #4325 "List of documentation improvements" by refactoring the |
I'm going to merge this and address the SPC GeoNode issue here |
@t-book I am not sure about that, but we will see :) |
No description provided.