Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197024
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Michael Torrie <torriem@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: FileNotFoundError thrown due to file name in file, rather than file itself |
| Date | Thu, 14 Nov 2024 08:44:56 -0700 |
| Lines | 30 |
| Message-ID | <mailman.114.1731606301.4695.python-list@python.org> (permalink) |
| References | <87v7wt986z.fsf@zedat.fu-berlin.de> <CAJQBtg=UOiOmmHa25EUZtrZO19F1O0_VxCO6gWjZ5ebAMHnXCA@mail.gmail.com> <mailman.92.1731341107.4695.python-list@python.org> <875xosyfr0.fsf@zedat.fu-berlin.de> <CAJQBtg=nr+KC5iz_WY7nqkGK+YBEWAPq40ksaWJCAOT_+=pHxg@mail.gmail.com> <235f9d53-f784-8998-f201-1c01dbbf14ba@gmail.com> <CAJQBtgmQ0MLh2xYpUTwsSWhO1ra=QVuJRddn=17Pd7gKA=aM+g@mail.gmail.com> <541261c9-5d96-b52f-536a-a60bec679d63@gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de p9oyBJD8TvLenbNsoypxiQhD3dFmJk7FOtW6O+FJpnYg== |
| Cancel-Lock | sha1:CSh3H9UIHsaXakvk72Mh29xJPUU= sha256:OBcel9TN0xbwDTmEGEfUUYlu4R9XtqbczcYd6NAqa/c= |
| Return-Path | <torriem@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| Authentication-Results | mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=jewa5hd3; dkim-adsp=pass; dkim-atps=neutral |
| X-Spam-Status | UNSURE 0.256 |
| X-Spam-Level | ** |
| X-Spam-Evidence | '*H*': 0.50; '*S*': 0.01; 'argument': 0.04; 'subject:name': 0.07; 'fact,': 0.09; 'mechanism': 0.09; 'log': 0.12; 'another.': 0.16; 'anything,': 0.16; 'denial': 0.16; 'informing': 0.16; 'renaming': 0.16; 'simple:': 0.16; 'wrote:': 0.16; 'message-id:@gmail.com': 0.18; 'gnu': 0.19; 'to:addr:python- list': 0.20; 'subject:file': 0.22; 'actual': 0.25; 'header:User- Agent:1': 0.30; 'am,': 0.31; 'simple,': 0.32; 'but': 0.32; 'there': 0.33; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34; 'fill': 0.34; 'requires': 0.34; 'from:addr:gmail.com': 0.34; 'close': 0.35; 'files': 0.36; 'cases': 0.36; 'processes': 0.36; 'source': 0.36; 'using': 0.37; 'could': 0.37; 'author': 0.37; 'received:192.168': 0.37; 'file': 0.38; 'both': 0.38; 'quite': 0.39; 'files.': 0.40; 'above': 0.62; 'gives': 0.62; 'miss': 0.62; 'once': 0.63; 'service': 0.64; 'your': 0.64; 'his': 0.65; 'let': 0.65; 'years': 0.65; 'technical': 0.67; 'respond': 0.68; 'right': 0.68; 'during': 0.69; 'latter': 0.69; 'you.': 0.70; 'url:info': 0.71; 'little': 0.73; 'article': 0.73; 'causing': 0.75; 'unit': 0.81; 'left': 0.83; 'biggest': 0.84; 'legitimate': 0.84; 'rotating': 0.84; 'subject: \n ': 0.84; 'journal': 0.91; 'subject:than': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731599098; x=1732203898; darn=python.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=54S6Rla63UgP/qGWcNeYvtBu4TKJorAfIdgm+4n82iQ=; b=jewa5hd37mEjxbGKIwa5An9T8HxRZcDSJye3ndhp0FPFVskDetwQPTMPSYcuWq5oeO nEDAdtWfPbDTyMfbwpRh9+f2OiKjccpgM9fUEEW5zjZ111YGQS3X4VS5QfAvkLSXUsYK MV5kRFm1MAH5rh9uOlGBioozt9gC8+8j6RYTVKVDwaHnAC8uYTdi745Ta+CiIciqhDrn Kp2t4d6dW3vP6ilQ+LgIjQN1AWtE1uLwCB+qJQCZmOqkKNSiMcu8mN5zgPSxxErG5OPc uC3+xSn7kV1G6V0FukC+ZPw56loFZsz5saWvE7Xn2eFEtTjKRSXgaOPZAiZUiciRltCm jeQQ== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731599098; x=1732203898; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=54S6Rla63UgP/qGWcNeYvtBu4TKJorAfIdgm+4n82iQ=; b=bK1jsw4Nvq02j6t6HJuWra7zMJITBMj66UejGJLSrcVlLAYzyjozrQycnt1uiM0OUo LF258cjNXMIIM3klPS3jcFzte+l2y0NSVHqOyvSMOtqyDeOzjzXSzSKHKnVJMNgVjCau ZIih8PyR5lcamjSZAKTEEPi8QDIN5sOvpZ37QhutZaxSsOifssNV54oZnTpPHKq3kaK1 5tzb0iHomqvG4+il3kIP1HDYE3g1teI2od2kCyzc4WCc8QBX88LPa2MIg4FfsouUUcCo Mhk2TFSLKg0Wr9Fu6wvZW0jBXyKaBMlNslDWtRllQTAwzpRgnAA6YvNYwCuOJjA4MYub 1WdA== |
| X-Gm-Message-State | AOJu0YxmNzP6xoUwg3F2xpIJA8n7ewx9Phoxh0FFYxoRWOg1lYwnPHNF c3Tl5DSdhbdbV5PKM0/PlIVzkRpuxRSk4XuQvo/JPq0zYtGYUj7XbesR3D2S |
| X-Google-Smtp-Source | AGHT+IG+vw6R43S2Vy1NHLUtBYeSWDl6l87Df4Witg38huXevzNbwEtLj1nF7zDaFtzSvTRjCzqlGg== |
| X-Received | by 2002:a17:902:ecd0:b0:20f:c292:665d with SMTP id d9443c01a7336-21183328e19mr143845745ad.0.1731599098474; Thu, 14 Nov 2024 07:44:58 -0800 (PST) |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 |
| Content-Language | en-US |
| In-Reply-To | <CAJQBtgmQ0MLh2xYpUTwsSWhO1ra=QVuJRddn=17Pd7gKA=aM+g@mail.gmail.com> |
| X-Mailman-Approved-At | Thu, 14 Nov 2024 12:45:00 -0500 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.39 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <https://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <541261c9-5d96-b52f-536a-a60bec679d63@gmail.com> |
| X-Mailman-Original-References | <87v7wt986z.fsf@zedat.fu-berlin.de> <CAJQBtg=UOiOmmHa25EUZtrZO19F1O0_VxCO6gWjZ5ebAMHnXCA@mail.gmail.com> <mailman.92.1731341107.4695.python-list@python.org> <875xosyfr0.fsf@zedat.fu-berlin.de> <CAJQBtg=nr+KC5iz_WY7nqkGK+YBEWAPq40ksaWJCAOT_+=pHxg@mail.gmail.com> <235f9d53-f784-8998-f201-1c01dbbf14ba@gmail.com> <CAJQBtgmQ0MLh2xYpUTwsSWhO1ra=QVuJRddn=17Pd7gKA=aM+g@mail.gmail.com> |
| Xref | csiph.com comp.lang.python:197024 |
Show key headers only | View raw
On 11/14/24 12:03 AM, Left Right wrote: >> On any Unix system this is untrue. Rotating a log file is quite simple: > > I realized I posted this without cc'ing the list: > http://jdebp.info/FGA/do-not-use-logrotate.html . > > The link above gives a more detailed description of why log rotation > on the Unix system is not only not simple, but is, in fact, > unreliable. Nothing in that article contradicts what I said about renaming log files. His argument is that renaming log files messes with tail -F, and therefore broken and unreliable. Which a pretty strange argument. tail -F might not see some data during the rotation, but the log files themselves don't miss anything, which was my contention. In all my years of sysadmin-ing I have never once worried about problems GNU tail might have with a file that gets rotated out from under you. Not sure why the author is so fixated on it. There are actual legitimate issues at play, such as a mechanism for informing the process to close the file (rotate usually requires processes to respond to SIGHUP). And of course the disk can fill up causing a denial of service of one kind or another. The latter is the biggest source of problems. Of course you could just log using the standard libc syslog facility. Or better yet, start your process from a systemd unit file and let the journal automatically log stderr. In both cases that would satisfy the technical objections of the author of that little treatise.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
FileNotFoundError thrown due to file name in file, rather than file itself "Loris Bennett" <loris.bennett@fu-berlin.de> - 2024-11-11 15:05 +0100
Re: FileNotFoundError thrown due to file name in file, rather than file itself Left Right <olegsivokon@gmail.com> - 2024-11-11 17:04 +0100
Re: FileNotFoundError thrown due to file name in file, rather than file itself "Loris Bennett" <loris.bennett@fu-berlin.de> - 2024-11-12 10:15 +0100
Re: FileNotFoundError thrown due to file name in file, rather than file itself Left Right <olegsivokon@gmail.com> - 2024-11-12 20:10 +0100
Re: FileNotFoundError thrown due to file name in file, rather than file itself Greg Ewing <greg.ewing@canterbury.ac.nz> - 2024-11-13 14:04 +1300
Re: FileNotFoundError thrown due to (Posting On Python-List Prohibited) Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-13 02:13 +0000
Re: FileNotFoundError thrown due to file name in file, rather than file itself Mats Wichmann <mats@wichmann.us> - 2024-11-12 13:28 -0700
Re: FileNotFoundError thrown due to file name in file, rather than file itself Chris Angelico <rosuav@gmail.com> - 2024-11-13 07:34 +1100
Re: FileNotFoundError thrown due to file name in file, rather than file itself "Loris Bennett" <loris.bennett@fu-berlin.de> - 2024-11-13 08:11 +0100
Re: FileNotFoundError thrown due to file name in file, rather than file itself Barry <barry@barrys-emacs.org> - 2024-11-14 16:01 +0000
Re: FileNotFoundError thrown due to file name in file, rather than file itself Roel Schroeven <roel@roelschroeven.net> - 2024-11-13 10:12 +0100
Re: FileNotFoundError thrown due to file name in file, rather than file itself Michael Torrie <torriem@gmail.com> - 2024-11-13 21:07 -0700
Re: FileNotFoundError thrown due to file name in file, rather than file itself Left Right <olegsivokon@gmail.com> - 2024-11-14 08:03 +0100
Re: FileNotFoundError thrown due to file name in file, rather than file itself Chris Angelico <rosuav@gmail.com> - 2024-11-14 19:13 +1100
Re: FileNotFoundError thrown due to file name in file, rather than file itself D'Arcy Cain <darcy@VybeNetworks.com> - 2024-11-13 06:37 -0700
Re: FileNotFoundError thrown due to file name in file, rather than file itself Ethan Furman <ethan@stoneleaf.us> - 2024-11-14 09:32 -0800
Re: FileNotFoundError thrown due to file name in file, rather than file itself Michael Torrie <torriem@gmail.com> - 2024-11-14 08:44 -0700
Re: FileNotFoundError thrown due to file name in file, rather than file itself Jon Ribbens <jon+usenet@unequivocal.eu> - 2024-11-14 18:12 +0000
Re: FileNotFoundError thrown due to file name in file, rather than file itself dieter.maurer@online.de - 2024-11-11 18:24 +0100
Re: FileNotFoundError thrown due to (Posting On Python-List Prohibited) Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-11 21:05 +0000
Re: FileNotFoundError thrown due to file name in file, rather than file itself Chris Angelico <rosuav@gmail.com> - 2024-11-12 12:17 +1100
Re: FileNotFoundError thrown due to file name in file, rather than file itself "Loris Bennett" <loris.bennett@fu-berlin.de> - 2024-11-12 10:00 +0100
Re: FileNotFoundError thrown due to file name in file, rather than file itself dieter.maurer@online.de - 2024-11-13 19:36 +0100
Re: FileNotFoundError thrown due to file name in file, rather than file itself Kushal Kumaran <kushal@locationd.net> - 2024-11-13 14:40 -0800
Re: FileNotFoundError thrown due to file name in file, rather than file itself "Loris Bennett" <loris.bennett@fu-berlin.de> - 2024-11-12 10:03 +0100
csiph-web