Hi Ali,

I want to add flow entry to my switch for a slice running NOX controller,
and FlowVisor is running too. Can you send me some examples of how to add
flow? Both FlowVisor and NOX are running on the same host(I.e. same
IP), but different port, and the host is running Ubuntu Server LTS 12.04,
and my switch is NetGear GSM7328 with Indigo OF flash loaded.

Cheers,
Humphrey

Ali Al-Shabibi 於 2012年12月11日星期二��道:

> You are loading the config file while flowvisor is running. Unfortunately,
> the internal database does not like this. Luckily, you do not need to do
> this. Once you have run sudo /etc/init.d/flowvisor start, flowvisor is
> running and ready for use. If you want to load a specific config file then
> run fvconfig load config.json when fv is _not_ running, but this is usually
> unnecessary for a fresh fv install.
>
> The error message is relatively cryptic, could you submit a bug report on
> the issue tracker?
>
> --
> Ali Al-Shabibi (sent from handheld)
>
> On 11 déc. 2012, at 06:53, Humphrey Lee <iramani...@gmail.com> wrote:
>
> Ali,
>
> I thought so. I checked the default config.json file, the port is 6633.
> However, when I ran FV, I got a lot of Exceptions as shown below. Any idea?
>
> Thanks,
> Humphrey
>
> hon@ubuntu:/usr/local/share/db/flowvisor/FlowVisorDB$ sudo
> /etc/init.d/flowvisor start
> [sudo] password for hon:
> Starting flowvisor with the configuration stored in DB
> If DB unpopulated, laod config using 'fvconfig load config.json'
> hon@ubuntu:/usr/local/share/db/flowvisor/FlowVisorDB$ sudo fvconfig load
> /etc/flowvisor/config.json
> java.sql.SQLException: Failed to start database
> '/usr/local/share/db/flowvisor/FlowVisorDB' with class loader
> sun.misc.Launcher$AppClassLoader@16f0472, see the next exception for
> details.
>         at
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown
> Source)
>         at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown
> Source)
>         at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
>         at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown
> Source)
>         at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown
> Source)
>         at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown
> Source)
>         at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown
> Source)
>         at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown
> Source)
>         at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
>         at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
>         at java.sql.DriverManager.getConnection(DriverManager.java:620)
>         at java.sql.DriverManager.getConnection(DriverManager.java:200)
>         at
> org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
>         at
> org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
>         at
> org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
>         at
> org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
>         at
> org.flowvisor.config.ConfDBHandler.getConnection(ConfDBHandler.java:70)
>         at
> org.flowvisor.config.FlowvisorImpl.deleteAll(FlowvisorImpl.java:771)
>         at
> org.flowvisor.config.FlowvisorImpl.fromJson(FlowvisorImpl.java:761)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.flowvisor.config.FVConfigProxy.invoke(FVConfigProxy.java:21)
>         at $Proxy0.fromJson(Unknown Source)
>         at org.flowvisor.config.FVConfig.readFromFile(FVConfig.java:105)
>         at org.flowvisor.config.LoadConfig.main(LoadConfig.java:139)
> Caused by: java.sql.SQLException: Failed to start database
> '/usr/local/share/db/flowvisor/FlowVisorDB' with class loader
> sun.misc.Launcher$AppClassLoader@16f0472, see the next exception for
> details.
>         at
> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown
> Source)
>         at
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown
> Source)
>         ... 27 more
> Caused by: java.sql.SQLException: Another instance of Derby may have
> already booted the database /usr/local/share/db/flowvisor/FlowVisorDB.
>         at
> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown
> Source)
>         at
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown
> Source)
>         at
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown
> Source)
>         at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown
> Source)
>         ... 24 more
> Caused by: ERROR XSDB6: Another instance of Derby may have already booted
> the database /usr/local/share/db/flowvisor/FlowVisorDB.
>         at
> org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
>         at
> org.apache.derby.impl.store.raw.data.BaseDataFileFactory.privGetJBMSLockOnDB(Unknown
> Source)
>         at org.apache
>
>
_______________________________________________
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss

Reply via email to