hugo: panic: invalid paginator state for "Example.com"
Hi!
I just upgraded vom v0.54/extended windows/amd64
to v0.55.3/extended windows/amd64
and now hugo crashes when I access localhost:1313 in server mode. The generation of the website still works without any errors if I just use the hugo command.
c:\Hugo\www.example.com>hugo server
Building sites …
| DE
+------------------+------+
Pages | 9991
Paginator pages | 1930
Non-page files | 0
Static files | 21
Processed images | 0
Aliases | 9984
Sitemaps | 1
Cleaned | 0
Total in 20139 ms
Watching for changes in c:\Hugo\www.example.com\{content,themes}
Watching for config changes in c:\Hugo\www.example.com\config.toml, c:\Hugo\www.example.com\themes\optitheme\config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
panic: invalid paginator state for "Example.com"
goroutine 29728 [running]:
github.com/gohugoio/hugo/hugolib.(*Site).renderPaginator(0xc000383500, 0xc007ba1f50, 0xc01bd1dc00, 0x2e, 0x40, 0xa, 0xc007ba1f50)
/go/src/github.com/gohugoio/hugo/hugolib/site_render.go:174 +0x726
github.com/gohugoio/hugo/hugolib.pageRenderer(0xc030b35c00, 0xc000383500, 0xc0334b2420, 0xc00d00e720, 0xc036a0cae0)
/go/src/github.com/gohugoio/hugo/hugolib/site_render.go:157 +0x645
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages
/go/src/github.com/gohugoio/hugo/hugolib/site_render.go:73 +0x167
c:\Hugo\www.example.com>hugo
Building sites …
| DE
+------------------+------+
Pages | 9991
Paginator pages | 1930
Non-page files | 0
Static files | 21
Processed images | 0
Aliases | 9984
Sitemaps | 1
Cleaned | 0
Total in 81550 ms
c:\Hugo\www.example.com>
Let me know if you need any additional information to track this down.
Best regards Tobias
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 31 (17 by maintainers)
Commits related to this issue
- hugolib: Prevent parallel server rebuilds See #5885 See #5968 — committed to bep/hugo by bep 5 years ago
- hugolib: Prevent parallel server rebuilds There have been reports about infrequent paginator crashes when running the Hugo server since 0.55.0. The reason have been narrowed down to that of parallel... — committed to bep/hugo by bep 5 years ago
Works for me now… thanks…
Sorry I was no better help 🛌 …
Anyhow, after hours of trying to isolate this bug, I’m confident I would be able to reproduce it, was it still around on 55.6. I can confirm all is good on .55.6 and it’s amazing news!
Thanks a ton for this quick fix and release.
@larzza that data race is already in an issue somewhere (and is probably a bug in Go that I have not been able to create a standalone repro for). For the future: I almost never read comments on closed issues. Which isn’t a way of saying that I guarantee that it is fixed, it’s just a way to reduce the number of notifications. So, if an issue isn’t fixed => new issue. Also, it would be good if we could make one issue about one thing, and that thing only.
We have the same issues (server only) on several of our sites only it mentions the paginator internal template but I suppose this revolves around the Paginator. I’ll try and a find a way to reproduce this on a public server and share it.