Voting Service Fixed - Investigation and Problem Found

in witness-category •  7 months ago 

Despite that I have migrated from Contabo to Hetzner, the voting service was not fully working.

I tried to run the command - and it worked fine but when it was put in the crontab, it didn't. Luckily I was able to redirect the output to a file and see this:

/var/www/steem/node_modules/mysql2/node_modules/lru-cache/dist/cjs/index.js:359
    #initializeTTLTracking() {
                          ^

SyntaxError: Unexpected token '('
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/var/www/steem/node_modules/mysql2/node_modules/lru-cache/dist/cjs/index-cjs.js:5:36)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/var/www/steem/node_modules/mysql2/lib/connection.js:25:13)
    at Module._compile (internal/modules/cjs/loader.js:999:30)

Not sure why it has this error when the job is run from crontab. Anyway, I have put the job continuous running in a while loop, and in a screen session.

So, TLDR:

  1. the problem should be fixed.
  2. the voting should come quicker as previously, a round of voting occurs every 10 minutes, but now, it is running continuously.

Steem to the Moon🚀!

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE BLURT!