• Since upgrading to 1.16.2 Subscribers to digest emails have been receiving two emails, sent separately but almost the the same time, per digest period.

    This is using the Mailgun emailer plugin:
    c4621495-e445-4e35-b074-715216b3d6b7-image.png
    Which is the latest release

    I have checked my mailgun logs and the emails are being sent twice by Nodebb, for example two digest emails sent to the the same addresses with these two timestamps:
    "timestamp": 1617296502.310472,
    "timestamp": 1617296459.443556,

    When I send a digest email manually (either from the email testing section or the digest management section), two digests are not sent.

    I see this topic:
    https://community.nodebb.org/topic/10933/multiple-digest-emails/4?_=1617010969529
    Indicates it could be because NodeBB is running in multiple processes however this only just started happening in 1.16.2 and I have always run nodebb with 3 clustering instances. When changing to 1.16.2 the significant change was switching to redis for session information as described in the scaling page in the documentation, but I don't see how that applies.

    Also this topic:
    https://community.nodebb.org/topic/6662/digest-duplicating-emails-on-scaled-nodebb/4?_=1617010969533
    deals with a similar problem, but I am only using 1 server for clustering.

  • NodeBB Admin

    Can you post a screenshot of /admin/development/info. Only one nodebb should have runjobs on that page.


  • @baris

    sure, here it is:
    0f405932-6258-4adf-adaf-78f5a32183ad-image.png

    Only one is setup to run jobs.

    Also there are two digest emails coming through. not 3 which would be expected if all three instances were sending one.

  • NodeBB Admin

    Do you see the output of these logs in logs/output.log ?https://github.com/NodeBB/NodeBB/blob/master/src/user/digest.js#L33


  • @baris

    Here is chunk of the output logs. the digest is set to go out around 1700 server time so you see some errors for individual users who deleted there account while still subscribed to digest emails. Other than That there are none of the information messages that the link you posted shows should be there.

    2021-04-05T06:46:37.497Z [4568/15827] - ESC[33mwarnESC[39m: uid : 5384 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T09:54:38.911Z [4568/15827] - ESC[31merrorESC[39m: /api/v3/topics/22351
    invalid csrf token
    2021-04-05T09:54:41.608Z [4568/15827] - ESC[31merrorESC[39m: /api/v3/topics/22351
    invalid csrf token
    2021-04-05T09:54:42.643Z [4568/15827] - ESC[31merrorESC[39m: /api/v3/topics/22351
    invalid csrf token
    2021-04-05T09:55:14.295Z [4568/15827] - ESC[31merrorESC[39m: /api/v3/topics/22351
    invalid csrf token
    2021-04-05T09:55:40.696Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4131 (___________@yahoo.com) has not confirmed email, not sending "categoryNotifications_post" email.
    2021-04-05T09:55:40.697Z [4568/15827] - ESC[33mwarnESC[39m: uid : 5384 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T12:26:57.740Z [4568/15827] - ESC[31merrorESC[39m: posts.getVoters
    Error: [[error:no-privileges]]
        at SocketPosts.getVoters (/home/nodebb/nodebb_root/src/socket.io/posts/votes.js:20:10)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async onMessage (/home/nodebb/nodebb_root/src/socket.io/index.js:150:19)
    2021-04-05T12:30:23.421Z [4568/15827] - ESC[31merrorESC[39m: topics.loadMoreSortedTopics
    Error: [[error:invalid-session]]
        at validateSession (/home/nodebb/nodebb_root/src/socket.io/index.js:196:9)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async onMessage (/home/nodebb/nodebb_root/src/socket.io/index.js:143:3)
    2021-04-05T12:46:10.315Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4983 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T12:46:10.398Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4285 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T13:36:33.409Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4285 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T13:36:33.410Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4983 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T14:52:39.513Z [4568/15827] - ESC[31merrorESC[39m: /api/v3/topics
    invalid csrf token
    2021-04-05T15:12:26.095Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4131 (__________@yahoo.com) has not confirmed email, not sending "categoryNotifications_post" email.
    2021-04-05T15:12:26.101Z [4568/15827] - ESC[33mwarnESC[39m: uid : 5384 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T16:23:45.309Z [4568/15827] - ESC[33mwarnESC[39m: [api] This route has been deprecated and will likely be removed in v1.17.0
    2021-04-05T16:23:45.309Z [4568/15827] - ESC[33mwarnESC[39m: [api] Use GET /api/v3/(posts|topics|categories)/:id instead
    2021-04-05T16:26:45.802Z [4568/15827] - ESC[31merrorESC[39m: /login
    invalid csrf token
    2021-04-05T16:27:26.527Z [4568/15827] - ESC[33mwarnESC[39m: [api] This route has been deprecated and will likely be removed in v1.17.0
    2021-04-05T16:27:26.528Z [4568/15827] - ESC[33mwarnESC[39m: [api] Use GET /api/v3/(posts|topics|categories)/:id instead
    2021-04-05T16:32:37.567Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4285 has no email, not sending "categoryNotifications_topic" email.
    2021-04-05T16:32:37.638Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4983 has no email, not sending "categoryNotifications_topic" email.
    2021-04-05T16:33:46.887Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4131 (__________@yahoo.com) has not confirmed email, not sending "categoryNotifications_post" email.
    2021-04-05T16:33:46.956Z [4568/15827] - ESC[33mwarnESC[39m: uid : 5384 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T16:36:20.958Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4285 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T16:36:20.959Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4983 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T16:49:52.858Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4285 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T16:49:52.860Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4983 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T17:34:10.944Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4285 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T17:34:10.945Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4983 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T17:37:24.430Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4285 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T17:37:24.431Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4983 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T17:40:21.534Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4285 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T17:40:21.535Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4983 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T17:49:12.589Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4285 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T17:49:12.591Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4983 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T17:59:31.997Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4285 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T17:59:31.999Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4983 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T18:17:43.462Z [4568/15827] - ESC[31merrorESC[39m: /api/post/upload
    invalid csrf token
    2021-04-05T18:18:15.704Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4285 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T18:18:15.705Z [4568/15827] - ESC[33mwarnESC[39m: uid : 4983 has no email, not sending "categoryNotifications_post" email.
    2021-04-05T18:19:36.640Z [4568/15827] - ESC[33mwarnESC[39m: uid : 5384 has no email, not sending "categoryNotifications_topic" email.
    
  • NodeBB Admin

    That's weird these look like logs from the category notifications plugin and not the digest.

    Wonder why the digest log isn't showing up.


  • @baris restarting an rebuilding does not appear to fix the problem.

    I had the HTML and socket.io logging set on (not that it applies to this I know) and went to turn it back off and got the following error:

    TypeError: stream.end is not a function
        at Object.Logger.close (/home/nodebb/nodebb_root/src/logger.js:102:10)
        at Object.Logger.setup_one_log (/home/nodebb/nodebb_root/src/logger.js:68:10)
        at Object.Logger.setup_one (/home/nodebb/nodebb_root/src/logger.js:50:10)
        at Object.Logger.monitorConfig (/home/nodebb/nodebb_root/src/logger.js:111:9)
        at Config.setMultiple (/home/nodebb/nodebb_root/src/socket.io/admin/config.js:42:11)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async onMessage (/home/nodebb/nodebb_root/src/socket.io/index.js:150:19)
    

    Also getting lots of language errors for the question and answer plugin

    Missing translation "qanda:topic_unsolved" for language "en-GB"
    Missing translation "qanda:topic_solved" for language "en-GB"
    Missing translation "qanda:menu.unsolved" for language "en-GB"
    

    Since upgrading to 1.16.2 I have a string of issues - maybe they are all related to something fundamental? This is the current versions I am running:

    System

    Nodebb 1.16.2
    Mongod 4.0.20
    Redis version 4.0.9
    Node v12.21.0
    nginx 1.16.1
    npm 6.14.11

Suggested Topics

| |