Skip to main content
Question

Litmus Edge to Cognite Connection error.

  • December 12, 2024
  • 5 replies
  • 53 views

Forum|alt.badge.img+5

Hello,

I am using a Litmus Edge system and would like to ingest simulated data into Cognite Time Series by leveraging the Litmus Cognite Connector.

Additional Details: We also tried manually creating a time series in Cognite Data Fusion (CDF) with the same name as in Litmus Edge, but we are still unable to successfully ingest data into the corresponding time series.



Getting below error in Litmus Edge

151. 2024-12-12T06:33:25.360349408Z {"error":{"code":401,"message":"Unauthorized"}}
152. 2024-12-12T06:33:25.36049081Z publish message: request is unsuccessful: 401 Unauthorized

 

5 replies

Murad Sæter
Practitioner
  • Practitioner
  • 48 replies
  • December 12, 2024

How did you set up the authentication for the Litmus Cognite Connector? It’s not able to authenticate.


Forum|alt.badge.img

Hi ​@Sumedh Vaidya,

 

Looking through the integration guide for CDF on the Litmus documentation site, I’m not seeing them explicitly noting to set the access rights for the clientID/Secret (and CDF user).

Considering that the error you’re getting is an “Access denied” message, I’m going to _guess_ you may be missing(?) one or more of the required CDF capability settings for the "user" configured as the credentials owner for the integration to perform the write operation you’re trying to perform, through the Litmus Cognite Connector.

You will need to make sure, through the “Access Management” page in the “Admin” section of the CDF User Interface, that the user at a has the required capabilities set/enabled for the CDF project where you’re wanting to ingest the data to:

For Time Series I would expect that you’ll (minimally) need:

  • timeseries:read and timeseries:write

You may need other capabilities set, but the best place to ask about that is probably the connector vendor (Litmus).


Murad Sæter
Practitioner
  • Practitioner
  • 48 replies
  • December 12, 2024

Since you are getting a 401, it’s most likely a problem with your auth config in Litmus: client id, secret, scope etc. If you are getting a 403, it would be missing capabilities. What is the cluster and CDF project name?


Forum|alt.badge.img+5
  • Author
  • Seasoned
  • 4 replies
  • December 17, 2024

We have Litmus Edge installed on an on-prem server, and Cognite is hosted on the Europe instance.

The connector on the Litmus Edge side has been configured with the following details: Project ID, Tenant ID, Client ID, Client Secret, Cluster, and Scope. However, we are not receiving any data in the timeseries.

Do we need any additional configurations to successfully connect Litmus Edge with Cognite?
Additionally, are there any configurations required on the Cognite side to enable data reception from Litmus?


Murad Sæter
Practitioner
  • Practitioner
  • 48 replies
  • December 17, 2024

It appears that the app registration (client ID) has not been given access to CDF.  What is the project, cluster and scope? Did you add the app registration to a group that has access to CDF?


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings