View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000094 | bareos-core | installer / packages | public | 2013-02-25 17:42 | 2013-03-04 10:17 |
Reporter | Assigned To | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Linux | OS | Ubuntu | OS Version | 12.10 |
Product Version | 12.4.1 | ||||
Summary | 0000094: btraceback scripts uses fixed localhost instead of hostname -- bsmtp: bsmtp.c:509-0 Failed to connect to maihost localhost | ||||
Description | After 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 Reproduce | root@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 | ||||
Tags | No tags attached. | ||||
related to | 0000097 | closed | bruno-at-bareos | default user and groups for fd, sd and director are not defined |
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. |
|
Sorry, it was my bogus /etc/hosts file | |
changed my /etc/hosts | |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-02-25 17:42 |
|
New Issue | |
2013-02-25 17:42 |
|
Status | new => assigned |
2013-02-25 17:42 |
|
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 |
|
Note Added: 0000176 | |
2013-02-26 10:41 |
|
Status | feedback => assigned |
2013-02-26 10:42 |
|
Note Added: 0000177 | |
2013-02-26 10:42 |
|
Status | assigned => closed |
2013-02-26 10:42 |
|
Resolution | open => fixed |
2013-03-04 10:17 | mvwieringen | Assigned To | user12 => |
2013-03-04 10:17 | mvwieringen | Resolution | fixed => no change required |