Skip to content

Instantly share code, notes, and snippets.

View muxueqz's full-sized avatar

muxueqz muxueqz

View GitHub Profile
@muxueqz
muxueqz / err.log
Last active February 20, 2020 11:54
I, [2020-02-20T11:50:09.925108 #476] INFO -- : [99f2d9c0-02c7-4dfd-aaa5-e85adf00ab78] Processing by ClaimEventsController#create as HTML
I, [2020-02-20T11:50:09.925213 #476] INFO -- : [99f2d9c0-02c7-4dfd-aaa5-e85adf00ab78] Parameters: {"claim_event"=>{"address_hash"=>"ckt1qyqgsmfr57zc7yhtlyjt42kdwa99ut8czyeqqywl58"}}
W, [2020-02-20T11:50:09.925409 #476] WARN -- : [99f2d9c0-02c7-4dfd-aaa5-e85adf00ab78] HTTP Origin header (http://faucet.test) didn't match request.base_url (http://127.0.0.1:8000)
I, [2020-02-20T11:50:09.925682 #476] INFO -- : [99f2d9c0-02c7-4dfd-aaa5-e85adf00ab78] Completed 422 Unprocessable Entity in 0ms (ActiveRecord: 0.0ms | Allocations: 155)
F, [2020-02-20T11:50:09.926501 #476] FATAL -- : [99f2d9c0-02c7-4dfd-aaa5-e85adf00ab78]
[99f2d9c0-02c7-4dfd-aaa5-e85adf00ab78] ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
[99f2d9c0-02c7-4dfd-aaa5-e85adf00ab78]
[99f2d9c0-02c7-4dfd-aaa5-e85adf00ab78] actionpack (6.0.2.1) lib/action_controller/metal/request_
> root@6ead0f458c33:/opt/app# RAILS_ENV=production bundle exec rake assets:precompile
[DEPRECATION] Struct layout is already defined for class RbNaCl::HMAC::State. Redefinition as in /usr/local/bundle/ruby/2.6.0/gems/rbnacl-6.0.1/lib/rbnacl/hmac/sha512256.rb:103:in `<class:State>' will be disallowed in ffi-2.0.
[DEPRECATION] Struct layout is already defined for class RbNaCl::HMAC::State. Redefinition as in /usr/local/bundle/ruby/2.6.0/gems/rbnacl-6.0.1/lib/rbnacl/hmac/sha512.rb:105:in `<class:State>' will be disallowed in ffi-2.0.
rake aborted!
NoMethodError: undefined method `[]' for nil:NilClass
/opt/app/config/environments/production.rb:59:in `block in <main>'
/usr/local/bundle/ruby/2.6.0/gems/railties-6.0.2.1/lib/rails/railtie.rb:216:in `instance_eval'
/usr/local/bundle/ruby/2.6.0/gems/railties-6.0.2.1/lib/rails/railtie.rb:216:in `configure'
/opt/app/config/environments/production.rb:3:in `<main>'
/usr/local/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:i
#!/usr/bin/env python2
import json
import urllib2
import base64
#from time import time
from datetime import date
import sys
#ckb_rpc = 'http://127.0.0.1:18114'
ESC[1;30m2020-02-11 19:36:35.229 +08:00ESC[0m ESC[1;34mChainServiceESC[0m INFO ckb-chain block: 802826, hash: 0x38cc4be938db91c81619558e2424f4dcab8ca5cc1f78c6
46eb2e09e59d955889, epoch: 508(1094/1236), total_diff: 0x5897b452ade9f29a2d, txs: 1
ESC[1;30m2020-02-11 19:36:56.740 +08:00ESC[0m ESC[1;34mChainServiceESC[0m INFO ckb-chain block: 802827, hash: 0x0f80d3d0dd3b2940da67c5341bd9814c93659189da9bd1
87b74ee3f79a7df4ba, epoch: 508(1095/1236), total_diff: 0x5897be4985d408bd55, txs: 1
ESC[1;30m2020-02-11 19:37:07.133 +08:00ESC[0m ESC[1;34mNetworkRuntime-7ESC[0m WARN ckb-network SessionTimeout(SessionId(72627), /ip4/124.64.16.134/tcp/33695/p
2p/QmRGJVMVm7ziTcCa9CgwcdG7XJDwoGB9jt9MEMmKZAUG6c)
ESC[1;30m2020-02-11 19:37:11.145 +08:00ESC[0m ESC[1;34mNetworkRuntime-8ESC[0m WARN ckb-network SessionTimeout(SessionId(72628), /ip4/39.128.76.99/tcp/5163/p2p/QmahTy3WGiSWLXNdVLKCFwRT61TLi4rPPeB8AuG66JDPWH)
ESC[1;30m2020-02-11 19:37:23.500 +08:00ESC[0m ESC[1;34mNetworkRuntime-10ESC[0m WARN ckb-network SessionTimeout(Sessi
2019-12-27 14:22:58.929 +08:00 NetworkRuntime-2 DEBUG ckb-network Not the same chain, self: /ckb/9a3ee36d, remote: /ckb/92b197aa
2019-12-27 14:22:58.929 +08:00 NetworkRuntime-5 DEBUG ckb-network SessionClose(SessionId(10), /ip4/47.245.31.79/tcp/8114/p2p/QmUaSuEdXNGJEKvkE4rCn3cwBrpRFUm5TsouF4M3Sjursv)
2019-12-27 14:22:58.929 +08:00 NetworkRuntime-5 DEBUG ckb-network SessionId(10) closed, remove /ip4/47.245.31.79/tcp/8114/p2p/QmUaSuEdXNGJEKvkE4rCn3cwBrpRFUm5TsouF4M3Sjursv from peer_registry
2019-12-27 14:22:59.048 +08:00 NetworkRuntime-0 DEBUG ckb-network SessionOpen(SessionId(11), /ip4/47.110.15.57/tcp/8114/p2p/QmXS4Kbc9HEeykHUTJCm2tNmqghbvWyYpUp6BtE5b6VrAU)
2019-12-27 14:22:59.048 +08:00 NetworkRuntime-0 DEBUG ckb-network SessionId(11) open, registry /ip4/47.110.15.57/tcp/8114/p2p/QmXS4Kbc9HEeykHUTJCm2tNmqghbvWyYpUp6BtE5b6VrAU success
2019-12-27 14:22:59.147 +08:00 NetworkRuntime-1 DEBUG ckb-network SessionOpen(SessionId(12), /ip4/3.218.170.86/tcp/8114/p2p/QmShw2vtVt49wJagc1zGQXGS6LkQTcHxnEV3xs6y8MAmQN)
I, [2019-12-18T06:58:29.797599 #4962] INFO -- : [0b90b61d-f847-4756-aeae-a6b22be057e7] Completed 500 Internal Server Error in 1778ms (ActiveRecord: 1771.1ms | Allocations: 22168)
F, [2019-12-18T06:58:29.798380 #4962] FATAL -- : [0b90b61d-f847-4756-aeae-a6b22be057e7]
[0b90b61d-f847-4756-aeae-a6b22be057e7] ArgumentError (invalid date):
[0b90b61d-f847-4756-aeae-a6b22be057e7]
[0b90b61d-f847-4756-aeae-a6b22be057e7] app/models/lock_script.rb:32:in `strptime'
[0b90b61d-f847-4756-aeae-a6b22be057e7] app/models/lock_script.rb:32:in `lock_info'
[0b90b61d-f847-4756-aeae-a6b22be057e7] app/presenters/address_presenter.rb:50:in `lock_info'
Cloning https://github.com/vapor/validation.git
Resolving https://github.com/vapor/validation.git at 2.1.1
Cloning https://github.com/ashchan/ckb-sdk-swift
Resolving https://github.com/ashchan/ckb-sdk-swift at 0.25.1
'swift-nio-zlib-support' zlib.pc: warning: couldn't find pc file
[1/19] Compiling Sodium Aead.swift
[2/20] Compiling NIOPriorityQueue Heap.swift
[3/23] Compiling COperatingSystem libc.swift
[4/23] Compiling secp256k1.c
[5/23] Compiling lax_der_privatekey_parsing.c
root@Nervos-staging:/data/ckb-testnet-faucet-staging-run# docker-compose up faucet
Starting ckb-testnet-faucet-staging-run_faucet_1 ... done
Attaching to ckb-testnet-faucet-staging-run_faucet_1
faucet_1 | 'swift-nio-zlib-support' zlib.pc: warning: couldn't find pc file
faucet_1 | [1/16] Compiling Sodium Aead.swift
faucet_1 | [2/17] Compiling NIOPriorityQueue Heap.swift
faucet_1 | [3/18] Compiling Debugging Debuggable.swift
faucet_1 | [4/19] Compiling secp256k1.c
faucet_1 | [5/19] Compiling lax_der_privatekey_parsing.c
faucet_1 | [6/19] Compiling lax_der_parsing.c
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
import datetime
from github import Github
token = ''
repo_name = ''
g = Github(token)
{
"db_host": "127.0.0.1",
"db_port": 3306,
"db_user": "root",
"db_password": "password",
"output_dir": "/opt/db_backup",
"output_file": "backup1.gz",
"global_filters": {
"FILTER_A": "xxx_id in (1, 3)"
},