Tinyproxy isn't writing logs.

Ouverte
#478 11 commentaires 1 réaction 0 personnes assignées Voir sur GitHub

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

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

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de tinyproxy/tinyproxy

Toutes les issues de tinyproxy/tinyproxy

Issues similaires

Plus d'issues C

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.