Skip to content
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

fedi wiki

  1. Home
  2. Technical Support
  3. Migrating NodeBB getting errors.

Migrating NodeBB getting errors.

Scheduled Pinned Locked Moved Technical Support
14 Posts 4 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C This user is from outside of this forum
    C This user is from outside of this forum
    cwsmith@community.nodebb.org
    wrote on last edited by
    #1

    Right now I am trying to get a nodebb forum migrated to a new server. But right now I am getting an error that says.

    ERROR: You specified an invalid date.

    I have been unable to figure out how to fix this and could use some help.

    julian@activitypub.spaceJ 1 Reply Last reply
    0
    • C cwsmith@community.nodebb.org

      Right now I am trying to get a nodebb forum migrated to a new server. But right now I am getting an error that says.

      ERROR: You specified an invalid date.

      I have been unable to figure out how to fix this and could use some help.

      julian@activitypub.spaceJ This user is from outside of this forum
      julian@activitypub.spaceJ This user is from outside of this forum
      julian@activitypub.space
      wrote on last edited by
      #2

      @cwsmith@community.nodebb.org what exactly is happening when you get that error?

      Can you share a portion of the log from when that occurs?

      1 Reply Last reply
      0
      • C This user is from outside of this forum
        C This user is from outside of this forum
        cwsmith@community.nodebb.org
        wrote on last edited by
        #3

        @julian@activitypub.space

        Sure.

        Here's what I got at the moment.

        nfo: Initializing NodeBB v4.13.2 https://community.darkscribes.com                                                    0|darkscribes  | 2026-06-25T17:41:16.558Z [4567/234065] - info: [socket.io] Restricting access to origin: https://community.darkscribes.com:*                                    0|darkscribes  | 2026-06-25T17:41:16.584Z [4567/234065] - error: Error: ERROR: You specified an invalid date.         0|darkscribes  |     at CronTime.getNextDateFrom (/var/www/community.darkscribes.com/node_modules/cron/dist/time.js:130:19)                                                      0|darkscribes  |     at CronTime.sendAt (/var/www/community.darkscribes.com/node_modules/cron/dist/time.js:86:35)     0|darkscribes  |     at CronTime.getTimeout (/var/www/community.darkscribes.com/node_modules/cron/dist/time.js:99:21) 0|darkscribes  |     at CronJob.start (/var/www/community.darkscribes.com/node_modules/cron/dist/job.js:163:37)       0|darkscribes  |     at new CronJob (/var/www/community.darkscribes.com/node_modules/cron/dist/job.js:68:18)          0|darkscribes  |     at exports.addJob (/var/www/community.
        darkscribes.com/src/cron.js:42:14)                         0|darkscribes  |     at Notifications.startJobs (/var/www/c
        ommunity.darkscribes.com/src/notifications.js:79:13)       0|darkscribes  |     at Object.wrapperCallback [as startJob
        s] (/var/www/community.darkscribes.com/src/promisify.js:46:11)
        0|darkscribes  |     at start.start (/var/www/community.darkscribes.com/src/start.js:39:37)
        0|darkscribes  |     at process.processTicksAndRejections (node:internal/process/task_queues:104:5)                   
        
        1 Reply Last reply
        0
        • baris@community.nodebb.orgB This user is from outside of this forum
          baris@community.nodebb.orgB This user is from outside of this forum
          baris@community.nodebb.org
          wrote on last edited by
          #4

          It looks like the cron pattern passed to the cron module is invalid, can you log it's value in src/cron.js? What is the output of npm ls cron ?

          1 Reply Last reply
          0
          • C This user is from outside of this forum
            C This user is from outside of this forum
            cwsmith@community.nodebb.org
            wrote on last edited by
            #5

            Not sure how to do the first thing. But here is the output of the second.

            cwsmith@map-communities /var/www/community.darkscribes.com $ npm ls cron
            nodebb@4.13.2 /var/www/community.darkscribes.com
            ā”œā”€ā”€ cron@4.4.0
            ā”œā”€ā”¬ nodebb-plugin-poll@4.0.10
            │ └── cron@1.8.2
            └─┬ nodebb-plugin-rss@4.0.2
            └── cron@1.8.2

            1 Reply Last reply
            0
            • baris@community.nodebb.orgB This user is from outside of this forum
              baris@community.nodebb.orgB This user is from outside of this forum
              baris@community.nodebb.org
              wrote on last edited by
              #6

              The version of cron looks good. To check the value passed to cron open up the file cron.js in /path/to/nodebb/src/cron.js and add a console.log(cronTime) on here. Then restart nodebb and see what the message shows in the logs. For each cronjob that was started it should show it's pattern.

              1 Reply Last reply
              0
              • C This user is from outside of this forum
                C This user is from outside of this forum
                cwsmith@community.nodebb.org
                wrote last edited by
                #7

                I'll be be honest. I am not sure I did it right.

                But here's what the log is spitting out.

                0|darkscribes  | 2026-06-26T12:00:56.479Z [4567/316835] - info: Initializing NodeBB v4.13.2 https://community.darkscribes.com                                                    0|darkscribes  | 2026-06-26T12:00:57.525Z [4567/316835] - info: [socket.io] Restricting access to origin: https://community.darkscribes.com:*                                    0|darkscribes  | 2026-06-26T12:00:57.552Z [4567/316835] - error: Error: ERROR: You specified an invalid date.         0|darkscribes  |     at CronTime.getNextDateFrom (/var/www/community.darkscribes.com/node_modules/cron/dist/time.js:130:19)
                0|darkscribes  |     at CronTime.sendAt (/var/www/community.darkscribes.com/node_modules/cron/dist/time.js:86:35)
                0|darkscribes  |     at CronTime.getTimeout (/var/www/community.darkscribes.com/node_modules/cron/dist/time.js:99:21)
                0|darkscribes  |     at CronJob.start (/var/www/community.darkscribes.com/node_modules/cron/dist/job.js:163:37)
                0|darkscribes  |     at new CronJob (/var/www/community.darkscribes.com/node_modules/cron/dist/job.js:68:18)
                0|darkscribes  |     at exports.addJob (/var/www/community.darkscribes.com/src/cron.js:42:14)
                0|darkscribes  |     at Notifications.startJobs (/var/www/community.darkscribes.com/src/notifications.js:79:13)
                0|darkscribes  |     at Object.wrapperCallback [as startJobs] (/var/www/community.darkscribes.com/src/promisify.js:46:11)
                0|darkscribes  |     at start.start (/var/www/community.darkscribes.com/src/start.js:39:37)
                0|darkscribes  |     at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
                0|darkscribes  | 2026-06-26T12:00:57.766Z [4567/316851] -
                
                1 Reply Last reply
                0
                • baris@community.nodebb.orgB This user is from outside of this forum
                  baris@community.nodebb.orgB This user is from outside of this forum
                  baris@community.nodebb.org
                  wrote last edited by
                  #8

                  Doesn't look like it shows anything new. Did you restart nodebb after adding the console.log?

                  C 1 Reply Last reply
                  0
                  • baris@community.nodebb.orgB baris@community.nodebb.org

                    Doesn't look like it shows anything new. Did you restart nodebb after adding the console.log?

                    C This user is from outside of this forum
                    C This user is from outside of this forum
                    cwsmith@community.nodebb.org
                    wrote last edited by
                    #9

                    @baris

                    I did. Not even sure why this is coming up sinxe that databse and the code was working properly on another server without this particular error.

                    Could I have missinstalled something?

                    1 Reply Last reply
                    0
                    • baris@community.nodebb.orgB This user is from outside of this forum
                      baris@community.nodebb.orgB This user is from outside of this forum
                      baris@community.nodebb.org
                      wrote last edited by
                      #10

                      What is your nodejs version?

                      1 Reply Last reply
                      0
                      • C This user is from outside of this forum
                        C This user is from outside of this forum
                        cwsmith@community.nodebb.org
                        wrote last edited by
                        #11

                        24.14.0 running on Gentoo linux

                        1 Reply Last reply
                        0
                        • julian@community.nodebb.orgJ This user is from outside of this forum
                          julian@community.nodebb.orgJ This user is from outside of this forum
                          julian@community.nodebb.org
                          wrote last edited by
                          #12

                          @CWSmith that log isn't showing enough.

                          Instead of ./nodebb log can you open the log in something like nano so you can see more?

                          1 Reply Last reply
                          0
                          • C This user is from outside of this forum
                            C This user is from outside of this forum
                            cwsmith@community.nodebb.org
                            wrote last edited by
                            #13

                            All I see are just blocks of this error over and over in logs/output.log

                            NodeBB v4.13.2 Copyright (C) 2013-2026 NodeBB Inc. This program comes with ABSOLUTELY NO WARRANTY.
                            This is free software, and you are welcome to redistrib>For the full license, please visit: http://www.gnu.org/> Clustering enabled: Spinning up 1 process(es).

                            2026-07-05T16:37:19.790Z [4567/85498] - ^[[32minfo^[[39>
                            2026-07-05T16:37:20.749Z [4567/85498] - ^[[33mwarn^[[39>
                            2026-07-05T16:37:20.921Z [4567/85498] - ^[[32minfo^[[39>
                            2026-07-05T16:37:20.980Z [4567/85498] - ^[[32minfo^[[39>
                            2026-07-05T16:37:20.988Z [4567/85498] - ^[[32minfo^[[39>
                            2026-07-05T16:37:21.013Z [4567/85498] - ^[[31merror^[[3>
                            at CronTime.getNextDateFrom (/var/www/community.dar>
                            at CronTime.sendAt (/var/www/community.darkscribes.>
                            at CronTime.getTimeout (/var/www/community.darkscri>
                            at CronJob.start (/var/www/community.darkscribes.co>
                            at new CronJob (/var/www/community.darkscribes.com/>
                            at exports.addJob (/var/www/community.darkscribes.c>
                            at Analytics.init (/var/www/community.darkscribes.c>
                            at Object.wrapperCallback [as init] (/var/www/commu>
                            at initializeNodeBB (/var/www/community.darkscribes>
                            at process.processTicksAndRejections (node:internal>
                            [cluster] Child Process (85498) has exited (code: 0, si>

                            NodeBB v4.13.2 Copyright (C) 2013-2026 NodeBB Inc.
                            This program comes with ABSOLUTELY NO WARRANTY.
                            This is free software, and you are welcome to redistrib>
                            For the full license, please visit: http://www.gnu.org/>

                            Clustering enabled: Spinning up 1 process(es)

                            I am still on Gentoo Linux so if I missed a use flag I can fix it. Just need a use flag.

                            julian@activitypub.spaceJ 1 Reply Last reply
                            0
                            • C cwsmith@community.nodebb.org

                              All I see are just blocks of this error over and over in logs/output.log

                              NodeBB v4.13.2 Copyright (C) 2013-2026 NodeBB Inc. This program comes with ABSOLUTELY NO WARRANTY.
                              This is free software, and you are welcome to redistrib>For the full license, please visit: http://www.gnu.org/> Clustering enabled: Spinning up 1 process(es).

                              2026-07-05T16:37:19.790Z [4567/85498] - ^[[32minfo^[[39>
                              2026-07-05T16:37:20.749Z [4567/85498] - ^[[33mwarn^[[39>
                              2026-07-05T16:37:20.921Z [4567/85498] - ^[[32minfo^[[39>
                              2026-07-05T16:37:20.980Z [4567/85498] - ^[[32minfo^[[39>
                              2026-07-05T16:37:20.988Z [4567/85498] - ^[[32minfo^[[39>
                              2026-07-05T16:37:21.013Z [4567/85498] - ^[[31merror^[[3>
                              at CronTime.getNextDateFrom (/var/www/community.dar>
                              at CronTime.sendAt (/var/www/community.darkscribes.>
                              at CronTime.getTimeout (/var/www/community.darkscri>
                              at CronJob.start (/var/www/community.darkscribes.co>
                              at new CronJob (/var/www/community.darkscribes.com/>
                              at exports.addJob (/var/www/community.darkscribes.c>
                              at Analytics.init (/var/www/community.darkscribes.c>
                              at Object.wrapperCallback [as init] (/var/www/commu>
                              at initializeNodeBB (/var/www/community.darkscribes>
                              at process.processTicksAndRejections (node:internal>
                              [cluster] Child Process (85498) has exited (code: 0, si>

                              NodeBB v4.13.2 Copyright (C) 2013-2026 NodeBB Inc.
                              This program comes with ABSOLUTELY NO WARRANTY.
                              This is free software, and you are welcome to redistrib>
                              For the full license, please visit: http://www.gnu.org/>

                              Clustering enabled: Spinning up 1 process(es)

                              I am still on Gentoo Linux so if I missed a use flag I can fix it. Just need a use flag.

                              julian@activitypub.spaceJ This user is from outside of this forum
                              julian@activitypub.spaceJ This user is from outside of this forum
                              julian@activitypub.space
                              wrote last edited by
                              #14

                              @cwsmith@community.nodebb.org I would recommend you try to add in the console log that @baris@community.nodebb.org suggested so we can see the cron value being passed in.

                              Judging by your logs they're not showing anything output šŸ¤”

                              Can you make the edit and let us know what kind of logging you added as well?

                              1 Reply Last reply
                              0

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better šŸ’—

                              Register Login
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              Powered by NodeBB Contributors
                              • First post
                                Last post