Skip to content

fresh installation backend connection error #260

Closed

Description

@AhmedCoolProjects

Hi, I still have the same issue from this one here: #28 , I tried to change the APP_URL, but didn't work, is there any idea what exactly I have to do!

image

Activity

  1. Philipinho commented on Sep 5, 2024

    @Philipinho
    Member

    What version are you on?

  2. AhmedCoolProjects commented on Sep 5, 2024

    @AhmedCoolProjects
    Author

    What version are you on?

    this one here "version": "0.3.1", latest

  3. Philipinho commented on Sep 5, 2024

    @Philipinho
    Member

    Please paste your server logs.

  4. AhmedCoolProjects commented on Sep 5, 2024

    @AhmedCoolProjects
    Author

    yes sure, these are my frontend logs:


    [frontend] ➜ Local: http://localhost:5173/
    [frontend] ➜ Network: use --host to expose
    [frontend] 1:38:25 PM [vite] http proxy error: /api/users/me
    [frontend] AggregateError [ECONNREFUSED]:
    [frontend] at internalConnectMultiple (node:net:1118:18)
    [frontend] at afterConnectMultiple (node:net:1685:7)
    [frontend] 1:38:35 PM [vite] http proxy error: /api/users/me
    [frontend] AggregateError [ECONNREFUSED]:
    [frontend] at internalConnectMultiple (node:net:1118:18)
    [frontend] at afterConnectMultiple (node:net:1685:7)
    [backend] [1:38:57 PM] Found 0 errors. Watching for file changes.
    [frontend] 1:39:04 PM [vite] http proxy error: /api/users/me
    [frontend] AggregateError [ECONNREFUSED]:
    [frontend] at internalConnectMultiple (node:net:1118:18)
    [frontend] at afterConnectMultiple (node:net:1685:7)


    and these my server logs:

    [backend] [Nest] 21408 - 09/05/2024, 1:39:12 PM LOG [RouterExplorer] Mapped {/api/pages/import, POST} route
    [backend] [Nest] 21408 - 09/05/2024, 1:39:12 PM LOG [RoutesResolver] ImportController {/api}:
    [backend] [Nest] 21408 - 09/05/2024, 1:39:12 PM LOG [RouterExplorer] Mapped {/api/pages/export, POST} route
    [backend] [Nest] 21408 - 09/05/2024, 1:39:12 PM LOG [DatabaseModule] Establishing database connection
    [backend] IMPORTANT! Eviction policy is volatile-lru. It should be "noeviction"
    [backend] IMPORTANT! Eviction policy is volatile-lru. It should be "noeviction"
    [backend] IMPORTANT! Eviction policy is volatile-lru. It should be "noeviction"
    [backend] [Nest] 21408 - 09/05/2024, 1:39:14 PM LOG [DatabaseModule] Database connection successful
    [backend] [Nest] 21408 - 09/05/2024, 1:39:14 PM LOG [NestApplication] Nest application successfully started
    [backend] [Nest] 21408 - 09/05/2024, 1:39:21 PM ERROR [ExceptionsHandler] relation "workspaces" does not exist
    [backend] error: relation "workspaces" does not exist
    [backend] at C:\Users\Ahmed\Desktop\projects\forks\docmost\node_modules.pnpm\[email protected]\node_modules\pg\lib\client.js:526:17

  5. Philipinho commented on Sep 5, 2024

    @Philipinho
    Member

    You are in development mode. You have to manually run the database migrations.
    pnpm nx run server:migration:latest

    See https://docmost.com/docs/self-hosting/development#migrations.

  6. AhmedCoolProjects commented on Sep 5, 2024

    @AhmedCoolProjects
    Author

    That was it, thank you so much for the fast reply 🫡

  7. AhmedCoolProjects commented on Sep 5, 2024

    @AhmedCoolProjects
    Author

    pnpm nx run server:migration:latest was the missing command for dev mode

  8. added 3 commits that reference this issue on Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions