It is currently Sun Jun 16, 2019 7:12 pm
All times are UTC + 8 hours

[REQUEST] Gekko Crypto Trading Bot APK (Node.js)

Who doesn't love third-party apps? Get together and talk about them here.

Re: [REQUEST] Gekko Crypto Trading Bot APK (Node.js)

Postby IPhantom » Fri Jul 20, 2018 6:09 pm

Ok i uninstalled node.js, entware and the previous install of gekko.
Then i ran the apk and it asked me to install node.js first. I installed the one via AppCentral.
After install it was shown as disabled in AppCentral (the slider) with the error "Enable App failed (unknown). (Ref 137)".
Manual enable with the slider worked then, but the webUI was not reachable.
I have it from time to time with other apps too, then a disable/enable fixes it usually.
Here it does not and the enable throws occasionally the error above.
Node.js was not updated during install.

At some point the switching on/off cleared the gekko/Gekko directory (except .git) :o
I'll give it another shot...
IPhantom
 
Posts: 44
Joined: Sat Jan 14, 2017 11:38 pm

Re: [REQUEST] Gekko Crypto Trading Bot APK (Node.js)

Postby clinton.hall » Fri Jul 20, 2018 6:48 pm

Ok. I forgot to remove the dependency on the nodejs apkg.

I have now removed this and rebuilt.
Please try this version https://www.dropbox.com/s/xki07cgldnq9zeh/gekko_20180720_any.apk?dl=0

you will need to remove the previous...

on my system this started first time and the webui responded.
if yours doesn't can you please post the output of the following command?
Code: Select all
/usr/local/AppCentral/gekko/CONTROL/start-stop.sh restart
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
User avatar
clinton.hall
 
Posts: 838
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: [REQUEST] Gekko Crypto Trading Bot APK (Node.js)

Postby IPhantom » Fri Jul 20, 2018 8:13 pm

Ok now i get it why the Gekko folder remains empty, it gets stuck here:

Code: Select all
admin@VAULT:/volume1/.@plugins/AppCentral/gekko/CONTROL $ /usr/local/AppCentral/
gekko/CONTROL/start-stop.sh restart
Restarting Gekko
Shutting down Gekko at Fri Jul 20 19:51:04 CST 2018...
Gekko is not running? (Fri Jul 20 19:51:04 CST 2018)
Gekko prestartup checks... (Fri Jul 20 19:51:04 CST 2018)
Cloning into '/usr/local/AppCentral/gekko/Gekko'...
remote: Counting objects: 13627, done.
remote: Compressing objects: 100% (69/69), done.
Receiving objects:   0% (1/13627)
IPhantom
 
Posts: 44
Joined: Sat Jan 14, 2017 11:38 pm

Re: [REQUEST] Gekko Crypto Trading Bot APK (Node.js)

Postby IPhantom » Fri Jul 20, 2018 8:22 pm

Previous attempts were made with Putty. Now i tried shell in box with the following result:

Code: Select all
admin@VAULT:/volume1/.@plugins/AppCentral/gekko $ /usr/local/AppCentral/gekko/CONTROL/start-stop.sh restart                                         
Restarting Gekko                                                                                                                                     
Shutting down Gekko at Fri Jul 20 20:20:34 CST 2018...                                                                                               
Gekko is not running? (Fri Jul 20 20:20:34 CST 2018)                                                                                                 
Gekko prestartup checks... (Fri Jul 20 20:20:34 CST 2018)                                                                                           
remote: Counting objects: 13567, done.                                                                                                               
remote: Compressing objects: 100% (42/42), done.                                                                                                     
fatal: Unable to read current working directory: No such file or directory                                                                           
fatal: index-pack failed                                                                                                                             
cp: can't create '/usr/local/AppCentral/gekko/Gekko/web/vue/dist/UIconfig.js': No such file or directory                                             
sed: /usr/local/AppCentral/gekko/Gekko/web/vue/dist/UIconfig.js: No such file or directory                                                           
--2018-07-20 20:20:41--  https://nodejs.org/dist/v8.11.3/node-v8.11.3-linux-x64.tar.xz                                                               
Resolving nodejs.org (nodejs.org)... 104.20.22.46, 104.20.23.46, 2400:cb00:2048:1::6814:172e, ...                                                   
Connecting to nodejs.org (nodejs.org)|104.20.22.46|:443... connected.                                                                               
HTTP request sent, awaiting response... 200 OK                                                                                                       
Length: 11351132 (11M) [application/x-xz]                                                                                                           
Saving to: 'node-v8.11.3.tar.xz'                                                                                                                     
                                                                                                                                                     
100%[===========================================================================================================>] 11,351,132  4.28MB/s   in 2.5s   
                                                                                                                                                     
2018-07-20 20:20:45 (4.28 MB/s) - 'node-v8.11.3.tar.xz' saved [11351132/11351132]                                                                   
                                                                                                                                                     
/usr/local/AppCentral/gekko/CONTROL/start-stop.sh: cd: line 116: can't cd to /usr/local/AppCentral/gekko/Gekko                                       
/volume1/.@plugins/AppCentral/gekko/bin/npm -> /volume1/.@plugins/AppCentral/gekko/lib/node_modules/npm/bin/npm-cli.js
/volume1/.@plugins/AppCentral/gekko/bin/npx -> /volume1/.@plugins/AppCentral/gekko/lib/node_modules/npm/bin/npx-cli.js                               
+ npm@6.2.0
added 282 packages, removed 363 packages and updated 41 packages in 27.459s                                                                         
npm ERR! code EAUDITNOPJSON
npm ERR! audit No package.json found: Cannot audit a project without a package.json
                                                                                                                                                     
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/admin/.npm/_logs/2018-07-20T12_21_21_351Z-debug.log
/usr/local/AppCentral/gekko/CONTROL/start-stop.sh: cd: line 116: can't cd to /usr/local/AppCentral/gekko/Gekko                                       
/usr/local/AppCentral/gekko/CONTROL/start-stop.sh: cd: line 116: can't cd to /usr/local/AppCentral/gekko/Gekko/exchange                             
Starting Gekko/usr/local/AppCentral/gekko/CONTROL/start-stop.sh: cd: line 116: can't cd to /usr/local/AppCentral/gekko/Gekko                         
 Done (Fri Jul 20 20:21:22 CST 2018)   
IPhantom
 
Posts: 44
Joined: Sat Jan 14, 2017 11:38 pm

Re: [REQUEST] Gekko Crypto Trading Bot APK (Node.js)

Postby IPhantom » Fri Jul 20, 2018 9:04 pm

Seems i am getting different results every time :?

Code: Select all
admin@VAULT:/volume1/home/admin $ /usr/local/AppCentral/gekko/CONTROL/start-stop
.sh restart
Restarting Gekko
Shutting down Gekko at Fri Jul 20 21:01:28 CST 2018...
Gekko is not running? (Fri Jul 20 21:01:28 CST 2018)
Gekko prestartup checks... (Fri Jul 20 21:01:28 CST 2018)
remote: Counting objects: 13627, done.
remote: Compressing objects: 100% (69/69), done.
remote: Total 13627 (delta 42), reused 35 (delta 14), pack-reused 13539
Receiving objects: 100% (13627/13627), 4.58 MiB | 2.86 MiB/s, done.
Resolving deltas: 100% (8902/8902), done.
From git://github.com/askmike/gekko
 * [new branch]      develop                 -> origin/develop
 * [new branch]      feature/draw-indicators -> origin/feature/draw-indicators
 * [new branch]      hotfix/binance-gb-error-flow -> origin/hotfix/binance-gb-er                                                                                        ror-flow
 * [new branch]      hotfix/gb-error-bubbling -> origin/hotfix/gb-error-bubbling
 * [new branch]      hotfix/importers-lodash-unique -> origin/hotfix/importers-l                                                                                        odash-unique
 * [new branch]      stable                  -> origin/stable
 * [new tag]         0.5.11                  -> 0.5.11
 * [new tag]         0.5.12                  -> 0.5.12
 * [new tag]         0.5.13                  -> 0.5.13
 * [new tag]         0.5.14                  -> 0.5.14
 * [new tag]         0.6.1                   -> 0.6.1
 * [new tag]         v0.5.10                 -> v0.5.10
 * [new tag]         v0.5.8                  -> v0.5.8
 * [new tag]         v0.5.9                  -> v0.5.9
 * [new tag]         v0.6.0                  -> v0.6.0
 * [new tag]         v0.6.1                  -> v0.6.1
 * [new tag]         v0.6.2                  -> v0.6.2
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master

cp: can't create '/usr/local/AppCentral/gekko/Gekko/web/vue/dist/UIconfig.js': N                                                                                        o such file or directory
sed: /usr/local/AppCentral/gekko/Gekko/web/vue/dist/UIconfig.js: No such file or                                                                                         directory
--2018-07-20 21:01:39--  https://nodejs.org/dist/v8.11.3/node-v8.11.3-linux-x64.                                                                                        tar.xz
Resolving nodejs.org (nodejs.org)... 104.20.22.46, 104.20.23.46, 2400:cb00:2048:                                                                                        1::6814:162e, ...
Connecting to nodejs.org (nodejs.org)|104.20.22.46|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11351132 (11M) [application/x-xz]
Saving to: 'node-v8.11.3.tar.xz'

100%[======================================>] 11,351,132  7.24MB/s   in 1.5s

2018-07-20 21:01:41 (7.24 MB/s) - 'node-v8.11.3.tar.xz' saved [11351132/11351132                                                                                        ]

/volume1/.@plugins/AppCentral/gekko/bin/npm -> /volume1/.@plugins/AppCentral/gekko/lib/node_modules/npm/bin/npm-cli.js
/volume1/.@plugins/AppCentral/gekko/bin/npx -> /volume1/.@plugins/AppCentral/gekko/lib/node_modules/npm/bin/npx-cli.js
+ npm@6.2.0
added 282 packages, removed 363 packages and updated 41 packages in 26.471s
npm ERR! code EAUDITNOPJSON
npm ERR! audit No package.json found: Cannot audit a project without a package.json

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/admin/.npm/_logs/2018-07-20T13_02_14_902Z-debug.log
npm ERR! code EAUDITNOPJSON
npm ERR! audit No package.json found: Cannot audit a project without a package.json

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/admin/.npm/_logs/2018-07-20T13_02_17_194Z-debug.log
/usr/local/AppCentral/gekko/CONTROL/start-stop.sh: cd: line 116: can't cd to /usr/local/AppCentral/gekko/Gekko/exchange
Starting Gekko Done (Fri Jul 20 21:02:18 CST 2018)
IPhantom
 
Posts: 44
Joined: Sat Jan 14, 2017 11:38 pm

Re: [REQUEST] Gekko Crypto Trading Bot APK (Node.js)

Postby clinton.hall » Sat Jul 21, 2018 4:48 am

Remove the app, then try again. Let it sit for 5-10 mins before attempting a restart...
It needs to download node and gekko (via git) if you interrupt during this process, that can cause these dramas. Each time is a different result since git is still progressing in the background?
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
User avatar
clinton.hall
 
Posts: 838
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: [REQUEST] Gekko Crypto Trading Bot APK (Node.js)

Postby clinton.hall » Sat Jul 21, 2018 4:52 am

Ok, just saw time stamps... I am assuming your internet shouldn't be that slow. But something appears to have stopped the git process.
Try a clean install again, wait 20 to be safe, and then try restart once.
If that fails, I'll post some code to run via putty to test.
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
User avatar
clinton.hall
 
Posts: 838
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: [REQUEST] Gekko Crypto Trading Bot APK (Node.js)

Postby IPhantom » Sat Jul 21, 2018 1:37 pm

I gave it at least half an hours. The Gekko directory remains empty (except .git).
A manual close definitely works every time.
The script used for install is start-stop.sh right? So a restart is basically another manual install?

The package.json is definitely there. Path misspell?
IPhantom
 
Posts: 44
Joined: Sat Jan 14, 2017 11:38 pm

Re: [REQUEST] Gekko Crypto Trading Bot APK (Node.js)

Postby clinton.hall » Sat Jul 21, 2018 4:13 pm

Restart will run through the manual install if the files don't exist. if they exist, it just skips and then starts the service.

you say Gekko directory is empty (except for .git), but then say package.json exists... is this inside the Gekko directory, because that is where the package.json actually exists.

Can you show the current output from start-stop.sh restart again and I'll send some test commands to run.
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
User avatar
clinton.hall
 
Posts: 838
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: [REQUEST] Gekko Crypto Trading Bot APK (Node.js)

Postby IPhantom » Sat Jul 21, 2018 5:27 pm

Oh god extreme slow download speeds are responsible. It worked now via restart, the UI is reachable.

Code: Select all
admin@VAULT:/volume1/home/admin $ /usr/local/AppCentral/gekko/CONTROL/start-stop
.sh restart
Restarting Gekko
Shutting down Gekko at Sat Jul 21 17:06:39 CST 2018...
Gekko is not running? (Sat Jul 21 17:06:39 CST 2018)
Gekko prestartup checks... (Sat Jul 21 17:06:39 CST 2018)
remote: Counting objects: 13657, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 13657 (delta 3), reused 9 (delta 2), pack-reused 13631
Receiving objects: 100% (13657/13657), 4.60 MiB | 34.00 KiB/s, done.
Resolving deltas: 100% (8929/8929), done.
From git://github.com/askmike/gekko
 * branch            HEAD       -> FETCH_HEAD
--2018-07-21 17:09:07--  https://nodejs.org/dist/v8.11.3/node-v8.11.3-linux-x64.tar.xz
Resolving nodejs.org (nodejs.org)... 104.20.22.46, 104.20.23.46, 2400:cb00:2048:1::6814:172e, ...
Connecting to nodejs.org (nodejs.org)|104.20.22.46|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11351132 (11M) [application/x-xz]
Saving to: 'node-v8.11.3.tar.xz'

100%[===============================================>] 11,351,132  3.14MB/s   in 3.4s

2018-07-21 17:09:11 (3.14 MB/s) - 'node-v8.11.3.tar.xz' saved [11351132/11351132]

/volume1/.@plugins/AppCentral/gekko/bin/npm -> /volume1/.@plugins/AppCentral/gekko/lib/node_modules/npm/bin/npm-cli.js
/volume1/.@plugins/AppCentral/gekko/bin/npx -> /volume1/.@plugins/AppCentral/gekko/lib/node_modules/npm/bin/npx-cli.js
+ npm@6.2.0
added 282 packages, removed 363 packages and updated 41 packages in 24.805s

> websocket@1.0.24 install /volume1/.@plugins/AppCentral/gekko/Gekko/node_modules/websocket
> (node-gyp rebuild 2> builderror.log) || (exit 0)


> sqlite3@4.0.2 install /volume1/.@plugins/AppCentral/gekko/Gekko/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for sqlite3@4.0.2 and node@8.11.3 (node-v57 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error read ECONNRESET
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack     at getNotFoundError (/volume1/.@plugins/AppCentral/gekko/lib/node_modules/npm/node_modules/which/which.js:13:12)
gyp ERR! stack     at F (/volume1/.@plugins/AppCentral/gekko/lib/node_modules/npm/node_modules/which/which.js:68:19)
gyp ERR! stack     at E (/volume1/.@plugins/AppCentral/gekko/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack     at /volume1/.@plugins/AppCentral/gekko/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack     at /volume1/.@plugins/AppCentral/gekko/lib/node_modules/npm/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /volume1/.@plugins/AppCentral/gekko/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Linux 4.4.24
gyp ERR! command "/volume1/.@plugins/AppCentral/gekko/bin/node" "/volume1/.@plugins/AppCentral/gekko/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/volume1/.@plugins/AppCentral/gekko/Gekko/node_modules/sqlite3/lib/binding/node-v57-linux-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/volume1/.@plugins/AppCentral/gekko/Gekko/node_modules/sqlite3/lib/binding/node-v57-linux-x64" "--napi_version=3" "--node_abi_napi=napi"
gyp ERR! cwd /volume1/.@plugins/AppCentral/gekko/Gekko/node_modules/sqlite3
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/volume1/.@plugins/AppCentral/gekko/bin/node /volume1/.@plugins/AppCentral/gekko/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/volume1/.@plugins/AppCentral/gekko/Gekko/node_modules/sqlite3/lib/binding/node-v57-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/volume1/.@plugins/AppCentral/gekko/Gekko/node_modules/sqlite3/lib/binding/node-v57-linux-x64 --napi_version=3 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/volume1/.@plugins/AppCentral/gekko/Gekko/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Linux 4.4.24
node-pre-gyp ERR! command "/volume1/.@plugins/AppCentral/gekko/bin/node" "/volume1/.@plugins/AppCentral/gekko/Gekko/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /volume1/.@plugins/AppCentral/gekko/Gekko/node_modules/sqlite3
node-pre-gyp ERR! node -v v8.11.3
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
Failed to execute '/volume1/.@plugins/AppCentral/gekko/bin/node /volume1/.@plugins/AppCentral/gekko/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/volume1/.@plugins/AppCentral/gekko/Gekko/node_modules/sqlite3/lib/binding/node-v57-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/volume1/.@plugins/AppCentral/gekko/Gekko/node_modules/sqlite3/lib/binding/node-v57-linux-x64 --napi_version=3 --node_abi_napi=napi' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3@4.0.2 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@4.0.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/admin/.npm/_logs/2018-07-21T09_19_21_072Z-debug.log

> sqlite3@4.0.2 install /volume1/.@plugins/AppCentral/gekko/Gekko/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download
[sqlite3] Success: "/volume1/.@plugins/AppCentral/gekko/Gekko/node_modules/sqlite3/lib/binding/node-v57-linux-x64/node_sqlite3.node" is installed via remote
+ relieve@2.2.3
+ request@2.87.0
added 53 packages from 63 contributors, removed 18 packages, updated 4 packages and moved 1 package in 244.97s
fixed 20 of 38 vulnerabilities in 648 scanned packages
  4 package updates for 18 vulns involved breaking changes
  (use `npm audit fix --force` to install breaking changes; or do it by hand)
audited 622 packages in 7.556s
found 15 vulnerabilities (2 low, 10 moderate, 3 high)
  run `npm audit fix` to fix them, or `npm audit` for details

> websocket@1.0.26 install /volume1/.@plugins/AppCentral/gekko/Gekko/exchange/node_modules/websocket
> (node-gyp rebuild 2> builderror.log) || (exit 0)

added 139 packages from 164 contributors and audited 457 packages in 45.499s
found 11 vulnerabilities (9 moderate, 2 high)
  run `npm audit fix` to fix them, or `npm audit` for details
Starting Gekko Done (Sat Jul 21 17:24:32 CST 2018)
admin@VAULT:/volume1/home/admin $
IPhantom
 
Posts: 44
Joined: Sat Jan 14, 2017 11:38 pm

PreviousNext

Return to Developer's Corner

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 1 guest