Grafana OPCUA Plugin failed to start - grafana

I'm new to both portainer and grafana and I'm attempting to get an OPC UA connection up and running.
Grafana is running on a container on portainer. I have access to the front end/console etc.
When running "grafana-server restart" there are a few errors, some about port 3000 "address already in use". But what's important here, the opcua plugin fails to start with error:
Unrecognized remote plugin message: \n\nThis usually means that the plugin is either invalid or simply\nneeds to be recompiled to support the latest protocol.
I've installed using the basic "grafana-cli plugins install grafana-opcua-datasource" command. the OPCUA plugin is an option on the front end, however, testing it simply gives me a "plugin unavailable" popup. I have upgraded Grafana and updated the plugin. The Grafana version is high enough to work with the plugin (according to https://grafana.com/grafana/plugins/grafana-opcua-datasource/?tab=installation)
Anyone have any ideas of where I can at least look for problems?
Full error log from server restart:
EROR[02-08|13:24:31] Failed to start plugin logger=plugins.backend pluginId=grafana-opcua-datasource error="Unrecognized remote plugin message: \n\nThis usually means that the plugin is either invalid or simply\nneeds to be recompiled to support the latest protocol."
WARN[02-08|13:24:31] plugin failed to exit gracefully logger=plugins.backend pluginId=grafana-opcua-datasource
EROR[02-08|13:24:32] A service failed logger=server err="failed to open listener on address 0.0.0.0:3000: listen tcp 0.0.0.0:3000: bind: address already in use"
EROR[02-08|13:24:32] Server shutdown logger=server reason="failed to open listener on address 0.0.0.0:3000: listen tcp 0.0.0.0:3000: bind: address already in use"

I've run into the same or similar problem:
NFO[04-21|07:01:05] Plugin registered logger=plugin.manager pluginId=alexanderzobnin-zabbix-app
INFO[04-21|07:01:05] Plugin registered logger=plugin.manager pluginId=grafana-clock-panel
INFO[04-21|07:01:05] Plugin registered logger=plugin.manager pluginId=grafana-opcua-datasource
EROR[04-21|07:01:05] Could not start plugin logger=plugin.manager pluginId=grafana-opcua-datasource err="Unrecognized remote plugin message: \n\nThis usually means that the plugin is either invalid or simply\nneeds to be recompiled to support the latest protocol."
INFO[04-21|07:01:05] Plugin registered logger=plugin.manager pluginId=grafana-piechart-panel
INFO[04-21|07:01:05] Plugin registered logger=plugin.manager pluginId=grafana-simple-json-datasource
INFO[04-21|07:01:05] Plugin registered logger=plugin.manager pluginId=alexanderzobnin-zabbix-datasource
INFO[04-21|07:01:05] Profiler logger=plugin.alexanderzobnin-zabbix-datasource enabled=false
WARN[04-21|07:01:05] Plugin process is running with elevated privileges. This is not recommended logger=plugin.alexanderzobnin-zabbix-datasource
INFO[04-21|07:01:05] Query Service initialization logger=query_data
It's a .net aplication right?
i tried it in a dockerized enviroment on a debian host.
logger=settings version=8.4.7 commit=23bf3ef043 branch=HEAD compiled=2022-04-19T16:05:49+0000
i also tried to add the .net enviroment:
FROM grafana/grafana:latest
USER root
RUN apk add bash icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib wget
RUN apk add libgdiplus --repository https://dl-3.alpinelinux.org/alpine/edge/testing/
RUN mkdir -p /usr/share/dotnet \
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
RUN wget https://dot.net/v1/dotnet-install.sh
RUN chmod +x dotnet-install.sh
RUN ./dotnet-install.sh -c 3.1 --install-dir /usr/share/dotnet
RUN ./dotnet-install.sh -c 5.0 --install-dir /usr/share/dotnet
RUN ./dotnet-install.sh -c 6.0 --install-dir /usr/share/dotnet
RUN grafana-cli plugins install grafana-opcua-datasource
but with the same result.

Related

Is there any other way That I can run my application

Hi I'm trying to run an application in vs code, when I hit on tns run I get this error "The current application is not compatible with NativeScript CLI 8.2.3.
Run 'ns migrate' to migrate your project to the latest NativeScript version.
Alternatively you may try running it with '--force' to skip this check.".
When I try to run ns migrate I also get this error "Error: spawn git ENOENT
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)".
Note: I did installed NativeScript 8.2.3.
Please help.

I get this error running PMD from salesforce CLI, "ERROR running scanner:run: Attempted to resolve unregistered dependency token: "RuleManager""

Can anyone help me with this. Im using Mac. I cant find the location of the rulemanager. Please see error below
Lxxxxxxx:pmd-bin-6.34.0 xxxxxx$ sfdx scanner:run pmd --target /usr/src --category rulesets/java/quickstart.xml -f sarif
(node:17810) [editions-autoloader-none-broadened] Error Plugin: sfdx-cli: editions-autoloader-none-broadened: Unable to determine a suitable edition, even after broadening.
module: #oclif/config#1.17.0
task: runHook init
plugin: sfdx-cli
root: /Users/xxxxxxx/.local/share/sfdx/client/7.100.0-9d243d8
See more details with DEBUG=*
(Use node --trace-warnings ... to show where the warning was created)
ERROR running scanner:run: Attempted to resolve unregistered dependency token: "RuleManager"
Kieran, this is an issue that we just discovered. It is related to an incompatibility with the version of Node.js that is bundled with the Salesforce CLI and a library that is used by sfdx-scanner.
A temporary workaround can be found at https://github.com/forcedotcom/sfdx-scanner/issues/412
You will need to use the npm installation instead of the pkg installer since you are interested in the Sarif output. Sarif output was added in version 2.6.0. The issue affects versions 2.6.0-2.8.0 when using the pkg installer on a Mac.
We hope to have a fix rolled out in the next couple of days. I will post here when version 2.9 has been released. Sorry for any inconvenience.
Kieran, this issue has been fixed in version 2.9.1. You can upgrade by executing the following commands in your shell.
sfdx plugins:uninstall #salesforce/sfdx-scanner
sfdx plugins:install #salesforce/sfdx-scanner

Errors while deploying chaincode using IBM blockchain platform extension in VSCode

I tried using the sample chaincode of the go version, but failed many times.
The error information of VsCode is as followed
Failed to install on peer Org1 Peer with reason: Could not install smart contact received error: failed with status:500 ::failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: external builder failed: external builder failed to build: external builder 'golang' failed: exit status 1
But it works normally when using the javascript version.
I hope to use the golang to develop my project, what should I do?
Take a look at https://github.com/IBM-Blockchain/blockchain-vscode-extension/wiki/Errors-&-Fixes and follow the steps related to your setup/versions.

Error NuGet package google translation API

I'm trying to install the Google.Cloud.Translation.V2 package from NuGet and I keep getting this error
Failed to retrieve information about 'Google.Cloud.Translation.V2' from remote source 'https://api.nuget.org/v3-flatcontainer/google.cloud.translation.v2/index.json'.
An error occurred while sending the request.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 72.21.81.200:443
Thanks
If you're using the library's version in your command like this:
Install-Package Google.Cloud.Translation.V2 -Version 1.1.0
or:
dotnet add package Google.Cloud.Translation.V2 --version 1.1.0
or:
paket add Google.Cloud.Translation.V2 --version 1.1.0
Then, a firewall may be blocking you. If you're using any of those commands and the error persists, then this is not a coding issue, this issue could be checked on ServerFault for a possible firewall blocking you or any other network issue.

Hygieia - Creation of dashboard is failing

I'm working no setting up Hygieia dashboard.
Hygieia: https://github.com/gigaaks/Hygieia
Trying both approaches of setting it up locally or using Docker based installation/setup.
I'm successfully able to get mongoDB, it's API, UI modules up and running. Hygieia main login screen comes up fine. I successfully created the login user and able to log in.
At this point, I have mongoDB running, API, UI pieces running and it's time to create a CAP One / Split Dashboard (templates provided by Hygieia). When I provide the values for creating a new dashboard, it's throwing the following error in the API logs on the server (vagrant/VirtualBox instance) OR within the Docker's container.
What I found was there are lots of issues in this project's module where things are not correct i.e. database name in one module is dashboard, in other module it's dashboardb and in other, it's expecting dashboarddb. I fixed those issues in my github repo/project and initiated a pull request which is approved and will be merged. The following error though, tells my that Hygieia's UI piece is NOT sending a parameter what the API piece is expecting while trying to create a dashboard (in mongoDB). The parameter is "type" and as UI (Hygieia GUI) is not sending it (as per their latest code in GitHUB), the API is failing throwing an error saying that type variable value is passed as NULL. I found the same when I tried POST operation by sending the same JSON RestAPI query using Postman.
Due to this, I'm currently not able to create a dashboard and start using the collectors provided by Hygieia out of the box (for Stash, GitHub, Jenkins, SonarQube etc).
Has anyone of you have faced or found a workaround for this error/issue?
2016-04-01 02:40:40,357 WARN c.c.d.rest.RestApiExceptionHandler - Bad Request - bind exception:
org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
Field error in object 'dashboardRequest' on field 'type': rejected value [null]; codes dashboardRequest.type,NotNull.type,NotNull.java.lang.String,NotNull]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [dashboardRequest.type,type]; arguments []; default message [type]]; default message [may not be null]
at com.capitalone.dashboard.rest.RestApiExceptionHandler.handleMethodArgumentNotValid(RestApiExceptionHandler.java:55) [api.jar!/:2.0.0-SNAPSHOT]
at org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler.handleException(ResponseEntityExceptionHandler.java:156) [spring-webmvc-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_72-internal]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_72-internal]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_72-internal]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_72-internal]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221) [spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137) [spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110) [spring-webmvc-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
The issue was coming due to that fact that I used Hygieia modules docker images built locally using Maven (mvn clean install ; mvn docker:build) but for the UI module, as I was getting an error message, I cherry picked that image from captial one/hygieia-ui image. For some reason, it didn't work and was showing the above error (as there could be API level changes).
I had to run the following to get Hygieia dashboard up and running in local machine:
git config --global --unset-all url.https
git config --global url."https://".insteadOf git://
npm config set prefix /usr/local
sudo npm install --color=false; sudo npm install -g bower gulp; sudo npm install bower install
mvn clean install; mvn docker:build
gulp serve
Now, everything is working as expected for creating dashboard (PS: You have to create mongo db database first using mongo command line as shows in Hygieia's documentation).
npm -g option will install bower and gulp globally. without -g, it'll also install the same locally. Global values actually refer the local values.
For docker based solution, I just used docker-comopose file and got it up and running.
NodeJS(node) version: v5.10.0
NPM (Node pkg mgr) : 3.8.3
Bower version : 1.7.9
Gulp version : [08:18:42] CLI version 3.9.1,[08:18:42] Local version 3.9.1,
Maven version : Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T16:41:47+00:00)
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
Java version :