likeastore / dokku-pm2

Dokku plugin to utilize the power of pm2
MIT License
26 stars 5 forks source link

Support new style of listing with `dokku plugin` #4

Open haywirez opened 8 years ago

haywirez commented 8 years ago

Getting this error when calling simple dokku plugin listing (see https://github.com/dokku/dokku/blob/f328a9940b8652bbf093bf0ec99f2053f48f0db7/HISTORY.md#040):

cat: /var/lib/dokku/plugins/available/dokku-pm2/plugin.toml: No such file or directory
panic: interface conversion: interface is nil, not map[string]interface {}

goroutine 1 [running]:
runtime.panic(0x5ffd60, 0xc2100520c0)
    /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
main.TomlGet(0xc21000a030, 0x2, 0x2)
    /home/vagrant/gocode/src/github.com/dokku/plugn/plugn.go:30 +0x1d1
github.com/progrium/go-basher.(*Context).HandleFuncs(0xc21000f320, 0xc21000a000, 0x5, 0x5, 0x0)
    /home/vagrant/gocode/src/github.com/progrium/go-basher/basher.go:182 +0x2ac
github.com/progrium/go-basher.Application(0xc21001ddb0, 0x7f6678e32f00, 0x4, 0x4, 0x6aeb58, ...)
    /home/vagrant/gocode/src/github.com/progrium/go-basher/basher.go:64 +0x4d2
main.main()
    /home/vagrant/gocode/src/github.com/dokku/plugn/plugn.go:98 +0x431

goroutine 3 [runnable]:
os/signal.loop()
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:19
created by os/signal.init·1
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:27 +0x31
cat: /var/lib/dokku/plugins/available/dokku-pm2/plugin.toml: No such file or directory
panic: interface conversion: interface is nil, not map[string]interface {}

goroutine 1 [running]:
runtime.panic(0x5ffd60, 0xc2100530c0)
    /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
main.TomlGet(0xc21000a030, 0x2, 0x2)
    /home/vagrant/gocode/src/github.com/dokku/plugn/plugn.go:30 +0x1d1
github.com/progrium/go-basher.(*Context).HandleFuncs(0xc21000f320, 0xc21000a000, 0x5, 0x5, 0x0)
    /home/vagrant/gocode/src/github.com/progrium/go-basher/basher.go:182 +0x2ac
github.com/progrium/go-basher.Application(0xc21001ddb0, 0x7f2a5224cf00, 0x4, 0x4, 0x6aeb58, ...)
    /home/vagrant/gocode/src/github.com/progrium/go-basher/basher.go:64 +0x4d2
main.main()
    /home/vagrant/gocode/src/github.com/dokku/plugn/plugn.go:98 +0x431

goroutine 3 [runnable]:
os/signal.loop()
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:19
created by os/signal.init·1
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:27 +0x31