Error: invalid bucket size spec: undefined - zenbot

./zenbot.sh trade --manual
node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated.
In the future, you will have to enable it yourself.
See https://github.com/yagop/node-telegram-bot-api/issues/319. module.js:635:30
/home/local/zenbot/node_modules/timebucket/lib/bucket-size.js:15
if (!match) throw new Error('invalid bucket size spec: ' + spec);
^
Error: invalid bucket size spec: undefined
at BucketSize.parse (/home/local/zenbot/node_modules/timebucket/lib/bucket-size.js:15:21)
at new BucketSize (/home/local/zenbot/node_modules/timebucket/lib/bucket-size.js:5:21)
at Bucket.resize (/home/local/zenbot/node_modules/timebucket/lib/bucket.js:30:14)
at Command.<anonymous> (/home/local/zenbot/commands/trade.js:312:32)
at Command.listener (/home/local/zenbot/node_modules/commander/index.js:315:8)
at emitTwo (events.js:126:13)
at Command.emit (events.js:214:7)
at Command.parseArgs (/home/local/zenbot/node_modules/commander/index.js:653:12)
at Command.parse (/home/local/zenbot/node_modules/commander/index.js:475:21)
at /home/local/zenbot/zenbot.js:39:11
at /home/local/zenbot/boot.js:24:7
at f (/home/local/zenbot/node_modules/once/once.js:25:25)
at Glob.<anonymous> (/home/local/zenbot/node_modules/glob/glob.js:151:7)
at emitOne (events.js:116:13)
at Glob.emit (events.js:211:7)
at Glob._finish (/home/local/zenbot/node_modules/glob/glob.js:197:8)
at done (/home/local/zenbot/node_modules/glob/glob.js:182:14)
at Glob._processGlobStar2 (/home/local/zenbot/node_modules/glob/glob.js:637:12)
at /home/local/zenbot/node_modules/glob/glob.js:626:10
at RES (/home/local/zenbot/node_modules/inflight/inflight.js:31:16)
at f (/home/local/zenbot/nodemodules/once/once.js:25:25)
at lstatcb (/home/local/zenbot/node_modules/glob/glob.js:519:7)
I have no idea what could be causing this as I'm pretty sure I have followed the instructions to a T.
Trying to use this to manually trade on GDAX, i have my api keys on the conf.
I'm on windows 10 using "Bash on Ubuntu on Windows".

According to #938 issue on GitHub, this has been fixed in #926 and #940 pull requests.
So please consider upgrading your Zenbot. Otherwise raise a new issue.

Related

getting this error while trying to run cube js

I'm getting this error while trying to run cube js with the default command in the getting started docs. I've started this in a folder and running it in docker.
Warning. There is no cube.js file. Continue with environment variables
🔥 Cube Store (0.28.31) is assigned to 3030 port.
Warning. Option apiSecret is required in dev mode. Cube.js has generated it as e3b8c5a35fe378f4d481ada777e5f3c4
🔓 Authentication checks are disabled in developer mode. Please use NODE_ENV=production to enable it.
🦅 Dev environment available at http://localhost:4000
🚀 Cube.js server (0.28.31) is listening on 4000
2021-09-03 15:06:01,512 INFO [cubestore::http::status] <pid:17> Serving status probes at 0.0.0.0:3031
2021-09-03 15:06:01,515 INFO [cubestore::metastore] <pid:17> Using existing metastore in /cube/conf/.cubestore/data/metastore
thread '
main
' panicked at '
called `Result::unwrap()` on an `Err` value: Error { message: "IO error: While fsync: a directory: Invalid argument" }
', /project/cubestore/src/metastore/mod.rs:1542:40
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Cube Store Start Error: undefined
I guess it’s corrupted metastore due to it was incorrectly shutdown for you locally. Could you please try to drop the .cubestore directory?

New browser not working in Robot Framework on server with Docker

I cannot open the browser when using the browser library in the robot framework on the server. But it is working on local with same docker.
NOT : I use browser library, I don't use selenium.
Thank you in advance for your help
Error log
{"level":30,"time":"2021-01-12T08:43:15.541Z","pid":1042,"hostname":"9e6377fbd66f","msg":"Changed active context"}
{"level":30,"time":"2021-01-12T08:43:15.684Z","pid":1042,"hostname":"9e6377fbd66f","msg":"Video path: undefined"}
{"level":30,"time":"2021-01-12T08:43:15.684Z","pid":1042,"hostname":"9e6377fbd66f","msg":"Changed active page"}
================= Original suppressed error =================
page.goto: Timeout 10000ms exceeded.
=========================== logs ===========================
navigating to "https://google.com.tr", waiting until "load"
============================================================
Note: use DEBUG=pw:api environment variable and rerun to capture Playwright logs.
at Connection.sendMessageToServer (/usr/local/lib/python3.9/site-packages/Browser/wrapper/node_modules/playwright/lib/client/connection.js:69:15)
at Proxy.<anonymous> (/usr/local/lib/python3.9/site-packages/Browser/wrapper/node_modules/playwright/lib/client/channelOwner.js:44:61)
at /usr/local/lib/python3.9/site-packages/Browser/wrapper/node_modules/playwright/lib/client/frame.js:80:71
at Frame._wrapApiCall (/usr/local/lib/python3.9/site-packages/Browser/wrapper/node_modules/playwright/lib/client/channelOwner.js:72:34)
at Frame.goto (/usr/local/lib/python3.9/site-packages/Browser/wrapper/node_modules/playwright/lib/client/frame.js:78:21)
at /usr/local/lib/python3.9/site-packages/Browser/wrapper/node_modules/playwright/lib/client/page.js:267:60
at Page._attributeToPage (/usr/local/lib/python3.9/site-packages/Browser/wrapper/node_modules/playwright/lib/client/page.js:202:20)
at Page.goto (/usr/local/lib/python3.9/site-packages/Browser/wrapper/node_modules/playwright/lib/client/page.js:267:21)
at Object.<anonymous> (/usr/local/lib/python3.9/site-packages/Browser/wrapper/index.js:70868:49)
at step (/usr/local/lib/python3.9/site-packages/Browser/wrapper/index.js:70323:23) {
name: 'TimeoutError'
}
=============================================================
================= Original suppressed error =================
Error: Tried to take screenshot, but no page was open.
at Object.exists (/usr/local/lib/python3.9/site-packages/Browser/wrapper/index.js:70233:15)
at Object.<anonymous> (/usr/local/lib/python3.9/site-packages/Browser/wrapper/index.js:66456:41)
at step (/usr/local/lib/python3.9/site-packages/Browser/wrapper/index.js:66384:23)
at Object.next (/usr/local/lib/python3.9/site-packages/Browser/wrapper/index.js:66365:53)
at /usr/local/lib/python3.9/site-packages/Browser/wrapper/index.js:66359:71
at new Promise (<anonymous>)
at __webpack_modules__../node/playwright-wrapper/browser-control.ts.__awaiter (/usr/local/lib/python3.9/site-packages/Browser/wrapper/index.js:66355:12)
at Object.takeScreenshot (/usr/local/lib/python3.9/site-packages/Browser/wrapper/index.js:66437:12)
at PlaywrightServer.<anonymous> (/usr/local/lib/python3.9/site-packages/Browser/wrapper/index.js:67972:61)
at step (/usr/local/lib/python3.9/site-packages/Browser/wrapper/index.js:67457:23)
=============================================================
{"level":30,"time":"2021-01-12T08:43:25.750Z","pid":1042,"hostname":"9e6377fbd66f","msg":"Changed active context"}
{"level":30,"time":"2021-01-12T08:43:25.777Z","pid":1042,"hostname":"9e6377fbd66f","msg":"Changed active context"}
Problem solved. Because it is a foreign server, the url has been closed for security purposes. I solved the problem by applying a proxy.
Thanks to everyone who helped

unable to start logstash

this is my first time running logstash on container. Im running logstash on the same container elasticsearch + kibana. Its running on ubuntu.
i run my conf file by using
/usr/share/logstash/bin/logstash -f conf.d/logstash.conf
here is my logstash.conf :
input{
beats{
port=>5044
}
}
filter
{
grok {
match =>{
"message" => "%{TIMESTAMP_ISO8601:logtimestamp}\s%{DATA:S_IP}\s%{WORD:s_method}\s%{DATA:cs_uri_stem}\s%{DATA:cs_uri_query}\s%{DATA:s_port}\s%{GREEDYDATA:log_message}"
}
}
date{
match =>["logtimestamp","yyyy-MM-dd HH:mm:ss"]
target=>"#timestamp"
}
}
output{
stdout{codec=>rubydebug}
elasticsearch{
hosts=>"elastic#localhost:9200"
index=>"log_iis"
user =>"*****"
password=>"*****"
}
}
and it returning error as :
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules (file:/usr/share/logstash/logstash-core/lib/jars/jruby-complete-9.2.8.0.jar) to field java.io.FileDescriptor.fd
WARNING: Please consider reporting this to the maintainers of com.headius.backport9.modules.Modules
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Thread.exclusive is deprecated, use Thread::Mutex
WARNING: Could not find logstash.yml which is typically located in $LS_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console
[WARN ] 2020-02-10 03:32:59.625 [LogStash::Runner] multilocal - Ignoring the 'pipelines.yml' file because modules or command line options are specified
[INFO ] 2020-02-10 03:32:59.632 [LogStash::Runner] runner - Starting Logstash {"logstash.version"=>"7.5.2"}
[INFO ] 2020-02-10 03:33:00.995 [Converge PipelineAction::Create<main>] Reflections - Reflections took 24 ms to scan 1 urls, producing 20 keys and 40 values
[ERROR] 2020-02-10 03:33:01.375 [Converge PipelineAction::Create<main>] agent - Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"Java::JavaLang::IllegalStateException", :message=>"Unable to configure plugins: Illegal character in scheme name at index 7: elastic#localhost:9200", :backtrace=>["org.logstash.config.ir.CompiledPipeline.<init>(CompiledPipeline.java:119)", "org.logstash.execution.JavaBasePipelineExt.initialize(JavaBasePipelineExt.java:60)", "org.logstash.execution.JavaBasePipelineExt$INVOKER$i$1$0$initialize.call(JavaBasePipelineExt$INVOKER$i$1$0$initialize.gen)", "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:837)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuper(IRRuntimeHelpers.java:1156)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuperSplatArgs(IRRuntimeHelpers.java:1143)", "org.jruby.ir.targets.InstanceSuperInvokeSite.invoke(InstanceSuperInvokeSite.java:39)", "usr.share.logstash.logstash_minus_core.lib.logstash.java_pipeline.RUBY$method$initialize$0(/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:27)", "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)", "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:332)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:86)", "org.jruby.RubyClass.newInstance(RubyClass.java:915)", "org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:183)", "usr.share.logstash.logstash_minus_core.lib.logstash.pipeline_action.create.RUBY$method$execute$0(/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:36)", "usr.share.logstash.logstash_minus_core.lib.logstash.pipeline_action.create.RUBY$method$execute$0$__VARARGS__(/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb)", "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:183)", "usr.share.logstash.logstash_minus_core.lib.logstash.agent.RUBY$block$converge_state$2(/usr/share/logstash/logstash-core/lib/logstash/agent.rb:326)", "org.jruby.runtime.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:136)", "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:77)", "org.jruby.runtime.Block.call(Block.java:129)", "org.jruby.RubyProc.call(RubyProc.java:295)", "org.jruby.RubyProc.call(RubyProc.java:274)", "org.jruby.RubyProc.call(RubyProc.java:270)", "org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:105)", "java.base/java.lang.Thread.run(Thread.java:830)"]}
warning: thread "Converge PipelineAction::Create<main>" terminated with exception (report_on_exception is true):
LogStash::Error: Don't know how to handle `Java::JavaLang::IllegalStateException` for `PipelineAction::Create<main>`
create at org/logstash/execution/ConvergeResultExt.java:109
add at org/logstash/execution/ConvergeResultExt.java:37
converge_state at /usr/share/logstash/logstash-core/lib/logstash/agent.rb:339
[ERROR] 2020-02-10 03:33:01.379 [Agent thread] agent - An exception happened when converging configuration {:exception=>LogStash::Error, :message=>"Don't know how to handle `Java::JavaLang::IllegalStateException` for `PipelineAction::Create<main>`", :backtrace=>["org/logstash/execution/ConvergeResultExt.java:109:in `create'", "org/logstash/execution/ConvergeResultExt.java:37:in `add'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:339:in `block in converge_state'"]}
[FATAL] 2020-02-10 03:33:01.403 [LogStash::Runner] runner - An unexpected error occurred! {:error=>#<LogStash::Error: Don't know how to handle `Java::JavaLang::IllegalStateException` for `PipelineAction::Create<main>`>, :backtrace=>["org/logstash/execution/ConvergeResultExt.java:109:in `create'", "org/logstash/execution/ConvergeResultExt.java:37:in `add'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:339:in `block in converge_state'"]}
[ERROR] 2020-02-10 03:33:01.432 [LogStash::Runner] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit)
and respond or explanation will be appreciated so much. thank you
The error log says that you get
Illegal character in scheme name at index 7: elastic#localhost:9200", which is the value of the hosts option.
I guess the problem is the at (#). Is that needed? Anyway, if you check the documentation of the Elasticsearch output plugin [1], it says that
Any special characters present in the URLs here MUST be URL escaped! This means # should be put in as %23 for instance.
[1] https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-hosts

truffle migrate Error

I can´t migrate the standart contracts that come with truffle init. Here´s what i do:
truffle init
truffle compile
truffle migrate
and this is what it generates when i init:
But when i migrate , the following list of errors shows up:
Error: Invalid JSON RPC response: ""
at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/node_modules/web3/lib/web3/errors.js:35:16)
at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/node_modules/web3/lib/web3/httpprovider.js:115:32)
at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/node_modules/xhr2/lib/xhr2.js:64:18)
at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/node_modules/xhr2/lib/xhr2.js:354:12)
at XMLHttpRequest._onHttpRequestError (/usr/local/lib/node_modules/truffle/node_modules/xhr2/lib/xhr2.js:544:12)
at ClientRequest.<anonymous> (/usr/local/lib/node_modules/truffle/node_modules/xhr2/lib/xhr2.js:414:24)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at Socket.socketErrorListener (_http_client.js:309:9)
at emitOne (events.js:96:13)
As webjunkie comments:
testrpc
Check your truffle.js config port and ip is set to default 'localhost:8545'
truffle migrate
For Solidty To Migrate, The Local Ethereum Blockchain should be running already and the Smart Contract you want to migrate should go to the correct Local Ethereum Blockchain so you need to check the Port Number of the Local Ethereum Blockchain.
ganache-cli or testrpc (For Making a local Blockchain). It has the port number on which it is running written beneath. Such as http://localhost:8545.
Go to truffle.js file and check that port should be 8545.
Now Migrate the Smart Contract using truffle migrate.
The contract name should not be the same as the function name.

Nodejs https request for oauth2 token (google, facebook) produce error 'socket hang up'

I'm developing nodejs oauth2 npm module: https://github.com/lexer/node-oauth2
When Im trying to make https request to google or facebook i get:
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: socket hang up
at Socket.<anonymous> (http.js:1272:45)
at Socket.emit (events.js:64:17)
at Array.<anonymous> (net.js:825:12)
at EventEmitter._tickCallback (node.js:126:26)
You can reproduce bug in express sample application that i've made:
https://github.com/lexer/node-oauth2/tree/master/examples/express
Have fixed the issue. Instead of http.ClientRequest with secure option "true" im using https.request method now.

Resources