Ekliptor / WolfBot

Crypto currency trading bot written in TypeScript for NodeJS
https://wolfbot.org
GNU Affero General Public License v3.0
710 stars 215 forks source link

Ubuntu installation 02 #80

Closed Sascha321 closed 4 years ago

Sascha321 commented 4 years ago

Hello, unfortunately the installation does not work, even if I start it with the command:

node app.js --debug --config=Noop --trader=RealTimeTrader --noUpdate --noBrowser

$ node app.js --debug --config=Noop --trader=RealTimeTrader --noUpdate --noBrowser internal/modules/cjs/loader.js:968 throw err; ^

Error: Cannot find module '/home/locadm/WolfBot/app.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15) at Function.Module._load (internal/modules/cjs/loader.js:841:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: []

Can anyone help me? thank you

I install the following on an Ubuntu 20.04:

sudo apt update -y && sudo apt -y upgrade sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - sudo apt -y install nodejs sudo apt -y install gcc g++ make

sudo apt-get install gnupg -y wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - sudo apt-get update sudo apt-get install -y mongodb-org sudo apt update && sudo apt install node-typescript -y sudo npm install -g typescript sudo apt-get update -y sudo apt-get install -y webpack

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt update -y sudo apt install -y yarn sudo apt install --no-install-recommends yarn

sudo apt install -y git git clone https://github.com/Ekliptor/WolfBot yarn install build/app.js

Sascha321 commented 4 years ago

Hello How can I install TypeScript if I shouldn't install npm because of yarn?

Ekliptor commented 4 years ago

global https://www.typescriptlang.org/download

Sascha321 commented 4 years ago

Hello

Can you help me there again? thank you

~/WolfBot/build$ node app.js --debug --config=Noop --trader=RealTimeTrader --noUpdate --noBrowser 2020-09-02 05:56:29 - info: DISCOUNT Having trouble setting up WolfBot on your local machine? Try the cloud version at https://wolfbot.org with a 30% discount with this code: gitsource7393 2020-09-02 05:56:30 - verbose: Ta-Lib successfully loaded. Ta-Lib Version 1.1.3 ready 2020-09-02 05:56:30 - info: minified all resources 2020-09-02 05:57:00 - error: Error connecting to MongoDB {"message":"connect ECONNREFUSED 127.0.0.1:27017","stack":"MongoServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017\n at Timeout._onTimeout (/home/%user%/WolfBot/node_modules/mongodb/lib/core/sdam/topology.js:438:30)\n at listOnTimeout (internal/timers.js:549:17)\n at processTimers (internal/timers.js:492:7)","name":"MongoServerSelectionError","reason":{"type":"Single","setName":null,"maxSetVersion":null,"maxElectionId":null,"servers":{},"stale":false,"compatible":true,"compatibilityError":null,"logicalSessionTimeoutMinutes":null,"heartbeatFrequencyMS":10000,"localThresholdMS":15,"commonWireVersion":null}} 2020-09-02 05:57:00 - info: Main process exited with code 1 ~/WolfBot/build$

Ekliptor commented 4 years ago

something is wrong with your MongoDB connection. Please put in the correct URL https://github.com/Ekliptor/WolfBot/blob/master/configLocal-sample.ts#L12

Sascha321 commented 4 years ago

I did that, I set the path as follows "mongodb: //localhost/wolfbotdb" but then I still get the error, how is the URL composed normally?

Sascha321 commented 4 years ago

yarn install v1.22.5 [1/4] Resolving packages... warning @ekliptor/bit-models > mongodb > mongodb-core > bson@1.0.9: Fixed a critical issue with BSON serialization documented in CVE-2019-2391, see https://bit.ly/2KcpXdo for more details [2/4] Fetching packages... info fsevents@1.2.13: The platform "linux" is incompatible with this module. info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning "@ekliptor/apputils > winston-mongodb@4.0.9" has incorrect peer dependency "winston@^3.0.0". [4/4] Building fresh packages... success Saved lockfile. Done in 72.55s.