Hugo and Slackware (current)

MacgyverPT

Member
Joined
Jun 25, 2018
Messages
40
Reaction score
53
Credits
66
Hi all.

I decide install Hugo on my machine to "try" learn this "tool". I install without error and also install NodeJS (and npm). I started basic project, but when I start the server (with command hugo server ) I received this error:

-----

miguel@SlackZeus:~/Development/wip/blog_ti$ hugo serve
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x1539612]

goroutine 1 [running]:
github.com/gohugoio/hugo/hugolib.newHugoSites({{0x2394890, 0xc000437380}, 0xc000455e80, 0x0, {0x0, 0x0}, {0x238fd18, 0xc000180460}, {0x0, 0x0, ...}, ...}, ...)
/root/project/hugo/hugolib/hugo_sites.go:390 +0x832
github.com/gohugoio/hugo/hugolib.NewHugoSites({{0x2394890, 0xc000437380}, 0xc000455e80, 0x0, {0x0, 0x0}, {0x238fd18, 0xc000180460}, {0x0, 0x0, ...}, ...})
/root/project/hugo/hugolib/hugo_sites.go:519 +0x11d
github.com/gohugoio/hugo/commands.(*commandeer).loadConfig.func3()
/root/project/hugo/commands/commandeer.go:417 +0x4f8
sync.(*Once).doSlow(0xc000180460, 0x1eacc5a)
/usr/local/go/src/sync/once.go:68 +0xd2
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
github.com/gohugoio/hugo/commands.(*commandeer).loadConfig(0xc0006d96c0)
/root/project/hugo/commands/commandeer.go:375 +0x8a5
github.com/gohugoio/hugo/commands.newCommandeer(0x1, 0x1, 0x1, 0xc0006d9420, {0x233f080, 0xc0004550c0}, 0xc000389060, {0x0, 0x0, 0x0})
/root/project/hugo/commands/commandeer.go:193 +0x310
github.com/gohugoio/hugo/commands.initializeConfig(0x92, 0xc8, 0x44, 0x1eb2565, {0x233f080, 0xc0004550c0}, 0xc0008ffc88)
/root/project/hugo/commands/hugo.go:125 +0x31
github.com/gohugoio/hugo/commands.(*serverCmd).server(0xc0004550c0, 0xc00093f400, {0xc0008ffcf0, 0x0, 0x0})
/root/project/hugo/commands/server.go:242 +0x1ce
github.com/spf13/cobra.(*Command).execute(0xc00093f400, {0x33058b8, 0x0, 0x0})
/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x60e
github.com/spf13/cobra.(*Command).ExecuteC(0xc000969680)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3bc
github.com/gohugoio/hugo/commands.Execute({0xc00019e010, 0x1, 0x1})
/root/project/hugo/commands/hugo.go:92 +0xb4
main.main()
/root/project/hugo/main.go:23 +0x58

-----


My version of Hugo:
--
miguel@SlackZeus:~/Development/wip/blog_ti$ hugo version
hugo v0.91.0-D1DC0E9A linux/amd64 BuildDate=2021-12-17T09:50:20Z VendorInfo=gohugoio
--

How I fix this?
Thank you
 

Members online


Latest posts

Top