Gunthy

GUNBOT: The automatic profit generator => Technical Support & Development => Topic started by: Vonstroken on October 16, 2019, 09:33:47 PM

Title: TypeError: Cannot read property 'needLock' of undefined
Post by: Vonstroken 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?
Title: Re: TypeError: Cannot read property 'needLock' of undefined
Post by: Aitor 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.
Title: Re: TypeError: Cannot read property 'needLock' of undefined
Post by: Vonstroken 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
Title: Re: TypeError: Cannot read property 'needLock' of undefined
Post by: Aitor on October 18, 2019, 02:54:13 AM
Are you sure? The error you sent above shows this text "Gunbotv12.8.3Starter"
Title: Re: TypeError: Cannot read property 'needLock' of undefined
Post by: Vonstroken 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
Title: Re: TypeError: Cannot read property 'needLock' of undefined
Post by: sbogovac 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...?
Title: Re: TypeError: Cannot read property 'needLock' of undefined
Post by: Vonstroken 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
Title: Re: TypeError: Cannot read property 'needLock' of undefined
Post by: Vonstroken 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
Title: Re: TypeError: Cannot read property 'needLock' of undefined
Post by: Aitor 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"?
Title: Re: TypeError: Cannot read property 'needLock' of undefined
Post by: Vonstroken 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.
Title: Re: TypeError: Cannot read property 'needLock' of undefined
Post by: Aitor 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.
Title: Re: TypeError: Cannot read property 'needLock' of undefined
Post by: Vonstroken 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!
Title: Re: TypeError: Cannot read property 'needLock' of undefined
Post by: Vonstroken 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. :)
Title: Re: TypeError: Cannot read property 'needLock' of undefined
Post by: Aitor on October 24, 2019, 08:04:31 PM
Glad to hear is running fine now  ;)