Serving multiple HUGO sites on Mac

I used to be able to server multiple Hugo sites at the same time on my Mac using different terminal windows.

Now, it returns an error of fatal error: pipe failed

Thinking it might be due to an older version (I was running 0.84.0) I upgraded to 0.85.0 but the issue persisted.

Further, I stopped the server with one site to make sure it wasn’t and issue with the other site, but then. the issue persisted in reversed, I was not able to server Site 1, but was able to serve Site 2, and then was given the same error message.

Any insight into what’s going on here? Could this be an issue with my Mac’s configuration or is it likely to be a Hugo server bug?

Thanks in advance.

What kind of Mac is this? One of the new with M1 processors? If so, you need to download the AM64 binary.

2018 MBP running Big Sur v 11.2.3

Here is the full error message.

Built in 8100 ms

Watching for changes in /Users/bugsy/sites/yots/{assets,content,data,layouts,package.json,static}

Watching for config changes in /Users/bugsy/sites/yots/config.toml

fatal error: pipe failed

goroutine 1 [running]:

runtime.throw(0x5b14855, 0xb)

runtime/panic.go:1117 +0x72 fp=0xc010b75878 sp=0xc010b75848 pc=0x403b572

runtime.sigNoteSetup(0x6b30da0)

runtime/os_darwin.go:98 +0xc5 fp=0xc010b758a0 sp=0xc010b75878 pc=0x4037a65

os/signal.signal_enable(0x6bd6d5a400000002)

runtime/sigqueue.go:228 +0xa5 fp=0xc010b758c0 sp=0xc010b758a0 pc=0x40719e5

os/signal.enableSignal(...)

os/signal/signal_unix.go:49

os/signal.Notify.func1(0x2)

os/signal/signal.go:145 +0x88 fp=0xc010b758e0 sp=0xc010b758c0 pc=0x548eac8

os/signal.Notify(0xc004c36840, 0xc010b75b20, 0x2, 0x2)

os/signal/signal.go:165 +0x185 fp=0xc010b75958 sp=0xc010b758e0 pc=0x548e4e5

github.com/gohugoio/hugo/commands.(*commandeer).serve(0xc0006d6380, 0xc00004d800, 0x0, 0xc0035f4800)

github.com/gohugoio/hugo/commands/server.go:508 +0x629 fp=0xc010b75b50 sp=0xc010b75958 pc=0x54c50e9

github.com/gohugoio/hugo/commands.(*serverCmd).server(0xc00004d800, 0xc0006d1180, 0xc0006cf200, 0x0, 0x3, 0x0, 0x0)

github.com/gohugoio/hugo/commands/server.go:286 +0x2e5 fp=0xc010b75cb0 sp=0xc010b75b50 pc=0x54c37c5

github.com/gohugoio/hugo/commands.(*serverCmd).server-fm(0xc0006d1180, 0xc0006cf200, 0x0, 0x3, 0x0, 0x0)

github.com/gohugoio/hugo/commands/server.go:133 +0x5b fp=0xc010b75cf8 sp=0xc010b75cb0 pc=0x54d211b

github.com/spf13/cobra.(*Command).execute(0xc0006d1180, 0xc0006cf1d0, 0x3, 0x3, 0xc0006d1180, 0xc0006cf1d0)

github.com/spf13/cobra@v1.1.3/command.go:852 +0x472 fp=0xc010b75db8 sp=0xc010b75cf8 pc=0x41d6b12

github.com/spf13/cobra.(*Command).ExecuteC(0xc000824500, 0xc0006d3820, 0x5, 0x6)

github.com/spf13/cobra@v1.1.3/command.go:960 +0x375 fp=0xc010b75e98 sp=0xc010b75db8 pc=0x41d7695

github.com/gohugoio/hugo/commands.Execute(0xc00010e060, 0x4, 0x4, 0x4009b25, 0xc000110058, 0x54d60f0, 0x0)

github.com/gohugoio/hugo/commands/hugo.go:90 +0xb9 fp=0xc010b75f28 sp=0xc010b75e98 pc=0x54b0399

main.main()

github.com/gohugoio/hugo/main.go:23 +0x76 fp=0xc010b75f88 sp=0xc010b75f28 pc=0x54d5ad6

runtime.main()

runtime/proc.go:225 +0x256 fp=0xc010b75fe0 sp=0xc010b75f88 pc=0x403dd96

runtime.goexit()

runtime/asm_amd64.s:1371 +0x1 fp=0xc010b75fe8 sp=0xc010b75fe0 pc=0x40757a1

goroutine 6 [select]:

go.opencensus.io/stats/view.(*worker).start(0xc000628200)

go.opencensus.io@v0.23.0/stats/view/worker.go:276 +0xcd

created by go.opencensus.io/stats/view.init.0

go.opencensus.io@v0.23.0/stats/view/worker.go:34 +0x68

goroutine 923 [select]:

github.com/gohugoio/hugo/livereload.(*hub).run(0x6af0880)

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

goroutine 919 [syscall]:

syscall.syscall6(0x424da00, 0x7, 0x0, 0x0, 0xc0020b2688, 0xa, 0x6b30850, 0x0, 0x0, 0x0)

runtime/sys_darwin.go:41 +0x2e

golang.org/x/sys/unix.kevent(0x7, 0x0, 0x0, 0xc0020b2688, 0xa, 0x6b30850, 0x0, 0x0, 0x0)

golang.org/x/sys@v0.0.0-20210510120138-977fb7262007/unix/zsyscall_darwin_amd64.go:276 +0x98

golang.org/x/sys/unix.Kevent(0x7, 0x0, 0x0, 0x0, 0xc0020b2688, 0xa, 0xa, 0x6b30850, 0x0, 0x0, ...)

golang.org/x/sys@v0.0.0-20210510120138-977fb7262007/unix/syscall_bsd.go:429 +0x71

github.com/fsnotify/fsnotify.read(0x7, 0xc0020b2688, 0xa, 0xa, 0x6b30850, 0xc0020b2588, 0x406cec0, 0xc000001c80, 0x4, 0xc0020b25d8)

github.com/fsnotify/fsnotify@v1.4.9/kqueue.go:511 +0x6e

github.com/fsnotify/fsnotify.(*Watcher).readEvents(0xc004a4ecc0)

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 920 [select]:

github.com/gohugoio/hugo/watcher.(*Batcher).run(0xc005d01530)

github.com/gohugoio/hugo/watcher/batcher.go:67 +0x145

created by github.com/gohugoio/hugo/watcher.New

github.com/gohugoio/hugo/watcher/batcher.go:56 +0x1c5

goroutine 921 [select]:

github.com/gohugoio/hugo/commands.(*commandeer).newWatcher.func1(0xc005d01530, 0xc0006d6380, 0xc0070876f0, 0xc0091c2150)

github.com/gohugoio/hugo/commands/hugo.go:865 +0xdc

created by github.com/gohugoio/hugo/commands.(*commandeer).newWatcher

github.com/gohugoio/hugo/commands/hugo.go:863 +0x305