Mailinglist Archive: opensuse (4656 mails)

< Previous Next >
Re: [opensuse] cron job email attachment.bin
  • From: Dave Howorth <dhoworth@xxxxxxxxxxxxxxxxx>
  • Date: Mon, 29 Jan 2007 15:57:42 +0000
  • Message-id: <45BE1976.6050804@xxxxxxxxxxxxxxxxx>
Sandy Drobic wrote:
> Dave Howorth wrote:
>> Sandy Drobic wrote:
>
>>>>> Content-Type: application/octet-stream; charset=us-ascii
>>> If there are characters in the mail not covered by ascii7 mail is
>>> automatically send as "application/octet-stream". This might happen if
>>> you have file names with strange characters.
>>
>> Good idea. But there's nothing greater than 122 ('z') in attachment.bin.
>
> Well, something is in your backup result that causes nail not to see the
> text as ascii7.

I've attached a complete message. I can only see 7-bit characters and
the only control characters I can see are TAB and NL. I really hope you
can see something else, because I'm going mad!

> >> Instead of directly mailing the output you could save it into a file
> and
>>> use mime::lite to send it.
>>
>> Sorry, it's not me that's mailing this. It's cron.
>
> Then change your script to use mime::lite to send the report.

I don't want to seem ungrateful but I'd rather not do this. It's just
papering over the cracks. There's no good reason why cron shouldn't
carry on mailing these messages as text exactly as it has done for ages.
I want to find the cause of the current problem, not just mask its effect.

Cheers, Dave
>From - Fri Jan 26 08:10:22 2007
X-Account-Key: account2
X-UIDL: @l\"!4iI"!JaW"!'iT"!
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Return-path: <root@xxxxxxxxxxxxxxxxx>
Envelope-to: dhoworth@xxxxxxxxxxxxxxxxx
Delivery-date: Fri, 26 Jan 2007 08:08:26 +0000
Received: from server1.lmb.internal ([10.1.0.0])
by alf1.lmb.internal with esmtp (Exim 4.32)
id 1HAM8I-001Amd-G2
for dhoworth@xxxxxxxxxxxxxxxxx; Fri, 26 Jan 2007 08:08:26 +0000
Received: from suse1.lmb.internal ([10.11.0.0])
by server1.lmb.internal with esmtp (Exim 4.10)
id 1HAM8I-00030V-00
for djh02@xxxxxxxxxxxxxxxxx; Fri, 26 Jan 2007 08:08:26 +0000
Received: by suse1.lmb.internal (Postfix)
id 05CB628317; Fri, 26 Jan 2007 08:08:26 +0000 (GMT)
Delivered-To: root@xxxxxxxxxxxxxxxxxx
Received: by suse1.lmb.internal (Postfix, from userid 0)
id 931506A92A; Fri, 26 Jan 2007 08:08:25 +0000 (GMT)
Date: Fri, 26 Jan 2007 08:08:25 +0000
To: root@xxxxxxxxxxxxxxxxxx
Subject: cronjob@suse1 - daily - OK
Message-ID: <45B9B6F9.mail4YN11WBJW@xxxxxxxxxxxxxxxxxx>
User-Agent: nail 11.4 8/29/04
MIME-Version: 1.0
Content-Type: application/octet-stream; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: root@xxxxxxxxxxxxxxxxx (root)
X-UIDL: @l\"!4iI"!JaW"!'iT"!

running daily cronjob scripts

SCRIPT: clean_catman, OK.
SCRIPT: do_mandb, OK.
SCRIPT: logrotate, OK.
SCRIPT: suse.de-backup-rc.config, OK.
SCRIPT: suse.de-backup-rpmdb, OK.
SCRIPT: suse.de-check-battery, OK.
SCRIPT: suse.de-clean-tmp, OK.
SCRIPT: suse.de-cron-local, OK.
SCRIPT: output (stdout && stderr) follows

This is /root/bin/cron.daily.local on suse1.
Fri Jan 26 04:15:44 GMT 2007
Mounting backup filesystems
PDB: This is /root/bin/cron.daily.local.pdb.sh on suse1.
PDB:Fri Jan 26 04:15:44 GMT 2007
PDB: Download the PDB archive
04:15:45 dirvish --vault pdb-mirror --image-time "22:00"

Running dirvish-expire
Expiring images as of 2007-01-26 04:15:53

VAULT:BRANCH IMAGE CREATED EXPIRED
suse1-data-interpro:default 2007-01-22 2007-01-23 11:00 +3 days == 2007-01-25 22:00
suse1-data-other:default 2007-01-18 2007-01-19 09:07 +1 week == 2007-01-25 22:00
04:37:50 done

PDB: Running dirvish-delete-duplicates
examined images ... 2006-11-28 2006-12-05 2006-12-12 2006-12-17 2007-01-02 2007-01-10 2007-01-14 2007-01-23 2007-01-24 2007-01-25
results are 78 x 1 + 1 1 1 1 1 1 1 1 0 0
removing image 2007-01-24

PDB: Running link_latest_pdb.pl
PDB: finished Fri Jan 26 04:47:28 GMT 2007
suse1-data-trembl:default 2007-01-22 2007-01-23 11:00 +3 days == 2007-01-25 22:00
suse1-data-uniprot:default 2007-01-22 2007-01-23 11:00 +3 days == 2007-01-25 22:00
suse1-home:default 2007-01-18 2007-01-19 07:31 +1 week == 2007-01-25 22:00
suse1-root:default 2007-01-18 2007-01-19 07:44 +1 week == 2007-01-25 22:00
suse2-data-a:default 2007-01-18 2007-01-19 07:47 +1 week == 2007-01-25 22:00
suse2-data-b:default 2007-01-18 2007-01-19 07:47 +1 week == 2007-01-25 22:00
suse2-root:default 2007-01-18 2007-01-19 07:46 +1 week == 2007-01-25 22:00
suse3-data-a:default 2007-01-18 2007-01-19 08:12 +1 week == 2007-01-25 22:00
suse3-data-b:default 2007-01-18 2007-01-19 08:12 +1 week == 2007-01-25 22:00
suse3-root:default 2007-01-18 2007-01-19 08:04 +1 week == 2007-01-25 22:00

Fri Jan 26 06:08:25 GMT 2007

Running dirvish-runall
06:08:26 dirvish --vault suse1-home --image-time "22:00"
06:31:40 dirvish --vault suse1-root --image-time "22:00"
06:35:02 dirvish --vault suse2-root --image-time "22:00"
06:43:24 dirvish --vault suse2-data-a --image-time "22:00"
06:43:25 dirvish --vault suse2-data-b --image-time "22:00"
06:43:28 dirvish --vault suse3-root --image-time "22:00"
07:15:59 dirvish --vault suse3-data-a --image-time "22:00"
07:16:00 dirvish --vault suse3-data-b --image-time "22:00"
07:16:01 dirvish --vault pcx36-root --image-time "22:00"
dirvish pcx36-root:default error (10) -- error in socket IO
dirvish error: branch /backup/pcx36/pcx36-root:default image 2007-01-25 failed
07:16:16 dirvish --vault pcx36-var --image-time "22:00"
ssh: connect to host pcx36.mrc-lmb.cam.ac.uk port 22: No route to host

pcx36-var:default pre-client failed (256)
07:16:19 dirvish --vault pcx36-usr --image-time "22:00"
dirvish pcx36-usr:default error (10) -- error in socket IO
dirvish error: branch /backup/pcx36/pcx36-usr:default image 2007-01-25 failed
07:16:35 dirvish --vault cpepc210-3-root --image-time "22:00"
07:16:56 dirvish --vault cpepc210-3-opt --image-time "22:00"
07:18:30 dirvish --vault cpepc210-3-srv --image-time "22:00"
07:19:59 dirvish --vault cpepc210-3-usr --image-time "22:00"
07:24:25 dirvish --vault cpepc210-3-var --image-time "22:00"
07:24:32 dirvish --vault suse1-data-trembl --image-time "22:00"
07:24:42 dirvish --vault suse1-data-interpro --image-time "22:00"
07:24:43 dirvish --vault suse1-data-uniprot --image-time "22:00"
07:24:52 dirvish --vault suse1-data-other --image-time "22:00"
08:08:20 done


Filesystem Size Used Avail Use% Mounted on
/dev/hda1 26G 14G 12G 53% /
tmpfs 1004M 44K 1004M 1% /dev/shm
/dev/hda2 11G 7.7G 2.4G 77% /suse9.2
/dev/mapper/storage-home
200G 138G 63G 69% /home
/dev/mapper/storage-data
600G 576G 25G 96% /data
/dev/mapper/backup-suse1
500G 476G 25G 96% /backup/suse1
/dev/mapper/backup-suse2
100G 21G 80G 21% /backup/suse2
/dev/mapper/backup-suse3
150G 105G 46G 70% /backup/suse3
/dev/mapper/backup-pcx36
150G 57G 94G 38% /backup/pcx36
/dev/mapper/backup-cpepc210--3
100G 13G 88G 13% /backup/cpepc210-3
Unmounting backup filesystems
Fri Jan 26 08:08:24 GMT 2007
SCRIPT: suse.de-cron-local
------- END OF OUTPUT




< Previous Next >
Follow Ups