Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FL-backend: errors at startup #79

Open
ElisaRojas opened this issue Mar 15, 2016 · 1 comment
Open

FL-backend: errors at startup #79

ElisaRojas opened this issue Mar 15, 2016 · 1 comment

Comments

@ElisaRojas
Copy link
Member

Hi,

This is not a big deal right now, but just in case it matters some time in the future or it is easily solvable. The floodlight backend always shows this error at startup:

2016-03-15 16:02:16.897 ERROR [o.s.s.i.c.DelegatingCCProvider] Failed to initialize provider org.sdnplatform.sync.internal.config.SyncStoreCCProvider
org.sdnplatform.sync.error.PersistException: Could not initialize persistent storage
    at org.sdnplatform.sync.internal.store.JavaDBStorageEngine.<init>(JavaDBStorageEngine.java:106) ~[floodlight.jar:na]
    at org.sdnplatform.sync.internal.StoreRegistry.register(StoreRegistry.java:116) ~[floodlight.jar:na]
    at org.sdnplatform.sync.internal.SyncManager.registerPersistentStore(SyncManager.java:182) [floodlight.jar:na]
    at org.sdnplatform.sync.internal.config.SyncStoreCCProvider.init(SyncStoreCCProvider.java:85) ~[floodlight.jar:na]
    at org.sdnplatform.sync.internal.config.DelegatingCCProvider.init(DelegatingCCProvider.java:37) ~[floodlight.jar:na]
    at org.sdnplatform.sync.internal.SyncManager.init(SyncManager.java:487) [floodlight.jar:na]
    at net.floodlightcontroller.core.module.FloodlightModuleLoader.initModules(FloodlightModuleLoader.java:484) [floodlight.jar:na]
    at net.floodlightcontroller.core.module.FloodlightModuleLoader.loadModulesFromList(FloodlightModuleLoader.java:319) [floodlight.jar:na]
    at net.floodlightcontroller.core.module.FloodlightModuleLoader.loadModulesFromConfig(FloodlightModuleLoader.java:259) [floodlight.jar:na]
    at net.floodlightcontroller.core.Main.main(Main.java:61) [floodlight.jar:na]
Caused by: java.sql.SQLException: Failed to create database 'SyncDB', see the next exception for details.
    at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.jdbc.EmbedPooledConnection.openRealConnection(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.jdbc.EmbedPooledConnection.<init>(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.jdbc.EmbedPooledConnection40.<init>(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.jdbc.Driver40.getNewPooledConnection(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource.createPooledConnection(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource.getPooledConnection(Unknown Source) ~[floodlight.jar:na]
    at org.sdnplatform.sync.internal.store.JavaDBStorageEngine.getConnection(JavaDBStorageEngine.java:368) ~[floodlight.jar:na]
    at org.sdnplatform.sync.internal.store.JavaDBStorageEngine.initTable(JavaDBStorageEngine.java:375) ~[floodlight.jar:na]
    at org.sdnplatform.sync.internal.store.JavaDBStorageEngine.<init>(JavaDBStorageEngine.java:104) ~[floodlight.jar:na]
    ... 9 common frames omitted
Caused by: org.apache.derby.impl.jdbc.EmbedSQLException: Failed to create database 'SyncDB', see the next exception for details.
    at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source) ~[floodlight.jar:na]
    ... 28 common frames omitted
Caused by: org.apache.derby.impl.jdbc.EmbedSQLException: The database directory '/home/netide/NetIDE/floodlight/SyncDB' exists. However, it does not contain the expected 'service.properties' file. Perhaps Derby was brought down in the middle of creating this database. You may want to delete this directory and try creating the database again.
    at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source) ~[floodlight.jar:na]
    ... 25 common frames omitted
Caused by: org.apache.derby.iapi.error.StandardException: The database directory '/home/netide/NetIDE/floodlight/SyncDB' exists. However, it does not contain the expected 'service.properties' file. Perhaps Derby was brought down in the middle of creating this database. You may want to delete this directory and try creating the database again.
    at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.services.monitor.StorageFactoryService.vetService(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.services.monitor.StorageFactoryService.access$900(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.services.monitor.StorageFactoryService$9.run(Unknown Source) ~[floodlight.jar:na]
    at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_72]
    at org.apache.derby.impl.services.monitor.StorageFactoryService.createServiceRoot(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentService(Unknown Source) ~[floodlight.jar:na]
    at org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Unknown Source) ~[floodlight.jar:na]
    ... 25 common frames omitted

This does not affect the behaviour (the backend works correctly).

Additionally, some other errors appear some times and close the channel. But this happens just the first time you run the floodlight backend for a specific running scenario, once you close it and restart it, it never happens again (so it might be related with initiation of the communication):

2016-03-15 17:03:18.629 ERROR [n.f.c.i.OFChannelHandler] Disconnecting switch [00:00:00:00:00:00:00:03(0x0) from 127.0.0.1:55101] due to switch state error: Switch: [[/127.0.0.1:55101 DPID[00:00:00:00:00:00:00:03]]], State: [net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler$WaitConfigReplyState@408ae6e2], received: [STATS_REPLY], details: Switch should never send this message in the current state
2016-03-15 17:03:18.630 DEBUG [n.f.c.i.OFChannelHandler] StackTrace for previous Exception: 
net.floodlightcontroller.core.internal.SwitchStateException: Switch: [[/127.0.0.1:55101 DPID[00:00:00:00:00:00:00:03]]], State: [net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler$WaitConfigReplyState@408ae6e2], received: [STATS_REPLY], details: Switch should never send this message in the current state
    at net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler$OFSwitchHandshakeState.illegalMessageReceived(OFSwitchHandshakeHandler.java:659) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler$WaitConfigReplyState.processOFStatsReply(OFSwitchHandshakeHandler.java:927) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler$OFSwitchHandshakeState.processOFMessage(OFSwitchHandshakeHandler.java:811) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler.processOFMessage(OFSwitchHandshakeHandler.java:1621) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler.messageReceived(OFSwitchHandshakeHandler.java:1785) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.OFConnection.messageReceived(OFConnection.java:380) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFChannelHandler.sendMessageToConnection(OFChannelHandler.java:458) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFChannelHandler.access$600(OFChannelHandler.java:55) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFChannelHandler$OFChannelState.processOFMessage(OFChannelHandler.java:278) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFChannelHandler.messageReceived(OFChannelHandler.java:630) ~[floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88) [floodlight.jar:na]
    at org.jboss.netty.handler.timeout.IdleStateAwareChannelHandler.handleUpstream(IdleStateAwareChannelHandler.java:36) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.messageReceived(SimpleChannelUpstreamHandler.java:124) [floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [floodlight.jar:na]
    at org.jboss.netty.handler.timeout.ReadTimeoutHandler.messageReceived(ReadTimeoutHandler.java:184) [floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [floodlight.jar:na]
    at org.jboss.netty.handler.timeout.IdleStateHandler.messageReceived(IdleStateHandler.java:294) [floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [floodlight.jar:na]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) [floodlight.jar:na]
    at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) [floodlight.jar:na]
    at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) [floodlight.jar:na]
    at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) [floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) [floodlight.jar:na]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) [floodlight.jar:na]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) [floodlight.jar:na]
    at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) [floodlight.jar:na]
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) [floodlight.jar:na]
    at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) [floodlight.jar:na]
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) [floodlight.jar:na]
    at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) [floodlight.jar:na]
    at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [floodlight.jar:na]
    at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [floodlight.jar:na]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_72]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_72]
    at java.lang.Thread.run(Thread.java:745) [na:1.8.0_72]
2016-03-15 17:03:18.672 INFO  [n.f.c.i.OFChannelHandler] [[00:00:00:00:00:00:00:0a(0x0) from 127.0.0.1:55100]] Disconnected connection
2016-03-15 17:03:18.672 INFO  [n.f.c.i.OFChannelHandler] [[00:00:00:00:00:00:00:03(0x0) from 127.0.0.1:55101]] Disconnected connection
2016-03-15 17:03:18.735 ERROR [n.f.c.i.OFChannelHandler] Disconnecting switch [00:00:00:00:00:00:00:01(0x0) from 127.0.0.1:55102] due to switch state error: Switch: [[/127.0.0.1:55102 DPID[00:00:00:00:00:00:00:01]]], State: [net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler$WaitConfigReplyState@544fe122], received: [STATS_REPLY], details: Switch should never send this message in the current state
2016-03-15 17:03:18.736 DEBUG [n.f.c.i.OFChannelHandler] StackTrace for previous Exception: 
net.floodlightcontroller.core.internal.SwitchStateException: Switch: [[/127.0.0.1:55102 DPID[00:00:00:00:00:00:00:01]]], State: [net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler$WaitConfigReplyState@544fe122], received: [STATS_REPLY], details: Switch should never send this message in the current state
    at net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler$OFSwitchHandshakeState.illegalMessageReceived(OFSwitchHandshakeHandler.java:659) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler$WaitConfigReplyState.processOFStatsReply(OFSwitchHandshakeHandler.java:927) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler$OFSwitchHandshakeState.processOFMessage(OFSwitchHandshakeHandler.java:811) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler.processOFMessage(OFSwitchHandshakeHandler.java:1621) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler.messageReceived(OFSwitchHandshakeHandler.java:1785) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.OFConnection.messageReceived(OFConnection.java:380) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFChannelHandler.sendMessageToConnection(OFChannelHandler.java:458) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFChannelHandler.access$600(OFChannelHandler.java:55) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFChannelHandler$OFChannelState.processOFMessage(OFChannelHandler.java:278) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFChannelHandler.messageReceived(OFChannelHandler.java:630) ~[floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88) [floodlight.jar:na]
    at org.jboss.netty.handler.timeout.IdleStateAwareChannelHandler.handleUpstream(IdleStateAwareChannelHandler.java:36) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.messageReceived(SimpleChannelUpstreamHandler.java:124) [floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [floodlight.jar:na]
    at org.jboss.netty.handler.timeout.ReadTimeoutHandler.messageReceived(ReadTimeoutHandler.java:184) [floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [floodlight.jar:na]
    at org.jboss.netty.handler.timeout.IdleStateHandler.messageReceived(IdleStateHandler.java:294) [floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [floodlight.jar:na]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) [floodlight.jar:na]
    at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) [floodlight.jar:na]
    at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) [floodlight.jar:na]
    at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) [floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) [floodlight.jar:na]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) [floodlight.jar:na]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) [floodlight.jar:na]
    at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) [floodlight.jar:na]
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) [floodlight.jar:na]
    at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) [floodlight.jar:na]
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) [floodlight.jar:na]
    at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) [floodlight.jar:na]
    at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [floodlight.jar:na]
    at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [floodlight.jar:na]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_72]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_72]
    at java.lang.Thread.run(Thread.java:745) [na:1.8.0_72]
2016-03-15 17:03:18.736 INFO  [n.f.c.i.OFChannelHandler] [[00:00:00:00:00:00:00:01(0x0) from 127.0.0.1:55102]] Disconnected connection
2016-03-15 17:03:18.805 ERROR [n.f.c.i.OFChannelHandler] Disconnecting switch [00:00:00:00:00:00:00:02(0x0) from 127.0.0.1:55103] due to switch state error: Switch: [[/127.0.0.1:55103 DPID[00:00:00:00:00:00:00:02]]], State: [net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler$WaitConfigReplyState@276bddb0], received: [STATS_REPLY], details: Switch should never send this message in the current state
2016-03-15 17:03:18.805 DEBUG [n.f.c.i.OFChannelHandler] StackTrace for previous Exception: 
net.floodlightcontroller.core.internal.SwitchStateException: Switch: [[/127.0.0.1:55103 DPID[00:00:00:00:00:00:00:02]]], State: [net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler$WaitConfigReplyState@276bddb0], received: [STATS_REPLY], details: Switch should never send this message in the current state
    at net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler$OFSwitchHandshakeState.illegalMessageReceived(OFSwitchHandshakeHandler.java:659) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler$WaitConfigReplyState.processOFStatsReply(OFSwitchHandshakeHandler.java:927) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler$OFSwitchHandshakeState.processOFMessage(OFSwitchHandshakeHandler.java:811) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler.processOFMessage(OFSwitchHandshakeHandler.java:1621) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler.messageReceived(OFSwitchHandshakeHandler.java:1785) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.OFConnection.messageReceived(OFConnection.java:380) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFChannelHandler.sendMessageToConnection(OFChannelHandler.java:458) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFChannelHandler.access$600(OFChannelHandler.java:55) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFChannelHandler$OFChannelState.processOFMessage(OFChannelHandler.java:278) ~[floodlight.jar:na]
    at net.floodlightcontroller.core.internal.OFChannelHandler.messageReceived(OFChannelHandler.java:630) ~[floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88) [floodlight.jar:na]
    at org.jboss.netty.handler.timeout.IdleStateAwareChannelHandler.handleUpstream(IdleStateAwareChannelHandler.java:36) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.messageReceived(SimpleChannelUpstreamHandler.java:124) [floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [floodlight.jar:na]
    at org.jboss.netty.handler.timeout.ReadTimeoutHandler.messageReceived(ReadTimeoutHandler.java:184) [floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [floodlight.jar:na]
    at org.jboss.netty.handler.timeout.IdleStateHandler.messageReceived(IdleStateHandler.java:294) [floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [floodlight.jar:na]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) [floodlight.jar:na]
    at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) [floodlight.jar:na]
    at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) [floodlight.jar:na]
    at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) [floodlight.jar:na]
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [floodlight.jar:na]
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) [floodlight.jar:na]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) [floodlight.jar:na]
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) [floodlight.jar:na]
    at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) [floodlight.jar:na]
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) [floodlight.jar:na]
    at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) [floodlight.jar:na]
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) [floodlight.jar:na]
    at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) [floodlight.jar:na]
    at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [floodlight.jar:na]
    at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [floodlight.jar:na]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_72]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_72]
    at java.lang.Thread.run(Thread.java:745) [na:1.8.0_72]
2016-03-15 17:03:18.806 INFO  [n.f.c.i.OFChannelHandler] [[00:00:00:00:00:00:00:02(0x0) from 127.0.0.1:55103]] Disconnected connection
EXCEPTION, please implement net.floodlightcontroller.interceptor.SwitchChannelHandler.exceptionCaught() for proper handling.

java.nio.channels.ClosedChannelException
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:433)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromUserCode(AbstractNioWorker.java:128)
    at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.eventSunk(NioClientSocketPipelineSink.java:84)
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:779)
    at org.jboss.netty.channel.SimpleChannelHandler.writeRequested(SimpleChannelHandler.java:292)
    at org.jboss.netty.channel.SimpleChannelHandler.handleDownstream(SimpleChannelHandler.java:254)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582)
    at org.jboss.netty.channel.Channels.write(Channels.java:704)
    at org.jboss.netty.channel.Channels.write(Channels.java:671)
    at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:348)
    at net.floodlightcontroller.interceptor.Relay.sendToController(Relay.java:45)
    at net.floodlightcontroller.interceptor.NetIdeModule.onOpenFlowCoreMessage(NetIdeModule.java:311)
    at net.floodlightcontroller.interceptor.ZeroMQBaseConnector.run(ZeroMQBaseConnector.java:118)
    at java.lang.Thread.run(Thread.java:745)
EXCEPTION, please implement net.floodlightcontroller.interceptor.SwitchChannelHandler.exceptionCaught() for proper handling.

java.nio.channels.ClosedChannelException
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:433)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromUserCode(AbstractNioWorker.java:128)
    at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.eventSunk(NioClientSocketPipelineSink.java:84)
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:779)
    at org.jboss.netty.channel.SimpleChannelHandler.writeRequested(SimpleChannelHandler.java:292)
    at org.jboss.netty.channel.SimpleChannelHandler.handleDownstream(SimpleChannelHandler.java:254)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582)
    at org.jboss.netty.channel.Channels.write(Channels.java:704)
    at org.jboss.netty.channel.Channels.write(Channels.java:671)
    at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:348)
    at net.floodlightcontroller.interceptor.Relay.sendToController(Relay.java:45)
    at net.floodlightcontroller.interceptor.NetIdeModule.onOpenFlowCoreMessage(NetIdeModule.java:311)
    at net.floodlightcontroller.interceptor.ZeroMQBaseConnector.run(ZeroMQBaseConnector.java:118)
    at java.lang.Thread.run(Thread.java:745)
EXCEPTION, please implement net.floodlightcontroller.interceptor.SwitchChannelHandler.exceptionCaught() for proper handling.

java.nio.channels.ClosedChannelException
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:433)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromUserCode(AbstractNioWorker.java:128)
    at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.eventSunk(NioClientSocketPipelineSink.java:84)
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:779)
    at org.jboss.netty.channel.SimpleChannelHandler.writeRequested(SimpleChannelHandler.java:292)
    at org.jboss.netty.channel.SimpleChannelHandler.handleDownstream(SimpleChannelHandler.java:254)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582)
    at org.jboss.netty.channel.Channels.write(Channels.java:704)
    at org.jboss.netty.channel.Channels.write(Channels.java:671)
    at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:348)
    at net.floodlightcontroller.interceptor.Relay.sendToController(Relay.java:45)
    at net.floodlightcontroller.interceptor.NetIdeModule.onOpenFlowCoreMessage(NetIdeModule.java:311)
    at net.floodlightcontroller.interceptor.ZeroMQBaseConnector.run(ZeroMQBaseConnector.java:118)
    at java.lang.Thread.run(Thread.java:745)
EXCEPTION, please implement net.floodlightcontroller.interceptor.SwitchChannelHandler.exceptionCaught() for proper handling.

java.nio.channels.ClosedChannelException
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:433)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromUserCode(AbstractNioWorker.java:128)
    at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.eventSunk(NioClientSocketPipelineSink.java:84)
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:779)
    at org.jboss.netty.channel.SimpleChannelHandler.writeRequested(SimpleChannelHandler.java:292)
    at org.jboss.netty.channel.SimpleChannelHandler.handleDownstream(SimpleChannelHandler.java:254)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582)
    at org.jboss.netty.channel.Channels.write(Channels.java:704)
    at org.jboss.netty.channel.Channels.write(Channels.java:671)
    at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:348)
    at net.floodlightcontroller.interceptor.Relay.sendToController(Relay.java:45)
    at net.floodlightcontroller.interceptor.NetIdeModule.onOpenFlowCoreMessage(NetIdeModule.java:311)
    at net.floodlightcontroller.interceptor.ZeroMQBaseConnector.run(ZeroMQBaseConnector.java:118)
    at java.lang.Thread.run(Thread.java:745)
2016-03-15 17:03:19.877 DEBUG [n.f.c.i.OFChannelHandler] channelIdle on OFChannelHandler 1794a963
2016-03-15 17:03:19.877 DEBUG [n.f.c.i.OFChannelHandler] channelIdle on OFChannelHandler 1278d5cf
2016-03-15 17:03:19.910 DEBUG [n.f.c.i.OFChannelHandler] channelIdle on OFChannelHandler 60dcc585
2016-03-15 17:03:19.976 DEBUG [n.f.c.i.OFChannelHandler] channelIdle on OFChannelHandler 7b6f2203
EXCEPTION, please implement net.floodlightcontroller.interceptor.SwitchChannelHandler.exceptionCaught() for proper handling.

...........................
......................
...............

Anyway, there is no rush :) But I just wanted to point it out, as I said before, just in case it is easily solvable :)

@KevinPhemius
Copy link
Contributor

Hello,

for the first error, I think it's because FL tries to create some files on disk (for the SyncDB) and it cannot (wrong permission?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants