BaseX 8.0 snapshot on OpenShift
Tuesday, 30 December 2014 · 3 messages · last reply 8 Jan 2015
AB
Andy Bunce30 Dec 2014 19:37 #
Hi,
I am having difficulty getting this to work. I had something working with 7.9 (see
https://github.com/Quodatum/openshift-basex-quick-start/tree/releases/0.2 )
Using a recent snapshot. I am running
${OPENSHIFT_DATA_DIR}/basex/bin/basexhttp -n ${OPENSHIFT_DIY_IP} -h
${OPENSHIFT_DIY_PORT} -p ${PORT_DATABASE} -e ${PORT_EVENT} -s ${PORT_STOP}
-U ${BASEX_USER} -P ${BASEX_PASSWORD}The debug o/p is
STOPPORT: 15007
PASSWORD: admin
USER: admin
EVENTPORT: 15006
DEBUG: true
PORT: 15005
SERVERPORT: 15005
HOST: 127.13.28.129
STOPPORT: 15007
PASSWORD: admin
USER: admin
EVENTPORT: 15006
DEBUG: true
PORT: 15005
SERVERPORT: 15005
HOST: 127.13.28.129
WEBPATH:
/var/lib/openshift/549d9d794382ec39b8000105/app-root/data/basex/webapp HTTP Server was started (port: 8080)
java.net.BindException: Permission denied
at java.net.PlainSocketImpl.socketBind(Native Method) at
java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.ServerSocket.bind(ServerSocket.java:376) at java.net.ServerSocket.bind(ServerSocket.java:330) at org.basex.BaseXHTTP$StopServer.<init>(BaseXHTTP.java:403) at org.basex.BaseXHTTP.<init>(BaseXHTTP.java:139)
at org.basex.BaseXHTTP.main(BaseXHTTP.java:50)
Server is running or permission was denied.
https://github.com/BaseXdb/basex/blob/0af4ead914d3d1946e5a8ce9672811a34f9330c2/basex-api/src/main/java/org/basex/BaseXHTTP.java#L403
I wonder if SERVERHOST should be set here? As with SERVER PORT.. https://github.com/BaseXdb/basex/blob/0af4ead914d3d1946e5a8ce9672811a34f9330c2/basex-api/src/main/java/org/basex/BaseXHTTP.java#L287
/AndyCG
Christian Grün6 Jan 2015 11:59 #
Hi Andy,
Quoted text · Andy Bunce · 2 lines
> I wonder if SERVERHOST should be set here? As with SERVER PORT.. > https://github.com/BaseXdb/basex/blob/0af4ead914d3d1946e5a8ce9672811a34f9330c2/basex-api/src/main/java/org/basex/BaseXHTTP.java#L287
I have updated the code as suggested by you. Could you please give it another try? The next snapshot will be available online in appr. 5 minutes.
Thanks,
Christian
AB
Andy Bunce8 Jan 2015 00:19 #
Thats working for me[1]. Thanks
/Andy
[1] http://jan07-apb.rhcloud.com/
Quoted text · Christian Grün · 15 lines
On 6 January 2015 at 10:59, Christian Grün <christian.gruen at gmail.com> wrote: > Hi Andy, > > > I wonder if SERVERHOST should be set here? As with SERVER PORT.. > > > https://github.com/BaseXdb/basex/blob/0af4ead914d3d1946e5a8ce9672811a34f9330c2/basex-api/src/main/java/org/basex/BaseXHTTP.java#L287 > > I have updated the code as suggested by you. Could you please give it > another try? The next snapshot will be available online in appr. 5 > minutes. > > Thanks, > Christian >
Written for BaseX 7.9. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery