Username: Password:

Author Topic: TypeError: Cannot read property 'needLock' of undefined  (Read 22708 times)

Offline Vonstroken

  • Rookie
  • *
  • Posts: 10
    • View Profile
TypeError: Cannot read property 'needLock' of undefined
« on: October 16, 2019, 09:33:47 PM »
I have a problem with gunbot installed on a raspberry pi, using the tradingview plugin. When the bot receive the tradingview alert i get this error message:

emailParsed { timestamp: 1571255520345,
  type: 'short',
  exchange: 'bitmextestnet',
  pair: 'XBT-USD',
  tl: undefined }
TypeError: Cannot read property 'needLock' of undefined
    at status (/snapshot/Gunbotv12.8.3Starter/bot.gunbot.js:0:0)
    at Timeout.setInterval [as _onTimeout] (/snapshot/Gunbotv12.8.3Starter/bot.gunbot.js:0:0)
    at ontimeout (timers.js:478:11)
    at tryOnTimeout (timers.js:302:5)
    at Timer.listOnTimeout (timers.js:262:5) 'Uncaught Exception thrown'

I have no problem running the bot on my PC with the same settings and alerts. Can anyone help me with fix the problem?

Offline Aitor

  • Administrator
  • *****
  • Posts: 570
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: TypeError: Cannot read property 'needLock' of undefined
« Reply #1 on: October 16, 2019, 10:54:27 PM »
Hi Vonstroken, you are running Gunbot Starter version. If you have Starter, you need to upgrade to Standard pack or higher, you can do it here:

https://gunbot.shop/product/upgrade-to-gunbot-standard/

In the case you already have Standard pack or higher, then you just need to download Full version instead of Starter version.

Hope this helps.

Offline Vonstroken

  • Rookie
  • *
  • Posts: 10
    • View Profile
Re: TypeError: Cannot read property 'needLock' of undefined
« Reply #2 on: October 17, 2019, 11:17:09 AM »
Hi Vonstroken, you are running Gunbot Starter version. If you have Starter, you need to upgrade to Standard pack or higher, you can do it here:

https://gunbot.shop/product/upgrade-to-gunbot-standard/

In the case you already have Standard pack or higher, then you just need to download Full version instead of Starter version.

Hope this helps.

Thanks for the quick respond I have the standard licens for gunbot and the version im using is the latest arm release (v14), not the starter. Have tried v13 also, but with the same error.

Downloaded from this github https://github.com/GuntharDeNiro/BTCT/releases

Offline Aitor

  • Administrator
  • *****
  • Posts: 570
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: TypeError: Cannot read property 'needLock' of undefined
« Reply #3 on: October 18, 2019, 02:54:13 AM »
Are you sure? The error you sent above shows this text "Gunbotv12.8.3Starter"

Offline Vonstroken

  • Rookie
  • *
  • Posts: 10
    • View Profile
Re: TypeError: Cannot read property 'needLock' of undefined
« Reply #4 on: October 18, 2019, 05:46:30 AM »
Yes i'm positive. But when the arm.zip file is unzipped, it got both gunthy-arm (v13) and gunthy (v14) inside the arm folder. Tried
running both but getting the same error. Tried with a fresh install of raspbian, still no luck

Offline sbogovac

  • Contributor
  • **
  • Posts: 113
    • View Profile
Re: TypeError: Cannot read property 'needLock' of undefined
« Reply #5 on: October 18, 2019, 09:13:46 AM »
Yes i'm positive. But when the arm.zip file is unzipped, it got both gunthy-arm (v13) and gunthy (v14) inside the arm folder. Tried
running both but getting the same error. Tried with a fresh install of raspbian, still no luck

Tried putting them in separate folders...?

Offline Vonstroken

  • Rookie
  • *
  • Posts: 10
    • View Profile
Re: TypeError: Cannot read property 'needLock' of undefined
« Reply #6 on: October 18, 2019, 12:37:27 PM »
Here is a screenshot of the content in the arm.zip file from github. Showing the two gunhty files with diffent dates the one being v13 and the other is v14

Offline Vonstroken

  • Rookie
  • *
  • Posts: 10
    • View Profile
Re: TypeError: Cannot read property 'needLock' of undefined
« Reply #7 on: October 18, 2019, 12:38:21 PM »
Yes i'm positive. But when the arm.zip file is unzipped, it got both gunthy-arm (v13) and gunthy (v14) inside the arm folder. Tried
running both but getting the same error. Tried with a fresh install of raspbian, still no luck

Tried putting them in separate folders...?

No have not tried that, will try when i get home

EDIT: No luck with that either
« Last Edit: October 18, 2019, 10:09:12 PM by Vonstroken »

Offline Aitor

  • Administrator
  • *****
  • Posts: 570
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: TypeError: Cannot read property 'needLock' of undefined
« Reply #8 on: October 19, 2019, 01:42:06 AM »
How many exchanges have you added to your ARM setup?
The error still says "v12.8.3.Starter"?

Offline Vonstroken

  • Rookie
  • *
  • Posts: 10
    • View Profile
Re: TypeError: Cannot read property 'needLock' of undefined
« Reply #9 on: October 19, 2019, 07:09:32 AM »
I've added my gunbot licens api and a bitmex testnet api. Im only running one instance of gunbot and only sending tradingview alerts to bitmex testnet for one pair. And having the stat for the added trading pair disabler.

When i start the bot it shows my correct standard gunbot licens, gunthy wallet and tradingview plugin access and true.
The bot runs fine with the same setup on Windows.

Offline Aitor

  • Administrator
  • *****
  • Posts: 570
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: TypeError: Cannot read property 'needLock' of undefined
« Reply #10 on: October 19, 2019, 07:19:28 PM »
Try running one 1 exchange for each instance. I mean, just leave 1 api / exchange loaded in the settings, and let me know if it helps, else I would need to check the logs and take a deep look into it.

Offline Vonstroken

  • Rookie
  • *
  • Posts: 10
    • View Profile
Re: TypeError: Cannot read property 'needLock' of undefined
« Reply #11 on: October 20, 2019, 09:48:56 AM »
Will try to send a tradingview alert to bittrex with only that api loaded in the settings. Then I'll report back.
I really appreciate the help!

Offline Vonstroken

  • Rookie
  • *
  • Posts: 10
    • View Profile
Re: TypeError: Cannot read property 'needLock' of undefined
« Reply #12 on: October 22, 2019, 12:55:39 PM »
Never got it to work on the testnet, so i when on to try at bitmex with minimal amounts and the but is now running. :)

Offline Aitor

  • Administrator
  • *****
  • Posts: 570
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: TypeError: Cannot read property 'needLock' of undefined
« Reply #13 on: October 24, 2019, 08:04:31 PM »
Glad to hear is running fine now  ;)