Page MenuHomePhabricator

Python buildpacks show a permission error when starting up
Closed, ResolvedPublic

Description

When starting a python buildpack image you see the log:

tools.sample-python-buildpack-app@tools-sgebastion-10:~/tools-webservice$ kubectl logs -l toolforge=tool
sed: couldn't open temporary file .heroku/python/lib/python3.11/site-packages/sedfp6kjM: Permission denied
[2023-05-04 14:30:44 +0000] [1] [INFO] Starting gunicorn 20.1.0
...

Investigate if that log is relevant or it's something that will have an impact on the application.

Event Timeline

dcaro changed the task status from Open to In Progress.May 22 2023, 7:44 AM
dcaro claimed this task.
dcaro moved this task from Backlog to Doing on the Toolforge Build Service (Beta release) board.

deployed!

tools.wm-lol@tools-sgebastion-10:~$ toolforge webservice buildservice logs
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] [uWSGI] getting INI configuration from uwsgi.ini
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] *** Starting uWSGI 2.0.21 (64bit) on [Wed May 24 13:15:42 2023] ***
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] compiled with version: 11.3.0 on 24 May 2023 12:28:06
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] os: Linux-4.19.0-24-amd64 #1 SMP Debian 4.19.282-1 (2023-04-29)
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] nodename: wm-lol-7b8ccd9c5f-4f759
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] machine: x86_64
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] clock source: unix
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] pcre jit disabled
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] detected number of CPU cores: 4
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] current working directory: /workspace
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] detected binary path: /workspace/.heroku/python/bin/uwsgi
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] your memory page size is 4096 bytes
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] detected max file descriptor number: 1048576
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] lock engine: pthread robust mutexes
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] thunder lock: disabled (you can enable it with --thunder-lock)
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] uwsgi socket 0 bound to TCP address :8000 fd 3
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] Python version: 3.11.2 (main, Feb  8 2023, 12:54:20) [GCC 11.3.0]
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] *** Python threads support is disabled. You can enable it with --enable-threads ***
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] Python main interpreter initialized at 0x7fe468b415b8
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] your server socket listen backlog is limited to 100 connections
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] your mercy for graceful operations on workers is 60 seconds
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] mapped 364600 bytes (356 KB) for 4 cores
2023-05-24T13:15:42+00:00 [wm-lol-7b8ccd9c5f-4f759] *** Operational MODE: preforking ***
2023-05-24T13:15:43+00:00 [wm-lol-7b8ccd9c5f-4f759] WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x7fe468b415b8 pid: 1 (default app)
2023-05-24T13:15:43+00:00 [wm-lol-7b8ccd9c5f-4f759] *** uWSGI is running in multiple interpreter mode ***
2023-05-24T13:15:43+00:00 [wm-lol-7b8ccd9c5f-4f759] spawned uWSGI master process (pid: 1)
2023-05-24T13:15:43+00:00 [wm-lol-7b8ccd9c5f-4f759] spawned uWSGI worker 1 (pid: 15, cores: 1)
2023-05-24T13:15:43+00:00 [wm-lol-7b8ccd9c5f-4f759] spawned uWSGI worker 2 (pid: 16, cores: 1)
2023-05-24T13:15:43+00:00 [wm-lol-7b8ccd9c5f-4f759] spawned uWSGI worker 3 (pid: 17, cores: 1)
2023-05-24T13:15:43+00:00 [wm-lol-7b8ccd9c5f-4f759] spawned uWSGI worker 4 (pid: 18, cores: 1)