Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Kura for Virtual Machine
Kura for Virtual Machine [message #1758155] Fri, 24 March 2017 02:13 Go to next message
iqbal elfaita is currently offline iqbal elfaitaFriend
Messages: 26
Registered: March 2017
Junior Member
Hello Everyone,

I'm just starting my experiment about eclipse kura. I installed the newest version of kura, kura 2.1.0 (raspberry stable package), on xubuntu 14.04. but i got error access

HTTP ERROR: 404

Problem accessing /kura. Reason:

ProxyServlet: /kura
Powered by Jetty://


Can someone help me to solve this problem ? i read some blog wrote that the problem because the web UI is not installed and recommended to install the web UI package of kura, but the newest version (1.4 or later) are included web UI already. So what was make this problem happen ?

Thanks.
Re: Kura for Virtual Machine [message #1758216 is a reply to message #1758155] Fri, 24 March 2017 18:19 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi,
could you post the kura.log and kura-console.log files in /var/log?

That would help.

Thanks,
Matteo
Re: Kura for Virtual Machine [message #1758255 is a reply to message #1758216] Sun, 26 March 2017 02:15 Go to previous messageGo to next message
iqbal elfaita is currently offline iqbal elfaitaFriend
Messages: 26
Registered: March 2017
Junior Member
Thanks for replying Matteo, here is the kura.log

2017-03-24 08:30:23,271 [Start Level Event Dispatcher] INFO o.a.c.i.o.Activator - Camel activator starting
2017-03-24 08:30:23,393 [Start Level Event Dispatcher] INFO o.a.c.i.o.Activator - Camel activator started
2017-03-24 08:30:26,035 [Component Resolve Thread (Bundle 7)] INFO o.e.k.l.b.BluetoothServiceImpl - Activating Bluetooth Service...
2017-03-24 08:30:27,420 [Start Level Event Dispatcher] INFO o.e.j.s.Server - jetty-8.1.3.v20120522
2017-03-24 08:30:28,279 [Start Level Event Dispatcher] INFO o.e.j.s.AbstractConnector - Started SelectChannelConnector@0.0.0.0:80
2017-03-24 08:39:23,016 [System Bundle Shutdown] INFO o.e.j.s.h.ContextHandler - stopped o.e.j.s.ServletContextHandler{/,null}
2017-03-24 08:39:23,203 [System Bundle Shutdown] INFO o.a.c.i.o.Activator - Camel activator stopping
2017-03-24 08:39:23,211 [System Bundle Shutdown] INFO o.a.c.i.o.Activator - Camel activator stopped
2017-03-24 08:40:24,020 [Start Level Event Dispatcher] INFO o.a.c.i.o.Activator - Camel activator starting
2017-03-24 08:40:24,061 [Start Level Event Dispatcher] INFO o.a.c.i.o.Activator - Camel activator started
2017-03-24 08:40:25,336 [Component Resolve Thread (Bundle 7)] INFO o.e.k.l.b.BluetoothServiceImpl - Activating Bluetooth Service...
2017-03-24 08:40:26,119 [Start Level Event Dispatcher] INFO o.e.j.s.Server - jetty-8.1.3.v20120522
2017-03-24 08:40:26,493 [Start Level Event Dispatcher] INFO o.e.j.s.AbstractConnector - Started SelectChannelConnector@0.0.0.0:80
2017-03-26 08:54:16,293 [Start Level Event Dispatcher] INFO o.a.c.i.o.Activator - Camel activator starting
2017-03-26 08:54:16,348 [Start Level Event Dispatcher] INFO o.a.c.i.o.Activator - Camel activator started
2017-03-26 08:54:17,394 [Component Resolve Thread (Bundle 7)] INFO o.e.k.l.b.BluetoothServiceImpl - Activating Bluetooth Service...
2017-03-26 08:54:17,919 [Start Level Event Dispatcher] INFO o.e.j.s.Server - jetty-8.1.3.v20120522
2017-03-26 08:54:18,320 [Start Level Event Dispatcher] INFO o.e.j.s.AbstractConnector - Started SelectChannelConnector@0.0.0.0:80


And the kura-console.log is in the file i attached in this post.
Hope you can help. Thanks. Very Happy
  • Attachment: kura-console.log
    (Size: 2.02MB, Downloaded 78 times)
  • Attachment: kura.log
    (Size: 2.02KB, Downloaded 56 times)
Re: Kura for Virtual Machine [message #1758445 is a reply to message #1758255] Tue, 28 March 2017 18:26 Go to previous messageGo to next message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hello,

The errors are in kura-console.log. Kura requires a udev native library to start, which is failing to load properly. Is running Xubuntu a requirement? We only validate Kura against Raspbian (and soon Fedora) for the Raspberry Pi. Can you use one of these operating systems instead?

Thanks,
--Dave
Re: Kura for Virtual Machine [message #1758470 is a reply to message #1758445] Wed, 29 March 2017 02:35 Go to previous messageGo to next message
iqbal elfaita is currently offline iqbal elfaitaFriend
Messages: 26
Registered: March 2017
Junior Member
Hello Dave, Thanks for your replying,

I used xubuntu (ubuntu based OS) because in my experiment i dont use the physical device like raspberry or beaglebone. So I can't use Raspbian because it's not compatible to be installed in virtual machine. and i need help for implementing kura framework but in virtual machine. But if fedora really can be used to implement kura framework or maybe other way to simulating kura framework, i'll try to use it for my experiment. i read some people were using the kura emulator bundle to try and implementing kura framework and i still caonfused and dont know how to start to use kura emulator. because i am not find yet the tutorial for starting with kura emulator.

Thank you,
Re: Kura for Virtual Machine [message #1758514 is a reply to message #1758470] Wed, 29 March 2017 13:44 Go to previous messageGo to next message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hello,

If you want to try and use Xubuntu, it is likely just an issue in finding libudev. You can verify the library is on your system with:

find /. -iname "*libudev*"


There have been some issues around this that you can review here [1].

You can also have a look at this [2], which is a Kura emulator based on Docker.

[1] https://github.com/eclipse/kura/issues?utf8=%E2%9C%93&q=libudev
[2] https://github.com/ctron/kura-emulator

Thanks,
--Dave

[Updated on: Wed, 29 March 2017 14:04]

Report message to a moderator

Re: Kura for Virtual Machine [message #1758548 is a reply to message #1758514] Thu, 30 March 2017 04:07 Go to previous messageGo to next message
iqbal elfaita is currently offline iqbal elfaitaFriend
Messages: 26
Registered: March 2017
Junior Member
Thanks Dave for your replying and your help, I'll try and look for that docs.

Thank You.
Re: Kura for Virtual Machine [message #1758549 is a reply to message #1758548] Thu, 30 March 2017 05:10 Go to previous messageGo to next message
iqbal elfaita is currently offline iqbal elfaitaFriend
Messages: 26
Registered: March 2017
Junior Member
Hello Dave, I checked the existing of libudev on my system and I found this :

ubuntu1404@ubuntu1404-VirtualBox:~$ sudo find /. -iname "*libudev*"
[sudo] password for ubuntu1404:
/./lib/x86_64-linux-gnu/libudev.so.1.3.5
/./lib/x86_64-linux-gnu/libudev.so.1
/./var/lib/dpkg/info/libudev1:amd64.list
/./var/lib/dpkg/info/libudev1:amd64.md5sums
/./var/lib/dpkg/info/libudev1:amd64.postinst
/./var/lib/dpkg/info/libudev1:amd64.symbols
/./var/lib/dpkg/info/libudev1:amd64.shlibs
/./var/lib/dpkg/info/libudev1:amd64.postrm
/./usr/share/doc/libudev1

is this mean that the problem was not from libudev ??
Thank You
Re: Kura for Virtual Machine [message #1758615 is a reply to message #1758549] Thu, 30 March 2017 15:18 Go to previous message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hello,

The problem is that Kura doesn't really recognize the environment it is running in. The org.eclipse.kura.linux.usb bundle, that is needed for Kura to start, loads the udev native library based on this manifest [1]. For the Raspberry Pi, it should be selecting one of the ARM based libraries. Instead, as seen in the kura-console.log, it is trying to use an x86 library:

java.lang.UnsatisfiedLinkError: /tmp/.kura/configuration/org.eclipse.osgi/bundles/62/1/.cp/lib/linux/x86_64/libEurotechLinuxUdev.so: libudev.so.0: cannot open shared object file: No such file or directory

Obviously this native library is not compatible with the libudev on your system. The only real way to correct this problem would be to build Kura with support for XUbuntu. I think if you are okay switching to Fedora, that would be the easiest path to success. The early release version of Kura for Fedora can be found here [2] with instructions on installing here [3].

[1] https://github.com/eclipse/kura/blob/KURA_2.1.0_RELEASE/kura/org.eclipse.kura.linux.usb/META-INF/MANIFEST.MF
[2] http://download.eclipse.org/kura/milestones/3.0.0/M1/?d
[3] https://github.com/eclipse/kura/tree/develop/kura/distrib/src/main/resources/fedora25

Thanks,
--Dave
Previous Topic:GUI swing on OSGI bundle in KURA
Next Topic:TI sensortag CC2650 kura example issue
Goto Forum:
  


Current Time: Thu Mar 28 16:04:23 GMT 2024

Powered by FUDForum. Page generated in 0.02146 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top