Opened 7 years ago

Last modified 7 months ago

#36 assigned defect

max log file does not work (i.e logfile grows forever)

Reported by: guest Owned by: diver
Priority: Feedback Pending Milestone: Samba Server for eCS (OS/2) 1.3.x
Component: Samba Server Version: Server 3.3.x
Keywords: log file size Cc: herwig.bauernfeind@…

Description

Entering a size limit for the logfiles in smb.conf via max log size is in vain, because Samba tries to rename the file and that fails.

Probably a similar resolution like Ticket #30 and #31 is required.

Change History (13)

comment:1 Changed 7 years ago by guest

  • Priority changed from minor to major

I think the bug is located in \source\lib\debug.c, function check_log_size(), line 708 to 715.

comment:2 Changed 7 years ago by guest

Okay, to reproduce the problem, add

max log size = 1000

to the [global] section of smb.conf. Now the logfile should not grow bigger than 1000 kb i.e 1 MB.

Setting the loglevel to 5 (or higher) and running a dir /s /-p from a client against a share full of files should produce a "bigger" logfile within some 30 seconds or so.

comment:3 Changed 7 years ago by herwigb

  • Priority changed from major to blocker

This is becoming a a major annoyance...

comment:4 Changed 6 years ago by ydario

  • Milestone set to Samba Server for OS/2 1.0.1

comment:5 Changed 6 years ago by herwigb

  • Version set to 3.0.26a

comment:6 Changed 5 years ago by diver

  • Milestone changed from Samba Server for eCS (OS/2) 1.0.1 to Samba Server for eCS (OS/2) 1.1.0 alpha

permanant restriction for 1.0.1 (samba code 3.0). we try to find a solution for 1.1.0 (samba code 3.3)

comment:7 Changed 5 years ago by diver

  • Priority changed from blocker to major

comment:8 Changed 3 years ago by herwigb

  • Priority changed from major to critical
  • Version changed from 3.0.26a to 3.3.x

comment:9 Changed 3 years ago by herwigb

  • Owner changed from psmedley to diver
  • Status changed from new to assigned

comment:10 Changed 3 years ago by herwigb

It looks like this is becoming more an more important again - Samba 3.3.x prodcues more logfiles. I noticed that with loglevel 3 Samba 3.3.15 produced 3GB+ logfiles in 3 days. Especially log.smbd..UNKNOWN is more than 2GB in size and cannot be deleted while smbd is running.

comment:11 Changed 15 months ago by diver

  • Milestone changed from Samba Server for eCS (OS/2) 1.1.x to Samba Server for eCS (OS/2) 1.2.x

comment:12 Changed 7 months ago by diver

I lost track of that? Did we fix it? Or try to fix?

comment:13 Changed 7 months ago by diver

  • Priority changed from critical to Feedback Pending
Note: See TracTickets for help on using tickets.