[Box Backup-dev] Re:BoxReport.pl (was ChrisMerge_1828)

Chris Wilson boxbackup-dev at fluffy.co.uk
Fri Sep 21 22:07:43 BST 2007


Hi Matt,

On Fri, 21 Sep 2007, Matt Brown wrote:

>> > > >  If only I get the LogAllFileAccess to output something :( - I 
>> > > >  did try without ExtendedLogging enabled, I then had very little 
>> > > >  output at all....
>> > >
>> > > You might not have enough logging enabled in /etc/syslog.conf. What 
>> > > does it contain?
>> > 
>> > local6.* /var/log/box
>> 
>> Where in /etc/syslog.conf does this appear? When I placed it at the end 
>> of syslog.conf I got no debugging messages. At the start, it worked 
>> fine.
>
> It was at the bottom of the syslog.conf file, I have now moved it to the 
> top and restarted - however no change :(

That is very strange. I just verified that it does work for me:

----
chris at gcc(bb-merge)$ grep "Synchronised file:" /var/log/box | wc -l
39

chris at gcc(bb-merge)$ grep "Synchronised file:" /var/log/box | head -1
Sep 21 21:54:43 gcc Box Backup (bbackupd)[19248]: Synchronised file: 
testfiles/TestDir1/f1.dat

chris at gcc(bb-merge)$ grep "Synchronised file:" /var/log/box | tail -1
Sep 21 21:54:43 gcc Box Backup (bbackupd)[19248]: Synchronised file: 
testfiles/TestDir1/renamed-dir/dfsfd/a.out.h

chris at gcc(bb-merge)$ grep box /etc/syslog.conf
# http://www.fluffy.co.uk/boxbackup/server.html
local6.*                                                -/var/log/box
----

Could you try stracing syslogd while bbackupd is running a backup (you can 
force this with bbackupctl force-sync) and check that it receives the 
messages, and find out where it writes them to? lsof on the syslogd 
process can tell you which file descriptor is which. For example, on my 
system:

----
chris at gcc(bbackupd)$ sudo strace -f -s 128 -e recv,writev -p 16641
Process 16641 attached - interrupt to quit
...
recv(0, "<182>Sep 21 22:02:30 Box Backup (bbackupd)[19479]: Synchronised 
file: testfiles/TestDir1/sub23/rand.h", 1022, 0) = 101
writev(2, [{"Sep 21 22:02:30", 15}, {" ", 1}, {"gcc", 3}, {" ", 1}, {"Box 
Backup (bbackupd)[19479]: Synchronised file: 
testfiles/TestDir1/sub23/rand.h", 80}, {"\n", 1}], 6) = 101

chris at gcc(bbackupd)$ sudo lsof -p 16641
...
syslogd 16641 root    0u  unix 0xd46ad500         48751158 /dev/log
syslogd 16641 root    2w   REG        3,6  100148  7799094 /var/log/box

chris at gcc(bb-merge)$ grep "Sep 21 22:02:30 .* Box Backup 
.bbackupd..19479.: Synchronised file: testfiles/TestDir1/sub23/rand.h" 
/var/log/box
Sep 21 22:02:30 gcc Box Backup (bbackupd)[19479]: Synchronised file: 
testfiles/TestDir1/sub23/rand.h
----

Cheers, Chris.
-- 
_____ __     _
\  __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |



More information about the Boxbackup-dev mailing list