Skip to content

Instantly share code, notes, and snippets.

View mog3n's full-sized avatar
🎯
Focusing

Mogen Cheng mog3n

🎯
Focusing
View GitHub Profile
error_log logs/error.log;
pid logs/nginx.pid;
http {
default_type application/octet-stream;
access_log logs/access.log main;
server { # simple reverse-proxy
listen 80;
@mog3n
mog3n / gist:8d81314183bc3a5d6c67127a446c94b5
Created July 10, 2020 19:39
Error with order and pay
{
"data":{
"error":"{\"code\":\"parameter_invalid_integer\",\"doc_url\":\"https://stripe.com/docs/error-codes/parameter-invalid-integer\",\"status\":400,\"message\":\"This value must be greater than or equal to 1.\",\"param\":\"amount\",\"request_id\":\"req_x1tLize3bKAKLa\",\"type\":\"invalid_request_error\"}",
"code":2,
"message":"{\"code\":\"parameter_invalid_integer\",\"doc_url\":\"https://stripe.com/docs/error-codes/parameter-invalid-integer\",\"status\":400,\"message\":\"This value must be greater than or equal to 1.\",\"param\":\"amount\",\"request_id\":\"req_x1tLize3bKAKLa\",\"type\":\"invalid_request_error\"}"
},
"status":500,
"statusText":"Internal Server Error",
"headers":{
"content-type":"application/json"
@mog3n
mog3n / log3.txt
Created December 11, 2019 04:06
Running on Bionic 18.04
time="2019-12-11 04:04:25" level=info msg="Processing block 12631/212282 - estimated time remaining 1h35m28s" blocksPerSecond=34.9 peers="5/7" prefix=initial-sync
unexpected fault address 0xc00f501b48
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x1 addr=0xc00f501b48 pc=0xa7cf2c]
goroutine 269 [running]:
runtime.throw(0x1717fdd, 0x5)
GOROOT/src/runtime/panic.go:774 +0x72 fp=0xc00230fad8 sp=0xc00230faa8 pc=0x461d32
runtime.sigpanic()
GOROOT/src/runtime/signal_unix.go:401 +0x3de fp=0xc00230fb08 sp=0xc00230fad8 pc=0x47792e
This file has been truncated, but you can view the full file.
Unable to find image 'gcr.io/prysmaticlabs/prysm/beacon-chain:latest' locally
latest: Pulling from prysmaticlabs/prysm/beacon-chain
e8d8785a314f: Pulling fs layer
e005d777a298: Pulling fs layer
3e010093287c: Pulling fs layer
736ef2cb2ecd: Pulling fs layer
736ef2cb2ecd: Waiting
e005d777a298: Verifying Checksum
e005d777a298: Download complete
@mog3n
mog3n / log.txt
Created December 11, 2019 02:11
Error running beacon-chain
time="2019-12-11 01:56:00" level=info msg="Processing block 138645/211639 - estimated time remaining 1h4m53s" blocksPerSecond=18.8 peers="10/12" prefix=initial-sync
unexpected fault address 0x14885c0
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x2 addr=0x14885c0 pc=0x14d0dac]
goroutine 5106134 [running]:
runtime.throw(0x1717fdd, 0x5)
GOROOT/src/runtime/panic.go:774 +0x72 fp=0xc007d95380 sp=0xc007d95350 pc=0x461d32
runtime: unexpected return pc for runtime.sigpanic called from 0x14d0dac
stack: frame={sp:0xc007d95380, fp:0xc007d953b0} stack=[0xc007d94000,0xc007d96000)
This file has been truncated, but you can view the full file.
docker: Error response from daemon: Conflict. The container name "/beacon-node" is already in use by container "a8872f8a0ea33b707c868121d446a3319f99fc545230c5527d8f5f2160be169c". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.
2019/12/11 00:33:12 maxprocs: Leaving GOMAXPROCS=16: CPU quota undefined
time="2019-12-11 00:33:12" level=error msg="no-genesis-delay is deprecated and has no effect. Do not use this flag, it will be deleted soon." prefix=flags
time="2019-12-11 00:33:12" level=info msg="Using custom chain parameters" config=demo prefix=node
time="2019-12-11 00:33:12" level=info msg="Checking DB" database-path="/data/beaconchaindata" prefix=node
time="2019-12-11 00:33:12" level=info msg="Fetching testnet cluster address" endpoint="https://prylabs.net/contract" prefix=node
time="2019-12-11 00:33:13" level=info msg="Starting beacon node" prefix=node version="Git commit: 414fcda9a2641a3dd4ef3fab62ada5240ced22a1. Built at: 2019-12-10 19:48:28+00:00"
docker: Error response from daemon: Conflict. The container name "/beacon-node" is already in use by container "d7b02f18719ceea7e584dcec2ce5ba9703f27b4551e0ced4488f8fc503710d82". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.
2019/12/10 22:02:12 maxprocs: Leaving GOMAXPROCS=8: CPU quota undefined
time="2019-12-10 22:02:12" level=error msg="no-genesis-delay is deprecated and has no effect. Do not use this flag, it will be deleted soon." prefix=flags
time="2019-12-10 22:02:12" level=info msg="Using custom chain parameters" config=demo prefix=node
time="2019-12-10 22:02:12" level=info msg="Checking DB" database-path="/data/beaconchaindata" prefix=node
time="2019-12-10 22:02:12" level=info msg="Fetching testnet cluster address" endpoint="https://prylabs.net/contract" prefix=node
time="2019-12-10 22:02:12" level=info msg="Starting beacon node" prefix=node version="Git commit: 7ccbe48f54b50bae541307d61fd5b459e4faa314. Built at: 2019-12-09 14:49:56+00:00"
time="
This file has been truncated, but you can view the full file.
docker: Error response from daemon: Conflict. The container name "/beacon-node" is already in use by container "6ca56b7b7903185736efd8bc41eea6f3f9b096a6a8f8d2814fe8d284fc7403cc". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.
2019/12/10 21:46:10 maxprocs: Leaving GOMAXPROCS=8: CPU quota undefined
time="2019-12-10 21:46:10" level=error msg="no-genesis-delay is deprecated and has no effect. Do not use this flag, it will be deleted soon." prefix=flags
time="2019-12-10 21:46:10" level=info msg="Using custom chain parameters" config=demo prefix=node
time="2019-12-10 21:46:10" level=info msg="Checking DB" database-path="/data/beaconchaindata" prefix=node
time="2019-12-10 21:46:10" level=info msg="Fetching testnet cluster address" endpoint="https://prylabs.net/contract" prefix=node
time="2019-12-10 21:46:10" level=info msg="Starting beacon node" prefix=node version="Git commit: 7ccbe48f54b50bae541307d61fd5b459e4faa314. Built at: 2019-12-09 14:49:56+00:00"
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.provider "virtualbox" do |vb|
vb.memory = 12000
vb.cpus = 16
end
config.vm.provision "shell", inline: <<-SHELL
Mogens-MacBook-Pro:citytrail mogen$ lein do clean, uberjar
Warning: implicit hook found: lein-environ.plugin/hooks
Hooks are deprecated and will be removed in a future version.
Error: problem requiring minify-assets.plugin/hooks hook
clojure.lang.Compiler$CompilerException: Syntax error macroexpanding clojure.core/refer-clojure at (clojure/core/async.clj:9:1).
#:clojure.error{:phase :macro-syntax-check, :line 9, :column 1, :source "clojure/core/async.clj", :symbol clojure.core/refer-clojure}
at clojure.lang.Compiler.checkSpecs (Compiler.java:6971)
clojure.lang.Compiler.macroexpand1 (Compiler.java:6987)
clojure.lang.Compiler.analyzeSeq (Compiler.java:7092)
clojure.lang.Compiler.analyze (Compiler.java:6789)