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/os_darwin.go:98 +0xc5 fp=0xc010b758a0 sp=0xc010b75878 pc=0x4037a65


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




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*commandeer).serve(0xc0006d6380, 0xc00004d800, 0x0, 0xc0035f4800) +0x629 fp=0xc010b75b50 sp=0xc010b75958 pc=0x54c50e9*serverCmd).server(0xc00004d800, 0xc0006d1180, 0xc0006cf200, 0x0, 0x3, 0x0, 0x0) +0x2e5 fp=0xc010b75cb0 sp=0xc010b75b50 pc=0x54c37c5*serverCmd).server-fm(0xc0006d1180, 0xc0006cf200, 0x0, 0x3, 0x0, 0x0) +0x5b fp=0xc010b75cf8 sp=0xc010b75cb0 pc=0x54d211b*Command).execute(0xc0006d1180, 0xc0006cf1d0, 0x3, 0x3, 0xc0006d1180, 0xc0006cf1d0) +0x472 fp=0xc010b75db8 sp=0xc010b75cf8 pc=0x41d6b12*Command).ExecuteC(0xc000824500, 0xc0006d3820, 0x5, 0x6) +0x375 fp=0xc010b75e98 sp=0xc010b75db8 pc=0x41d7695, 0x4, 0x4, 0x4009b25, 0xc000110058, 0x54d60f0, 0x0) +0xb9 fp=0xc010b75f28 sp=0xc010b75e98 pc=0x54b0399

main.main() +0x76 fp=0xc010b75f88 sp=0xc010b75f28 pc=0x54d5ad6


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


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

goroutine 6 [select]:*worker).start(0xc000628200) +0xcd

created by +0x68

goroutine 923 [select]:*hub).run(0x6af0880) +0xfd

created by +0x45

goroutine 919 [syscall]:

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

runtime/sys_darwin.go:41 +0x2e, 0x0, 0x0, 0xc0020b2688, 0xa, 0x6b30850, 0x0, 0x0, 0x0) +0x98, 0x0, 0x0, 0x0, 0xc0020b2688, 0xa, 0xa, 0x6b30850, 0x0, 0x0, ...) +0x71, 0xc0020b2688, 0xa, 0xa, 0x6b30850, 0xc0020b2588, 0x406cec0, 0xc000001c80, 0x4, 0xc0020b25d8) +0x6e*Watcher).readEvents(0xc004a4ecc0) +0x81b

created by +0x199

goroutine 920 [select]:*Batcher).run(0xc005d01530) +0x145

created by +0x1c5

goroutine 921 [select]:*commandeer).newWatcher.func1(0xc005d01530, 0xc0006d6380, 0xc0070876f0, 0xc0091c2150) +0xdc

created by*commandeer).newWatcher +0x305