Voting Service Fixed - Investigation and Problem Found

in #witness-category16 days 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🚀!

Coin Marketplace

STEEM 0.27
TRX 0.12
JST 0.032
BTC 65345.02
ETH 2944.90
USDT 1.00
SBD 3.76