Last week I got to know node-red (what a potential!), and after installing it on a Raspberry Pi B+ and following the basic tutorials, I'm experiencing some issues.
When I follow the Inject + Debug node example, wire them, and deploy them, I get the message "Deploy sucessfull". So far so good. I'm running it locally on http:// localhost:1880.
Then when I click the Inject node or the Debug node, it says: "Error: Inject node not deployed" or "Error: Debug node not deployed".
Anyone know how to fix this error? Is it a server problem?
Was having the same issues and discovered the flow that I was working on was disabled.
You can tell the flow is disabled when the lettering on its tab is in italic and there is a circle with a diagonal line through it ahead of the lettering.
Double click the flow tab and change "status" to "enabled".
Just tried something and it worked:
When you run node --max-old-space-size=128 red.js, the command line shows you "cannot find flows_raspberrypi.json"
So I
1) created a flow (as in the examples) 2) Exported it as
"flows_raspberrypi.json" 3) Stopped node-red 4) Started it again
Bingo! It picked this flow up, which then "sucessfully injected".
Now just create your own flows...
I was also getting same problem of :- Node-red Error: inject node not deployed.
When I have install dashboard on Node-Red which was not working, and started giving error when I hit inject node.
So I manually deleted the files (flows-raspberrypi.json, package.json, settings.js) and also folders (lib, node_modules) from the path /home/pi/.node-red
I used vnc-viewer to delete manually files & folders. Just login to vnc-Viewer and open the file manager and paste the path "/home/pi/.node-red" & delete all the files. Reboot the Raspberry-Pi and start Node-Red, it will function normally, even after installing dashboard it is working.
NOTE:It will delete all your flows and install nodes from Node-Red. So keep backup of your flows.
Related
I have created a standalone unsecured one node cluster.I am trying to do package deployment from powershell.
What i have done so far:
In package, in Deploy-FabricApplication.ps1
i replaced service fabric sdk reference and included ps1 files needed to deply inside my package itself.
I dot sourced those files in Deploy-FabricApplication.ps1 like this
. F:\pkg\Debug\Scripts\New-ServiceFabricApplicationPackage.ps1
. F:\pkg\Debug\Scripts\Utilities.ps1
. F:\pkg\Debug\Scripts\Publish-NewServiceFabricApplication.ps1
4.Now when i run .\Deploy-FabricApplicatin.ps1 from powershell like this
.\Deploy-FabricApplication.ps1 -ApplicationPackagePath 'F:\pkg\Debug' -PublishProfileFile 'f:\pkg\Debug\PublishProfiles\Cloud.xml'
Now I am getting this error
The error message screen shot
I tried opening ports but still im getting this error. The error vanishes and im able to deploy after two or three tries...but everytime when i deploy for the first few times after standalone cluster creation. Why is this error is happening and how do i rectify it.
Thankyou
I would recommend you to double check the ports as mentioned in this and this threads.
I am trying to follow tutorial of Kubernetes but I am kinda lost on first steps when trying to use Katacoda... When I just try to open minikube dashboard I encounter error:
failed to open browser: exec: "xdg-open": executable file not found in $PATH
and dashboard itself remains unavailable when I try to open it through host 1.
Later steps like running hello-world work fine and I am able to run it locally using my own minikube instance but I am a bit confused with this issue. Can I debug it somehow to access dashboard during course? This is particularly confusing because I am a bit afraid that I might encounter same or similar issue during potential exam that also runs online...
Founder of Katacoda here. When running locally, then xdg provides the wrapper for opening processes on your local machine and installing the package would resolve the issue. As Katacoda runs everything within a sandbox, we cannot launch processes directly on your machine.
We have added an override for xdg-open that displays a friendly error message to users. They'll now be prompted to use the Preview Port link provided. The output is now:
$ minikube dashboard
* Verifying dashboard health ...
* Launching proxy ...
* Verifying proxy health ...
* Opening %s in your default browser...
Minikube Dashboard is not supported via the interactive terminal experience.
Please click the 'Preview Port 30000' link above to access the dashboard.
This will now exit. Please continue with the rest of the tutorial.
X failed to open browser: exit status 1
Looks like this command works:
apt install xdg-utils
I have been following the same tutorial in Katacoda and had the same issue.In my case, using these commands helpt me to solve the problem :
apt-get update
apt install xdg-utils
I have create a small script file to test.
This my script.bat file.
sc create myService binpath= C:\Users\Admin\Desktop\test.bat start= auto
This is my test.bat file.
echo "Welcome to Wizard"
Problem Statement
I am unable to start the service from control panel Service section.
I get following error.
[SC] StartService FAILED 1053:
The service did not respond to the start or control request in a timely fashion.
That is why I am using nssm.
NOW what happening is that when I run following command on powershell
.\nssm install myService, I dialogue box appears. I give it the path of my script file and click on install service.
After successfull installation of service. I go to control panel -> Service -> click on start against myService but it get paused and following dialog box appears
How can I fix this?
Is there anyother way to do it without doing manual steps and not using third party tool.
I am doing all this on window 10. Do I need any server to perform this task?
NOTE: I cannot use Always up or window scheduler in my case.
The NSSM behaviour is caused by the script terminating almost instantly. Try the following script:
echo Hello World
pause
This should allow the service to start, but you will not necessarily see a console window. Even if you tick 'allow service to interact with desktop', it will not be your desktop that it interacts with!
Windows implements 'session zero isolation' as a security feature, and this essentially prevents services interacting with end user desktops.
In terms of a solution, it's possible to write Windows 'service' applications fairly simply using Visual Studio. It's outside my area of expertise, but based on the Windows applications I'm familiar with, you would generally have a user-mode application running to provide desktop interaction. The user-mode application can interact with services hosted by the service application.
Probably this is resolved by now, but in case it helps anyone, what saved the day for me was checking again my input in the arguments field in nssm. I had an extra "-" which created the error. To edit my service, I went via nssm edit <servicename>
I would also add on the fix that worked for me. I added "" (quotes) in the argument path and that solved the issue for me.
I get different error messages every time I try to deploy my ~700MB angular app to firebase hosting with firebase-tools.
It progresses something between 10-30% and comes up randomly with different errors like:
Deploy Error - Storage error
Deploy Error - Request timed out
Deploy Error - Socket hang up
I've got node 0.10+, tried with two machines (both Windows 7, using cmder shell). Tried both "firebase init" to an existing directory and "firebase bootstrap" to an empty one and copied my files over but issues persist.
I've also made sure there are no href or src attributes with expressions in them as some other guy had issues with those.
Am I doing something wrong and is there some more enlightening log-file to read to understand what actually fails?
I am trying to make a 'dual core' RaspberryPi for a project I am working on. I had followed this tutorial by Simon Cox. Unfortunately I could not get the two RasPi to talk to each other. (This was using Hydra as the process manager)
After looking more carefully at the MPICH installers guide, which can be found here, I tried to use the -phrase to pass the passphrase I had created. However I could not find it as part of the hydra commands. So I re-installed with smpd and after many compiling attempts. I configured with:
/configure -prefix=/home/pi/mpich-install --with-pm=smpd --with-pmi=smpd
I also had to install libbsl-dev to get the MD5 that smpd requires. I also exported the path that the commands mpiexec and mpicc are in. After setting the passphrase I copied the image to a second SD card and put it in a second RasPi. I then set up the passphrase using ssh-keygen.
I was able to run the cpi program on the master Pi and the slave Pi individually but when I tried to run multiple processes on both at the same time I got the error
Fatal error in MPI_Init: Other MPI error, error stack:
MPIR_Init``_thread(392).................:
MPID_Init(139)........................: channel initialization failed
MPIDI_CH3_Init(38)....................:
MPID_nem_init(196)....................:
MPIDI_CH3I_Seg_commit(366)............:
MPIU_SHMW_Hnd_deserialize(324)........:
MPIU_SHMW_Seg_open(863)...............:
MPIU_SHMW_Seg_create_attach_templ(637): open failed - No such file or directory
Can someone please suggest how I can either fix this problem or get the RaspberryPis to communicate using MPICH?
Thanks
E.Lee
If anyone else has this problem make sure your hosts don't have the same name!
You can change it by following this tutorial http://raspi.tv/2012/how-to-change-the-name-of-your-raspberry-pi-new-hostname