Skip to content

Invite not working when adding members #128

Closed

Description

@nicanordlc

I just installed docmost on my coolify infrastructure and invite a couple of members but they don't get the invitations. Email does not reach at all to them.

image

Any Idea how can I debug this ?

Activity

  1. nicanordlc commented on Jul 27, 2024

    @nicanordlc
    Author

    I did access the DB and checked the invitations table and found this. Don't know if is helpful.

    image

  2. ados8 commented on Jul 27, 2024

    @ados8

    No issues with invites on my system, would say you have an error in SMTP or spam block on recipient side.

  3. Philipinho commented on Jul 27, 2024

    @Philipinho
    Member

    Please attach a screenshot of the logs.

  4. nicanordlc commented on Jul 27, 2024

    @nicanordlc
    Author

    Here are my recent logs for the docmost container.

    2024-07-27T12:44:18.050708774Z 
    2024-07-27T12:44:18.050762885Z > [email protected] start /app
    2024-07-27T12:44:18.050768534Z > pnpm --filter ./apps/server run start:prod
    2024-07-27T12:44:18.050771552Z 
    2024-07-27T12:44:18.776744825Z 
    2024-07-27T12:44:18.776786177Z > [email protected] start:prod /app/apps/server
    2024-07-27T12:44:18.776790455Z > cross-env NODE_ENV=production node dist/main
    2024-07-27T12:44:18.776792825Z 
    2024-07-27T12:44:24.485846707Z (node:41) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
    2024-07-27T12:44:24.485883800Z (Use `node --trace-deprecation ...` to show where the warning was created)
    2024-07-27T12:44:24.501457798Z [Nest] 41  - 07/27/2024, 12:44:24 PM     LOG ;5;3m[NestFactory] Starting Nest application...
    2024-07-27T12:44:24.706175659Z [Nest] 41  - 07/27/2024, 12:44:24 PM     LOG ;5;3m[DatabaseModule] Establishing database connection
    2024-07-27T12:44:24.753594435Z [Nest] 41  - 07/27/2024, 12:44:24 PM     LOG ;5;3m[DatabaseModule] Database connection successful
    2024-07-27T12:44:24.850183980Z [Nest] 41  - 07/27/2024, 12:44:24 PM     LOG ;5;3m[DatabaseMigrationService] No pending database migrations
    2024-07-27T12:44:24.856739445Z [Nest] 41  - 07/27/2024, 12:44:24 PM     LOG ;5;3m[NestApplication] Nest application successfully started
    2024-07-27T13:06:28.583160311Z [Nest] 41  - 07/27/2024, 1:06:28 PM   ERROR ;5;3m[EmailProcessor] Error processing send-email job. Reason: connect ECONNREFUSED 127.0.0.1:587
    2024-07-27T13:06:38.637246212Z [Nest] 41  - 07/27/2024, 1:06:38 PM   ERROR ;5;3m[EmailProcessor] Error processing send-email job. Reason: connect ECONNREFUSED 127.0.0.1:587
    2024-07-27T13:06:58.688170489Z [Nest] 41  - 07/27/2024, 1:06:58 PM   ERROR ;5;3m[EmailProcessor] Error processing send-email job. Reason: connect ECONNREFUSED 127.0.0.1:587

    But actually I see that I do not have a email configuration in place. I'm using this template for my docmost configuration: https://github.com/coollabsio/coolify/blob/main/templates/compose/docmost.yaml

    I'm hosting all at home, do you think I should host the email server as well ? 🤔

  5. ados8 commented on Jul 28, 2024

    @ados8

    How is it suppose to send an email without any SMTP configuration?
    Hosting your own mail server is advance setup for experienced self hosting users.
    Use a third party mail server and follow documentation to configure SMTP.

  6. Philipinho commented on Jul 28, 2024

    @Philipinho
    Member

    @cabaalexander the server cannot connect to Redis hence the mail failure. Are you sure 127.0.0.1:587 is the correct Redis address?

  7. nicanordlc commented on Aug 2, 2024

    @nicanordlc
    Author

    Hello Folks,

    I ended up setting up a mailipt service on my docker compose yaml and it now sends the emails to this dev SMTP server and at least with this in place I can manually copy the generated invite link and pass it around when needed. This until I decide to use a full configure SMTP server it being paid or free. At the moment I'll check all the free alternatives or hosted since I'm not in a hurry now that I have a manual way to send the invites to my server.

    It looks like this:

    services:
      docmost:
        image: 'docmost/docmost:latest'
        depends_on:
          postgresql:
            condition: service_healthy
          redis:
            condition: service_healthy
        environment:
          - SERVICE_FQDN_DOCMOST_3000
          - APP_SECRET=$SERVICE_BASE64_APPKEY
          - APP_URL=$SERVICE_FQDN_DOCMOST_3000
          - 'DATABASE_URL=postgresql://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@postgresql/docmost?schema=public'
          - 'REDIS_URL=redis://redis:6379'
          - MAIL_DRIVER=smtp
          - SMTP_HOST=mailpit
          - SMTP_PORT=1025
          - SMTP_USERNAME=
          - SMTP_PASSWORD=
          - [email protected]
          - MAIL_FROM_NAME=Docmost
        volumes:
          - 'docmost:/app/data/storage'
        healthcheck:
          test:
            - CMD
            - curl
            - '-f'
            - 'http://127.0.0.1:3000'
          interval: 2s
          timeout: 10s
          retries: 20
      postgresql:
        image: 'postgres:16-alpine'
        environment:
          - POSTGRES_USER=$SERVICE_USER_POSTGRES
          - POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
          - POSTGRES_DB=docmost
        volumes:
          - 'postgresql-data:/var/lib/postgresql/data'
        healthcheck:
          test:
            - CMD-SHELL
            - 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'
          interval: 5s
          timeout: 10s
          retries: 20
      redis:
        image: 'redis:7.2-alpine'
        volumes:
          - 'redis-data:/data'
        healthcheck:
          test:
            - CMD
            - redis-cli
            - PING
          interval: 5s
          timeout: 10s
          retries: 20
      mailpit:
        image: 'axllent/mailpit:latest'
        environment:
          - SERVICE_FQDN_MAILPIT_8025
          - MP_UI_AUTH=${MP_UI_AUTH:-admin:admin}

    I think this can be closed. Thank you for your time 👍

  8. AsifSuhaib commented on May 18, 2025

    @AsifSuhaib

    [EmailProcessor] Error processing send-email job. Reason: Connection timeout

    I've added all the config possible from smtp as well but still it doens't work!!! - I have tried 3 different smtp services

    2025-05-18T23:49:47.223411972Z 2025-05-18T23:49:47.223482753Z > [email protected] start /app 2025-05-18T23:49:47.223489928Z > pnpm --filter ./apps/server run start:prod 2025-05-18T23:49:47.223494801Z 2025-05-18T23:49:48.004135405Z 2025-05-18T23:49:48.004180398Z > [email protected] start:prod /app/apps/server 2025-05-18T23:49:48.004186581Z > cross-env NODE_ENV=production node dist/main 2025-05-18T23:49:48.004191917Z 2025-05-18T23:49:53.265253174Z [Nest] 41 - 05/18/2025, 11:49:53 PM LOG [NestFactory] Starting Nest application... 2025-05-18T23:49:53.642530340Z [Nest] 41 - 05/18/2025, 11:49:53 PM LOG [DatabaseModule] Establishing database connection 2025-05-18T23:49:53.704751901Z [Nest] 41 - 05/18/2025, 11:49:53 PM LOG [DatabaseModule] Database connection successful 2025-05-18T23:49:53.787937098Z [Nest] 41 - 05/18/2025, 11:49:53 PM LOG [DatabaseMigrationService] No pending database migrations 2025-05-18T23:49:53.806444528Z [Nest] 41 - 05/18/2025, 11:49:53 PM LOG [NestApplication] Nest application successfully started 2025-05-18T23:49:53.824444515Z [Nest] 41 - 05/18/2025, 11:49:53 PM LOG [NestApplication] Listening on http://127.0.0.1:3000 / http://docmost.8627.cloud 2025-05-18T23:50:30.998578216Z [Nest] 41 - 05/18/2025, 11:50:30 PM ERROR [WorkspaceInvitationService] createInvitation - error: syntax error at or near ")" 2025-05-18T23:51:40.031917761Z [Nest] 41 - 05/18/2025, 11:51:40 PM ERROR [EmailProcessor] Error processing send-email job. Reason: Connection timeout 2025-05-18T23:52:10.037530780Z [Nest] 41 - 05/18/2025, 11:52:10 PM ERROR [EmailProcessor] Error processing send-email job. Reason: Connection timeout 2025-05-18T23:52:40.042413151Z [Nest] 41 - 05/18/2025, 11:52:40 PM ERROR [EmailProcessor] Error processing send-email job. Reason: Connection timeout 2025-05-18T23:53:10.047614419Z [Nest] 41 - 05/18/2025, 11:53:10 PM ERROR [EmailProcessor] Error processing send-email job. Reason: Connection timeout 2025-05-18T23:53:50.093536514Z [Nest] 41 - 05/18/2025, 11:53:50 PM ERROR [EmailProcessor] Error processing send-email job. Reason: Connection timeout

    Image

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