You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my Linode VM, I upgraded from Node 16 to Node 17.3. After this, I could no longer connect via nano to my couchdb. It seems that in my VM, the port 5984 is redirected to another open port e.g 127.0.0.1:5984 -> 127.0.0.1:xxxxx. However, it does not create a redirect for ::1:5984 so I was getting a connection refused.
I found this by doing a console.log(response) in ../node_modules/nano/lib/nano.js just above line 137 (a socket error)
On my LInode VM, I disabled IPV6 for all interfaces (in /etc/sysctl.d/40-ipv6.conf). After doing that, the redirects are gone and the connection starting working again. It took many hours to find this problem. Today I had found an entry on Reddit where new versions of Nodejs are now preferring IPV6. However, when I look at Nodejs net.socketAddress, the default family is still 'ipv4'.
I am not sure how to configure the nano connection to only use IPV4 or if something needs to change in the nano library to help with this issue so people don't have to completely disable IPV6 on their systems.
The text was updated successfully, but these errors were encountered:
Linux distribution: Arch Linux
On my Linode VM, I upgraded from Node 16 to Node 17.3. After this, I could no longer connect via nano to my couchdb. It seems that in my VM, the port 5984 is redirected to another open port e.g 127.0.0.1:5984 -> 127.0.0.1:xxxxx. However, it does not create a redirect for ::1:5984 so I was getting a connection refused.
I found this by doing a console.log(response) in ../node_modules/nano/lib/nano.js just above line 137 (a socket error)
On my LInode VM, I disabled IPV6 for all interfaces (in /etc/sysctl.d/40-ipv6.conf). After doing that, the redirects are gone and the connection starting working again. It took many hours to find this problem. Today I had found an entry on Reddit where new versions of Nodejs are now preferring IPV6. However, when I look at Nodejs net.socketAddress, the default family is still 'ipv4'.
I am not sure how to configure the nano connection to only use IPV4 or if something needs to change in the nano library to help with this issue so people don't have to completely disable IPV6 on their systems.
The text was updated successfully, but these errors were encountered: