Ports Not displayed and drone crashes.

319 views
Skip to first unread message

vin...@interfacemasters.com

unread,
Jan 5, 2016, 9:59:40 AM1/5/16
to ostinato

Hi All,
I recently installed ostinato 0.7 on my Ubuntu 15.10.
When i start the ostinato with "sudo ostinato" command its just starts the GUI and does not show the ports.
The reason i found out was the "drone" was not running when i did "sudo ostinato", which shld start both the client and server.
I manually started the drone using
case 1. "drone" command - result attached in text1.txt and does not crash or neither does show ports.
case 2. "sudo drone" -result attached in text2.txt and the drone crashes.

Even after the successful start of drone as in case 1 , I do not see any ports other than port as attached in screen shot.

I have tried to google this problem and i did not see any solution that could fix my problem.
Can i please get an help on this?







text1.txt
text2.txt
ostinato.png

Srivats P

unread,
Jan 6, 2016, 9:33:37 AM1/6/16
to vin...@interfacemasters.com, ostinato
Case 1 - You don't see any ports because you need 'root' or sudo permission
Case 2 - Based on the logs, I'm not sure where it is crashing. If you
can build from source, build and run from gdb and let me know where it
crashes. I suspect it could be
https://groups.google.com/d/topic/ostinato/TWZ7nmTbPLk/discussion.

Srivats
> --
> Get Ostinato News and Updates on Twitter - Follow @ostinato
> (http://twitter.com/ostinato)
> ---
> You received this message because you are subscribed to the Google Groups
> "ostinato" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ostinato+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
http://ostinato.org/
@ostinato

vin...@interfacemasters.com

unread,
Jan 7, 2016, 5:18:25 AM1/7/16
to ostinato, vin...@interfacemasters.com
Hi srivats,
I have tried to compile ostinato from source. I hope i have successfully installed the pre requisites before installing ostinato.
However when i try to execute the "make install" on ostinato. I have the following error.



g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DHAVE_REMOTE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -o rpcconn.o rpcconn.cpp
rpcconn.cpp: In member function ‘void RpcConnection::on_clientSock_dataAvail()’:
rpcconn.cpp:380:9: error: ‘NewCallback’ is not a member of ‘google::protobuf’
         google::protobuf::NewCallback(this, &RpcConnection::sendRpcReply,
         ^
rpcconn.cpp:380:9: note: suggested alternative:
In file included from /usr/local/include/google/protobuf/stubs/common.h:48:0,
                 from /usr/local/include/google/protobuf/stubs/atomicops.h:59,
                 from /usr/local/include/google/protobuf/stubs/atomic_sequence_num.h:33,
                 from /usr/local/include/google/protobuf/arena.h:52,
                 from /usr/local/include/google/protobuf/message.h:118,
                 from sharedprotobufmessage.h:23,
                 from rpcconn.h:23,
                 from rpcconn.cpp:20:
/usr/local/include/google/protobuf/stubs/callback.h:508:32: note:   ‘google::protobuf::internal::NewCallback’
 inline ResultCallback1<R, A1>* NewCallback(R (*function)(P1, A1), P1 p1) {
                                ^
Makefile.pbrpc:246: recipe for target 'rpcconn.o' failed
make[1]: *** [rpcconn.o] Error 1
make[1]: Leaving directory '/home/vinoth/ostinato/rpc'
Makefile:137: recipe for target 'sub-rpc-pbrpc-pro-make_default' failed
make: *** [sub-rpc-pbrpc-pro-make_default] Error 2



I suspect that protobuf is throwing error. I do have protoc installed.

vinoth:~/protobuf$ protoc --version
libprotoc 2.6.1



Can you help me to proceed further.

 
Ty
vinoth

Srivats P

unread,
Jan 7, 2016, 8:15:10 AM1/7/16
to vin...@interfacemasters.com, ostinato
What version of libprotobuf-dev did you install?

Did you use apt-get to install it or did you compile protobuf from source?

Srivats

Vinoth Jagannathan

unread,
Jan 8, 2016, 12:57:22 AM1/8/16
to Srivats P, ostinato
I compiled protobuf from source using the instructions given in Link.
--
Regards
VJ

Srivats P

unread,
Jan 8, 2016, 8:07:31 AM1/8/16
to Vinoth Jagannathan, ostinato
What is the topmost version in CHANGES.txt in your workspace? I
suspect it is 3.x - please verify and let me know.

To solve the problem for now, do this -
1. Run a 'sudo make uninstall' in your protobuf workspace to remove
what was installed earlier
2. Run 'sudo apt-get install libprotobuf-dev' to install the package
3. If protoc is not available, run 'sudo apt-get install protobuf-compiler'

Let me know if that works.

Srivats
--
http://ostinato.org/
@ostinato

Vinoth Jagannathan

unread,
Jan 8, 2016, 8:24:10 AM1/8/16
to Srivats P, ostinato
Yes the version was 3.0.0. I undid the source compilation and did the sudo installations.

My protoc version is libprotoc 2.6.1.

Now i have this following failure .

make[1]: Entering directory '/home/vinoth/ostinato/common'
make[1]: Nothing to be done for 'first'.
make[1]: Leaving directory '/home/vinoth/ostinato/common'
cd rpc/ && make -f Makefile.pbrpc
make[1]: Entering directory '/home/vinoth/ostinato/rpc'

g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DHAVE_REMOTE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -o rpcconn.o rpcconn.cpp
g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DHAVE_REMOTE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -o pbrpcchannel.o pbrpcchannel.cpp
/usr/lib/x86_64-linux-gnu/qt4/bin/moc -DHAVE_REMOTE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. rpcserver.h -o moc_rpcserver.cpp
g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DHAVE_REMOTE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -o moc_rpcserver.o moc_rpcserver.cpp
/usr/lib/x86_64-linux-gnu/qt4/bin/moc -DHAVE_REMOTE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. rpcconn.h -o moc_rpcconn.cpp
g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DHAVE_REMOTE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -o moc_rpcconn.o moc_rpcconn.cpp
/usr/lib/x86_64-linux-gnu/qt4/bin/moc -DHAVE_REMOTE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. pbrpcchannel.h -o moc_pbrpcchannel.cpp
g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DHAVE_REMOTE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -o moc_pbrpcchannel.o moc_pbrpcchannel.cpp
rm -f libpbrpc.a
ar cqs libpbrpc.a rpcserver.o rpcconn.o pbrpcchannel.o moc_rpcserver.o moc_rpcconn.o moc_pbrpcchannel.o

make[1]: Leaving directory '/home/vinoth/ostinato/rpc'
cd client/ && make -f Makefile.ostinato
make[1]: Entering directory '/home/vinoth/ostinato/client'
g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript -I/usr/include/qt4 -I../rpc -I../common -I. -I. -o portgroup.o portgroup.cpp
In file included from stream.h:27:0,
                 from port.h:28,
                 from portgroup.h:23,
                 from portgroup.cpp:20:
../common/protocol.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
 #error This file was generated by a newer version of protoc which is
  ^
../common/protocol.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
 #error incompatible with your Protocol Buffer headers.  Please update
  ^
../common/protocol.pb.h:14:2: error: #error your headers.
 #error your headers.
  ^
../common/protocol.pb.h:22:35: fatal error: google/protobuf/arena.h: No such file or directory
compilation terminated.
Makefile.ostinato:536: recipe for target 'portgroup.o' failed
make[1]: *** [portgroup.o] Error 1
make[1]: Leaving directory '/home/vinoth/ostinato/client'
Makefile:48: recipe for target 'client-make_default' failed
make: *** [client-make_default] Error 2

--
Regards
VJ

Srivats P

unread,
Jan 8, 2016, 8:27:49 AM1/8/16
to Vinoth Jagannathan, ostinato
Do a "make distclean" followed by "qmake" and "make" and see if the
problem goes away.

btw did you install protobuf-compiler using apt-get?

Srivats
--
http://ostinato.org/
@ostinato

Srivats P

unread,
Jan 9, 2016, 4:47:18 AM1/9/16
to Vinoth Jagannathan, ostinato
Vinoth,

Any update on this?

Srivats
--
http://ostinato.org/
@ostinato

vin...@interfacemasters.com

unread,
Jan 12, 2016, 2:21:51 AM1/12/16
to ostinato, vin...@interfacemasters.com

Srivats,

Apologies for late reply.
Yes i installed protobuf-compiler via apt-get.
I was able to install ostinato and drone. Both files are available in  /usr/local/bin.
When i do a sudo ostinato i still don't see drone running and i face the same problem which i initially stated in the post.

Thanks
VJ

Srivats P

unread,
Jan 13, 2016, 9:46:55 AM1/13/16
to Vinoth Jagannathan, ostinato
Vinoth,

Can you apply the below patch, build from source and let me know if it
fixes the problem -

diff --git a/server/linuxport.cpp b/server/linuxport.cpp
index 55468ef..ba6369e 100644
--- a/server/linuxport.cpp
+++ b/server/linuxport.cpp
@@ -81,6 +81,8 @@ LinuxPort::~LinuxPort()
{
qDebug("In %s", __FUNCTION__);

+ allPorts_.removeAll(this);
+
if (monitor_->isRunning())
{
monitor_->stop();


Srivats

Vinoth Jagannathan

unread,
Jan 14, 2016, 1:05:01 AM1/14/16
to Srivats P, ostinato
Thanks Srivats...
That worked !!
--
Regards
VJ

Vinoth Jagannathan

unread,
Jan 14, 2016, 1:08:34 AM1/14/16
to Srivats P, ostinato
One more question. can you please explain what was the issue and how did the patch fix this.
--
Regards
VJ

Srivats P

unread,
Jan 14, 2016, 9:55:05 AM1/14/16
to Vinoth Jagannathan, ostinato
Vinoth,

Thanks for reporting the problem and confirming that the fix works.

Here's the explanation -
https://github.com/pstavirs/ostinato/commit/4f6195b8ba23ba2ed4787e364598da567b0fd6da

Srivats

On Thu, Jan 14, 2016 at 11:38 AM, Vinoth Jagannathan
--
http://ostinato.org/
@ostinato
Reply all
Reply to author
Forward
0 new messages