Tinyproxy isn't writing logs.
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- c, linux
- Domaine
- backend, observability
Piste de recherche
Start by tracing how Tinyproxy opens /var/log/tinyproxy/tinyproxy.log after dropping to the tinyproxy user and why it gets Bad file descriptor; the issue does not name source files or tests. Check the logging and privilege-drop paths, then reproduce the reported Ubuntu 22.04 startup and confirm the configured log file opens successfully without falling back to syslog. The issue has had no comment for 529 days, so expect limited guidance.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Tinyproxy version
My Tinyproxy version is 1.11.0
Issue
Hello, today I installed Tinyproxy via sudo apt install tinyproxy -y on my Ubuntu 22.04 server.
And I get this errors when I restart Tinyproxy:
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106027]: Shutting down.
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106027]: trying to bring down 0 threads...
Feb 02 13:18:48 weaselcloud-1252 systemd[1]: Stopping Tinyproxy lightweight HTTP Proxy...
Feb 02 13:18:48 weaselcloud-1252 systemd[1]: tinyproxy.service: Deactivated successfully.
Feb 02 13:18:48 weaselcloud-1252 systemd[1]: Stopped Tinyproxy lightweight HTTP Proxy.
Feb 02 13:18:48 weaselcloud-1252 systemd[1]: Starting Tinyproxy lightweight HTTP Proxy...
Feb 02 13:18:48 weaselcloud-1252 systemd[1]: tinyproxy.service: Can't open PID file /run/tinyproxy/tinyproxy.pid (yet?) after start: Operation not permitted
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106200]: Initializing tinyproxy ...
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106200]: Reloading config file
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106200]: Setting "Via" header to 'tinyproxy'
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106200]: Adding Port [443] to the list allowed by CONNECT
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106200]: Adding Port [563] to the list allowed by CONNECT
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106200]: Reloading config file finished
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106200]: listen_sock called with addr = '(NULL)'
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106200]: trying to listen on host[0.0.0.0], family[2], socktype[1], proto[6]
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106200]: listening on fd [0]
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106200]: trying to listen on host[::], family[10], socktype[1], proto[6]
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106200]: listening on fd [1]
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106200]: Now running as group "tinyproxy".
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106200]: Now running as user "tinyproxy".
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106200]: ERROR: Could not create log file /var/log/tinyproxy/tinyproxy.log: Bad file descriptor.
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106200]: Falling back to syslog logging.
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106200]: Setting the various signals.
Feb 02 13:18:48 weaselcloud-1252 tinyproxy[106200]: Starting main loop. Accepting connections.
Feb 02 13:18:48 weaselcloud-1252 systemd[1]: Started Tinyproxy lightweight HTTP Proxy.
P.S. Sorry for my English.
- Langage dominant
- C
- Étoiles
- 6.1k
- Forks
- 768
- Merge moyen
- 15 j 3 h
- PR mergées (30 j)
- 1
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de tinyproxy/tinyproxy
-
HTTP Request Smuggling: non-final chunked Transfer-Encoding not rejected (CWE-444)Peut-être pris @code1a2024 l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
-
Feature request: opt-in destination-CIDR denial for direct origin connectionsPeut-être pris @omrzk l’a pris il y a 28 jours. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 49/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
Toutes les issues de tinyproxy/tinyproxy
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
jaredgei/wow-forever-android#97 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
on_ctrl_redirect(): iterator never advances — infinite loop stalls the event loop at 100% CPUOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
openziti/ziti-sdk-c#1254 ·
Les mainteneurs répondent en général sous 1 jour
-
Requisite=graphical-session.target lets a D-Bus activation at logout cancel the target's stopOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
flatpak/xdg-desktop-portal#2215 ·
Les mainteneurs répondent en général sous 2 jours
-
http_fetch tests: the two no-child rows fail, not skip, where a task's children file does not existPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertearea:http kind:gate-defect
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
InauguralSystems/EigenScript#2397 ·
Les mainteneurs répondent en général sous 1 jour
-
Add SECURITY.mdOuverteenhancement
Difficulté 1/5 1-3 heures Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour