forum icon indicating copy to clipboard operation
forum copied to clipboard

[Help Wanted] Not Found displayed when connecting to host:3125 for self hosting/docker

Open tommytyker opened this issue 9 months ago • 2 comments

Describe the issue When I start up Standard Note following the instructions described here https://standardnotes.com/help/self-hosting/docker I see a verification message with http://:3001, but when I go to the file server at http://:3125 I get the message "Not Found"

To Reproduce Steps to reproduce the behavior:

  1. Install per the instructions at https://standardnotes.com/help/self-hosting/docker - using the changes as described below
  2. Go to the appropriate folder and "docker compose up -d
  3. Connect to http://:3001 receive "Welcome to the Standard Notes server infrastructure. Learn more at https://docs.standardnotes.com"
  4. Connect to http://:3125 receive "Not Found" in browser

Expected behavior everything works

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Debian 11
  • Browser All
  • Version All

Additional context Docker version 28.0.1

Errors from tail -f ==> logs/api-gateway.err <== localhost ([::1]:3103) open localhost ([::1]:3104) open localhost ([::1]:3105) open localhost ([::1]:3101) open [ioredis] Unhandled error event: Error: connect ECONNREFUSED 172.21.0.4:6379 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)

==> logs/auth.err <== localhost ([::1]:3101) open [ioredis] Unhandled error event: Error: connect ECONNREFUSED 172.21.0.4:6379 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)

==> logs/auth-worker.err <== localhost ([::1]:3103) open [ioredis] Unhandled error event: Error: connect ECONNREFUSED 172.21.0.4:6379 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)

==> logs/files.err <== 192.168.0.15 (192.168.0.15:3306) open cache (172.21.0.4:6379) open [ioredis] Unhandled error event: Error: connect ECONNREFUSED 172.21.0.4:6379 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)

==> logs/files-worker.err <== localhost ([::1]:3101) open [ioredis] Unhandled error event: Error: connect ECONNREFUSED 172.21.0.4:6379 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)

==> logs/revisions.err <== localhost ([::1]:3101) open

==> logs/revisions-worker.err <== localhost ([::1]:3101) open

==> logs/syncing-server.err <== 192.168.0.15 (192.168.0.15:3306) open cache (172.21.0.4:6379) open [ioredis] Unhandled error event: Error: connect ECONNREFUSED 172.21.0.4:6379 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)

==> logs/syncing-server-worker.err <== localhost ([::1]:3101) open [ioredis] Unhandled error event: Error: connect ECONNREFUSED 172.21.0.4:6379 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)

<.env>

DB

DB_HOST=<lan IP> DB_PORT=3306 DB_USERNAME= DB_PASSWORD= DB_DATABASE=standard_notes_db DB_TYPE=mysql

#########

CACHE

#########

REDIS_PORT=6379 REDIS_HOST=cache CACHE_TYPE=redis

########

KEYS

########

AUTH_JWT_SECRET= AUTH_SERVER_ENCRYPTION_SERVER_KEY= VALET_TOKEN_SECRET=

<docker-compose.yml> services: server: image: standardnotes/server env_file: .env container_name: server_self_hosted restart: unless-stopped ports: - 3001:3000 - 3125:3104 volumes: - ./logs:/var/lib/server/logs - ./uploads:/opt/server/packages/files/dist/uploads networks: - standardnotes_self_hosted

localstack: image: localstack/localstack:3.0 container_name: localstack_self_hosted expose: - 4566 restart: unless-stopped environment: - SERVICES=sns,sqs - HOSTNAME_EXTERNAL=localstack - LS_LOG=warn volumes: - ./localstack_bootstrap.sh:/etc/localstack/init/ready.d/localstack_bootstrap.sh networks: - standardnotes_self_hosted

cache: image: redis:6.0-alpine container_name: cache_self_hosted volumes: - ./data/redis/:/data expose: - 6379 restart: unless-stopped networks: - standardnotes_self_hosted

networks: standardnotes_self_hosted: name: standardnotes_self_hosted

tommytyker avatar Mar 16 '25 18:03 tommytyker

Any luck? I'm running into the same issue.

Captain-Pumpkinhead avatar Mar 28 '25 18:03 Captain-Pumpkinhead

Any luck? I'm running into the same issue.

Nothing. No response here. I even deleted everything, re-cloned and redid all the settings again. Same issue

tommytyker avatar Mar 28 '25 18:03 tommytyker

same here

mafsi avatar Apr 21 '25 12:04 mafsi

I got the same issue. The problem is the documentation, which it's a bit confusing. In the self-hosting page, it shows an <IP_ADDRESS>:3125 at the end, which points to the files server. You shouldn't access the file server directly, as it will return you the Not Found error.

When configuring the custom server in the app, use the API gateway (3000 port).

After accessing to the right service, I got an infinite authentication loop. The reason is an undocumented and required environment variable called COOKIE_DOMAIN. Here you have the response with the solution.

Angelmmiguel avatar Sep 21 '25 18:09 Angelmmiguel

I got the same issue. The problem is the documentation, which it's a bit confusing. In the self-hosting page, it shows an <IP_ADDRESS>:3125 at the end, which points to the files server. You shouldn't access the file server directly, as it will return you the Not Found error.

When configuring the custom server in the app, use the API gateway (3000 port).

After accessing to the right service, I got an infinite authentication loop. The reason is an undocumented and required environment variable called COOKIE_DOMAIN. Here you have the response with the solution.

This worked for me, thank you

tommytyker avatar Oct 08 '25 18:10 tommytyker