Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » firewall warning
firewall warning [message #1807095] Wed, 22 May 2019 13:51 Go to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hello,

In firewall tab wiring is coming GwtNetworkService_Proxy: 500 Server Error The call failed on the server; see server log for details,

can you help me

[Updated on: Wed, 22 May 2019 13:54]

Report message to a moderator

Re: firewall warning [message #1807097 is a reply to message #1807095] Wed, 22 May 2019 13:54 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 please detail better your issue and how to recreate it?

Best regards,
Matteo
Re: firewall warning [message #1807116 is a reply to message #1807097] Thu, 23 May 2019 05:44 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hi Matteo,

Thanks for reply,

I install kura in my device armv7hf, after installation i go to Ui part with Ethernet. whenever i click on firewall tab it's showing Warning that ( GwtNetworkService_Proxy: 500 Server Error The call failed on the server; see server log for details) and kura is monitoring the Ip of device it seems in which file i should go to fixed it. first kura is runing on Ethernet ip then i switch to wifi then it's restarted it. i am not getting the ip of wifi in my console.

Thanks regards,
Abhishek
  • Attachment: firewall.png
    (Size: 161.84KB, Downloaded 184 times)
Re: firewall warning [message #1807120 is a reply to message #1807116] Thu, 23 May 2019 07:30 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi,
I believe that you installation target is not compatible with the commands used by Kura to manage the networking/firewall. Probably there is also some meaningful error in the Kura.log or Kura-console.log file in /var/log.

Maybe have a look at those files.

Is it possible to have more details on your target device and operating system?
Which Kura binary did you install?

Best regards,
Matteo
Re: firewall warning [message #1807129 is a reply to message #1807120] Thu, 23 May 2019 09:06 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hi,
we are using resberry -pi-2 kura binary and our target platform is renesas processor (cortex-a7) and linux(yocto) os.Attached the kura-console.log file also.

[Updated on: Thu, 23 May 2019 09:07]

Report message to a moderator

Re: firewall warning [message #1807139 is a reply to message #1807129] Thu, 23 May 2019 12:58 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
I don't see anything special in kura-console.log. Maybe kura.log can be more helpful. Could you share it?
Re: firewall warning [message #1807167 is a reply to message #1807139] Fri, 24 May 2019 04:52 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hii,

please see the attachment bellow,
  • Attachment: kura.log
    (Size: 107.72KB, Downloaded 105 times)

[Updated on: Fri, 24 May 2019 04:52]

Report message to a moderator

Re: firewall warning [message #1807183 is a reply to message #1807167] Fri, 24 May 2019 08:39 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi,
as you can see from the log there is an issue invoking iptables in your target. Maybe some missing modules or something like that.

If you don't need networking, you may try to install the NN version of Kura.
Otherwise you will need to update your image to match Kura's requirements or you'll need to update kura codebase to support your linux flavour.

Best regards,
Matteo
Re: firewall warning [message #1808417 is a reply to message #1807183] Mon, 24 June 2019 09:23 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
hello,
Thanks for your valuable suggestion but i already update image as well as i add ip table to, still i got one error after few hour in my device that is-->

ieee80211 phy0: rt2x00usb_watchdog_tx_dma: Warning - TX queue 2 DMA timed out, invoke forced forced t
ieee80211 phy0: rt2x00usb_watchdog_tx_dma: Warning - TX queue 2 DMA timed out, invoke forced forced reset

firewall issue is resolved but the above problem i am fessing always.

Best Regards,
Abhishek
Re: firewall warning [message #1808426 is a reply to message #1808417] Mon, 24 June 2019 11:39 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi,
no idea on this last issue.

Best regards,
Matteo
Re: firewall warning [message #1808468 is a reply to message #1808426] Tue, 25 June 2019 09:40 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
hello Matteo,
The issue is solved but when i go to the packages and try to install some packages to marketplace it's showing this error

org.eclipse.kura.web.client.ui.EntryClassUi: A generic unrecoverable error happened. Please refer to the device log.

Thanks and Regards,
Abhishek
Re: firewall warning [message #1808469 is a reply to message #1808468] Tue, 25 June 2019 09:44 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi, are you able to ping internet from the device?
Is networking properly set?
Is the device capable to resolve names to ips?

You may want to have another look to the Kura.log, Kura-console.log or even also to your browser log to figure out what is going on.

Best regards,
Matteo
Re: firewall warning [message #1808472 is a reply to message #1808469] Tue, 25 June 2019 11:29 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hello Matteo,
k so internet is their in my device,so i install a package in my kura but how to run it, i install a package from marketplace now its showing in package but how to deploy it in kura.

Thanks and Regard,
Abhishek
Re: firewall warning [message #1808473 is a reply to message #1808472] Tue, 25 June 2019 11:37 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi,
it depends on the component. For example the Heater, once installed, it auto starts.
If you are installing the example publisher, then it is a factory that needs to be instantiated using the + button in the left side of the page.
If the component installed is a driver, you need to instantiate it in the drivers and assets section.

Best regards,
Matteo
Re: firewall warning [message #1808477 is a reply to message #1808473] Tue, 25 June 2019 12:40 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hello Matteo,
Thank you so much for your reply got it.

Thanks and Regards,
Abhishek
Re: firewall warning [message #1808522 is a reply to message #1808477] Wed, 26 June 2019 09:27 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hello Matteo,
I am able to install drivers but for Modbus Protocol Implementation for Eclipse Kura 4.x.y i install it but, how to depoly it in kura. it's not happening by driver and assets or by + button

Thanks and Regards,
Abhishek kumar
Re: firewall warning [message #1808523 is a reply to message #1808522] Wed, 26 June 2019 09:29 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi,
this is for another driver, but the procedure is the same: http://eclipse.github.io/kura/wires/kura-wires-sensortag.html

Best regards,
Matteo
Re: firewall warning [message #1808524 is a reply to message #1808523] Wed, 26 June 2019 09:50 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hi,
Actually i install the Modbus Protocol Implementation for Eclipse Kura 4.x.y, but i am not getting the name in derive and asset, one drive i install that's name is driver opca that name only i am getting but for modbus protocol i am not getting any column, i attached one file you can see

thanks and regards,
abhishek
Re: firewall warning [message #1808525 is a reply to message #1808524] Wed, 26 June 2019 09:53 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Is modbus package listed in packages tab?

Please have a look in kura.log and kura-console.log if there is any type of error.
You can also access the OSGi console and try to debug to understand if there is some sort of error that is showing up there.
Re: firewall warning [message #1808526 is a reply to message #1808525] Wed, 26 June 2019 09:55 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
yes it listed in package tab
  • Attachment: moduls.png
    (Size: 248.58KB, Downloaded 150 times)
Re: firewall warning [message #1808527 is a reply to message #1808526] Wed, 26 June 2019 09:59 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
That is not a driver.
It's the old (and probably deprecated) version of the modbus protocol.
It does not interfaces with drivers and wires.
Re: firewall warning [message #1808528 is a reply to message #1808527] Wed, 26 June 2019 10:07 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
k sorry i am asking out of context question, can you help me where i will get modbus driver bcz its not in marketplace.
Re: firewall warning [message #1808529 is a reply to message #1808528] Wed, 26 June 2019 10:09 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
At this time there is no official driver available.
A third party provided an implementation: https://marketplace.eclipse.org/content/esf-modbus-driver
Be careful that, to install, you have to accept an EULA
Re: firewall warning [message #1808531 is a reply to message #1808529] Wed, 26 June 2019 10:25 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
k thank you for your warm reply.
Re: firewall warning [message #1808636 is a reply to message #1808531] Fri, 28 June 2019 05:44 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hello Matteo,
I configure database by following this document--https://eclipse.github.io/kura/builtin/h2-database.html#creating-a-new-h2-database-instance
i am on the end of it but not able to open db web server, i just want to know what the meaning of this line-->
Make sure to review the firewall configuration in order to ensure that the server is reachable from the external process.

which is written in docment.
i already did the configuration the file is attached bellow ,


Thanks and Regards,
Abhishek

[Updated on: Fri, 28 June 2019 05:53]

Report message to a moderator

Re: firewall warning [message #1808637 is a reply to message #1808636] Fri, 28 June 2019 06:03 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
That is user responsibility to open the needed firewall ports either using Kura (if supported) or directly acting to the firewall of your host system.
Re: firewall warning [message #1808661 is a reply to message #1808637] Fri, 28 June 2019 10:42 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
hii,
I given the command to accepting the port to the device--iptables -A INPUT -i wlan0 -p tcp --dport 9123 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
still i am not able to connect to db server

Thanks and Regards,
Abhishek
Re: firewall warning [message #1808666 is a reply to message #1808661] Fri, 28 June 2019 11:51 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
is that effectively open?
Did you try to telnet that port?

Re: firewall warning [message #1808673 is a reply to message #1808666] Fri, 28 June 2019 13:02 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
hii,
no it's not opening when i tried to open osgi and checking the telnet i got this warning=>
---------------------------------------------------------------------------------------------------------------------------------
root@rt-falcon:/opt/eclipse/kura/bin# ./start_kura_debug.sh
Listening for transport dt_socket at address: 8000
!SESSION 2019-06-28 12:54:03.229 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_202
java.vendor=Azul Systems, Inc.
BootLoader constants: OS=linux, ARCH=arm, WS=gtk, NL=en_US

!ENTRY org.eclipse.kura.core 4 0 2019-06-28 12:54:29.353
!MESSAGE [org.eclipse.kura.core.db.H2DbServer(27)] bind method [setConfigurationService] not found; Component will fail

!ENTRY org.eclipse.kura.core 4 0 2019-06-28 12:54:29.389
!MESSAGE [org.eclipse.kura.core.db.H2DbServer(27)] bind method [setConfigurationService] not found

!ENTRY org.eclipse.kura.core 4 0 2019-06-28 12:54:31.275
!MESSAGE [org.eclipse.kura.core.db.H2DbServer(39)] bind method [setConfigurationService] not found
osgi>
!ENTRY 1 0 2019-06-28 12:55:06.144
!MESSAGE [IAgent][DeploymentEventListener@c0d587] [handleComplete] There is no information for started session
Jun 28, 2019 12:55:19 PM io.netty.util.internal.ThreadLocalRandom getInitialSeedUniquifier
WARNING: Failed to generate a seed from SecureRandom within 3 seconds. Not enough entrophy?
---------------------------------------------------------------------------------------------------------------------------------------------------------------
i am running on my wifi ip with the port like,
http://192.168.42.5:9123/ in this ip kura is running on different port

thanks and regard,
Abhishek

[Updated on: Fri, 28 June 2019 13:03]

Report message to a moderator

Re: firewall warning [message #1808680 is a reply to message #1808673] Fri, 28 June 2019 13:47 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
We had a look and that seems an issue, but it should work anyways.

Please test if "telnet 127.0.0.1 9123" works
Re: firewall warning [message #1808743 is a reply to message #1808680] Mon, 01 July 2019 05:55 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
hii,
I tried telnetd still it's not runing in the port 127.0.0.1:9123 in localhost,


osgi> telnetd status
telnetd is not running.
osgi> telnetd start
telnetd is running on 127.0.0.1:2019
osgi> telnetd status
telnetd is running on 127.0.0.1:2019
osgi> telnetd stop
osgi> telnetd 127.0.0.1 9123 start
telnetd: bad command: 127.0.0.1
Usage: telnetd [-i ip] [-p port] start | stop | status
-i --ip=INTERFACE listen interface (default=127.0.0.1)
-p --port=PORT listen port (default=2019)
-? --help show help
gogo: IllegalArgumentException: telnetd: bad command: 127.0.0.1
osgi> telnetd --ip=127.0.0.1 --port=9123 start
telnetd is running on 127.0.0.1:9123
osgi> telnetd stop
osgi> telnetd --ip=192.168.42.5 --port=9123 start
telnetd is running on 192.168.42.5:9123
osgi> telnetd stop
osgi> telnetd --ip=127.0.0.1 --port=9123 start
telnetd is running on 127.0.0.1:9123
osgi>


Thanks and regards,
Abhishek
Re: firewall warning [message #1808745 is a reply to message #1808743] Mon, 01 July 2019 07:20 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi,
I suggest to have a look at the firewall to see if the configuration is correct. Make sure that the service is up and running.
Maybe you can also try another port, just to make sure.

Best regards
Re: firewall warning [message #1808765 is a reply to message #1808745] Mon, 01 July 2019 10:11 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
hii,
Firewall configuration is OK it seems and i changed the port also in kura H2Db-webserver you can see it,

root@rt-falcon:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere icmp echo-request state NEW,RELATED,ESTABLISHED
ACCEPT tcp -- 192.168.42.0/23 anywhere tcp spt:9123 dpt:9123

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere 192.168.0.48 tcp
ACCEPT tcp -- 192.168.0.48 anywhere state RELATED,ESTABLISHED

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere icmp echo-reply state RELATED,ESTABLISHED
root@rt-falcon:~#

Thanks and regards,
Abhishek

Re: firewall warning [message #1808902 is a reply to message #1808765] Thu, 04 July 2019 09:37 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
hello,
In opc-ua Asset when i click to data it's showing some error, i attached the screenshot with kura log file bellow. can you help me to understand what exactly the error is.??

thanks and regards,
Abhishek
  • Attachment: opc-ua.png
    (Size: 214.00KB, Downloaded 145 times)
  • Attachment: kuranew.log
    (Size: 55.58KB, Downloaded 129 times)

[Updated on: Thu, 04 July 2019 09:38]

Report message to a moderator

Re: firewall warning [message #1808904 is a reply to message #1808902] Thu, 04 July 2019 09:43 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
I believe that the error and the log report clearly what is going on:
Quote:
no UserTokenPolicy with UserTokenType.UserName found


There may be a configuration error.

Best regards,
Matteo
Re: firewall warning [message #1809115 is a reply to message #1808904] Tue, 09 July 2019 11:54 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hello,
Whenever i am trying to connect the port 9123 of h2db server i am getting this error in my osgi console

osgi> Debugger failed to attach: handshake failed - received >GET / HTTP/1.1< - expected >JDWP-Handshake<
Debugger failed to attach: handshake failed - received >GET / HTTP/1.1< - expected >JDWP-Handshake<
Debugger failed to attach: handshake failed - received >GET / HTTP/1.1< - expected >JDWP-Handshake<
Debugger failed to attach: handshake failed - received >GET / HTTP/1.1< - expected >JDWP-Handshake<
Debugger failed to attach: timeout during handshake

osgi>
osgi>
osgi> Debugger failed to attach: handshake failed - received >GET / HTTP/1.1< - expected >JDWP-Handshake<
Debugger failed to attach: timeout during handshake
Debugger failed to attach: handshake failed - received >GET / HTTP/1.1< - expected >JDWP-Handshake<
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - received >GET / HTTP/1.1< - expected >JDWP-Handshake<
Debugger failed to attach: timeout during handshake

Thanks and Regards,
Abhi
Re: firewall warning [message #1809369 is a reply to message #1809115] Mon, 15 July 2019 07:23 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
hello,
I tried so many time to connect to opcua Driver, i want to know how wired graph is working with opcua driver, so in previous post i got an error as no UserTokenPolicy with UserTokenType.UserName found, i deleted the asset and again start the process by following this document-->https://esf.eurotech.com/v5.0.0/docs/opcua-application-in-kura-wires

now the error i am getting is failed to connect to any of the matching endpoints so i change the endpoint as 1235 in opcua driver so i got an warning as,java.net.ConnectException: Connection refused: localhost/127.0.0.1:1235

So will you please guide me how to solve this issue ??

Thanks and Regards,
Abhi
Re: firewall warning [message #1809387 is a reply to message #1809369] Mon, 15 July 2019 10:25 Go to previous messageGo to next message
Nicola Timeus is currently offline Nicola TimeusFriend
Messages: 17
Registered: May 2017
Junior Member
Hello,

I would suggest you to perform the following steps:

1. Open port 1234 (or the port on which the server is listening on) in Kura firewall and try to connect using an external OPC-UA client, to verify that the server is up and running.

2. The
UserTokenPolicy with UserTokenType.UserName
message can indicate that you are providing username/password to a server that does not require authentication. In order to stop sending username and password, try clear the corresponding parameters in driver configuration (they should be blank for disabling sending credentials).

3.
 Connection refused: localhost/127.0.0.1:1235 
can mean that no process is listening on port 1235, using port 1234 was probably correct.

Let me know if it works,

Best Regards,
Nicola
Re: firewall warning [message #1809427 is a reply to message #1809387] Tue, 16 July 2019 05:37 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hello Nicola,

Thanks for your reply,

1) So I remove the username and password then i go to the data tab it's opining but with some message in status, it's come as failure when i click on that it's gives the message that ( Reason: Got bad status: 2150891520) .

2) when i try to open this localhost/127.0.0.1:1234 it's ask for user and password i give username as (admin) and password as (admin ), so i got these message-->

HTTP ERROR 404
Problem accessing /127.0.0.1:1234. Reason:
ProxyServlet: /127.0.0.1:1234

it's not opening

3) One thing i want to ask that i created opcua asset and their i created channels which is connected to wire graph and in wire graph their is logger so where i will see the logs or my data which i created in opcua asset i think this url (localhost/127.0.0.1:1234) will show my data if i am wrong please correct me. right now this is not opning??

Thanks and Regards,
Abhi
  • Attachment: opcuaerror.png
    (Size: 200.22KB, Downloaded 98 times)
  • Attachment: url.png
    (Size: 115.80KB, Downloaded 92 times)

[Updated on: Tue, 16 July 2019 07:20]

Report message to a moderator

Re: firewall warning [message #1809505 is a reply to message #1809427] Wed, 17 July 2019 06:54 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hello,
According to the document OPC-UA server simulator bundle is install in ESF. It will create a simulated OPC-UA server that exposes some sensors (light, temperature and water sensor) and some actuators (buzzer, led and fan). So where i can see all these data, and how we can change the value of these data??

https://esf.eurotech.com/v5.0.0/docs/opcua-application-in-kura-wires#section-configure-wires-opc-ua-application

Thanks and Regards,
Abhi


[Updated on: Wed, 17 July 2019 07:12]

Report message to a moderator

Re: firewall warning [message #1809506 is a reply to message #1809505] Wed, 17 July 2019 07:19 Go to previous messageGo to next message
Nicola Timeus is currently offline Nicola TimeusFriend
Messages: 17
Registered: May 2017
Junior Member
Hello,

From your answer 2 I assume you are trying to connect to http://localhost/127.0.0.1:1234 with some HTTP client (e.g a web browser), that request will not be served by the OPC-UA server but by the embedded Jetty web server instance.
If a request fails with code 2150891520, it should mean that you are trying to access a node that does not exist on the server (a node with the requested id cannot be found by the server).
The good news is that the fact that you can see this error implies that the driver was able to successfully connect and authenticate with the server, so firewall and global driver settings should be ok.

The next step is configuring asset channels.
For this purpose, I would suggest you to try connecting to the OPCUA server with a graphical OPCUA client (e.g a desktop or smartphone app), browse the server nodes with that and determine the the ids of the nodes you are interested reading/writing.
Once you discovered these node ids, you can use that information to configure the OPCUA driver channels.

I'm sorry but I cannot provide support for the tutorial you mentioned, as it is related to a commercial product.

Regards,
Nicola
Re: firewall warning [message #1809517 is a reply to message #1809506] Wed, 17 July 2019 09:11 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hello Nicola,

Thank you so much for your valuable suggestions, now I able to getting the data in data tab of opc-ua driver but one thing i want to ask for h2db service i created h2db server but i am not able to access the server in my web browser, This is the document which i am following-->https://eclipse.github.io/kura/builtin/h2-database.html

The kura is install in my device i connected it through wifi ip, but i am not able to access http://192.168.42.5:9123/

I checked firewall connection also, i change this -webPort 9123 -webAllowOthers -ifExists port to 9124 but result is same

Please give me some hint about this and thank you again for your quick reply.

Thanks and Regards,
Abhi

[Updated on: Wed, 17 July 2019 09:13]

Report message to a moderator

Re: firewall warning [message #1809642 is a reply to message #1809517] Fri, 19 July 2019 08:49 Go to previous messageGo to next message
Nicola Timeus is currently offline Nicola TimeusFriend
Messages: 17
Registered: May 2017
Junior Member
Hello,

I wouldn't know what's going on.
Configuring the firewall to allow TCP connections to TCP port 9123 and configuring the DbServer instance as follows should be enough:

db.server.enabled -> true
db.server.type -> WEB
db.server.commandline -> -webPort 9123 -webAllowOthers -ifExists

You can check if the server is listening on port 9123 by running curl directly on the device, try the following command:

curl http://localhost:9123/

If curl is not available you can try the wget, or try installing it.

If you get a response like the following, then the server is up and running:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0,
and the EPL 1.0 (http://h2database.com/html/license.html).
Initial Developer: H2 Group
-->
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>H2 Console</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<script type="text/javascript">
location.href = 'login.jsp?jsessionid=27400cbfbaa762671551d314eece54d7';
</script>
</head>
<body style="margin: 20px;">

<h1>Welcome to H2</h1>
<h2>No Javascript</h2>
If you are not automatically redirected to the login page, then
Javascript is currently disabled or your browser does not support Javascript.
For this application to work, Javascript is essential.
Please enable Javascript now, or use another web browser that supports it.

</body></html>

If the curl test succeeds, then there might be something wrong with the firewall. Otherwise, do you have other services using port 9123?

Regards,
Nicola
Re: firewall warning [message #1809879 is a reply to message #1809642] Thu, 25 July 2019 09:32 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
hello,

I tried the commands, i got the result as-->

-----------------------------------------------------------------------------------------------------------
root@rt-falcon:~# curl http://localhost:9123/
curl: (7) Failed to connect to localhost port 9123: Connection refused
root@rt-falcon:~# wget http://localhost:9123/
Connecting to localhost:9123 ([::1]:9123)
wget: can't connect to remote host: Connection refused
root@rt-falcon:~# curl http://localhost:9123/
curl: (7) Failed to connect to localhost port 9123: Connection refused
root@rt-falcon:~# curl http://192.168.42.5:9123/
curl: (7) Failed to connect to 192.168.42.5 port 9123: Connection refused
root@rt-falcon:~# curl http://lo:9123/
curl: (6) Could not resolve host: lo
root@rt-falcon:~# curl http://127.0.0.1:9123/
curl: (7) Failed to connect to 127.0.0.1 port 9123: Connection refused
root@rt-falcon:~# wget http://127.0.0.1:9123/
Connecting to 127.0.0.1:9123 (127.0.0.1:9123)
wget: can't connect to remote host (127.0.0.1): Connection refused
-----------------------------------------------------------------------------------------------------------------------------------

So Can you Please tell me what should do now ??

And one thing i want to ask you, Were to see the data of h2db, Inside device Is there any cmd to see the data of my data base, or it will be visible somewhere in osgi??


I can understand that when i will able to solve the url issue i can see my data in h2db web console but is their any way to see the data through osgi or inside kura file,

because i am seeing the data is receiving in kura log file as you can see bellow--->


root@rt-falcon:/opt/eclipse/kura/bin# tail -f /var/log/kura.log
2019-07-24T12:46:25,440 [ua-shared-pool-0] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:26,454 [ua-shared-pool-0] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:27,459 [ua-shared-pool-1] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:28,469 [ua-shared-pool-1] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:29,479 [ua-shared-pool-1] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:29,793 [DefaultQuartzScheduler_Worker-8] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:30,489 [ua-shared-pool-1] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:31,501 [ua-shared-pool-1] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:31,502 [ua-shared-pool-1] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:32,510 [ua-shared-pool-1] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:33,520 [ua-shared-pool-1] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:34,529 [ua-shared-pool-1] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:35,539 [ua-shared-pool-1] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:36,549 [ua-shared-pool-1] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:37,560 [ua-shared-pool-1] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:38,569 [ua-shared-pool-1] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:39,579 [ua-shared-pool-0] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:39,782 [DefaultQuartzScheduler_Worker-9] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:40,589 [ua-shared-pool-0] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:41,599 [ua-shared-pool-0] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:42,609 [ua-shared-pool-0] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:42,611 [ua-shared-pool-0] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:43,620 [ua-shared-pool-0] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:44,629 [ua-shared-pool-0] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1
2019-07-24T12:46:45,639 [ua-shared-pool-0] INFO o.e.k.i.w.l.Logger - Received WireEnvelope from org.eclipse.kura.wire.WireAsset-1563972211166-1

Thanks and regards,
Abhi

[Updated on: Thu, 25 July 2019 09:49]

Report message to a moderator

Re: firewall warning [message #1809880 is a reply to message #1809879] Thu, 25 July 2019 09:37 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi, if you are not able to connect to the service on port 9123, I suspect that the db server is not enabled or not properly configured.
Maybe you can have a look at Kura.log and Kura-console.log to get an idea of what is going on.

From the log posted, you see that a message is received by the logger. But actually there is no message referring to the database.
By the way, if you want to have a look at the content of the messages logged, please update the logger configuration, setting it to "verbose".

Best regards,
Matteo
Re: firewall warning [message #1809886 is a reply to message #1809880] Thu, 25 July 2019 10:15 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hi,

Please see the kura.log and Kura-console.log file attached bellow ,

will you please tell me where h2db data are storing , i am trying to say that apart of h2db web console or kura.log file is there any way to see the data of h2db ??

Thanks and regards,
Abhi
  • Attachment: new_error
    (Size: 12.17KB, Downloaded 101 times)
  • Attachment: consolelognew
    (Size: 0.91KB, Downloaded 105 times)
Re: firewall warning [message #1809888 is a reply to message #1809886] Thu, 25 July 2019 10:23 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
The log seems not downloadable for me.

To access directly the data, apart from the web interface, you should consider the way the database is configured. Maybe have a look here: http://eclipse.github.io/kura/builtin/h2-database.html#persistence-modes

Re: firewall warning [message #1810766 is a reply to message #1809888] Mon, 19 August 2019 13:13 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hello,

can we write our won data to h2dbserver console ? Right now i am using opc-ua driver and OPCUA Server Demo through which i am getting the data in my h2dbserver web ui console but if i want to write my won data can i do that if yes then what is the method of creating our won data with wire graph or by using any package??

Thanks and Regards,
Abhi
Re: firewall warning [message #1810767 is a reply to message #1810766] Mon, 19 August 2019 13:18 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
I'm sorry, it is still not clear to me what you are trying to achieve here: if you are working with wires you can use the "H2 DB Store" that is actually responsible to get wire messages and store them in the referenced H2 DB instance.
Re: firewall warning [message #1810768 is a reply to message #1810767] Mon, 19 August 2019 13:24 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
If you want to create other data to push to the database, you can also use the Script filter component: http://eclipse.github.io/kura/wires/1-kura-wires-script-filter.html
Re: firewall warning [message #1810889 is a reply to message #1810768] Wed, 21 August 2019 11:23 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hello,

Actually i am using opc-ua driver in that i created some channels like( temperature,water,led) i am able to see those data on server of h2Db But i want to know how to modify or change those data ?
where exactly it store, i am able to see those data in data tab also please find the attachment bellow,

Thanks and regards,
Abhi
  • Attachment: opcuanew1.png
    (Size: 180.54KB, Downloaded 86 times)
Re: firewall warning [message #1810890 is a reply to message #1810889] Wed, 21 August 2019 11:37 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi,
if the channel supports writes, you should be able to change the values.
It depends on the sensors/actuators you have attached to the OPCUA server, if you are allowed to change those values.
Re: firewall warning [message #1810895 is a reply to message #1810890] Wed, 21 August 2019 12:34 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hi,

I did't attached any sensors/actuators i just use OPC-UA server simulator with opc-ua driver and create asset or checking the data on server of h2db but the data which i am getting is fluctuating sometime temperature comes as 25.666 or sometime it's come as 27 so i want to know how to access the data so that i can understand why it's happening,

Thanks and regards,
Abhi
Re: firewall warning [message #1810897 is a reply to message #1810895] Wed, 21 August 2019 12:51 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
For what I remember the simulator exposes data based on a certain rule. The fact that you see different values may be related to the sampling rate you are using.

It's not clear to me what you mean when you say that you want to access the data. My question is: where? in the simulator or in kura after you fetched this data?
Re: firewall warning [message #1810900 is a reply to message #1810897] Wed, 21 August 2019 13:40 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hii,

in simulator how to access the data ? because it's coming through simulator node id,

or in kura after fetching the data h2db create (.mv.db) file i can access that if other storage is their please let me know

Thanks and regards,
Abhi
Re: firewall warning [message #1810901 is a reply to message #1810900] Wed, 21 August 2019 13:42 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
I think that the simulator logic is fixed and hardcoded.
If you want to change it, you'll need to update the simulator's source code and redeploy it.
Re: firewall warning [message #1810999 is a reply to message #1810901] Fri, 23 August 2019 10:10 Go to previous messageGo to next message
Abhishek kumar is currently offline Abhishek kumarFriend
Messages: 34
Registered: May 2019
Member
Hello,

Thanks for your valuable suggestion got it,

But i installed one bundle (Apache Camel :: Component :: OPC DA » 0.1.0) Its showing installed in device (bundle tab ) but i am not able to active it, how to activate that bundle because i tried with "+" button but i am not able to get component name on that, Is their other way to activate the bundle ?

Thanks and Regards,
Abhi
  • Attachment: bundle.png
    (Size: 270.71KB, Downloaded 107 times)

[Updated on: Fri, 23 August 2019 10:18]

Report message to a moderator

Re: firewall warning [message #1811034 is a reply to message #1810999] Sat, 24 August 2019 16:17 Go to previous message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hello,
the OPC DA bundle is not an official Eclipse Kura bundle. I believe you should try to contact the author to get help on this.

Best regards,
Matteo
Previous Topic:Docker Re-Building fails due to cp: cannot stat '/context/bin/*'
Next Topic:kura and swagger codegen issues
Goto Forum:
  


Current Time: Thu Apr 18 07:27:46 GMT 2024

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

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

Back to the top