INREALM Posted March 30, 2023 Posted March 30, 2023 Default timeout of 600000 is still present in uniGUI apache module, but the session is ending very quickly. This is a very simple application - no use of databases or anything else. No use of a Timer - etc. Sometimes when I reload - it immediately shows another timeout message. Quote
Sherzod Posted March 30, 2023 Posted March 30, 2023 Hello, Which edition and build of uniGUI are you using? Quote
Kast2k Posted April 2 Posted April 2 Hello! The same problem. Configuration: UniGui 1.95.0.1607, Linux Debian 12 x64, Apache2, project build as apache library. Servermodule params: libuser_apache.so: 81FFB6C0: 00:10:46 []:>--------------------------------------------------------------< libuser_apache.so: 81FFB6C0: 00:10:46 []:Starting Server. Module Handle: 000055A97BD713B0 libuser_apache.so: 81FFB6C0: 00:10:46 [TUniServerModule]:Server First Init. libuser_apache.so: 81FFB6C0: 00:10:46 [TUniServerModule]:Start Path = /home/testmaster/PAServer/scratch-dir/123-debian64/testApacheProblem/ libuser_apache.so: 81FFB6C0: 00:10:46 [TUniGUISessionManager]:Cache erase job created, Folder count: [1] libuser_apache.so: 81FFB6C0: 00:10:46 []:Server Started. Module Handle: 000055A97BD713B0 libuser_apache.so: 637FE6C0: 00:10:47 [10.66.99.221]:Session <tk1HRU1ikN112DC642D> Created. libuser_apache.so: 827FC6C0: 00:10:50 [10.66.99.221]:Session <Qhec9XLmo3112DC6431> Created. libuser_apache.so: A27716C0: 00:11:42 []:DoLogin libuser_apache.so: A27716C0: 00:11:42 []:UniSession.UrlReferer=https://10.239.1.196:8077/user/ libuser_apache.so: 437FE6C0: 00:11:42 []:UniFormAfterShow libuser_apache.so: A176F6C0: 00:20:07 [10.66.99.221]:Session <xjW2BjFntU112DC66B6> Created. libuser_apache.so: 80FF96C0: 00:20:13 []:DoLogin libuser_apache.so: 80FF96C0: 00:20:13 []:UniSession.UrlReferer=https://10.239.1.196:8077/user/ libuser_apache.so: 82FFD6C0: 00:20:13 []:UniFormAfterShow libuser_apache.so: 82FFD6C0: 00:20:13 []:ShowAvailableBlocks libuser_apache.so: A176F6C0: 00:20:15 []:>--------------------------------------------------------------< libuser_apache.so: A176F6C0: 00:20:15 []:Starting Server. Module Handle: 000055A97BD713B0 libuser_apache.so: A176F6C0: 00:20:15 [TUniServerModule]:Server First Init. libuser_apache.so: A176F6C0: 00:20:15 [TUniServerModule]:Start Path = /home/testmaster/PAServer/scratch-dir/123-debian64/testApacheProblem/ libuser_apache.so: A176F6C0: 00:20:15 [TUniGUISessionManager]:Cache erase job created, Folder count: [3] libuser_apache.so: A176F6C0: 00:20:15 []:Server Started. Module Handle: 000055A97BD713B0 libuser_apache.so: A176F6C0: 00:20:15 [uniGUIApacheHandler[10.66.99.221]]:EUniSessionException : Invalid session or session Timeout. (Session not found: xjW2BjFntU112DC66B6 ) : Addr: $00007F7C9A36A4C0 libuser_apache.so: 8BFFF6C0: 00:20:15 [uniGUIApacheHandler[10.66.99.221]]:EUniSessionException : Invalid session or session Timeout. (Session not found: xjW2BjFntU112DC66B6 ) : Addr: $00007F7C9A36A4C0 libuser_apache.so: 98DFE6C0: 00:20:15 [uniGUIApacheHandler[10.66.99.221]]:EUniSessionException : Invalid session or session Timeout. (Session not found: xjW2BjFntU112DC66B6 ) : Addr: $00007F7C9A36A4C0 libuser_apache.so: 995FF6C0: 00:20:15 [10.66.99.221]:Session <vLUDUPV8Li112DC66BF> Created. libuser_apache.so: 8B7FE6C0: 00:20:15 [uniGUIApacheHandler[10.66.99.221]]:EUniSessionException : Invalid session or session Timeout. (Session not found: xjW2BjFntU112DC66B6 ) : Addr: $00007F7C9A36A4C0 libuser_apache.so: 8B7FE6C0: 00:20:16 [uniGUIApacheHandler[10.66.99.221]]:EUniSessionException : Invalid session or session Timeout. (Session not found: Qhec9XLmo3112DC6431 ) : Addr: $00007F7C9A36A4C0 libuser_apache.so: 8AFFD6C0: 00:20:16 [uniGUIApacheHandler[10.66.99.221]]:EUniSessionException : Invalid session or session Timeout. (Session not found: Qhec9XLmo3112DC6431 ) : Addr: $00007F7C9A36A4C0 libuser_apache.so: 995FF6C0: 00:20:16 [10.66.99.221]:Session <ONiak6eu2o112DC66C0> Created. libuser_apache.so: 8A7FC6C0: 00:20:16 [uniGUIApacheHandler[10.66.99.221]]:EUniSessionException : Invalid session or session Timeout. (Session not found: Qhec9XLmo3112DC6431 ) : Addr: $00007F7C9A36A4C0 libuser_apache.so: 41FFB6C0: 00:20:33 [uniGUIApacheHandler[10.66.99.221]]:EUniSessionException : Invalid session or session Timeout. (Session not found: tk1HRU1ikN112DC642D ) : Addr: $00007F7C9A36A4C0 libuser_apache.so: 42FFD6C0: 00:20:33 [uniGUIApacheHandler[10.66.99.221]]:EUniSessionException : Invalid session or session Timeout. (Session not found: tk1HRU1ikN112DC642D ) : Addr: $00007F7C9A36A4C0 libuser_apache.so: 667FC6C0: 00:20:33 [10.66.99.221]:Session <lC6apoJcK3112DC66D3> Created. libuser_apache.so: 8BFFF6C0: 00:20:33 [uniGUIApacheHandler[10.66.99.221]]:EUniSessionException : Invalid session or session Timeout. (Session not found: tk1HRU1ikN112DC642D ) : Addr: $00007F7C9A36A4C0 libuser_apache.so: 8A7FC6C0: 00:20:35 [10.66.99.221]:Session <8Bwb9XPhEs112DC66D6> Created. libuser_apache.so: 98DFE6C0: 00:20:35 [HandleFileRequest[10.66.99.221]]:File not found: /home/testmaster/PAServer/scratch-dir/123-debian64/testApacheProblem/m/uni-1.95.0.1607/uni-init-min.js libuser_apache.so: 89FFB6C0: 00:21:41 [10.66.99.221]:Session <99TzSUgtR1112DC6723> Created. libuser_apache.so: 227FC6C0: 00:21:45 [10.66.99.221]:Session <vLUDUPV8Li112DC66BF> Terminated. Reason: Browser Window Closed. As we can see on log: 1. at 00:10:46 first user connected and session tk1HRU1ikN112DC642D created. He see only login screen 2. at 00:10:50 second user connected Qhec9XLmo3112DC6431. He entered login data and see mainform 3. at 00:20:07 third user connected xjW2BjFntU112DC66B6 He entered login data and on mainform clicked btn to show empty form (ShowAvailableBlocks) 4. at 00:20:15 next user connected and, suddenly, servermodule is restarted, all current sessions are invalid. Why? May be there are some special configurations for linux must be set? Quote
Administrators Farshad Mohajeri Posted April 2 Administrators Posted April 2 Hello, It must be related to Apache recycling settings. Unfortunately, Apache tends to unload modules whenever it wants. There are settings in Apache to avoid this. We have described this in our docs, but there are many Apache versions and different settings in different distros. You must make sure that Apache doesn't unload uniGUI Apache modules. Quote
Kast2k Posted April 2 Posted April 2 40 minutes ago, Farshad Mohajeri said: Hello, It must be related to Apache recycling settings. Unfortunately, Apache tends to unload modules whenever it wants. There are settings in Apache to avoid this. We have described this in our docs, but there are many Apache versions and different settings in different distros. You must make sure that Apache doesn't unload uniGUI Apache modules. Dear Farshad, Thank you for reply. May be you can provide a link to this docs? I searched all on https://www.unigui.com/doc/online_help/index.html?configuring-apache-for-linux.htm and other docs pages but there is nothing new. Current mpm_event.conf config: StartServers 1 ServerLimit 1 MinSpareThreads 50 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 50 //increased from 25 to 50 MaxRequestWorkers 150 MaxConnectionsPerChild 0 //living unlimited, no clearing Quote
Kast2k Posted April 2 Posted April 2 Additional information: Apache is killing current unigui process if any of connected users is closing browser. May be there is a setting to detect and block this action on Unigui side? Quote
Administrators Farshad Mohajeri Posted April 2 Administrators Posted April 2 4 hours ago, Kast2k said: Additional information: Apache is killing current unigui process if any of connected users is closing browser. May be there is a setting to detect and block this action on Unigui side? unigui module can not prevent unloading but there must be some settings on Apache side. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.