Internal Security Error when stopping Stardog node

1 view
Skip to first unread message

Jacobus Geluk

unread,
Nov 16, 2015, 4:28:32 PM11/16/15
to Stardog
After doing a "service stardog stop" (where I added 'set -x' just above the line that actually does the stop) I often get this output:

>service stardog stop

>Stopping stardog

>+ su someuser - -c '/bin/bash /opt/stardog/bin/stardog-admin --server snarl://localhost:5821/ server stop'

>Internal security error.


This then shows up in the log:


ERROR 2015-11-16 16:24:33,189 [StardogServer.WorkerGroup-14] com.complexible.stardog.pack.replication.proxy.Streamer:exceptionCaught(119): exception in streamer

java.lang.IllegalArgumentException: port out of range:-1

at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143) ~[?:1.8.0_51]

at java.net.InetSocketAddress.<init>(InetSocketAddress.java:224) ~[?:1.8.0_51]

at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:97) ~[netty-all-4.0.30.Final.jar:4.0.30.Final]

at com.complexible.stardog.pack.replication.proxy.Streamer.connect(Streamer.java:183) ~[stardog-pack-replication-proxy-4.0-RC3.jar:?]

at com.complexible.stardog.pack.replication.proxy.Streamer.channelRead(Streamer.java:239) ~[stardog-pack-replication-proxy-4.0-RC3.jar:?]

at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:244) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51]

[root@r80an30 ~]# 

Michael Grove

unread,
Nov 17, 2015, 9:25:03 AM11/17/15
to stardog
On Mon, Nov 16, 2015 at 4:28 PM, Jacobus Geluk <jacobu...@gmail.com> wrote:
After doing a "service stardog stop" (where I added 'set -x' just above the line that actually does the stop) I often get this output:

>service stardog stop

>Stopping stardog

>+ su someuser - -c '/bin/bash /opt/stardog/bin/stardog-admin --server snarl://localhost:5821/ server stop'

>Internal security error.


Why are you shutting down the server twice?

What I suspect is happening is because the shutdown is asynchronous, your second shutdown call is failing because the server is in the middle of shutting down and no longer part of the cluster.

Cheers,

Mike
 


This then shows up in the log:


ERROR 2015-11-16 16:24:33,189 [StardogServer.WorkerGroup-14] com.complexible.stardog.pack.replication.proxy.Streamer:exceptionCaught(119): exception in streamer

java.lang.IllegalArgumentException: port out of range:-1

at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143) ~[?:1.8.0_51]

at java.net.InetSocketAddress.<init>(InetSocketAddress.java:224) ~[?:1.8.0_51]

at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:97) ~[netty-all-4.0.30.Final.jar:4.0.30.Final]

at com.complexible.stardog.pack.replication.proxy.Streamer.connect(Streamer.java:183) ~[stardog-pack-replication-proxy-4.0-RC3.jar:?]

at com.complexible.stardog.pack.replication.proxy.Streamer.channelRead(Streamer.java:239) ~[stardog-pack-replication-proxy-4.0-RC3.jar:?]

at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:244) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110) [netty-all-4.0.30.Final.jar:4.0.30.Final]

at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51]

[root@r80an30 ~]# 

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en

Reply all
Reply to author
Forward
0 new messages