SShortSingh.
Back to feed

How to debug logrotate when it silently fails to rotate logs

0
·1 views

logrotate misconfigurations do not produce errors or failed exit codes, meaning disk-full crashes can be the first sign something went wrong. The copytruncate directive, commonly used when processes cannot reopen log files via SIGHUP, creates a race condition on high-throughput servers that can drop or duplicate log entries. A safer alternative is using a postrotate hook to signal the process, such as running nginx -s reload, which allows a clean log file handoff with no data loss. Running logrotate with the -d debug flag before deploying any config change lets administrators preview what the tool would do without actually rotating files. Additional common pitfalls include missing compress directives on high-volume logs and processes holding open file descriptors on already-rotated files, the latter of which can be identified using lsof +L1.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

AI Beats Mathematicians Through Memory, Not Superior Reasoning

A recent analysis argues that AI systems are not outperforming mathematicians through genuine reasoning or creative thinking. Instead, the advantage stems from AI's ability to store and retrieve vast amounts of mathematical knowledge far beyond human capacity. This distinction challenges popular narratives that portray AI as intellectually surpassing human experts in mathematics. The argument suggests that what looks like mathematical insight from AI is largely pattern recognition and recall from training data. Understanding this difference has implications for how we assess AI capabilities and its true role in advancing mathematical research.

0
ProgrammingDEV Community ·

Astral.ai.studio Launches with Focus on Transparent, Trustworthy AI Systems

Astral.ai.studio, an AI development studio, announced its launch with a mission to build what it calls Artificial and Real-World Intelligence, emphasizing transparency and human-centered design. The studio's flagship initiative, Understandable AI (UAI), aims to make AI systems more transparent, reliable, and auditable for organizations adopting the technology. A core product called UAi Conform is designed to help organizations align AI deployment with human values while reducing integration complexity. The studio is also developing Grand 7, a framework built on seven principles — transparency, privacy, understandability, reliability, security, accountability, and integrity — intended to embed trust into AI architecture from the ground up. An additional component, Neural Core, focuses on adaptive decision-making through deep learning to help intelligent systems respond to continuously changing real-world conditions.

0
ProgrammingDEV Community ·

Developer Builds Comfort Food Landing Page Inspired by Traditional Indian Home Meals

A developer submitted a frontend project called Annapurna's Kitchen for the DEV Community Frontend Challenge - Comfort Food Edition. The imaginary pan-India food service concept was built as a functional landing page centered on traditional home-cooked meals rather than typical restaurant fare. Inspired by personal memories of family meals eaten together in the traditional baitak style, the project highlights regional dishes like varan bati, bharit, and bhakri-thecha. The platform is designed to help users find meals based on mood, season, festival, and dietary preference — mimicking how food choices are actually made at home. The submission aimed to demonstrate strong frontend fundamentals while capturing the cultural and emotional depth of Indian comfort food.

How to debug logrotate when it silently fails to rotate logs · ShortSingh