-
-
Notifications
You must be signed in to change notification settings - Fork 345
Fail to update repository after CKAN is sitting open for a while #2391
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
Comments
About how many hours to wait before the problem starts? I launched it about an hour ago, and so far it's OK. |
Tested this too, opened ckan before I left for work. 8h later it couldn't update the repos. |
I can't say how long, I'd have to do long tests. I'll try to keep an eye on it. |
Can confirm, had the same problem few days ago. I can't tell the exact time either, might have been 3-4 hours. |
Mine's still fine after 11+ hours. :( |
Had this happen to me once aswell, it disappeared (and didn't come back) after a restart of CKAN. Was probably going for 2-3 hours before it happened. |
@HebaruSan it has to be untouched for a long time. and, it happens to me all the time |
@linuxgurugamer, I wasn't using it at all except for clicking Refresh every few hours. Still fine at 24h. Based on that, I'm going to guess that some other factor triggers this, not time (or not just time). |
a few hours isn't enough. |
I left it for 24 hours. |
I get this immediately on opening CKAN v 1.24.1 Does not happen to Windows version.
|
Same here, Win10 (17025), it was idle for about 12h: https://i.imgur.com/VD92ldt.png |
Confirming that I've had this happen here too, it's very intermittent though; sometimes it happens after only a few hours, sometimes I've had CKAN open for ~8 hours and it doesn't happen at all. Very difficult to diagnose without more debugging data regarding the HTTP request/response when it fails to make a connection though. |
It looks like CKAN is relying on web sessions staying open. It shouldn't do that. I know, you are just using the default .Net/Mono behavior, but bad behavior. It's an upstream bug we have to account for and correct. |
@Ruedii , where do you see that in the code? |
I tested this today and these are my findings. Opened CKAN, minimized it, went away while leaving PC on -> CKAN works fine. When a computer goes into sleep mode, it loses the internet connection on Windows 10. When bringing it out of sleep mode, it reconnects to the internet. This way CKAN lost connection and can't update. Could we make CKAN check when lost connection and reconnect? |
Ah, ok, this is why I've never had this happen. My computer never goes into sleep mode. I also don't normally leave CKAN open. |
Yeehaw, got the error message after playing a few hours (and maybe putting PC in standby and wake up again, but not sure):
Same as #2342, |
I dont the how long it takes, but this is repeatable:
Windows 10, CKAN 1.24.0
Open CKAN, everything works fine, refreshes work etc.
Leave it open, come back several hours later, and hit refresh, get the following message:
I'm guessing that a cookie or session is timing out, but CKAN isn't restarting from the beginning
The text was updated successfully, but these errors were encountered: