Page MenuHomePhabricator

Lexeme-forms on Toolforge returns error
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
404

What should have happened instead?:
200

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
Firefox

Event Timeline

No idea what’s wrong:

tools.lexeme-forms@tools-bastion-13:~$ kubectl get pods
NAME                            READY   STATUS    RESTARTS         AGE
lexeme-forms-7cdc74df65-94lmb   0/1     Running   51 (5m56s ago)   3h53m
tools.lexeme-forms@tools-bastion-13:~$ kubectl get events
LAST SEEN   TYPE      REASON      OBJECT                              MESSAGE
8m30s       Warning   Unhealthy   pod/lexeme-forms-7cdc74df65-94lmb   Startup probe failed: Get "http://192.168.61.18:8000/healthz": dial tcp 192.168.61.18:8000: connect: connection refused
3m15s       Warning   BackOff     pod/lexeme-forms-7cdc74df65-94lmb   Back-off restarting failed container webservice in pod lexeme-forms-7cdc74df65-94lmb_tool-lexeme-forms(bd408a54-cc17-43b3-9157-e2b7cf06fe02)
tools.lexeme-forms@tools-bastion-13:~$ kubectl logs lexeme-forms-7cdc74df65-94lmb
++ whoami
+ USER=tools.lexeme-forms
+ '[' -d /data/project/lexeme-forms/www/python/venv ']'
+ venv='--venv /data/project/lexeme-forms/www/python/venv'
+ '[' -f /data/project/lexeme-forms/www/python/uwsgi.ini ']'
+ ini='--ini /data/project/lexeme-forms/www/python/uwsgi.ini'
+ export PORT=8000
+ PORT=8000
+ export TOOL_WEB_PORT=8000
+ TOOL_WEB_PORT=8000
+ exec /usr/bin/uwsgi --plugin python3 --http-socket :8000 --chdir /data/project/lexeme-forms/www/python/src --logto /data/project/lexeme-forms/uwsgi.log --callable app --manage-script-name --workers 4 --wsgi-file app.py --die-on-term --strict --master --venv /data/project/lexeme-forms/www/python/venv --ini /data/project/lexeme-forms/www/python/uwsgi.ini
[uWSGI] getting INI configuration from /data/project/lexeme-forms/www/python/uwsgi.ini

The pod doesn’t get ready for some reason, but why?

The pod didn’t log anything else before it died, apparently:

tools.lexeme-forms@tools-bastion-13:~$ kubectl logs --follow lexeme-forms-7cdc74df65-94lmb
++ whoami
+ USER=tools.lexeme-forms
+ '[' -d /data/project/lexeme-forms/www/python/venv ']'
+ venv='--venv /data/project/lexeme-forms/www/python/venv'
+ '[' -f /data/project/lexeme-forms/www/python/uwsgi.ini ']'
+ ini='--ini /data/project/lexeme-forms/www/python/uwsgi.ini'
+ export PORT=8000
+ PORT=8000
+ export TOOL_WEB_PORT=8000
+ TOOL_WEB_PORT=8000
+ exec /usr/bin/uwsgi --plugin python3 --http-socket :8000 --chdir /data/project/lexeme-forms/www/python/src --logto /data/project/lexeme-forms/uwsgi.log --callable app --manage-script-name --workers 4 --wsgi-file app.py --die-on-term --strict --master --venv /data/project/lexeme-forms/www/python/venv --ini /data/project/lexeme-forms/www/python/uwsgi.ini
[uWSGI] getting INI configuration from /data/project/lexeme-forms/www/python/uwsgi.ini
tools.lexeme-forms@tools-bastion-13:~$

Mentioned in SAL (#wikimedia-cloud) [2024-11-04T17:32:18Z] <wmbot~lucaswerkmeister@tools-bastion-13> webservice stop; webservice start # T378976

A restart helped and it is also working from Ordia now. Thanks.