我的Node Red仪表板消失了,我的应用显示“未运行".但不会重启 [英] My Node Red dashboard disappeared, my app says "not running" but won't restart

查看:243
本文介绍了我的Node Red仪表板消失了,我的应用显示“未运行".但不会重启的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从这里是绝对无知的位置开始.

I am starting from the position of near absolute ignorance here.

我成功设置了一个Bluemix帐户,添加了设备,获得了API密钥,将运行Node Red的Raspberry Pi和一个温度传感器连接到Bluemix上的Node Red,创建了一个仪表板,并且能够在Watson/Bluemix和我的Pi.凉爽的.不幸的是,我一路走来都没有真正了解Watson/Bluemix的导航方法或所有术语.我让NR双向工作,并感到很高兴. 然后在上周的一天,到我的Bluemix Node Red应用程序的路由停止了访问:

I successfully set up a Bluemix account, added devices, got API keys, connected my Raspberry Pi running Node Red and a temperature sensor to Node Red on Bluemix, created a dashboard and was able to get data back and forth between Watson/Bluemix and my Pi. Cool. Unfortunately, I got all that way without ever really understanding the navigation of Watson/Bluemix nor all the terminology. I made NR work both ways and was happy. Then one day last week, the route to my Bluemix Node Red application stopped being accessible:

找不到404:请求的路由('misterpi-01.mybluemix.net')不存在.

404 Not Found: Requested route ('misterpi-01.mybluemix.net') does not exist.

我可以浏览我的设备,发现它们每隔几分钟就发送一次数据,因此很明显存在连接.当我单击IBM Cloud Apps时,会被告知

I can browse my devices and see that they are sending data every few minutes, so clearly the connection is there. When I click on IBM Cloud Apps, I am told

您的组织没有绑定IBM Cloud应用程序

There are no IBM Cloud applications bound to your organization

当我在IBM Cloud Dashboard上并单击Connections时,我看到我有一个连接的应用程序,该应用程序未运行"并带有红点.我可以单击停止",然后状态变为已停止".当我单击开始"后不久,

When I am on my IBM Cloud Dashboard and I click on Connections I see I have a connected application that is "Not Running" with a red dot. I can click Stop and the status goes to Stopped. When I click Start, after a short while,

我不能添加另一个应用程序,因为我只能拥有一个.

I cannot add an another app because I can only have one.

我的NR应用程序去了哪里,我可以将其取回(首选),否则请删除它?

Where did my NR app go and can I get it back (preferred) and if not, delete it?

在@hardillb的建议下,我去寻找日志.我找到了它们,看起来该应用程序一直在启动并崩溃.我无法从错误日志中复制文本,但这是屏幕截图.

At the suggestion of @hardillb I went looking for logs. I found them and it looks like the app is continuously started and crashing. I can't copy the text from the error logs but here is a screenshot.

推荐答案

您应该做的第一件事是获取流源的副本以进行备份.进入IBM Cloud Dashboard,然后单击Cloudant-ll(后缀可能不同吗?),然后单击Launch Cloudant Dashboard(或者,依次单击...-cloudantNoSQLDBalias of Cloudant-ll).从此处单击NodeRed,然后选择以"/flow"结尾的ID.然后,您可以提取"flow": []中的所有内容.

The first thing you should do is get a copy of your flow source for backup. Go into the IBM Cloud Dashboard and click on Cloudant-ll (the suffix may be different?) and then Launch Cloudant Dashboard (alternatively, click on ...-cloudantNoSQLDB and then alias of Cloudant-ll). From there click on NodeRed and then select the id that ends with "/flow". Then you can extract everything inside "flow": [].

我建议将其清空,以确保您没有流程来确保Bluemix可以启动空".如果这样做,您将得到与下面类似的结果(不要更改_rev).

I would recommend emptying it out so you have no flows to ensure that Bluemix can start 'empty'. If you do this you will end up with something similar to mine below (don't change _rev).

{
  "_id": "Home Assistant/flow",
  "_rev": "102-2b38e1756eeb26def19b20858bc50a40",
  "flow": []
}

稍后,您可以使用Import > Clipboard将提取的代码粘贴回Node Red中.

Later you can paste the extracted code back into Node Red using Import > Clipboard.

您可能还希望编辑".../settings"文档,以删除已安装的所有其他节点类型.

You may also want to edit the ".../settings" document to remove any extra node types you installed.

Caveat-我在Bluemix上遇到了同样的问题,但最终放弃了-至少每周一次内存耗尽而崩溃,并且重新启动很困难.我怀疑它不能可靠地运行256MB.

Caveat - I had the same problems with Bluemix and eventually gave up - crashing at least weekly running out of memory and difficulty restarting. I suspect it can't reliably run with 256MB.

这篇关于我的Node Red仪表板消失了,我的应用显示“未运行".但不会重启的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆