Can not enable Plugin in Vernemq - plugins

I am getting this error while enabling plugin in vernemq
RPC to 'dev1#127.0.0.1' failed: {'EXIT',
{{{badmatch,
{error,
{http_to_mqtt,
{{shutdown,
{failed_to_start_child,
http_to_mqtt_web,
{'EXIT',
{{case_clause,
{error,
{undef,
[{httpd_util,rfc1123_date,[],[]},
{mochiweb_clock,handle_info,2,
[{file,
"src/mochiweb_clock.erl"},
{line,88}]},
{mochiweb_clock,init,1,
[{file,
"src/mochiweb_clock.erl"},
{line,69}]},
{gen_server,init_it,6,
[{file,"gen_server.erl"},
{line,306}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},
{line,237}]}]}}},
[{mochiweb_http,ensure_started,1,
[{file,"src/mochiweb_http.erl"},
{line,76}]},
{mochiweb_http,start,1,
[{file,"src/mochiweb_http.erl"},
{line,68}]},
{supervisor,do_start_child,2,
[{file,"supervisor.erl"},
{line,314}]},
{supervisor,start_children,3,
[{file,"supervisor.erl"},
{line,297}]},
{supervisor,init_children,2,
[{file,"supervisor.erl"},
{line,263}]},
{gen_server,init_it,6,
[{file,"gen_server.erl"},
{line,306}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},
{line,237}]}]}}}},
{http_to_mqtt_app,start,
[normal,[]]}}}}},
[{vmq_plugin_mgr,start_plugin,1,
[{file,
"/Users/sunnyjain/Desktop/vernemq/_build/default/lib/vmq_plugin/src/vmq_plugin_mgr.erl"},
{line,489}]},
{vmq_plugin_mgr,start_plugins,1,
[{file,
"/Users/sunnyjain/Desktop/vernemq/_build/default/lib/vmq_plugin/src/vmq_plugin_mgr.erl"},
{line,471}]},
{vmq_plugin_mgr,load_plugins,2,
[{file,
"/Users/sunnyjain/Desktop/vernemq/_build/default/lib/vmq_plugin/src/vmq_plugin_mgr.erl"},
{line,410}]},
{vmq_plugin_mgr,update_plugins,2,
[{file,
"/Users/sunnyjain/Desktop/vernemq/_build/default/lib/vmq_plugin/src/vmq_plugin_mgr.erl"},
{line,354}]},
{vmq_plugin_mgr,handle_plugin_call,2,
[{file,
"/Users/sunnyjain/Desktop/vernemq/_build/default/lib/vmq_plugin/src/vmq_plugin_mgr.erl"},
{line,183}]},
{gen_server,try_handle_call,4,
[{file,"gen_server.erl"},{line,607}]},
{gen_server,handle_msg,5,
[{file,"gen_server.erl"},{line,639}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,237}]}]},
{gen_server,call,
[vmq_plugin_mgr,
{enable_plugin,http_to_mqtt,
[{paths,
["/Users/sunnyjain/Desktop/practice/http_to_mqtt"]}]},
infinity]}}}
The command I am using to enable plugin is:
vmq-admin plugin enable -n http_to_mqtt -p /Users/sunnyjain/Desktop/http_to_mqtt
If my PATH variable consist the below path then I am not getting the above error
/Users/sunnyjain/Desktop/vernemq/_build/default/rel/vernemq/bin
but when I change path to
/Users/sunnyjain/Desktop/vernemq/_build/dev1/rel/vernemq/bin
then I m getting the error. Can someone tell me why the error is coming and how the enabling plugin from "default" node is different from enabling it from "dev1" node. How is plugin dependent on the nodes.

This error was coming because the inets application is not started.
To enable the inets in vernemq you can type the following commands
vmq-admin plugin enable -n inets --path /usr/local/lib/erlang/lib/inets-5.10.6
This will remove the error.

Related

Error: Failed to start debug session! in vscode-ros with ROS Melodic

I am trying to debug a ROS node inside VSCode but it seems that the debugger is not working. Please see below screen recordings:
Attaching a running node
Launching nodes
I noticed that attaching a node is requesting authentication. But after providing the correct password, nothing happens. Similarly, the launching nodes show processes for a second but die/disappear immediately.
Below is the version related information:
Visual Studio Code v1.74.3
VSCode-ROS Extension v0.8.4
ROS Melodic
GCC v7.5.0
Python v2.7.17
Ubuntu OS v18.04.6 LTS
Ubuntu OS Kenel v5.4.0-137-generic
The developer tools are showing following following error:
[Extension Host] rejected promise not handled within 1 second: Error: Failed to start debug session!
[Extension Host] stack trace: Error: Failed to start debug session!
at LaunchResolver.<anonymous> (/home/ravi/.vscode/extensions/ms-iot.vscode-ros-0.8.4/out/src/debugger/configuration/resolvers/ros1/launch.js:310:32)
at Generator.next (<anonymous>)
at fulfilled (/home/ravi/.vscode/extensions/ms-iot.vscode-ros-0.8.4/out/src/debugger/configuration/resolvers/ros1/launch.js:7:58)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
Please see a screenshot below:

Neovim: error checking my provider's health

when i run checkhealth provider i get the following error, i installed neovim with node: npm install -g neovim
provider: health#provider#check
========================================================================
- ERROR: Failed to run healthcheck for "provider" plugin. Exception:
function health#check[20]..health#provider#check[5]..<SNR>152_check_node, line 20
Vim(if):E117: Unknown function: provider#node#can_inspect

vitess installation failure at ./kvtctl.sh Remote error: rpc error: code = Unavailable desc = transport is closing

I am installing vitess in minikube. I am following the instructions for vitess installation in kubernetes, section: 6. Use vtctlclient to send commands to vtctld. I am getting the below error:
root#twinkle:~/go/src/vitess.io/vitess/examples/kubernetes# ./kvtctl.sh
Starting port forwarding to vtctld...
E1117 00:00:36.982524 4189 main.go:63] Remote error: rpc error: code = Unavailable desc = transport is closing
root#twinkle:~/go/src/vitess.io/vitess/examples/kubernetes#
I am stuck. Can anyone help here ?

Error installing chaincode on HyperLedger fabric

I'm working on this tutorial http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html on a virtual machine Ubuntu 14.04 and I run the script
./byfn.sh -m up to bring up the network. When I run this to install the chaincode:
peer chaincode install -n mycc -v 1.0 -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02
I get the following error:
Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: Error installing chaincode code mycc:1.0(chaincode /var/hyperledger/production/chaincodes/mycc.1.0 exists))
How can I fix this?
Note: I also run docker exec -it cli bash
Ok, while I'm not 100% sure, since there is not enough information provided. So based on your logs snapshot provided in the comment and based on the error you've got:
Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: Error installing chaincode code mycc:1.0(chaincode /var/hyperledger/production/chaincodes/mycc.1.0 exists))
You trying to install chaincode with name which overlaps name of the chaincode installed by byfn.sh script. You can see in script.sh:
Try to change chaincode name in install command, to something different, e.g.:
peer chaincode install -n myNewCC -v 1.0 -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02
An alternative could be to disable execution of script.sh, however you will have to initialize and create the channel yourself. See here.

start a new project in IONIC error

i want to start a new project in IONIC with this command "ionic start myApps tabs" but i get this error :
[INFO] Fetching app base (https://github.com/ionic-team/ionic2-app-base/archive/master.tar.gz) × Downloading - failed! Error: unable to verify the first certificate at Error (native) at TLSSocket. (_tls_wrap.js:1092:38) at emitNone (events.js:86:13) at TLSSocket.emit (events.js:185:7) at TLSSocket._finishInit (_tls_wrap.js:610:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38)
please help me to solve it
Be sure that you have the latest node, cordova and ionic cli updates.
Try to stop all server instances. I mean stop the localhost:8080 server.