[basex-talk] A question about (non standard) BaseX stopping
Hi all, after having configuring a BaseX hub (|cluster|farm|...?), I have a last problem (I hope đ€đ ). When I want to stop a BaseX instance with basexhttpstop (or basexhttp stop), I have different results, but none stop the instance. The context: * I'm using the following java version: *OpenJDK 64-Bit Server VM (Red_Hat-11.0.21.0.9-1.el7_9) (build 11.0.21+9-LTS, mixed mode, sharing)* * in the .bash_profile of the basexusr1 (and for each (system LINUX) BaseX user), I precise the BASEX_JVM variable (*export BASEX_JVM="-Dorg.basex.path=/basex-ferme/sites/basex1"*) to customize the webapp and data repository * */basex-ferme/sites/basex1/basex* is a symbolic link to the BaseX reference (every site has this symbolic link) located here: */basex-ferme/basex* (hum... this is also a symbolic link pointing to the last version of basex: */basex-ferme/basex-10.7*) * the ports are different for each instance and are (only) precised when I launch the BaseX process * I launch each process with this command (adapting basex1, basexusr1 and ports for each BaseX): *su - -s /bin/bash basexusr1 -c "/basex-ferme/sites/basex1/basex/bin/basexhttp -S -h11204 -p11205 -s11206" * * for each command below, the code returned is ($?) 0... but the process is still running đ€ (as the web site). I only test the access of the DBA service (logging as admin) and I've got no database(at this time). The result of the stop commands: 1. > su - -s /bin/bash basexusr1 -c "/basex-ferme/sites/basex1/basex/bin/basexhttpstop -h11204 -p11205 -s11206" BaseX 10.7 [HTTP Server] [main] INFO org.eclipse.jetty.util.log - Logging initialized @1523ms to org.eclipse.jetty.util.log.Slf4jLog HTTP Server was stopped (port: 11204). Server was stopped (port: 11205). 2. > su - -s /bin/bash basexusr1-c "/basex-ferme/sites/basex1/basex/bin/basexhttp stop -h11204 -p11205 -s11206" BaseX 10.7 [HTTP Server] [main] INFO org.eclipse.jetty.util.log - Logging initialized @1441ms to org.eclipse.jetty.util.log.Slf4jLog HTTP Server was stopped (port: 11204). Server was stopped (port: 11205). 3. > su - -s /bin/bash basexusr1-c "/basex-ferme/sites/basex1/basex/bin/basexhttp stop -s11206" BaseX 10.7 [HTTP Server]: 11205). [main] INFO org.eclipse.jetty.util.log - Logging initialized @1819ms to org.eclipse.jetty.util.log.Slf4jLog HTTP Server was stopped (port: 8080). Server was stopped (port: 1984). 4. > su - -s /bin/bash basexusr1-c "/basex-ferme/sites/basex1/basex/bin/basexhttp stop -h11204 -s11206" BaseX 10.7 [HTTP Server] [main] INFO org.eclipse.jetty.util.log - Logging initialized @1366ms to org.eclipse.jetty.util.log.Slf4jLog HTTP Server was stopped (port: 11204). Server was stopped (port: 1984). 5. > su - -s /bin/bash basexusr1-c "/basex-ferme/sites/basex1/basex/bin/basexhttp stop -p11205 -s11206" BaseX 10.7 [HTTP Server] [main] INFO org.eclipse.jetty.util.log - Logging initialized @1006ms to org.eclipse.jetty.util.log.Slf4jLog HTTP Server was stopped (port: 8080). Server was stopped (port: 11205). ... and there is no track of the stop request in the log file (but there are the tracks of the admin access). The only solution I have found is to kill the process. That's my plan B, but I hope there is another cleaner solution đ€đ Has anyone a suggestion to resolve my problem?... and sorry for the complexity of the context đ Greetings Pierre-Yves *Pierre-Yves Jallud* /PĂŽle HumanitĂ© NumĂ©riques / IngĂ©nieur en ingĂ©nierie logicielle/ IHRIM - UMR 5317 <http://ihrim.ens-lyon.fr> CNRS <https://www.cnrs.fr> ENS de Lyon <http://www.ens-lyon.fr> 15 Parvis RenĂ© Descartes - BP7000 - 69342 Lyon CEDEX 07 +33 (0)4 37 37 63 83 - pierre-yves.jal...@ens-lyon.fr
Re: [basex-talk] How to configure org.basex.path
Hi Marc, well, containers is still obscure for me and I know APACHE... and all the chain between DNS and virtual host. Moreover, BaseX is enough designed to be configured as I need. Specifying the ports, a .basex (a data and webapp repository with DBPATH and WEBPATH) for each site and the BASEX_JM variable (BASEX_JM="-Dorg.basex.path=/basex/home/path") can do the job =) But maybe one day I will evoluate... if it's necessary đ I still have a problem for stopping BaseX instances but that will be another message đ (just after). Greetings Pierre-Yves Le 26/01/2024 Ă 12:21, Marc Coenegracht a Ă©crit : Hello Pierre-Yves and Maud, I'm also trying to figure out a multi-site setup with BaseX and I'm very curious about your structure and config. Are you using containers with the reversed proxy? Especially Podman might be a secure and easy to maintain option (if setup correctly) for a multi-site scenario with multiple BaseX instances. regards, Marc On Fri, 26 Jan 2024, Pierre-Yves Jallud wrote: HĂ€llĂžw Christian, many thanks for your answer! I finaly came to this solution yesterday afternoon and I was answering to my question when you send your answer. I first tried to use an relative directory... until I tried an absolute one and I succeeded to pass the java system property (something like export BASEX_JM="-Dorg.basex.path=/basex/home/path"). To explain the context of our lab, we are using several instances of BaseX in the same machine (LINUX). To facilitate the administration (mainly the BaseX code update), we try to use a single BaseX repository for several sites. Each site has its own environment (data, webapp and .logs) and the basex repository is a symbolic link. We are using an APACHE HTTP server to access each BaseX with virtualhosts and proxypass configurations... And well, it seems to work now đ€©! But if you have recommendations or other suggestions to facilitate system administration for a BaseX cluster, we are completly open =) Furthermore, we are not yet at the intensive production stage. If we encounter other problems, we'll ask for your help đ Many thanks to you and all the BaseX team! You're making a great job! Greetings Pierre-Yves and Maud Le 25/01/2024 Ă 17:02, Christian GrĂŒn a Ă©crit : Salut Pierre-Yves, The home directory can be specified via the Java system property âorg.basex.pathâ. As itâs required before BaseX is even started, it must be passed on to the JDK, e.g. via â-Dorg.basex.path=/path/to/my/basexâ. This string can be⊠⹠statically added to the BASEX_JVM property in your âbasexhttpâ start script, or âą dynamically assigned to JDK_JAVA_OPTIONS on command-line before running âbasexhttpâ (export JDK_JAVA_OPTIONS=...). Hope this helps. If not, just keep on asking ;) Merci et salutations, Christian On Wed, Jan 24, 2024 at 5:09âŻPM Pierre-Yves Jallud wrote: Hi all, I would like to precise the home directory of BaseX using org.basex.path (cf. https://docs.basex.org/wiki/Configuration#Home_Directory). Is it possible to configure this when I launch the basexhttp? For exemple, something like (befor launching basexhttp): export org.basex.path=/path/to/my/basex Or maybe: basexhttp -S org.basex.path=/path/to/my/basex ... or what else? Many thanks in advance to enlighten me đ Pierre-Yves PS: as you can see, I didn't use Java for a long time đ -------- *Pierre-Yves Jallud* /PĂŽle HumanitĂ© NumĂ©riques / IngĂ©nieur en ingĂ©nierie logicielle/ IHRIM - UMR 5317<http://ihrim.ens-lyon.fr> CNRS<https://www.cnrs.fr> ENS de Lyon<http://www.ens-lyon.fr> 15 Parvis RenĂ© Descartes - BP7000 - 69342 Lyon CEDEX 07 +33 (0)4 37 37 63 83 -pierre-yves.jal...@ens-lyon.fr -------- *Pierre-Yves Jallud* /PĂŽle HumanitĂ© NumĂ©riques / IngĂ©nieur en ingĂ©nierie logicielle/ IHRIM - UMR 5317<http://ihrim.ens-lyon.fr> CNRS<https://www.cnrs.fr> ENS de Lyon<http://www.ens-lyon.fr> 15 Parvis RenĂ© Descartes - BP7000 - 69342 Lyon CEDEX 07 +33 (0)4 37 37 63 83 -pierre-yves.jal...@ens-lyon.fr ---- > ---- *Pierre-Yves Jallud* /PĂŽle HumanitĂ© NumĂ©riques / IngĂ©nieur en ingĂ©nierie logicielle/ IHRIM - UMR 5317 <http://ihrim.ens-lyon.fr> CNRS <https://www.cnrs.fr> ENS de Lyon <http://www.ens-lyon.fr> 15 Parvis RenĂ© Descartes - BP7000 - 69342 Lyon CEDEX 07 +33 (0)4 37 37 63 83 - pierre-yves.jal...@ens-lyon.fr
Re: [basex-talk] How to configure org.basex.path
HĂ€llĂžw Christian, many thanks for your answer! I finaly came to this solution yesterday afternoon and I was answering to my question when you send your answer. I first tried to use an relative directory... until I tried an absolute one and I succeeded to pass the java system property (something like export BASEX_JM="-Dorg.basex.path=/basex/home/path"). To explain the context of our lab, we are using several instances of BaseX in the same machine (LINUX). To facilitate the administration (mainly the BaseX code update), we try to use a single BaseX repository for several sites. Each site has its own environment (data, webapp and .logs) and the basex repository is a symbolic link. We are using an APACHE HTTP server to access each BaseX with virtualhosts and proxypass configurations... And well, it seems to work now đ€©! But if you have recommendations or other suggestions to facilitate system administration for a BaseX cluster, we are completly open =) Furthermore, we are not yet at the intensive production stage. If we encounter other problems, we'll ask for your help đ Many thanks to you and all the BaseX team! You're making a great job! Greetings Pierre-Yves and Maud Le 25/01/2024 Ă 17:02, Christian GrĂŒn a Ă©crit : Salut Pierre-Yves, The home directory can be specified via the Java system property âorg.basex.pathâ. As itâs required before BaseX is even started, it must be passed on to the JDK, e.g. via â-Dorg.basex.path=/path/to/my/basexâ. This string can be⊠⹠statically added to the BASEX_JVM property in your âbasexhttpâ start script, or âą dynamically assigned to JDK_JAVA_OPTIONS on command-line before running âbasexhttpâ (export JDK_JAVA_OPTIONS=...). Hope this helps. If not, just keep on asking ;) Merci et salutations, Christian On Wed, Jan 24, 2024 at 5:09âŻPM Pierre-Yves Jallud wrote: Hi all, I would like to precise the home directory of BaseX using org.basex.path (cf. https://docs.basex.org/wiki/Configuration#Home_Directory). Is it possible to configure this when I launch the basexhttp? For exemple, something like (befor launching basexhttp): export org.basex.path=/path/to/my/basex Or maybe: basexhttp -S org.basex.path=/path/to/my/basex ... or what else? Many thanks in advance to enlighten me đ Pierre-Yves PS: as you can see, I didn't use Java for a long time đ -------- *Pierre-Yves Jallud* /PĂŽle HumanitĂ© NumĂ©riques / IngĂ©nieur en ingĂ©nierie logicielle/ IHRIM - UMR 5317 <http://ihrim.ens-lyon.fr> CNRS <https://www.cnrs.fr> ENS de Lyon <http://www.ens-lyon.fr> 15 Parvis RenĂ© Descartes - BP7000 - 69342 Lyon CEDEX 07 +33 (0)4 37 37 63 83 - pierre-yves.jal...@ens-lyon.fr ------------ *Pierre-Yves Jallud* /PĂŽle HumanitĂ© NumĂ©riques / IngĂ©nieur en ingĂ©nierie logicielle/ IHRIM - UMR 5317 <http://ihrim.ens-lyon.fr> CNRS <https://www.cnrs.fr> ENS de Lyon <http://www.ens-lyon.fr> 15 Parvis RenĂ© Descartes - BP7000 - 69342 Lyon CEDEX 07 +33 (0)4 37 37 63 83 - pierre-yves.jal...@ens-lyon.fr
[basex-talk] How to configure org.basex.path
Hi all, I would like to precise the home directory of BaseX using org.basex.path (cf. https://docs.basex.org/wiki/Configuration#Home_Directory). Is it possible to configure this when I launch the basexhttp? For exemple, something like (befor launching basexhttp): export org.basex.path=/path/to/my/basex Or maybe: basexhttp -S org.basex.path=/path/to/my/basex ... or what else? Many thanks in advance to enlighten me đ Pierre-Yves PS: as you can see, I didn't use Java for a long time đ ---- *Pierre-Yves Jallud* /PĂŽle HumanitĂ© NumĂ©riques / IngĂ©nieur en ingĂ©nierie logicielle/ IHRIM - UMR 5317 <http://ihrim.ens-lyon.fr> CNRS <https://www.cnrs.fr> ENS de Lyon <http://www.ens-lyon.fr> 15 Parvis RenĂ© Descartes - BP7000 - 69342 Lyon CEDEX 07 +33 (0)4 37 37 63 83 - pierre-yves.jal...@ens-lyon.fr
Re: [basex-talk] Unexpected error: Improper use? Potential bug?
Hi Christian, I hope your vacancies where beautiful and the return will not be too hard ;-) To answer to your questions, we use actually the 8.2.3 version... I will install the last snapshot version to see if the behavior is the same. For the second question, we have actually a version of BaseX (... I will precise later the version...) that have not the problem and that is not in our IT infrastructure, using a VM, in another research center but not open to the web. I will try to learn more about the whole configuration. I tell you all this ASAP. Greatings Pierre-Yves Le 14/09/2015 15:51, Christian GrĂŒn a Ă©crit : Hi Pierre-Yves, Finally some feedback⊠And only a short one: Did you check out if the problems persist with the latest BaseX 8.3 snapshot [1]? And maybe another question: Did you experience similar problems in a simple setting without load balancer, Apache and HAProxy? Thanks, Christian [1] http://files.basex.org/releases/latest/ On Thu, Aug 27, 2015 at 2:25 PM, Pierre-Yves JALLUD wrote: Hi all, I have some troubles with BaseX request and webdav access. My situation is the following: the acces to BaseX with webdav is with an oXygen (developer version 17) with Ubuntu 14.0.4 and the BaseX server is running under a Scientific Linux 64b (2.6.32-573.3.1.el6.x86_64 ... if the precision is necessary ;)). The BaseX server is behind a web cluster using a load balancer and an APACHE HTTP server. All the access passing thrue this server and the different ports access are managed with HAProxy. If the context is not clear enough, don't hesitate to ask more precisions. The symptom is that the BaseX server is freezing after a webdav request. The log's extracts you can find below track the following use case: - I try an access to http://BaseX.huma-num.fr/webdav/bvm/bvm.xml with oXygen - I recieve a HTTP error 500 - I try to access to the BaseX server with my web site and more than one minute later, I have a timeout. ... but the worst symptom is that in some cases (not always), the requested db get corrupted and emptied (totally or partly) : resources are missing or they throw End of File exceptions when we then try to reopen them. This use case can appear many times a day... but not systematically. And other colleagues have the same problems with other version of oXygen with other OS (Windows), but allways with the same BaseX server. Does anyone of you have an idea to solve my problem? Thanks Pierre-Yves Some extracts of the log file: ... 17:13:06.694X.X.X.X:34953admin REQUEST [GET] http://BaseX.huma-num.fr/webdav/bvm/bvm.xml 17:13:06.845X.X.X.X:34954admin REQUEST [LOCK] http://BaseX.huma-num.fr/webdav/bvm/bvm.xml 17:13:06.888X.X.X.X:34954admin 200 43.82 ms 17:13:08.437X.X.X.X:34953admin 500 Unexpected error: Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 8.2.1 Java: Oracle Corporation, 1.8.0_31 OS: Linux, amd64 Stack Trace: java.lang.RuntimeException: org.eclipse.jetty.io.EofException at org.basex.http.webdav.BXServletResponse.close(BXServletResponse.java:80) at org.basex.http.webdav.WebDAVServlet.run(WebDAVServlet.java:46) at org.basex.http.BaseXServlet.service(BaseXServlet.java:64) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextH... 1743.02 ms ... 17:15:20.041X.X.X.X:38436admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/skepsis/Cicero_De_Finibus.xml 17:15:40.067X.X.X.X:38770admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/skepsis/Cicero_De_Finibus.xml 17:16:00.078X.X.X.X:39090admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/skepsis/ 17:16:00.170X.X.X.X:39091admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/bvm/bvm.xml 17:16:20.194X.X.X.X:39582admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/bvm/bvm.xml 17:17:00.904X.X.X.X:39091admin 200 60733.77 ms 17:17:00.907X.X.X.X:39582admin 200 40712.41 ms 17:17:00.909X.X.X.X:38770admin 200 80842.45 ms 17:17:00.910X.X.X.X:38436admin 200 100868.15 ms 17:17:01.004X.X.X.X:39090admin 200 60926.05 ms 17:19:37.189Y.Y.Y.Y:39926admin ERROR Timeout exceeded. 6.62 ms ... <>
Re: [basex-talk] Unexpected error: Improper use? Potential bug?
Hallo Dirk, thanks a lot about your reply. I have heard that Christian was on vacation... but I forgot it! Sorry! I will of course wait for his return. My problem is not so an high emergency ;-) (sorry Maud). Thank you anyway to confirm that our use for BaseX is not too exotic and maybe it's a WebDav issue. TschĂŒss Pierre-Yves Le 03/09/2015 14:49, Dirk Kirsten a Ă©crit : Bonjour Pierre-Yves, I guess you will have to wait a few more days, as Christian our main architect is on vacation and honestly the only one who has any knowledge about WebDAV. Not to mention, he is also the only way even mildly interested in implementing this and calm enough to do so as WebDAV is terribly diffferent for different clients and we had troubles with this before. So of course you could try to access it without an reverse proxy and so on, but I guess it is some WebDAV issue. Of course, the communit is also more than invident to tackle the issue and send us a pull request. Cordialement, Dirk On 09/03/2015 02:40 PM, Pierre-Yves JALLUD wrote: Hi all, I'm sorry to insist... Does anyone have an idea of the origin of my problem?... Or is my Shakespeare's style worse that I thought? Do you need more details? Thanks in advance for your suggestions. Greatings Pierre-Yves Le 27/08/2015 14:25, Pierre-Yves JALLUD a Ă©crit : Hi all, I have some troubles with BaseX request and webdav access. My situation is the following: the acces to BaseX with webdav is with an oXygen (developer version 17) with Ubuntu 14.0.4 and the BaseX server is running under a Scientific Linux 64b (2.6.32-573.3.1.el6.x86_64 ... if the precision is necessary ;)). The BaseX server is behind a web cluster using a load balancer and an APACHE HTTP server. All the access passing thrue this server and the different ports access are managed with HAProxy. If the context is not clear enough, don't hesitate to ask more precisions. The symptom is that the BaseX server is freezing after a webdav request. The log's extracts you can find below track the following use case: - I try an access to http://BaseX.huma-num.fr/webdav/bvm/bvm.xml with oXygen - I recieve a HTTP error 500 - I try to access to the BaseX server with my web site and more than one minute later, I have a timeout. ... but the worst symptom is that in some cases (not always), the requested db get corrupted and emptied (totally or partly) : resources are missing or they throw End of File exceptions when we then try to reopen them. This use case can appear many times a day... but not systematically. And other colleagues have the same problems with other version of oXygen with other OS (Windows), but allways with the same BaseX server. Does anyone of you have an idea to solve my problem? Thanks Pierre-Yves Some extracts of the log file: ... 17:13:06.694X.X.X.X:34953admin REQUEST [GET] http://BaseX.huma-num.fr/webdav/bvm/bvm.xml 17:13:06.845X.X.X.X:34954admin REQUEST [LOCK] http://BaseX.huma-num.fr/webdav/bvm/bvm.xml 17:13:06.888X.X.X.X:34954admin 200 43.82 ms 17:13:08.437X.X.X.X:34953admin 500 Unexpected error: Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 8.2.1 Java: Oracle Corporation, 1.8.0_31 OS: Linux, amd64 Stack Trace: java.lang.RuntimeException: org.eclipse.jetty.io.EofException at org.basex.http.webdav.BXServletResponse.close(BXServletResponse.java:80) at org.basex.http.webdav.WebDAVServlet.run(WebDAVServlet.java:46) at org.basex.http.BaseXServlet.service(BaseXServlet.java:64) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextH... 1743.02 ms ... 17:15:20.041X.X.X.X:38436admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/skepsis/Cicero_De_Finibus.xml 17:15:40.067X.X.X.X:38770admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/skepsis/Cicero_De_Finibus.xml 17:16:00.078X.X.X.X:39090admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/skepsis/ 17:16:00.170X.X.X.X:39091admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/bvm/bvm.xml 17:16:20.194X.X.X.X:39582admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/bvm/bvm.xml 17:17:00.904X.X.X.X:39091admin 200 60733.77 ms 17:17:00.907X.X.X.X:39582admin 200 40712.41 ms 17:17:00.909X.X.X.X:38770admin 200 80842.45 ms 17:17:00.910X.X.X.X:38436admin 200
Re: [basex-talk] Unexpected error: Improper use? Potential bug?
Hi all, I'm sorry to insist... Does anyone have an idea of the origin of my problem?... Or is my Shakespeare's style worse that I thought? Do you need more details? Thanks in advance for your suggestions. Greatings Pierre-Yves Le 27/08/2015 14:25, Pierre-Yves JALLUD a Ă©crit : Hi all, I have some troubles with BaseX request and webdav access. My situation is the following: the acces to BaseX with webdav is with an oXygen (developer version 17) with Ubuntu 14.0.4 and the BaseX server is running under a Scientific Linux 64b (2.6.32-573.3.1.el6.x86_64 ... if the precision is necessary ;)). The BaseX server is behind a web cluster using a load balancer and an APACHE HTTP server. All the access passing thrue this server and the different ports access are managed with HAProxy. If the context is not clear enough, don't hesitate to ask more precisions. The symptom is that the BaseX server is freezing after a webdav request. The log's extracts you can find below track the following use case: - I try an access to http://BaseX.huma-num.fr/webdav/bvm/bvm.xml with oXygen - I recieve a HTTP error 500 - I try to access to the BaseX server with my web site and more than one minute later, I have a timeout. ... but the worst symptom is that in some cases (not always), the requested db get corrupted and emptied (totally or partly) : resources are missing or they throw End of File exceptions when we then try to reopen them. This use case can appear many times a day... but not systematically. And other colleagues have the same problems with other version of oXygen with other OS (Windows), but allways with the same BaseX server. Does anyone of you have an idea to solve my problem? Thanks Pierre-Yves Some extracts of the log file: ... 17:13:06.694X.X.X.X:34953admin REQUEST [GET] http://BaseX.huma-num.fr/webdav/bvm/bvm.xml 17:13:06.845X.X.X.X:34954admin REQUEST [LOCK] http://BaseX.huma-num.fr/webdav/bvm/bvm.xml 17:13:06.888X.X.X.X:34954admin 200 43.82 ms 17:13:08.437X.X.X.X:34953admin 500 Unexpected error: Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 8.2.1 Java: Oracle Corporation, 1.8.0_31 OS: Linux, amd64 Stack Trace: java.lang.RuntimeException: org.eclipse.jetty.io.EofException at org.basex.http.webdav.BXServletResponse.close(BXServletResponse.java:80) at org.basex.http.webdav.WebDAVServlet.run(WebDAVServlet.java:46) at org.basex.http.BaseXServlet.service(BaseXServlet.java:64) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextH... 1743.02 ms ... 17:15:20.041X.X.X.X:38436admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/skepsis/Cicero_De_Finibus.xml 17:15:40.067X.X.X.X:38770admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/skepsis/Cicero_De_Finibus.xml 17:16:00.078X.X.X.X:39090admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/skepsis/ 17:16:00.170X.X.X.X:39091admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/bvm/bvm.xml 17:16:20.194X.X.X.X:39582admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/bvm/bvm.xml 17:17:00.904X.X.X.X:39091admin 200 60733.77 ms 17:17:00.907X.X.X.X:39582admin 200 40712.41 ms 17:17:00.909X.X.X.X:38770admin 200 80842.45 ms 17:17:00.910X.X.X.X:38436admin 200 100868.15 ms 17:17:01.004X.X.X.X:39090admin 200 60926.05 ms 17:19:37.189Y.Y.Y.Y:39926admin ERROR Timeout exceeded. 6.62 ms ... <>
[basex-talk] Unexpected error: Improper use? Potential bug?
Hi all, I have some troubles with BaseX request and webdav access. My situation is the following: the acces to BaseX with webdav is with an oXygen (developer version 17) with Ubuntu 14.0.4 and the BaseX server is running under a Scientific Linux 64b (2.6.32-573.3.1.el6.x86_64 ... if the precision is necessary ;)). The BaseX server is behind a web cluster using a load balancer and an APACHE HTTP server. All the access passing thrue this server and the different ports access are managed with HAProxy. If the context is not clear enough, don't hesitate to ask more precisions. The symptom is that the BaseX server is freezing after a webdav request. The log's extracts you can find below track the following use case: - I try an access to http://BaseX.huma-num.fr/webdav/bvm/bvm.xml with oXygen - I recieve a HTTP error 500 - I try to access to the BaseX server with my web site and more than one minute later, I have a timeout. ... but the worst symptom is that in some cases (not always), the requested db get corrupted and emptied (totally or partly) : resources are missing or they throw End of File exceptions when we then try to reopen them. This use case can appear many times a day... but not systematically. And other colleagues have the same problems with other version of oXygen with other OS (Windows), but allways with the same BaseX server. Does anyone of you have an idea to solve my problem? Thanks Pierre-Yves Some extracts of the log file: ... 17:13:06.694X.X.X.X:34953admin REQUEST [GET] http://BaseX.huma-num.fr/webdav/bvm/bvm.xml 17:13:06.845X.X.X.X:34954admin REQUEST [LOCK] http://BaseX.huma-num.fr/webdav/bvm/bvm.xml 17:13:06.888X.X.X.X:34954admin 200 43.82 ms 17:13:08.437X.X.X.X:34953admin 500 Unexpected error: Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 8.2.1 Java: Oracle Corporation, 1.8.0_31 OS: Linux, amd64 Stack Trace: java.lang.RuntimeException: org.eclipse.jetty.io.EofException at org.basex.http.webdav.BXServletResponse.close(BXServletResponse.java:80) at org.basex.http.webdav.WebDAVServlet.run(WebDAVServlet.java:46) at org.basex.http.BaseXServlet.service(BaseXServlet.java:64) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextH... 1743.02 ms ... 17:15:20.041X.X.X.X:38436admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/skepsis/Cicero_De_Finibus.xml 17:15:40.067X.X.X.X:38770admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/skepsis/Cicero_De_Finibus.xml 17:16:00.078X.X.X.X:39090admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/skepsis/ 17:16:00.170X.X.X.X:39091admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/bvm/bvm.xml 17:16:20.194X.X.X.X:39582admin REQUEST [PROPFIND] http://BaseX.huma-num.fr/webdav/bvm/bvm.xml 17:17:00.904X.X.X.X:39091admin 200 60733.77 ms 17:17:00.907X.X.X.X:39582admin 200 40712.41 ms 17:17:00.909X.X.X.X:38770admin 200 80842.45 ms 17:17:00.910X.X.X.X:38436admin 200 100868.15 ms 17:17:01.004X.X.X.X:39090admin 200 60926.05 ms 17:19:37.189Y.Y.Y.Y:39926admin ERROR Timeout exceeded. 6.62 ms ... <>