Hostwiki / wikijs-sitemap

Sitemap for Wiki.js
MIT License
11 stars 2 forks source link

sitemap is generated at the first start and restart but not while running later #13

Open DarkDau opened 5 months ago

DarkDau commented 5 months ago

wikijs-sitemap database connection error. 'Error: Database connection error: Unable to acquire a connection' but when I restart the container it works ` # this is an example from today wikijs-sitemap | at generateSitemap (/wiki/sitemap/generate-sitemap.js:54:15) wikijs-sitemap | at async Task.generateSitemapAndLog [as _execution] (/wiki/sitemap/server.js:40:13) wikijs-sitemap | [[2024-04-11T00:00:00.981Z] Error generating sitemap (attempt 14/15): Error: Database connection error: Unable to acquire a connection wikijs-sitemap | at generateSitemap (/wiki/sitemap/generate-sitemap.js:54:15) wikijs-sitemap | at async Task.generateSitemapAndLog [as _execution] (/wiki/sitemap/server.js:40:13) wikijs-sitemap | [[2024-04-11T00:00:00.981Z] Error generating sitemap (attempt 15/15): Error: Database connection error: Unable to acquire a connection wikijs-sitemap | at generateSitemap (/wiki/sitemap/generate-sitemap.js:54:15) wikijs-sitemap | at async Task.generateSitemapAndLog [as _execution] (/wiki/sitemap/server.js:40:13) wikijs-sitemap | Server listening on port 3012 wikijs-sitemap | [2024-04-11T06:39:53.025Z] sitemap generated successfully.

Container was restarted @6:39

#################### the whole of 15 attempts wikijs-sitemap | [[2024-04-11T00:00:00.981Z] Error generating sitemap (attempt 1/15): Error: Database connection error: Unable to acquire a connection wikijs-sitemap | [[2024-04-11T00:00:00.981Z] Error generating sitemap (attempt 2/15): Error: Database connection error: Unable to acquire a connection wikijs-sitemap | [[2024-04-11T00:00:00.981Z] Error generating sitemap (attempt 3/15): Error: Database connection error: Unable to acquire a connection wikijs-sitemap | [[2024-04-11T00:00:00.981Z] Error generating sitemap (attempt 4/15): Error: Database connection error: Unable to acquire a connection wikijs-sitemap | [[2024-04-11T00:00:00.981Z] Error generating sitemap (attempt 5/15): Error: Database connection error: Unable to acquire a connection wikijs-sitemap | [[2024-04-11T00:00:00.981Z] Error generating sitemap (attempt 6/15): Error: Database connection error: Unable to acquire a connection wikijs-sitemap | [[2024-04-11T00:00:00.981Z] Error generating sitemap (attempt 7/15): Error: Database connection error: Unable to acquire a connection wikijs-sitemap | [[2024-04-11T00:00:00.981Z] Error generating sitemap (attempt 8/15): Error: Database connection error: Unable to acquire a connection wikijs-sitemap | [[2024-04-11T00:00:00.981Z] Error generating sitemap (attempt 9/15): Error: Database connection error: Unable to acquire a connection wikijs-sitemap | [[2024-04-11T00:00:00.981Z] Error generating sitemap (attempt 10/15): Error: Database connection error: Unable to acquire a connection wikijs-sitemap | [[2024-04-11T00:00:00.981Z] Error generating sitemap (attempt 11/15): Error: Database connection error: Unable to acquire a connection wikijs-sitemap | [[2024-04-11T00:00:00.981Z] Error generating sitemap (attempt 12/15): Error: Database connection error: Unable to acquire a connection wikijs-sitemap | [[2024-04-11T00:00:00.981Z] Error generating sitemap (attempt 13/15): Error: Database connection error: Unable to acquire a connection wikijs-sitemap | [[2024-04-11T00:00:00.981Z] Error generating sitemap (attempt 14/15): Error: Database connection error: Unable to acquire a connection wikijs-sitemap | [[2024-04-11T00:00:00.981Z] Error generating sitemap (attempt 15/15): Error: Database connection error: Unable to acquire a connection ` I find it striking that the time stamp to the microsecond is always exactly the same after 15 attempts.

Are onother users facing this behavior, too?

Philipinho commented 5 months ago

Thanks for reporting. I will look into it.