Re: [basex-talk] Test if basexserver is running?

2019-08-30 Thread Michael Seiferle
Hi Ben, 

I maybe don’t fully get your question right (and I admin I do not know much 
about R), but I’d simply open the socket on the port I expect BaseX to be 
listening on and see whether or not I receive a `BaseX:123456789` response and 
close the connection immediately after.

Best
Michael 

> Am 29.08.2019 um 15:03 schrieb Ben Engbers :
> 
> Hi,
> 
> Last year I have written a R-client for basex
> (https://github.com/BaseXdb/basex/tree/master/basex-api/src/main/r/RbaseXClient.R
>  
> ).
> The present version uses no exception handling and you have to include
> the source-file in your R-code. A much cleaner solution would be catch
> all the errors and to pack the sources in a package. At this moment, I
> am working on such a R-package.
> 
> The first test that should be executed in the package, is to test if a
> basexserver is available.
> 
> How can I test on Linux, Apple and Windows if a baseserver is running?
> 
> Ben



Re: [basex-talk] BaseX Docker logs

2019-08-30 Thread Michael Seiferle
Hi Marie, 

I think the log files should be located inside your container at:
> /srv/basex/data/.logs # for current basex versions

Or for your version:

> /srv/BaseXData/.logs # for BaseX 8.6.4 

Maybe you can check your output for:
>  docker run basex/basexhttp:8.6.4
> a6e…
=> 
>  docker exec -ti a6e ls -la /srv/BaseXData/.logs
> total 12
> drwxr-xr-x 2 basex basex 4096 Aug 30 07:38 .
> drwxr-xr-x 3 basex root  4096 Aug 30 07:38 ..
> -rw-r--r-- 1 basex basex  129 Aug 30 07:38 2019-08-30.log


Hope this helps — sorry to hear your container exits unexpectedly!

Best
Michael
> Am 27.08.2019 um 15:16 schrieb Marie Starck :
> 
> Hello,
> 
> I am currently running a BaseX server with Docker and for the past week, it 
> has exited twice with this message: /usr/local/bin/basexhttp: line 20:25 
> Killed  java -cp "$CP" $BASEX_JVM org.basex.BaseXHTTP "$@"
> 
> I want to debug more but I haven't been able to find the basex .logs in my 
> docker container. I am using basexhttp:8.6.4.
> 
> Any ideas where it could be?
> 
> Thank you very much,
> 
> Marie