BioPAL / biopal.org

biopal website content repository
Apache License 2.0
1 stars 1 forks source link

[BUG] server error on MacOS #2

Closed slumnitz closed 3 years ago

slumnitz commented 3 years ago

Dear all,

I cannot run the Hugo server with the command Hugo server on MacOS. My installation is: hugo v0.82.0+extended

I encounter the following pipe failed error:

Detailed error message:

Built in 642 ms
Watching for changes in /Users/steffie/code/temp/biopal.org/{assets,content,layouts,package.json,themes}
Watching for config changes in /Users/steffie/code/temp/biopal.org/config.toml, /Users/steffie/code/temp/biopal.org/themes/docsy/config.toml
fatal error: pipe failed

goroutine 1 [running]:
runtime.throw(0x5a16c82, 0xb)
    runtime/panic.go:1117 +0x72 fp=0xc001bd9890 sp=0xc001bd9860 pc=0x403a372
runtime.sigNoteSetup(0x6ca4ca0)
    runtime/os_darwin.go:98 +0xc5 fp=0xc001bd98b8 sp=0xc001bd9890 pc=0x4036865
os/signal.signal_enable(0xd204e0d700000002)
    runtime/sigqueue.go:228 +0xa5 fp=0xc001bd98d8 sp=0xc001bd98b8 pc=0x4070665
os/signal.enableSignal(...)
    os/signal/signal_unix.go:49
os/signal.Notify.func1(0x2)
    os/signal/signal.go:145 +0x88 fp=0xc001bd98f8 sp=0xc001bd98d8 pc=0x5426ea8
os/signal.Notify(0xc0034c0120, 0xc001bd9b38, 0x2, 0x2)
    os/signal/signal.go:165 +0x185 fp=0xc001bd9970 sp=0xc001bd98f8 pc=0x54268c5
github.com/gohugoio/hugo/commands.(*commandeer).serve(0xc00017a9a0, 0xc0005356c0, 0x94, 0x100)
    github.com/gohugoio/hugo/commands/server.go:494 +0x629 fp=0xc001bd9b68 sp=0xc001bd9970 pc=0x545abe9
github.com/gohugoio/hugo/commands.(*serverCmd).server(0xc0005356c0, 0xc0001d42c0, 0x6ca4310, 0x0, 0x0, 0x0, 0x0)
    github.com/gohugoio/hugo/commands/server.go:272 +0x2c5 fp=0xc001bd9cb0 sp=0xc001bd9b68 pc=0x54593a5
github.com/gohugoio/hugo/commands.(*serverCmd).server-fm(0xc0001d42c0, 0x6ca4310, 0x0, 0x0, 0x0, 0x0)
    github.com/gohugoio/hugo/commands/server.go:131 +0x5b fp=0xc001bd9cf8 sp=0xc001bd9cb0 pc=0x54675fb
github.com/spf13/cobra.(*Command).execute(0xc0001d42c0, 0x6ca4310, 0x0, 0x0, 0xc0001d42c0, 0x6ca4310)
    github.com/spf13/cobra@v1.1.1/command.go:850 +0x472 fp=0xc001bd9db8 sp=0xc001bd9cf8 pc=0x41d4ad2
github.com/spf13/cobra.(*Command).ExecuteC(0xc0003cf080, 0xc000715d70, 0x5, 0x6)
    github.com/spf13/cobra@v1.1.1/command.go:958 +0x375 fp=0xc001bd9e98 sp=0xc001bd9db8 pc=0x41d5655
github.com/gohugoio/hugo/commands.Execute(0xc00019c010, 0x1, 0x1, 0x4008b05, 0xc00004e0b8, 0x546b4c0, 0x0)
    github.com/gohugoio/hugo/commands/hugo.go:87 +0xb9 fp=0xc001bd9f28 sp=0xc001bd9e98 pc=0x5445db9
main.main()
    github.com/gohugoio/hugo/main.go:23 +0x76 fp=0xc001bd9f88 sp=0xc001bd9f28 pc=0x546ae36
runtime.main()
    runtime/proc.go:225 +0x256 fp=0xc001bd9fe0 sp=0xc001bd9f88 pc=0x403cb96
runtime.goexit()
    runtime/asm_amd64.s:1371 +0x1 fp=0xc001bd9fe8 sp=0xc001bd9fe0 pc=0x4074421

goroutine 7 [select]:
go.opencensus.io/stats/view.(*worker).start(0xc0004eb600)
    go.opencensus.io@v0.22.5/stats/view/worker.go:276 +0xcd
created by go.opencensus.io/stats/view.init.0
    go.opencensus.io@v0.22.5/stats/view/worker.go:34 +0x68

goroutine 159 [syscall]:
syscall.syscall6(0x424f2c0, 0x7, 0x0, 0x0, 0xc000113e88, 0xa, 0x6ca4760, 0x0, 0x0, 0x0)
    runtime/sys_darwin.go:41 +0x2e
golang.org/x/sys/unix.kevent(0x7, 0x0, 0x0, 0xc000113e88, 0xa, 0x6ca4760, 0x0, 0x0, 0x0)
    golang.org/x/sys@v0.0.0-20210104204734-6f8348627aad/unix/zsyscall_darwin_amd64.go:275 +0xa5
golang.org/x/sys/unix.Kevent(0x7, 0x0, 0x0, 0x0, 0xc000113e88, 0xa, 0xa, 0x6ca4760, 0x0, 0x0, ...)
    golang.org/x/sys@v0.0.0-20210104204734-6f8348627aad/unix/syscall_bsd.go:428 +0x71
github.com/fsnotify/fsnotify.read(0x7, 0xc000113e88, 0xa, 0xa, 0x6ca4760, 0xc000113e88, 0x0, 0xa, 0x0, 0x0)
    github.com/fsnotify/fsnotify@v1.4.9/kqueue.go:511 +0x6e
github.com/fsnotify/fsnotify.(*Watcher).readEvents(0xc0035ad020)
    github.com/fsnotify/fsnotify@v1.4.9/kqueue.go:274 +0x81b
created by github.com/fsnotify/fsnotify.NewWatcher
    github.com/fsnotify/fsnotify@v1.4.9/kqueue.go:62 +0x199

goroutine 161 [select]:
github.com/gohugoio/hugo/commands.(*commandeer).newWatcher.func1(0xc003392380, 0xc00017a9a0, 0xc0027465d8, 0xc0039306c0)
    github.com/gohugoio/hugo/commands/hugo.go:853 +0xc5
created by github.com/gohugoio/hugo/commands.(*commandeer).newWatcher
    github.com/gohugoio/hugo/commands/hugo.go:851 +0x2ce

goroutine 160 [select]:
github.com/gohugoio/hugo/watcher.(*Batcher).run(0xc003392380)
    github.com/gohugoio/hugo/watcher/batcher.go:53 +0x129
created by github.com/gohugoio/hugo/watcher.New
    github.com/gohugoio/hugo/watcher/batcher.go:42 +0x13b

goroutine 138 [select]:
github.com/gohugoio/hugo/livereload.(*hub).run(0x6c66040)
    github.com/gohugoio/hugo/livereload/hub.go:39 +0xfd
created by github.com/gohugoio/hugo/livereload.Initialize
    github.com/gohugoio/hugo/livereload/livereload.go:99 +0x45
slumnitz commented 3 years ago

On closer inspection this seems to be a Hugo bug, see also https://discourse.gohugo.io/t/on-upgrade-to-v0-76-5-fatal-error-pipe-failed/28912

It was fixed via running hugo server --watch=false instead of hugo server.