hugu serv error first time running in linuxmint - panic: runtime error: invalid memory address or nil pointer dereference #441
rajmahendra
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using latest linuxmint with
I have created a new hugo site and used git clone of the theme
I copied the example site in main hugo site
when i run hugo serve
I got this error when execution
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x16293b2]
goroutine 1 [running]:
github.com/gohugoio/hugo/hugolib.newHugoSites({{0x2494e98, 0xc0006b4ff0}, 0xc0001e6a00, 0x0, {0x0, 0x0}, {0x2493a90, 0xc00045d2c0}, {0x0, 0x0, ...}, ...}, ...)
github.com/gohugoio/hugo/hugolib/hugo_sites.go:398 +0x832
github.com/gohugoio/hugo/hugolib.NewHugoSites({{0x2494e98, 0xc0006b4ff0}, 0xc0001e6a00, 0x0, {0x0, 0x0}, {0x2493a90, 0xc00045d2c0}, {0x0, 0x0, ...}, ...})
github.com/gohugoio/hugo/hugolib/hugo_sites.go:527 +0x11d
github.com/gohugoio/hugo/commands.(*commandeer).loadConfig.func3()
github.com/gohugoio/hugo/commands/commandeer.go:419 +0x4f8
sync.(*Once).doSlow(0xc00045d2c0?, 0x1f9a891?)
sync/once.go:68 +0xc2
sync.(*Once).Do(...)
sync/once.go:59
github.com/gohugoio/hugo/commands.(*commandeer).loadConfig(0xc0004320f0)
github.com/gohugoio/hugo/commands/commandeer.go:377 +0x8a6
github.com/gohugoio/hugo/commands.newCommandeer(0x1, 0x1, 0x1, 0xc000513420, {0x247e500?, 0xc0003a55c0}, 0xc0002d98a0, {0x0, 0x0, 0x0})
github.com/gohugoio/hugo/commands/commandeer.go:195 +0x310
github.com/gohugoio/hugo/commands.initializeConfig(0x52?, 0x1a?, 0x45?, 0x1fa045a?, {0x247e500?, 0xc0003a55c0?}, 0xc0007ffc70?)
github.com/gohugoio/hugo/commands/hugo.go:125 +0x31
github.com/gohugoio/hugo/commands.(*serverCmd).server(0xc0003a55c0, 0xc00037ec80, {0xc0007ffcd8?, 0x0?, 0x0?})
github.com/gohugoio/hugo/commands/server.go:242 +0x1cd
github.com/spf13/cobra.(*Command).execute(0xc00037ec80, {0x3370d48, 0x0, 0x0})
github.com/spf13/cobra/command.go:856 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0xc000524280)
github.com/spf13/cobra/command.go:974 +0x3b4
github.com/gohugoio/hugo/commands.Execute({0xc00003c050, 0x1, 0x1})
github.com/gohugoio/hugo/commands/hugo.go:92 +0xb4
main.main()
github.com/gohugoio/hugo/main.go:23 +0x57
Am i missing anything ?
Beta Was this translation helpful? Give feedback.
All reactions