[GH-ISSUE #1107] Docker container is unhealth when changing path in SITE_ROOT #768

Closed
opened 2026-02-25 23:43:31 +03:00 by kerem · 0 comments
Owner

Originally created by @paradox00 on GitHub (Dec 18, 2024).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/1107

When setting the path in SITE_ROOT, the script fetchstatus.py access the wrong path:

Traceback (most recent call last):
  File "/opt/healthchecks/./fetchstatus.py", line 40, in <module>
    with urlopen(req) as response:
         ~~~~~~~^^^^^
  File "/usr/local/lib/python3.13/urllib/request.py", line 189, in urlopen
    return opener.open(url, data, timeout)
           ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/urllib/request.py", line 495, in open
    response = meth(req, response)
  File "/usr/local/lib/python3.13/urllib/request.py", line 604, in http_response
    response = self.parent.error(
        'http', request, response, code, msg, hdrs)
  File "/usr/local/lib/python3.13/urllib/request.py", line 533, in error
    return self._call_chain(*args)
           ~~~~~~~~~~~~~~~~^^^^^^^
  File "/usr/local/lib/python3.13/urllib/request.py", line 466, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.13/urllib/request.py", line 613, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
Originally created by @paradox00 on GitHub (Dec 18, 2024). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/1107 When setting the path in SITE_ROOT, the script `fetchstatus.py` access the wrong path: ``` Traceback (most recent call last): File "/opt/healthchecks/./fetchstatus.py", line 40, in <module> with urlopen(req) as response: ~~~~~~~^^^^^ File "/usr/local/lib/python3.13/urllib/request.py", line 189, in urlopen return opener.open(url, data, timeout) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/urllib/request.py", line 495, in open response = meth(req, response) File "/usr/local/lib/python3.13/urllib/request.py", line 604, in http_response response = self.parent.error( 'http', request, response, code, msg, hdrs) File "/usr/local/lib/python3.13/urllib/request.py", line 533, in error return self._call_chain(*args) ~~~~~~~~~~~~~~~~^^^^^^^ File "/usr/local/lib/python3.13/urllib/request.py", line 466, in _call_chain result = func(*args) File "/usr/local/lib/python3.13/urllib/request.py", line 613, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found ```
kerem closed this issue 2026-02-25 23:43:31 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#768
No description provided.