Skip to content

Instantly share code, notes, and snippets.

@frrist
Created September 6, 2019 23:24
Show Gist options
  • Save frrist/362d4f9006e6f15e5e84acffc3dc1e82 to your computer and use it in GitHub Desktop.
Save frrist/362d4f9006e6f15e5e84acffc3dc1e82 to your computer and use it in GitHub Desktop.
23:22:19.357 ERROR cmds/http: a panic has occurred in the commands handler! handler.go:94 [16/1348]
23:22:19.357 ERROR cmds/http: runtime error: invalid memory address or nil pointer dereference handler.go:95
23:22:19.357 ERROR cmds/http: stack trace:
goroutine 247903 [running]:
runtime/debug.Stack(0xc000366060, 0xc0094ad090, 0x1)
/root/.apps/go/src/runtime/debug/stack.go:24 +0x9d
github.com/ipfs/go-ipfs-cmds/http.(*handler).ServeHTTP.func1()
/root/pkg/mod/github.com/ipfs/[email protected]/http/handler.go:96 +0x11f
panic(0x16900a0, 0x2667980)
/root/.apps/go/src/runtime/panic.go:522 +0x1b5
github.com/filecoin-project/go-filecoin/vm.(*Context).AddressForNewActor(0xc00a362900, 0xc00b8d43a8, 0x275c901, 0xc00adca900, 0xc009390b50)
/root/src/github.com/filecoin-project/go-filecoin/vm/context.go:159 +0x31
github.com/filecoin-project/go-filecoin/actor/builtin/storagemarket.(*Actor).CreateStorageMiner.func1(0x1a835e0, 0xc00a362900, 0x15e3580, 0xc00a683f60)
/root/src/github.com/filecoin-project/go-filecoin/actor/builtin/storagemarket/storagemarket.go:127 +0xbc
github.com/filecoin-project/go-filecoin/actor.WithState(0x1a835e0, 0xc00a362900, 0x15e3580, 0xc00a683f60, 0xc009390d70, 0x172e780, 0x2769a, 0x159435a, 0xc009390d50)
/root/src/github.com/filecoin-project/go-filecoin/actor/storage.go:45 +0x87
github.com/filecoin-project/go-filecoin/actor/builtin/storagemarket.(*Actor).CreateStorageMiner(0x277f9e8, 0x1a835e0, 0xc00a362900, 0xc00b8d43a8, 0xc000037a10, 0x22, 0x0, 0x0, 0x0, 0x0, ...)
/root/src/github.com/filecoin-project/go-filecoin/actor/builtin/storagemarket/storagemarket.go:122 +0x210
reflect.Value.call(0xc009645f00, 0xc00b8d43a0, 0x13, 0x17d2f4d, 0x4, 0xc00a362960, 0x4, 0x4, 0x4, 0xc00a362960, ...)
/root/.apps/go/src/reflect/value.go:447 +0x461
reflect.Value.Call(0xc009645f00, 0xc00b8d43a0, 0x13, 0xc00a362960, 0x4, 0x4, 0x2, 0x4, 0x2)
/root/.apps/go/src/reflect/value.go:308 +0xa4
github.com/filecoin-project/go-filecoin/actor.MakeTypedExport.func2(0x1a835e0, 0xc00a362900, 0x17e0b35, 0x12, 0xc009525720, 0x1, 0x0, 0x60)
/root/src/github.com/filecoin-project/go-filecoin/actor/export.go:94 +0x487
github.com/filecoin-project/go-filecoin/vm.send(0x1a75000, 0xc009a8e2a0, 0x1945740, 0xc00a362900, 0x1a66dc0, 0xc00a6838e0, 0xc00aa88380, 0xc00b8d4398, 0x0, 0x0)
/root/src/github.com/filecoin-project/go-filecoin/vm/vm.go:54 +0x1d2
github.com/filecoin-project/go-filecoin/vm.Send(...)
/root/src/github.com/filecoin-project/go-filecoin/vm/vm.go:21
github.com/filecoin-project/go-filecoin/consensus.PreviewQueryMethod(0x1a75000, 0xc009a8e2a0, 0x1a7b9c0, 0xc00a6838c0, 0x1a66dc0, 0xc00a6838e0, 0xc000039572, 0x2, 0x17e0b35, 0x12, ...)
/root/src/github.com/filecoin-project/go-filecoin/consensus/processor.go:445 +0x421
github.com/filecoin-project/go-filecoin/plumbing/msg.(*Previewer).Preview(0xc000312210, 0x1a75000, 0xc009a8e2a0, 0xc00aa88260, 0x15, 0xc000039572, 0x2, 0x17e0b35, 0x12, 0xc00988cf80, ...)
/root/src/github.com/filecoin-project/go-filecoin/plumbing/msg/previewer.go:61 +0x386
github.com/filecoin-project/go-filecoin/plumbing.(*API).MessagePreview(0xc000388630, 0x1a75000, 0xc009a8e2a0, 0xc00aa88260, 0x15, 0xc000039572, 0x2, 0x17e0b35, 0x12, 0xc00988cf80, ...)
/root/src/github.com/filecoin-project/go-filecoin/plumbing/api.go:216 +0xc8
github.com/filecoin-project/go-filecoin/porcelain.MinerPreviewCreate(0x1a75000, 0xc009a8e2a0, 0x1a75240, 0xc000344040, 0xc00aa88260, 0x15, 0xc000010100, 0xc0003f0330, 0x22, 0x0, ...)
/root/src/github.com/filecoin-project/go-filecoin/porcelain/miner.go:139 +0x35b
github.com/filecoin-project/go-filecoin/porcelain.(*API).MinerPreviewCreate(...)
/root/src/github.com/filecoin-project/go-filecoin/porcelain/api.go:116
github.com/filecoin-project/go-filecoin/commands.glob..func80(0xc000196070, 0x1a755c0, 0xc0002e4100, 0x1a586c0, 0xc00033afc0, 0x0, 0x0)
/root/src/github.com/filecoin-project/go-filecoin/commands/miner.go:117 +0x5fb
github.com/ipfs/go-ipfs-cmds.(*Command).call(0x2761480, 0xc000196070, 0x1a755c0, 0xc0002e4100, 0x1a586c0, 0xc00033afc0, 0x0, 0xc0095399f0)
/root/pkg/mod/github.com/ipfs/[email protected]/command.go:107 +0x230
github.com/ipfs/go-ipfs-cmds.(*Command).Call(0x2761480, 0xc000196070, 0x1a755c0, 0xc0002e4100, 0x1a586c0, 0xc00033afc0)
/root/pkg/mod/github.com/ipfs/[email protected]/command.go:77 +0x70
github.com/ipfs/go-ipfs-cmds/http.(*handler).ServeHTTP(0xc000427f80, 0x1a70f40, 0xc00adc42a0, 0xc000408100)
/root/pkg/mod/github.com/ipfs/[email protected]/http/handler.go:186 +0x992
github.com/ipfs/go-ipfs-cmds/http.prefixHandler.ServeHTTP(0x17d2ebd, 0x4, 0x1a591e0, 0xc000427f80, 0x1a70f40, 0xc00adc42a0, 0xc000408100)
/root/pkg/mod/github.com/ipfs/[email protected]/http/apiprefix.go:24 +0xc3
github.com/rs/cors.(*Cors).Handler.func1(0x1a70f40, 0xc00adc42a0, 0xc000408100)
/root/pkg/mod/github.com/rs/[email protected]/cors.go:207 +0x1af
net/http.HandlerFunc.ServeHTTP(0xc000427fc0, 0x1a70f40, 0xc00adc42a0, 0xc000408100)
/root/.apps/go/src/net/http/server.go:1995 +0x44
net/http.(*ServeMux).ServeHTTP(0xc000415fc0, 0x1a70f40, 0xc00adc42a0, 0xc000408100)
/root/.apps/go/src/net/http/server.go:2375 +0x1d6
net/http.serverHandler.ServeHTTP(0xc0000a1930, 0x1a70f40, 0xc00adc42a0, 0xc000408100)
/root/.apps/go/src/net/http/server.go:2774 +0xa8
net/http.(*conn).serve(0xc00ab74000, 0x1a74f40, 0xc00b47e1c0)
/root/.apps/go/src/net/http/server.go:1878 +0x851
created by net/http.(*Server).Serve
/root/.apps/go/src/net/http/server.go:2884 +0x2f4
handler.go:96
@frrist
Copy link
Author

frrist commented Sep 6, 2019

filecoin node connected to devnet-staging

Command that caused panic:

go-filecoin miner create --from=t1nyzlo57t44kx7v56mvd5cy4qe5wqrtpyvetsf3i --preview --gas-price=0.000001 --gas-limit=300 100

Current Head Info:

go-filecoin show block $(go-filecoin chain head | head -n 1)
Block Details
Miner:  t2ul4d57grheyb64lh4jginiagel46tt2er3iyxsa
Weight: 9939.999
Height: 199
Nonce:  0
Messages:  bafy2bzacebc3bt6cedhoyw34drrmjvazhu4oj25er2ebk4u445pzycvq4ta4a
Receipts:  bafy2bzacebc3bt6cedhoyw34drrmjvazhu4oj25er2ebk4u445pzycvq4ta4a
Timestamp:  1567812366

Connected Peers:

go-filecoin swarm peers
/ip4/117.173.15.135/tcp/7000/ipfs/QmYspEsR2B9JeiZBtsaGjitD2k1t2HEjKyW1aJx7jr2GbD
/ip4/117.173.15.136/tcp/7000/ipfs/QmSCZ66UjG9sCstPdcerWvKtAg7LJTou8b5RLyumhumeKe
/ip4/3.92.33.27/tcp/1024/ipfs/QmXq6XEYeEmUzBFuuKbVEGgxEpVD4xbSkG2Rhek6zkFMp4
/ip4/3.92.33.27/tcp/1025/ipfs/QmXhxqTKzBKHA5FcMuiKZv8YaMPwpbKGXHRVZcFB2DX9XY
/ip4/3.92.33.27/tcp/1034/ipfs/QmZRnwmCjyNHgeNDiyT8mXRtGhP6uSzgHtrozc42crmVbg
/ip4/3.92.33.27/tcp/9000/ipfs/Qmd6xrWYHsxivfakYRy6MszTpuAiEoFbgE1LWw4EvwBpp4
/ip4/3.92.33.27/tcp/9003/ipfs/QmZGDLdQLUTi7uYTNavKwCd7SBc5KMfxzWxAyvqRQvwuiV
/ip4/4.15.79.202/tcp/6000/ipfs/QmYphGLipNhkEZCBEgkTvnE6D7WMJKUyqi7bDd46bsZby4

go-filecoin inspect all

Version:        62110fcdaabaeffa0c8491af07ee52b9f5faaae2                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                 
Runtime                                                                                                                                                                                                                                                                          
OS:             linux                                                                                                                                                                                                                                                            
Arch:           amd64                                                                                                                                                                                                                                                            
Version:        go1.12.7                                                                                                                                                                                                                                                         
Compiler:       gc                                                                                                                                                                                                                                                               
NumProc:        4                                                                                                                                                                                                                                                                
GoMaxProcs:     4                                                                                                                                                                                                                                                                
NumGoRoutines:  205                                                                                                                                                                                                                                                              
NumCGoCalls:    809                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                 
Disk                                                                                                                                                                                                                                                                             
Free:   142669955072                                                                                                                                                                                                                                                             
Total:  142653177856                                                                                                                                                                                                                                                             
FSType: 61267                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                 
Memory                                                                                                                                                                                                                                                                           
Swap:           0                                                                                                                                                                                                                                                                
Virtual:        11436300000                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                 
Environment                                                                                                                                                                                                                                                                      
FilAPI:                                                                                                                                                                                                                                                                          
FilPath:                                                                                                                                                                                                                                                                         
GoPath:         /root

Config
{
        "api": {
                "address": "/ip4/127.0.0.1/tcp/3453",
                "accessControlAllowOrigin": [
                        "http://localhost:8080",
                        "https://localhost:8080",
                        "http://127.0.0.1:8080",
                        "https://127.0.0.1:8080"
                ],
                "accessControlAllowCredentials": false,
                "accessControlAllowMethods": [
                        "GET",
                        "POST",
                        "PUT"
                ]
        },
        "bootstrap": {
                "addresses": [                                                                                                                                                                                                                                                   
                        "/dns4/staging.kittyhawk.wtf/tcp/9000/ipfs/Qmd6xrWYHsxivfakYRy6MszTpuAiEoFbgE1LWw4EvwBpp4",                                                                                                                                                              
                        "/dns4/staging.kittyhawk.wtf/tcp/9001/ipfs/QmXq6XEYeEmUzBFuuKbVEGgxEpVD4xbSkG2Rhek6zkFMp4",                                                                                                                                                              
                        "/dns4/staging.kittyhawk.wtf/tcp/9002/ipfs/QmXhxqTKzBKHA5FcMuiKZv8YaMPwpbKGXHRVZcFB2DX9XY",
                        "/dns4/staging.kittyhawk.wtf/tcp/9003/ipfs/QmZGDLdQLUTi7uYTNavKwCd7SBc5KMfxzWxAyvqRQvwuiV",
                        "/dns4/staging.kittyhawk.wtf/tcp/9004/ipfs/QmZRnwmCjyNHgeNDiyT8mXRtGhP6uSzgHtrozc42crmVbg"
                ],
                "minPeerThreshold": 1,
                "period": "10s"
        },
        "datastore": {
                "type": "badgerds",
                "path": "badger"
        },
        "heartbeat": {
                "beatTarget": "",
                "beatPeriod": "3s",
                "reconnectPeriod": "10s",
                "nickname": ""
        },
        "mining": {
                "minerAddress": "empty",
                "autoSealIntervalSeconds": 120,
                "storagePrice": "0"
        },
        "mpool": {
                "maxPoolSize": 10000,
                "maxNonceGap": "100"
        },
        "net": "devnet-staging",
        "observability": {
                "metrics": {
                        "prometheusEnabled": false,
                        "reportInterval": "5s",
                        "prometheusEndpoint": "/ip4/0.0.0.0/tcp/9400"
                },
                "tracing": {
                        "jaegerTracingEnabled": false,
                        "probabilitySampler": 1,
                        "jaegerEndpoint": "http://localhost:14268/api/traces"
                }
       },
        "sectorbase": {
                "rootdir": ""
        },
        "swarm": {
                "address": "/ip4/0.0.0.0/tcp/6000"
        },
        "wallet": {
                "defaultAddress": "t1nyzlo57t44kx7v56mvd5cy4qe5wqrtpyvetsf3i"
        }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment