Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cjdnsadmin config generation error #45

Open
Tolsi opened this issue Oct 28, 2013 · 0 comments
Open

cjdnsadmin config generation error #45

Tolsi opened this issue Oct 28, 2013 · 0 comments

Comments

@Tolsi
Copy link

Tolsi commented Oct 28, 2013

Then I haven't ~/.cjdnsadmin and I want to generate it, cjdcmd trying to read it...
I use Mint 15 x64 (Ubuntu 13.04)

~/hypehost $ rm ~/.cjdnsadmin
~/hypehost $ cjdcmd cjdnsadmin --file ~/.cjdnsadmin
Loading configuration from: /home/user/.cjdnsadmin... Error loading config: open /home/user/.cjdnsadmin: no such file or directory
~/hypehost $ touch ~/.cjdnsadmin
~/hypehost $ cjdcmd cjdnsadmin --file ~/.cjdnsadmin
Loading configuration from: /home/user/.cjdnsadmin... Invalid JSON
----------------------------------------
panic: runtime error: slice bounds out of range

goroutine 1 [running]:
runtime.panic(0x6cb200, 0xa541ea)
    /usr/local/go/src/pkg/runtime/panic.c:266 +0xb6
github.com/inhies/go-cjdns/config.LoadMinConfig(0x7fff92a4da21, 0x17, 0x37, 0x0, 0x0)
    /home/user/projects/go/src/github.com/inhies/go-cjdns/config/config.go:30 +0x4ee
main.readConfig(0x777ef0, 0x0, 0x0)
    /home/user/projects/go/src/github.com/inhies/cjdcmd/misc.go:114 +0x49
main.main()
    /home/user/projects/go/src/github.com/inhies/cjdcmd/cjdcmd.go:269 +0xbd2

goroutine 3 [syscall]:
os/signal.loop()
    /usr/local/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
    /usr/local/go/src/pkg/os/signal/signal_unix.go:27 +0x31

goroutine 4 [chan receive]:
main.func·001()
    /home/user/projects/go/src/github.com/inhies/cjdcmd/cjdcmd.go:214 +0x5f
created by main.main
    /home/user/projects/go/src/github.com/inhies/cjdcmd/cjdcmd.go:241 +0x5a8
~/hypehost $ cat ~/.cjdnsadmin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant