Page MenuHomePhabricator

pagepile.toolforge.org 504 timed out
Closed, ResolvedPublic

Description

Pywikibot tests fails because pagepile.toolforge.org has timed out.

======================================================================
ERROR: test_PagePilePageGenerator (tests.pagegenerators_tests.PagePilePageGeneratorTestCase.test_PagePilePageGenerator)
Test PagePilePageGenerator.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/pywikibot/pywikibot/tests/pagegenerators_tests.py", line 410, in test_PagePilePageGenerator
    self.assertLength(list(gen), 215)
                      ^^^^^^^^^
  File "<frozen _collections_abc>", line 356, in __next__
  File "/home/runner/work/pywikibot/pywikibot/pywikibot/tools/collections.py", line 278, in send
    return next(self._started_gen)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/pywikibot/pywikibot/pywikibot/pagegenerators/_generators.py", line 1509, in generator
    for raw_page in self.query():
                    ^^^^^^^^^^^^
  File "/home/runner/work/pywikibot/pywikibot/pywikibot/pagegenerators/_generators.py", line 1496, in query
    req = http.fetch(url, params=self.opts)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/pywikibot/pywikibot/pywikibot/comms/http.py", line 460, in fetch
    callback(response)
  File "/home/runner/work/pywikibot/pywikibot/pywikibot/comms/http.py", line 352, in error_handling_callback
    raise Server504Error(
pywikibot.exceptions.Server504Error: Server pagepile.toolforge.org timed out

----------------------------------------------------------------------

The web interface shows:

Webservice request timed out
The tool responsible for the URL you have requested, https://pagepile.toolforge.org/, is taking too long to respond.

If you have reached this page from somewhere else...
This URI is managed by the pagepile tool, maintained by Lucas Werkmeister, Magnus Manske.

You may wish to notify the tool's maintainers (above) about the error.

If you maintain this tool
The web service for this tool is running but cannot be reached. Please check the error logs of your web service.

Event Timeline

Xqt triaged this task as High priority.Aug 1 2025, 12:51 PM
Xqt moved this task from Backlog to Test failures on the Pywikibot-tests board.
Xqt moved this task from Backlog to Upstream issues on the Pywikibot board.

error.log has nothing new since Wednesday. I guess we can try a restart?

Mentioned in SAL (#wikimedia-cloud) [2025-08-01T13:06:45Z] <wmbot~lucaswerkmeister@tools-bastion-13> kubectl rollout restart deployment pagepile # T400995; just as in https://sal.toolforge.org/log/VweuxZYBffdvpiTrxEE7, webservice restart seemed confused about whether the webservice was running or not

That seems to have helped. Maybe I’ll add a health-check-path later.

error.log has nothing new since Wednesday. I guess we can try a restart?

I restarted the test jobs.

Xqt assigned this task to Lucas_Werkmeister_WMDE.

Mentioned in SAL (#wikimedia-cloud) [2025-08-01T16:43:42Z] <wmbot~lucaswerkmeister@tools-bastion-13> webservice stop && webservice --health-check-path=/howto.html php7.3 start # try to add health-check-path to avoid recurrence of T400995; appears to have broken the tool 😬

(I managed to fix the tool by bumping the type to php7.4; maybe it’ll be a bit more stable now.)