notea-org / notea

📒 Self hosted note taking app stored on S3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ECONNREFUSED error, minIO

GrimIcarus opened this issue · comments

I get
{ name: 'Error', message: 'connect ECONNREFUSED 172.19.0.2:1611', status: 500, stack: 'Error: connect ECONNREFUSED 172.19.0.2:1611\n' + at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1146:16)' } Invalid href passed to next/router: //github.com/qingwei-li/notea, repeated forward-slashes (//) or backslashes \ are not valid in the href
in my logs and [failed to load tree] in the UI

i used portainer so I didn't have a Docker Compose but here's my configuration
(notea)
port: 1613:3000
.env

STORE_ACCESS_KEY=[redactedak]
STORE_SECRET_KEY=[redactedsk]
STORE_END_POINT=http://minio:1611
STORE_BUCKET=notea
STORE_FORCE_PATH_STYLE=true
PASSWORD=[redactedpswd]
COOKIE_SECURE=false

(minio)
port 1612:1612, 1611:9000
command: server /data --console-address ":1612"

a bucket named notea exists, so does a user with the access and secret key credentials

i faced that exact problem and solved it by using external IP for addressing minio in STORE_END_POINT.