Skip to content

Blank page on new install / Workspace not found.  #28

Closed

Description

@luroden

Brand new install using docker compose. Nothing out of the ordinary in terms of installation.

Compose file in use:

version: "3"

services:
  docmost:
    image: docmost/docmost:latest
    depends_on:
      - db
      - redis
    environment:
      APP_URL: "http://localhost:3000"
      APP_SECRET: "SCRUBBED"
      DATABASE_URL: "postgresql://docmost:SCRUBBED@db:5432/docmost?schema=public"
      REDIS_URL: "redis://redis:6379"
    ports:
      - "8758:3000"
    restart: unless-stopped
    volumes:
      - docmost:/app/data/storage

  db:
    image: postgres:16-alpine
    environment:
      POSTGRES_DB: docmost
      POSTGRES_USER: docmost
      POSTGRES_PASSWORD: SCRUBBED
    restart: unless-stopped
    volumes:
      - db_data:/var/lib/postgresql/data

  redis:
    image: redis:7.2-alpine
    restart: unless-stopped
    volumes:
      - redis_data:/data

volumes:
  docmost:
  db_data:
  redis_data:

I've tried recreating the stack a few times and have erased the volumes inbetween, no dice. All I get is a blank screen. Inspecting the console shows a 415 error, with the following failed load:

// 20240630202851
// https://SCRUBBED/api/users/me

{
  "message": "Workspace not found",
  "error": "Not Found",
  "statusCode": 404
}

I also attempted to manually navigate to /setup/register but get a similar response.

Tried firefox/chrome/safari. No luck.

Server info:

$ cat /etc/debian_version
11.7
$ uname -a
Linux docker 5.10.0-23-amd64 #1 SMP Debian 5.10.179-1 (2023-05-12) x86_64 GNU/Linux
$ docker -v
Docker version 24.0.2, build cb74dfc

Activity

  1. luroden commented on Jul 1, 2024

    @luroden
    Author

    Logs from container:

    > pnpm --filter ./apps/server run start:prod
    > [email protected] start:prod /app/apps/server
    > cross-env NODE_ENV=production node dist/main
    [Nest] 41  - 07/01/2024, 1:35:40 AM     LOG [NestFactory] Starting Nest application...
    [Nest] 41  - 07/01/2024, 1:35:40 AM     LOG [DatabaseModule] Establishing database connection
    [Nest] 41  - 07/01/2024, 1:35:41 AM     LOG [DatabaseModule] Database connection successful
    [Nest] 41  - 07/01/2024, 1:35:41 AM     LOG [DatabaseMigrationService] Migration "20240324T085400-uuid_v7_fn" executed successfully
    [Nest] 41  - 07/01/2024, 1:35:41 AM     LOG [DatabaseMigrationService] Migration "20240324T085500-workspaces" executed successfully
    [Nest] 41  - 07/01/2024, 1:35:41 AM     LOG [DatabaseMigrationService] Migration "20240324T085600-users" executed successfully
    [Nest] 41  - 07/01/2024, 1:35:41 AM     LOG [DatabaseMigrationService] Migration "20240324T085700-groups" executed successfully
    [Nest] 41  - 07/01/2024, 1:35:41 AM     LOG [DatabaseMigrationService] Migration "20240324T085900-spaces" executed successfully
    [Nest] 41  - 07/01/2024, 1:35:41 AM     LOG [DatabaseMigrationService] Migration "20240324T086100-add-workspace-fk" executed successfully
    [Nest] 41  - 07/01/2024, 1:35:41 AM     LOG [DatabaseMigrationService] Migration "20240324T086200-workspace_invitations" executed successfully
    [Nest] 41  - 07/01/2024, 1:35:41 AM     LOG [DatabaseMigrationService] Migration "20240324T086300-pages" executed successfully
    [Nest] 41  - 07/01/2024, 1:35:41 AM     LOG [DatabaseMigrationService] Migration "20240324T086400-page_history" executed successfully
    [Nest] 41  - 07/01/2024, 1:35:41 AM     LOG [DatabaseMigrationService] Migration "20240324T086600-comments" executed successfully
    [Nest] 41  - 07/01/2024, 1:35:41 AM     LOG [DatabaseMigrationService] Migration "20240324T086700-attachments" executed successfully
    [Nest] 41  - 07/01/2024, 1:35:41 AM     LOG [DatabaseMigrationService] Migration "20240324T086800-pages-tsvector-trigger" executed successfully
    [Nest] 41  - 07/01/2024, 1:35:41 AM     LOG [NestApplication] Nest application successfully started
    
  2. Philipinho commented on Jul 1, 2024

    @Philipinho
    Member

    “Workspace not found” is the expected response when there is no workspace in the system. I could make the wording better though.
    The frontend uses the response to redirect users to the setup page.

    I would love the see a screenshot of your browser console when you open the setup page.

  3. Maulwurf16 commented on Jul 1, 2024

    @Maulwurf16

    Try changing this line:

    APP_URL: "http://localhost:3000"

    to

    APP_URL: "http://RealIPAdress:8758"

  4. luroden commented on Jul 1, 2024

    @luroden
    Author

    Okay so that works if I also then use the ip/port combo to talk to it.

    Going through my reverse proxy though, it breaks in a similar way. Including if I set the APP_URL to https://docs.mydomain.com

  5. luroden commented on Jul 1, 2024

    @luroden
    Author
    Screenshot 2024-07-01 at 3 23 28 AM
  6. Philipinho commented on Jul 1, 2024

    @Philipinho
    Member
  7. AhmedCoolProjects commented on Sep 5, 2024

    @AhmedCoolProjects

    Hi, I still have the same issue, I tried to change the APP_URL, but didn't work, is there any idea what exactly I have to do!

    image

  8. mfvanrijn commented on Mar 20, 2025

    @mfvanrijn

    Any suggestions on steps to resolve the above issue? I just created a fresh install with the latest version, the logs seem fine, docmost is accessible but only generates a blank page.

  9. added a commit that references this issue on Jun 29, 2025
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