Back

Appwrite response hangs but docker logs does state incoming request

  • 0
  • Self Hosted
  • Web
Yup
8 Dec, 2023, 09:44

Appwrite doesn't give any response not on local host or sub domain it just hangs. The requests just keeps loading in browser

[Error] File: /usr/src/code/app/controllers/general.php [Error] Line: 859 [Error] Timestamp: 2023-12-08T09:37:57+00:00 [Error] Method: GET [Error] URL: /v1/databases [Error] Type: Appwrite\Extend\Exception [Error] Message: User (role: guests) missing scope (databases.read) [Error] File: /usr/src/code/app/controllers/general.php [Error] Line: 556

These is one but it just tends to hang even when I try to access console. It uses all the normal ports.

Caddy is on port 80, 443.

Appwrite-Traefik: port 80 -> 81

Piece of config:

TypeScript
services:
  traefik:
    image: traefik:2.9
    container_name: appwrite-traefik
    <<: *x-logging
    command:
      - --providers.file.directory=/storage/config
      - --providers.file.watch=true
      - --providers.docker=true
      - --providers.docker.exposedByDefault=false
      - --providers.docker.constraints=Label(`traefik.constraint-label-stack`,`appwrite`)
      - --entrypoints.appwrite_web.address=:80
      - --entrypoints.appwrite_websecure.address=:443
    restart: unless-stopped
    ports:
      - 81:80
      - 445:443
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - appwrite-config:/storage/config:ro
      - appwrite-certificates:/storage/certificates:ro
    depends_on:
      - appwrite
    networks:
      - gateway
      - appwrite
TL;DR
The user is experiencing a hanging response from the Appwrite app. They are unable to connect to the console and the request keeps loading in the browser. The error message suggests that the user is missing the 'databases.read' scope. The user has provided a piece of config with the Traefik and Appwrite services. The ports being used are Caddy on port 80 and 443, and Appwrite-Traefik on port 80 and 81. Solution: Grant the user the 'databases.read' scope to resolve the error message. Additionally, make sure that the correct ports are being used for the services
Drake
8 Dec, 2023, 10:38

Can you clarify/show what you mean by 'it hangs'? Also whats the endpoint you're hitting?

Yup
8 Dec, 2023, 10:39

Just everywhere I go the request keeps loading in the browser with no response aqt all. It just keeps loading in the tab. But it is up. I wanna connect to the console but it doesn't work at all.

Drake
8 Dec, 2023, 11:10

Can you show a screen recording and some browser logs?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more