Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 00:27
    codecov[bot] commented #3556
  • 00:26
    codecov[bot] commented #3556
  • 00:22
    codecov[bot] commented #3556
  • 00:20
    codecov[bot] commented #3556
  • 00:15
    codecov[bot] commented #3556
  • 00:14
    codecov[bot] commented #3556
  • 00:12
    codecov[bot] commented #3556
  • 00:11
    codecov[bot] commented #3556
  • 00:09
    codecov[bot] commented #3556
  • 00:08
    codecov[bot] commented #3556
  • 00:04
    codecov[bot] commented #3556
  • 00:02
    codecov[bot] commented #3556
  • 00:00
    codecov[bot] commented #3556
  • May 25 23:58
    codecov[bot] commented #3556
  • May 25 23:57
    codecov[bot] commented #3556
  • May 25 23:56
    codecov[bot] commented #3556
  • May 25 23:54
    codecov[bot] commented #3556
  • May 25 23:54
    codecov[bot] commented #3556
  • May 25 23:52
    codecov[bot] commented #3556
  • May 25 23:50
    codecov[bot] commented #3556
Pedro
@pintify
Well, first of all I'm not any official maintainer so I may be wrong in the answer. I simply tell about my own experience in this issue.
The docker image you need to deploy Kapua is not available in the Docker repository. It seems to be something related with the last release of Kapua. However you can still test previous versions such as 1.4.x. The images for those is available in Docker hub. If you really want to test last version (1.5.2), which has very interesting new features, I guess the best option is to download the whole project from Github and compile it to create in your computer the docker images that are missing in docker hub
Alberto Codutti
@Coduz
Hi @psp316r . Do the other images download correctly? Or any image has the same problem? Thanks @pintify for the clarification given to @psp316r :smile:
1 reply
Pedro
@pintify
np
I'm having issues on my own jeje... I've mounted Kapua over MariaDB but the API, broker and console are having problems after some time related with database access, seems like the connection is closed and the services are unable to reopen it:
Internal Exception: java.sql.SQLNonTransientConnectionException: (conn=445269) (conn=445269) Connection is closed
Error Code: 1220
Call: SELECT DISTINCT attributes, created_on, description, expiration_date, modified_on, name, optlock, parent_account_path, properties, created_by, id, modified_by, org_address_line_1, org_address_line_2, org_address_line_3, org_city, org_country, org_email, org_name, org_person_name, org_phone_number, org_state_province_county, org_zip_postcode, scope_id FROM act_account ORDER BY name ASC
Query: ReadAllQuery(referenceClass=AccountImpl sql="SELECT DISTINCT attributes, created_on, description, expiration_date, modified_on, name, optlock, parent_account_path, properties, created_by, id, modified_by, org_address_line_1, org_address_line_2, org_address_line_3, org_city, org_country, org_email, org_name, org_person_name, org_phone_number, org_state_province_county, org_zip_postcode, scope_id FROM act_account ORDER BY name ASC")
    at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:342)
    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:691)
    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:567)
    at org.eclipse.persistence.internal.sessions.AbstractSession.basicExecuteCall(AbstractSession.java:2099)
    at org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:603)
    at org.eclipse.persistence.sessions.server.ClientSession.executeCall(ClientSession.java:265)
    at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:277)
    at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:263)
    at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:334)
    at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:746)
    at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2759)
    at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:2712)
    at org.eclipse.persistence.queries.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:584)
    at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1232)
    at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:911)
    at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1191)
    at org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:485)
    at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1279)
    at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2983)
    at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1898)
    at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1880)
    at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1845)
    at org.eclipse.persistence.internal.jpa.QueryImpl.executeReadQuery(QueryImpl.java:262)
    ... 18 common frames omitted
Caused by: java.sql.SQLNonTransientConnectionException: (conn=445269) (conn=445269) Connection is closed
    at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.createException(ExceptionFactory.java:73)
    at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.create(ExceptionFactory.java:158)
...
1 reply
My strongest guess is that I'm missing some important configuration on the MariaDB or Kapua side regarding the connection timeout, pools, etc. Could that be the issue? In that case which differences between H2 and MariaDB could be responsible for this?
Pedro
@pintify
@Coduz, thank you for the assistance. I tried setting a maxIdleTime but it didn't work... However I added the two configurations suggested here and it hasn't failed yet. The maxIdleTime is also applied anyway so maybe both things were needed
Shashi Preetham
@psp316r
@pintify and @Coduz , Kindly help in editing the following settings in kapua, need to change that from true to false for TagService such that I can connect kura but by default the settings are disabled !!
image.png
Pedro
@pintify
Are you in kapua-sys account or in a child account?
Shashi Preetham
@psp316r
Hi @pintify I am in Kapua-sys account
Pedro
@pintify
Then I'm sorry but I don't know how that can be done, maybe through API REST... But surely @Coduz can answer more specifically
However, as user I suggest you to work always on child accounts, whose configurations can be changed in the parent account
Pedro
@pintify
What is the purpose of /{scopeId}/devices/{deviceId}/requests endpoint in the API REST? Does it allow a generic command of the Kura Remote Device Management protocol? Could it be used to support a MQTT Request not integrated in Kapua if I enable a matching resource endpoint in Kura?
Shashi Preetham
@psp316r
DeepinScreenshot_select-area_20211108212039.png
Hi @Coduz and @pintify , I am getting above issue
do you have any idea on this ?
Pedro
@pintify
Hum... Is that kubernettes? I've never used it so I will be of little help. However it seems that the cause of the issue may be described in the broker logs, if you go there, you may have more information
David Danziger
@dzeez
Hello, we're working on assembling an IIOT software stack utilizing Kapua + Kura, and have a data storage question. We see that Kapua uses ES as its primary datastore – how suitable is ES for time series data in production, rather than a purpose-specific time series db?
Also, are there best practices for connecting Kapua to eg influx, timescale, etc? Thank you.
Simone Pulcini
@spulcini_gitlab
Hallo, I'm using Eclipse Kapua 1.4.4. Is Kapua authorization fully compliant to OAuth2 (using no external third-part auth server like KeyCloak)?
Anoop Kumar
@anoopk30
Hello, is there any way to connect Kapua with Apache Kafka? I tried using mqtt source connector of Kafka connect but getting messages in unreadable format.
1 reply
Simone Pulcini
@spulcini_gitlab
Hello, are Kapua java clients (generated by Swagger Codegen for Java) available on Maven Central? Can't understand which dependency I should add to my project...
Anoop Kumar
@anoopk30
Hello, I want to read an MQTT message received by Kapua using Apache Camel. I tried both mqtt and Paho component of it for creating routeBuilder and used exchange.getIn(). getBody(byte[].class) for processor. But I am getting empty object when I tried to parse those bytes of body. Can anyone help me regarding how to configure camel routeBuilder to see the message in console?
Anoop Kumar
@anoopk30
I have solved the above problem.
Thanks
Shashi Preetham
@psp316r
Hi @pintify , what ever the data Coming from KURA, Where Does Kapua Store it ?
Does Kapua Has a DB ?
Pedro
@pintify
Hi, @psp316r! I'm not part of the official team, so I may be misunderstood, but of course the data is stored. And particularly I think the data that you can query in the Data tab of Kapua is stored in an ElasticSearch database
The administration data of the platform (accounts, users, etc.) is stored in an H2 database. I think jobs data is also stored in the H2 database. The metadata of the devices (version, mac, interfaces, etc.) I'm not sure, I believe it is also in the H2 database
Shashi Preetham
@psp316r
Thanks for the reply @pintify , Doubts cleared.
Apologies, Misunderstood as offcial Team.
Can I know who is the official Team Memeber ?
Pedro
@pintify
Maybe here? I'm not sure how updated it is:
https://projects.eclipse.org/projects/iot.kapua/who
Shashi Preetham
@psp316r
is Everyware Cloud Console and Kapua are the one Platform or different Platforms ?
Pedro
@pintify
Hi, does Kapua currently supports sparkplug B format?
Or only sparkplug A?
If not, are there any plans of migrating towards such support?
Shashi Preetham
@psp316r
@pintify only we are chatting in the Git, no one is replying !
Shashi Preetham
@psp316r
When ran Kura on the following command sudo docker run -d --net=host -t eclipse/kura, MAC Address in Device Menu is showing UNKNOWN, does any one know why it is showing in that Manner, what can be to avoid it ?
Alejandro Juan Garcia
@alexcorvis84

Hi @Coduz, I'm trying to schedule a Batch Job in Kapua (v1.5.2). It's setup as follows:

  • New Batch job, with one selected Targets and one simple step, which is configured as "Configuration Put" and scheduled on "Device Connect"
    Once the device gets connected, I'm getting an error, so configuration is not applied. I'm receving the following Status Message on "Targets" tab
    An error occurred when sending the message: org.eclipse.kapua.service.device.management.configuration.message.internal.ConfigurationRequestMessage@641d8ee9

I've looking issues into github and seems exactly the same as eclipse/kapua#3481 reported by @pintify

Can someone kindly look at it and help us sort it out? Many thanks in advance

Pedro
@pintify
Hi! Any progress in eclipse/kapua#3481
rohithmuthyala
@rohithmuthyala
pull access denied for kapua/kapua-consumer-telemetry. Can anyone help me??

The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.

Continue with the new image? [yN]y
Pulling consumer-telemetry (kapua/kapua-consumer-telemetry:latest)...
ERROR: pull access denied for kapua/kapua-consumer-telemetry, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Deploying Eclipse Kapua... ERROR!

i have followed these instructions
Anoop Kumar
@anoopk30
I am using Kura 4.1.2 on raspberry Pi to connect to Kapua. After connection is established successfully, under devices my device is showing active. But packages, inventory, keystore and bundle tabs are inactive. How can I activate those tabs?
Pedro
@pintify
Kura 4.1.2 does not support keystore and inventory. Packages and bundles should be active...
Are you considering try Kura 5.0.1 instead?
rohithmuthyala
@rohithmuthyala

I am trying to setup sensors-raspberry pi-mosquito-kura -kapua-grafana to collect and visualize agriculture related data ,however i am unable to connect kura to kapua ,i have followed all th steps mentioned here - https://github.com/eclipse/kapua/pull/780/files but the error im getting is "connection failed.unable to connect.please check your configuration and try again"

Warning
Failed to connect! Please review your configuration and try again later.
Show Stack Trace
Unknown.lh(denali-0.js)
Unknown.new Huc(denali-0.js)
Unknown.Muc(denali-0.js)
Unknown.Qeb(denali-0.js)
Unknown.Meb(denali-0.js)
Unknown.jdb(denali-0.js)
Unknown.Sdb(denali-0.js)
Unknown.es(denali-0.js)
Unknown.rs(denali-0.js)
Unknown.eval(denali-0.js)
Unknown.Wh(denali-0.js)
Unknown.Zh(denali-0.js)
Unknown.eval(denali-0.js)

I have check my logs on kura, heres what it says:

2022-03-22T09:44:49,575 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.DataServiceImpl - Connecting...
2022-03-22T09:44:49,575 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.t.m.MqttDataTransport - Creating a new client instance
2022-03-22T09:44:49,575 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.t.m.MqttDataTransport - Using memory persistence for in-flight messages
2022-03-22T09:44:49,577 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.t.m.MqttDataTransport - # ------------------------------------------------------------
2022-03-22T09:44:49,577 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.t.m.MqttDataTransport - # Connection Properties
2022-03-22T09:44:49,577 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.t.m.MqttDataTransport - # broker = tcp://192.168.1.192:1883
2022-03-22T09:44:49,578 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.t.m.MqttDataTransport - # clientId = zepto
2022-03-22T09:44:49,578 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.t.m.MqttDataTransport - # username = User123
2022-03-22T09:44:49,578 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.t.m.MqttDataTransport - # password = XXXXXXXXXXXXXX
2022-03-22T09:44:49,578 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.t.m.MqttDataTransport - # keepAlive = 30
2022-03-22T09:44:49,579 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.t.m.MqttDataTransport - # timeout = 10
2022-03-22T09:44:49,579 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.t.m.MqttDataTransport - # cleanSession = true
2022-03-22T09:44:49,579 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.t.m.MqttDataTransport - # MQTT version = 3.1.1
2022-03-22T09:44:49,579 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.t.m.MqttDataTransport - # willDestination = $EDC/Account123/zepto/MQTT/LWT
2022-03-22T09:44:49,580 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.t.m.MqttDataTransport - # willMessage =
2022-03-22T09:44:49,580 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.t.m.MqttDataTransport - #
2022-03-22T09:44:49,580 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.t.m.MqttDataTransport - # Connecting...
2022-03-22T09:44:49,581 [pool-15-thread-1] INFO o.e.k.c.s.r.LogStatusRunnable - Notification LED fast blinking
2022-03-22T09:44:50,665 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] WARN o.e.k.c.d.t.m.MqttDataTransport - xxxxx Connect failed. Forcing disconnect. xxxxx
2022-03-22T09:44:50,666 [DataServiceImpl:ReconnectTask:org.eclipse.kura.data.DataService-Kapua] INFO o.e.k.c.d.t.m.MqttDataTransport - Forcing client disconnect...

Steven Cooper
@zaitechus
kapuaissues.png
I have installed kapua with docker and I getting a login error when I put in the username and password. Is there a way to correct this problem
Anoop Kumar
@anoopk30
Could I use the rest services of kura from rest services of Kapua?
My kura device is connected to Kapua which is hosted on the server. Now I want to send some modbus commands to kura using rest but don't want to expose kura ip.
Anoop Kumar
@anoopk30

I am trying to update kura configuration from Kapua Swagger UI. It's showing configuration updated but it's not updated at all. If I try to update it from Kapua Console UI Configuration, it's reflecting the changes.

Here is the console log of Kura:

2022-05-25T21:40:00,042 [MQTT Call: Rasp-Ak] INFO o.e.k.c.c.CloudServiceImpl - Message arrived on topic: $EDC/lenovo1/Rasp-Ak/CONF-V1/PUT/configurations/Sensor
2022-05-25T21:40:00,044 [pool-27-thread-2] INFO o.e.k.c.c.CloudConfigurationHandler - Received new Configuration
2022-05-25T21:40:00,052 [pool-27-thread-2] INFO o.e.k.c.d.DataServiceImpl - Storing message on topic: $EDC/#account-name/KapuaPool-1653494866134-5279237929442601368/CONF-V1/REPLY/-27135401838548913, priority: 1
2022-05-25T21:40:00,063 [pool-27-thread-2] INFO o.e.k.c.d.DataServiceImpl - Stored message on topic: $EDC/#account-name/KapuaPool-1653494866134-5279237929442601368/CONF-V1/REPLY/-27135401838548913, priority: 1
2022-05-25T21:40:00,075 [DataServiceImpl:Submit] INFO o.e.k.c.d.t.m.MqttDataTransport - Publishing message on topic: $EDC/lenovo1/KapuaPool-1653494866134-5279237929442601368/CONF-V1/REPLY/-27135401838548913 with QoS: 0
2022-05-25T21:40:01,052 [UpdateConfigurationsCallable] INFO o.e.k.c.c.UpdateConfigurationsCallable - Updating configurations
2022-05-25T21:40:01,277 [UpdateConfigurationsCallable] INFO o.e.k.c.c.ConfigurationServiceImpl - Loading init configurations from: 1653494938154...
2022-05-25T21:40:01,476 [UpdateConfigurationsCallable] INFO o.e.k.c.c.ConfigurationServiceImpl - Merging configuration for pid: org.eclipse.kura.cloud.publisher.CloudPublisher
2022-05-25T21:40:01,491 [UpdateConfigurationsCallable] INFO o.e.k.c.c.ConfigurationServiceImpl - Updating Configuration of ConfigurableComponent Sensor ... Done.
2022-05-25T21:40:01,542 [UpdateConfigurationsCallable] INFO o.e.k.c.c.ConfigurationServiceImpl - Writing snapshot - Saving /opt/eclipse/kura/user/snapshots/snapshot_1653495001491.xml...
2022-05-25T21:40:01,629 [UpdateConfigurationsCallable] INFO o.e.k.c.c.ConfigurationServiceImpl - Writing snapshot - Saving /opt/eclipse/kura/user/snapshots/snapshot_1653495001491.xml... Done.
2022-05-25T21:40:01,631 [UpdateConfigurationsCallable] INFO o.e.k.c.c.ConfigurationServiceImpl - Snapshots Garbage Collector. Deleted /opt/eclipse/kura/user/snapshots/snapshot_1653493459319.xml

Pedro
@pintify
Hi, where can I find documentation about the BIRTH message sent from Kura to Kapua at the initial connection? I've been unable to find it on https://eclipse.github.io/kura/ref/mqtt-namespace.html