near_warchest's People
near_warchest's Issues
I cannot start the service according to the instructions
Hi, Good Job)
I know that this is not your problem, but I can't start the service according to your guide.
When I execute the commands:
sudo systemctl start warchest_bot and sudo journalctl -u warchest_bot.service -f
I get an error:
Sep 09 11:05:31 dimaro systemd[1]: warchest_bot.service: Service hold-off time over, scheduling restart.
Sep 09 11:05:31 dimaro systemd[1]: warchest_bot.service: Scheduled restart job, restart counter is at 1969.
Sep 09 11:05:31 dimaro systemd[1]: Stopped Warchest bot managing near stake.
Sep 09 11:05:31 dimaro systemd[1]: Started Warchest bot managing near stake.
Sep 09 11:05:31 dimaro python3.6[32474]: INFO:root:Started Warchest bot
Sep 09 11:05:31 dimaro python3.6[32474]: ERROR:root:Pinged contract coolpool.dimaro1.betanet
Sep 09 11:05:31 dimaro python3.6[32474]: --- Logging error ---
Sep 09 11:05:31 dimaro python3.6[32474]: Traceback (most recent call last):
Sep 09 11:05:31 dimaro python3.6[32474]: File "/home/near/near_warchest/warchest.py", line 39, in ping_contract
Sep 09 11:05:31 dimaro python3.6[32474]: stderr=subprocess.STDOUT,
Sep 09 11:05:31 dimaro python3.6[32474]: File "/usr/lib/python3.6/subprocess.py", line 356, in check_output
Sep 09 11:05:31 dimaro python3.6[32474]: **kwargs).stdout
Sep 09 11:05:31 dimaro python3.6[32474]: File "/usr/lib/python3.6/subprocess.py", line 438, in run
Sep 09 11:05:31 dimaro python3.6[32474]: output=stdout, stderr=stderr)
Sep 09 11:05:31 dimaro python3.6[32474]: subprocess.CalledProcessError: Command '['near call coolpool.dimaro1.betanet ping --accountId dimaro1.betanet']' returned non-zero exit status 1.
Sep 09 11:05:31 dimaro python3.6[32474]: During handling of the above exception, another exception occurred:
Sep 09 11:05:31 dimaro python3.6[32474]: Traceback (most recent call last):
Sep 09 11:05:31 dimaro python3.6[32474]: File "/usr/lib/python3.6/logging/__init__.py", line 994, in emit
Sep 09 11:05:31 dimaro python3.6[32474]: msg = self.format(record)
Sep 09 11:05:31 dimaro python3.6[32474]: File "/usr/lib/python3.6/logging/__init__.py", line 840, in format
Sep 09 11:05:31 dimaro python3.6[32474]: return fmt.format(record)
Sep 09 11:05:31 dimaro python3.6[32474]: File "/usr/lib/python3.6/logging/__init__.py", line 577, in format
Sep 09 11:05:31 dimaro python3.6[32474]: record.message = record.getMessage()
Sep 09 11:05:31 dimaro python3.6[32474]: File "/usr/lib/python3.6/logging/__init__.py", line 338, in getMessage
Sep 09 11:05:31 dimaro python3.6[32474]: msg = msg % self.args
Sep 09 11:05:31 dimaro python3.6[32474]: TypeError: not all arguments converted during string formatting
Sep 09 11:05:31 dimaro python3.6[32474]: Call stack:
Sep 09 11:05:31 dimaro python3.6[32474]: File "/home/near/near_warchest/warchest.py", line 171, in <module>
Sep 09 11:05:31 dimaro python3.6[32474]: run()
Sep 09 11:05:31 dimaro python3.6[32474]: File "/home/near/near_warchest/warchest.py", line 26, in run
Sep 09 11:05:31 dimaro python3.6[32474]: ping_contract()
Sep 09 11:05:31 dimaro python3.6[32474]: File "/home/near/near_warchest/warchest.py", line 45, in ping_contract
Sep 09 11:05:31 dimaro python3.6[32474]: logging.error("Status : FAIL", e.returncode, e.output)
Sep 09 11:05:31 dimaro python3.6[32474]: Message: 'Status : FAIL'
Sep 09 11:05:31 dimaro python3.6[32474]: Arguments: (1, b"/usr/local/lib/node_modules/near-shell/commands/dev-deploy.js:4\nconst { readFile, writeFile, mkdir } = require('fs').promises;\n ^\n\nTypeError: Cannot destructure property `readFile` of 'undefined' or 'null'.\n at Object.<anonymous> (/usr/local/lib/node_modules/near-shell/commands/dev-deploy.js:4:53)\n at Module._compile (module.js:652:30)\n at Object.Module._extensions..js (module.js:663:10)\n at Module.load (module.js:565:32)\n at tryModuleLoad (module.js:505:12)\n at Function.Module._load (module.js:497:3)\n at Module.require (module.js:596:17)\n at require (internal/module.js:11:18)\n at Object.<anonymous> (/usr/local/lib/node_modules/near-shell/bin/near-cli.js:217:14)\n at Module._compile (module.js:652:30)\n")
I Think trouble in this line
Line 35 in 1046bb6
Because if I change this line to this,
[f "near --version"],
then the error will be repeated, but will clearly indicate that she does not see not "near"
Sep 09 11:09:38 dimaro systemd[1]: warchest_bot.service: Scheduled restart job, restart counter is at 2058.
Sep 09 11:09:38 dimaro systemd[1]: Stopped Warchest bot managing near stake.
Sep 09 11:09:38 dimaro systemd[1]: Started Warchest bot managing near stake.
Sep 09 11:09:38 dimaro python3.6[5357]: INFO:root:Started Warchest bot
Sep 09 11:09:39 dimaro python3.6[5357]: ERROR:root:Pinged contract coolpool.dimaro1.betanet
Sep 09 11:09:39 dimaro python3.6[5357]: --- Logging error ---
Sep 09 11:09:39 dimaro python3.6[5357]: Traceback (most recent call last):
Sep 09 11:09:39 dimaro python3.6[5357]: File "/home/near/near_warchest/warchest.py", line 40, in ping_contract
Sep 09 11:09:39 dimaro python3.6[5357]: stderr=subprocess.STDOUT,
Sep 09 11:09:39 dimaro python3.6[5357]: File "/usr/lib/python3.6/subprocess.py", line 356, in check_output
Sep 09 11:09:39 dimaro python3.6[5357]: **kwargs).stdout
Sep 09 11:09:39 dimaro python3.6[5357]: File "/usr/lib/python3.6/subprocess.py", line 438, in run
Sep 09 11:09:39 dimaro python3.6[5357]: output=stdout, stderr=stderr)
Sep 09 11:09:39 dimaro python3.6[5357]: subprocess.CalledProcessError: Command '['near --version']' returned non-zero exit status 1.
Sep 09 11:09:39 dimaro python3.6[5357]: During handling of the above exception, another exception occurred:
Sep 09 11:09:39 dimaro python3.6[5357]: Traceback (most recent call last):
Sep 09 11:09:39 dimaro python3.6[5357]: File "/usr/lib/python3.6/logging/__init__.py", line 994, in emit
Sep 09 11:09:39 dimaro python3.6[5357]: msg = self.format(record)
Sep 09 11:09:39 dimaro python3.6[5357]: File "/usr/lib/python3.6/logging/__init__.py", line 840, in format
Sep 09 11:09:39 dimaro python3.6[5357]: return fmt.format(record)
Sep 09 11:09:39 dimaro python3.6[5357]: File "/usr/lib/python3.6/logging/__init__.py", line 577, in format
Sep 09 11:09:39 dimaro python3.6[5357]: record.message = record.getMessage()
Sep 09 11:09:39 dimaro python3.6[5357]: File "/usr/lib/python3.6/logging/__init__.py", line 338, in getMessage
Sep 09 11:09:39 dimaro python3.6[5357]: msg = msg % self.args
Sep 09 11:09:39 dimaro python3.6[5357]: TypeError: not all arguments converted during string formatting
Sep 09 11:09:39 dimaro python3.6[5357]: Call stack:
Sep 09 11:09:39 dimaro python3.6[5357]: File "/home/near/near_warchest/warchest.py", line 172, in <module>
Sep 09 11:09:39 dimaro python3.6[5357]: run()
Sep 09 11:09:39 dimaro python3.6[5357]: File "/home/near/near_warchest/warchest.py", line 26, in run
Sep 09 11:09:39 dimaro python3.6[5357]: ping_contract()
Sep 09 11:09:39 dimaro python3.6[5357]: File "/home/near/near_warchest/warchest.py", line 46, in ping_contract
Sep 09 11:09:39 dimaro python3.6[5357]: logging.error("Status : FAIL", e.returncode, e.output)
Sep 09 11:09:39 dimaro python3.6[5357]: Message: 'Status : FAIL'
Sep 09 11:09:39 dimaro python3.6[5357]: Arguments: (1, b"/usr/local/lib/node_modules/near-shell/commands/dev-deploy.js:4\nconst { readFile, writeFile, mkdir } = require('fs').promises;\n ^\n\nTypeError: Cannot destructure property `readFile` of 'undefined' or 'null'.\n at Object.<anonymous> (/usr/local/lib/node_modules/near-shell/commands/dev-deploy.js:4:53)\n at Module._compile (module.js:652:30)\n at Object.Module._extensions..js (module.js:663:10)\n at Module.load (module.js:565:32)\n at tryModuleLoad (module.js:505:12)\n at Function.Module._load (module.js:497:3)\n at Module.require (module.js:596:17)\n at require (internal/module.js:11:18)\n at Object.<anonymous> (/usr/local/lib/node_modules/near-shell/bin/near-cli.js:217:14)\n at Module._compile (module.js:652:30)\n")
Also the error is repeated with this line
[f "npm --help"],
,
but not with this
[f "node --help"],
it's just some magic
maybe you are facing this problem?
or maybe you know how to solve this problem?
or maybe that's not the problem at all?
I hope for your help)
my env:
ubuntu 18.04
nodejs 8.5 / 10.17 / 12.0
I try use global near-shell and near-cli
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.