Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

runtime error: invalid memory address or nil pointer dereference #49

Closed
rollbar bot opened this issue May 20, 2018 · 1 comment
Closed

runtime error: invalid memory address or nil pointer dereference #49

rollbar bot opened this issue May 20, 2018 · 1 comment

Comments

@rollbar
Copy link

rollbar bot commented May 20, 2018

View details in Rollbar: https://rollbar.com/RTradeLtd/Temporal/items/8/

Traceback (most recent call last):
  File "/usr/local/go/src/runtime/panic.go", line 503, in runtime.gopanic
  File "/usr/local/go/src/runtime/panic.go", line 63, in runtime.panicmem
  File "/usr/local/go/src/runtime/signal_unix.go", line 388, in runtime.sigpanic
  File "github.com/ipfs/go-ipfs-api/shell.go", line 91, in go-ipfs-api.(*Shell).newRequest
  File "github.com/ipfs/go-ipfs-api/shell.go", line 365, in go-ipfs-api.(*Shell).Pins
  File "github.com/RTradeLtd/Temporal/api/api.go", line 334, in api.getLocalPins
  File "github.com/gin-gonic/gin/context.go", line 108, in gin.(*Context).Next
  File "github.com/gin-contrib/rollbar/recovey.go", line 40, in rollbar.Recovery.func1
  File "github.com/gin-gonic/gin/context.go", line 108, in gin.(*Context).Next
  File "github.com/zsais/go-gin-prometheus/middleware.go", line 352, in go-gin-prometheus.(*Prometheus).handlerFunc.func1
  File "github.com/gin-gonic/gin/context.go", line 108, in gin.(*Context).Next
  File "github.com/gin-gonic/gin/recovery.go", line 48, in gin.RecoveryWithWriter.func1
  File "github.com/gin-gonic/gin/context.go", line 108, in gin.(*Context).Next
  File "github.com/gin-gonic/gin/logger.go", line 86, in gin.LoggerWithWriter.func1
  File "github.com/gin-gonic/gin/context.go", line 108, in gin.(*Context).Next
  File "github.com/gin-gonic/gin/gin.go", line 359, in gin.(*Engine).handleHTTPRequest
  File "github.com/gin-gonic/gin/gin.go", line 326, in gin.(*Engine).ServeHTTP
  File "/usr/local/go/src/net/http/server.go", line 2695, in http.serverHandler.ServeHTTP
  File "/usr/local/go/src/net/http/server.go", line 1830, in http.(*conn).serve
  File "/usr/local/go/src/runtime/asm_amd64.s", line 2362, in runtime.goexit
{1a5c186c}: runtime error: invalid memory address or nil pointer dereference
@bonedaddy
Copy link
Contributor

Caused by not setting ipfs repo environment variable. To prevent this from happening again, launching of all temporal services has been scripted to set the environment repo accordingly.

Possible solutions:

  • Sym linking the standard IPFS path, to the non-standard path. This would ensure that if we forget to ever set the environment variable it should still function properly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant