Page 1 of 1
Error on close
PostPosted:Tue Nov 18, 2014 1:48 pm
by silverspr
Hello
When exiting OpenKM 6.3 on Ubuntu 14.04 from the OpenKM toolbar> file, exit option, I occasionally encounter this error: error when communicating with the server (getUpdateMessage). Is this an OpenKM error or an error generated from Tomcat? any ideas on how to remedy this?
thanks
okmCloseError.JPG (25.97 KiB) Viewed 4768 times
Re: Error on close
PostPosted:Sun Nov 23, 2014 11:57 am
by jllort
Well is not easy to explain what it happens, first of all do not worry is not important. The question is OpenKM UI does simultaneos connections at same time ( althought you do not see ) to maintain updated the UI information. That means several javascript query calls to get information under and authenticated service. In logout process we take control of most common call to disable it during the logout process, obviously it's not possible take control of all, because that will suppose some horrible changes in source code ( very ugly to only solve one minimal deffect ). Imagine logout process running two call one for getting update message and logout at same time. If logout finished before getting update message, then update message tries to get information when session has just expired, and generate this error. That's why sometimes when you logout can get some error, hope you understand the cause. I've been thinking about it some time, and I've not have any good idea about it than go error into silent mode when executing logout process.
[Resolved] Re: Error on close
PostPosted:Mon Nov 24, 2014 12:01 am
by silverspr
Thanks jllort
I'm new to OpenKm AND Linux, so thank you for your time. Happens infrequently, will ignore as per your advice.
Re: Error on close
PostPosted:Tue Nov 25, 2014 6:16 pm
by jllort
Sometimes errors should be warms or not be shown. In this case I will try to set error in hidden mode when logout to prevent end user be worried for it.
Re: Error on close
PostPosted:Mon Aug 22, 2016 8:06 pm
by gwaitsi
Hi Jllort,
i have linux mint client with firefox - connecting to linux sql server
I get this error too and loose the session when;
- i have left firefox open and not logged out of openkm
- client goes into sleep mode
- client wakes up from sleep mode and previous session shows these error connecting messages
- refresh the web page takes you to the login screen
It would be better to have a cleaner session logout instead of having the error messages.
is it possible to set session timeout please?
Re: Error on close
PostPosted:Tue Aug 23, 2016 3:01 pm
by jllort
When you talking about "client goes to sleep mode" you are talking about the OS hibernate ?
Re: Error on close
PostPosted:Wed Aug 24, 2016 7:01 pm
by gwaitsi
correct. i have linux mint desktop and it goes to sleep after 10min of no activity.
Re: Error on close
PostPosted:Thu Aug 25, 2016 11:48 am
by jllort
Is a quite strange scenario. Usually DMS should be always alive, and starting from hibernated session is a very special case. The server session is kept alive for 30 minutes, passes this time the session is purged and will not be longer used, although from browser is still trying to be used ( I suspect it can be the problem ).