简体   繁体   English

使用带有 nano 和 couchdb 的节点时 ECONNREFUSED

[英]ECONNREFUSED when using node with nano and couchdb

I was using nodejs + nano + couchdb for my application successfully up until today.直到今天,我一直在成功地为我的应用程序使用 nodejs + nano + couchdb。 For some reason all of a sudden I'm getting ECONNREFUSED when I try to run my application.出于某种原因,当我尝试运行我的应用程序时,我突然变得 ECONNREFUSED。 If I try to query the database using the web browser or using a different application (java application) it works fine.如果我尝试使用 web 浏览器或使用不同的应用程序(java 应用程序)查询数据库,它工作正常。 I'm uncertain why just in this scenario it stopped working.我不确定为什么只是在这种情况下它停止工作。 I've been researching for the past 2 days and can't find any help.过去两天我一直在研究,找不到任何帮助。 I believe this might have something to do with too many open connections, but that's a little bit out of my realm of knowledge.我相信这可能与打开的连接过多有关,但这有点超出我的 realm 知识。 Can anyone provide me with any insight on debugging this issue or any direction I could go in?任何人都可以为我提供有关调试此问题的任何见解或我可以 go 的任何方向吗? I should mention this couchdb lives on iriscouch我应该提到这个 couchdb 住在 iriscouch

Add more information about stack that you're using. 添加有关您正在使用的堆栈的更多信息。 But basically it's server machine doesn't want to allow connecting. 但基本上,它是服务器计算机不想允许连接。 Also try run your app with DEBUG=*, nano will log via console.log almost everything. 还可以尝试使用DEBUG = *运行您的应用程序,nano将通过console.log记录几乎所有内容。

Eg change in package.json start command to node changetoyourapp.js DEBUG=* 例如,将package.json start命令更改为node changetoyourapp.js DEBUG=*

I faced yesterday same issue with nodejitsu/iriscouch. 昨天我遇到了nodejitsu / iriscouch的相同问题。 Issue disappeared after some restarts. 重新启动后问题消失了。

Check the version of your node vs the expected node version of nano.检查您的节点版本与预期的 nano 节点版本。 It is possible that nano does not work with node > 16. nano 可能不适用于 node > 16。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM