View Issue Details

IDProjectCategoryView StatusLast Update
0000094bareos-coreinstaller / packagespublic2013-03-04 10:17
Reporteruser12Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformLinuxOSUbuntuOS Version12.10
Product Version12.4.1 
Summary0000094: btraceback scripts uses fixed localhost instead of hostname -- bsmtp: bsmtp.c:509-0 Failed to connect to maihost localhost
DescriptionAfter crash, btrace attempts to send an email to a recipient host which might not exist

bsmtp: bsmtp.c:509-0 Failed to connect to mailhost localhost
Steps To Reproduceroot@cardtech01:/etc/bareos# btape LTO
Tape block granularity is 1024 bytes.
btape: butil.c:287-0 Using device: "LTO" for writing.
btape: btape.c:496-0 open device "LTO" (/dev/nst0): OK
*
*quit
BAREOS interrupted by signal 11: Segmentation violation
Kaboom! btape, btape got signal 11 - Segmentation violation. Attempting traceback.
Kaboom! exepath=/etc/bareos
Calling: /etc/bareos/btraceback /etc/bareos/btape 5137 /tmp
bsmtp: bsmtp.c:509-0 Failed to connect to mailhost localhost

Workaround:

vim /usr/sbin/btraceback

[...]
   cat ${WD}/bareos.$2.traceback \
    | /usr/sbin/bsmtp -h localhost -f root@localhost -s "Bareos GDB traceback of ${PNAME}" root@localhost
   ;;
esac
:%s/localhost/cardtech01/g
TagsNo tags attached.

Relationships

related to 0000097 closedbruno-at-bareos default user and groups for fd, sd and director are not defined 

Activities

mvwieringen

mvwieringen

2013-02-26 09:43

developer   ~0000170

Maybe someone can explain me when the host localhost doesn't exist.
Because then I think your network config is bogus.

You could change the setting by running configure with the --with-smtp-host=HOST
option but when you set that to XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX you also need
to add rules to bareos-config to change these settings etc.

Normally you shouldn't even get errors and the mail is just a extra signal
as we make postmortem dumps the email itself is not that important anyway any
more.

You can only do so much with setting values.

Only thing you could think about it that all shell scripts source a set of
variables which set things like the SMTP_HOST etc so the user only has to
change all settings in one file.

user12

2013-02-26 10:41

  ~0000176

Sorry, it was my bogus /etc/hosts file

user12

2013-02-26 10:42

  ~0000177

changed my /etc/hosts

Issue History

Date Modified Username Field Change
2013-02-25 17:42 user12 New Issue
2013-02-25 17:42 user12 Status new => assigned
2013-02-25 17:42 user12 Assigned To => joergs
2013-02-25 17:47 joergs Assigned To joergs => mvwieringen
2013-02-26 09:43 mvwieringen Note Added: 0000170
2013-02-26 09:45 mvwieringen Relationship added related to 0000097
2013-02-26 09:51 mvwieringen Assigned To mvwieringen => user12
2013-02-26 09:51 mvwieringen Status assigned => feedback
2013-02-26 10:41 user12 Note Added: 0000176
2013-02-26 10:41 user12 Status feedback => assigned
2013-02-26 10:42 user12 Note Added: 0000177
2013-02-26 10:42 user12 Status assigned => closed
2013-02-26 10:42 user12 Resolution open => fixed
2013-03-04 10:17 mvwieringen Assigned To user12 =>
2013-03-04 10:17 mvwieringen Resolution fixed => no change required