Bug 16717 - bacula-tray-monitor fails at start
Summary: bacula-tray-monitor fails at start
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: x86_64 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-07 10:38 CEST by pat dealt
Modified: 2018-10-07 15:15 CEST (History)
1 user (show)

See Also:
Source RPM: bacula-7.0.5-14.mga5.x86_64
CVE:
Status comment:


Attachments

Description pat dealt 2015-09-07 10:38:42 CEST
Description of problem:
-----------------------
Whenever bacula-tray-monitor is launched in a Konsole, 
the following error occurs :
>>>>>>>
/sbin/bacula-tray-monitor: error: `/sbin/.libs/bacula-tray-monitor' does not exist
This script is just a wrapper for bacula-tray-monitor.
See the libtool documentation for more information.
<<<<<<<

This bug looks like Red Hat Bugzilla รข Bug 1197452
	
apparently solved (as stated in bug file) in Fedora version bacula-7.0.5-4.fc22

Version-Release number of selected component:
---------------------------------------------

bacula-tray-monitor-7.0.5-14.mga5.x86_64.rpm

Mageia 5
kernel : 3.19.8-desktop-3.mga5
arch: 64-bit
Desktop : KDE

How to reproduce:
-----------------

simply launch the command : 
/usr/sbin/bacula-tray-monitor -c /etc/bacula/tray-monitor.conf
or even  
/usr/sbin/bacula-tray-monitor

then it crashes immediately



Reproducible: 

Steps to Reproduce:
David Walser 2015-09-08 23:46:56 CEST

Assignee: bugsquad => thomas

Comment 1 Thomas Spuhler 2015-09-09 22:08:10 CEST
Thanks for reporting this bug and for using bacula as a backup program.
I can confirm this program will not work as it is. It is missing files.

Status: NEW => ASSIGNED

Comment 2 Thomas Spuhler 2015-09-11 21:01:12 CEST
The revised packages are now in updates_testing
would you mind to test tray-monitor?
Comment 3 pat dealt 2015-10-16 11:07:51 CEST
First let me summarized the problems I met in bacula 7.0.5-14 and solutions I applied.
All these issues are still present in bacula 7.0.5-14.4 and have to be applied again after each update.
It would be nice if you could incorporated these fixes in a next update:

1- In order to run /usr/sbin/bat by a standard user according to "/usr/share/applications/bacula-bat.desktop" content (ie : no root required)
   and considering my standard user is a bacula group member
  
1.1 changed permissions on /usr/sbin/bat and /usr/sbin/bconsole with

   -rwxr-x--- (750)   o=root g=bacula (instead of g=root)

   (existing issue in previous release 7.0.5-14)
   Info a similar issue in previous release 7.0.5-14 with permissions on /usr/libexec/bacula/make_catalog_backup.pl
   and /usr/libexec/bacula/delete_catalog_backup was fixed this way in 7.0.5-14-4.

1.2 changed permissions on /etc/bacula/bat.conf and /etc/bacula/bconsole.conf with

   -rwxr-x--- (750)   o=root g=bacula (instead of g=root)

3- In order to run /usr/sbin/by a standard user change permissons on /usr/sbin/dbcheck (called by make_catalog_backup.pl) otherwise backup of the catalog will fail.

   -rwxr-x--- (750)   o=root g=bacula instead of g=root

4- I'm using mysql/mariadb to manage the catalog, but by defaut postgresql is selected.

To select mysql, I used the command :

   su -c 'alternatives --config libbaccats.so'

   but it would be more convenient to add a dedicated rpm package such as bacula-dir-mysql or bacula-dir-postgresql or bacula-dir-sqlite in Mageia 3.

5- In order to run /usr/sbin/bacula-tray-monitor by a standard user according to "/usr/share/applications/bacula-traymonitor.desktop" content (ie : no root required)
   and considering my standard user is a bacula group member
  
   5.1 changed permissions on /usr/sbin/bacula-tray-monitor with

   -rwxr-xr-x (755)   o=root g=root  replaced by -rwxr-x--- (750) o=root g=bacula

   5.2 changed permissions on /etc/bacula/tray-monitor.conf with

   -rw-r--r-- (644)   o=root g=root  replaced by -rw-r----- (640) o=root g=bacula
  
6- On storage server (SD), backup files are recorded by default with permission/group= tape.

   In order to make restore easier :
  
    6.1 changed permissions in file /etc/sysconfig/bacula-sd with

    Replaced
   
       # bacula storage daemon options
       SD_USER=bacula
       SD_GROUP=tape
       # SD_OPTIONS=''
   by
  
       # bacula storage daemon options
       SD_USER=bacula
       SD_GROUP=bacula
       # SD_OPTIONS=''
      
Regarding Tray-Monitor :

I can launch it (after changes on permissions mentionned above) and it doesn't crash anymore.
A tray icon appears in the task bar (but a curious one - different from the icon used in the past)
and after a while (probably due to the lack of synchronization whith sd - see below),
I can open a window in which the synchronization between :
- tray and dir is OK,
- tray and fd(s) is OK (I've got 2 one on the server and one on the director),
- but nothing is displayed in the sd tab.

When I launch in a konsole I get the following error message :
>>>>
tray-monitor: bsock.c:137-0 who=Storage daemon host=Server port=9103
tray-monitor: bsock.c:310-0 OK connected to server  Storage daemon Server:9103.
tray-monitor: cram-md5.c:119-0 cram-get received: authenticate.c:86 Bad Hello command from Director at client: Hello Director Server-mon calling
tray-monitor: cram-md5.c:124-0 Cannot scan received response to challenge: authenticate.c:86 Bad Hello command from Director at client: Hello Director Server-mon calling
13-sept. 09:54 tray-monitor JobId 0: Fatal error: authenticate.cpp:126 Director and Storage daemon passwords or names not the same.
Please see http://www.bacula.org/en/rel-manual/Bacula_Freque_Asked_Questi.html#SECTION00260000000000000000 for help.
<<<<
Comment 4 pat dealt 2015-10-16 11:08:18 CEST
I just tested the new bacula packages version 7.0.5-14.5.mga available in updates_testing repository.

Some issues are still there :
All these files have still group root attributed instead of bacula :

1- File /usr/sbin/dbcheck  in package bacula-dir-7.0.5-14.5.mga5
Moreover an error is displayed during dir package installation saying unexisting group bacula} (with an extra character "}"

2- Files /usr/sbin/bat and /etc/bacula/bat.conf in package bacula-bat-7.0.5-14.5.mga5
3- Files /usr/sbin/bconsole and /etc/bacula/bconsole.conf in package bacula-console-7.0.5-14.5.mga5
4- Files /usr/sbin/bacula-tray-monitor and /etc/bacula/tray-monitor.conf in package bacula-tray-monitor-7.0.5-14.5.mga5
5- Files /usr/sbin/bacula-sd and /etc/bacula/bacula-sd.conf in package bacula-sd-7.0.5-14.5.mga5

SD_GROUP=tape  instead of bacula in File /etc/sysconfig/bacula-sd in package bacula-sd-7.0.5-14.5.mga5
Comment 5 pat dealt 2015-10-16 11:11:06 CEST
I just tested the new bacula packages version 7.0.5-14.6.mga available in updates_testing repository.

Some issues are still there :
All these files have still group root attributed instead of bacula :

1- File /usr/sbin/dbcheck  in package bacula-dir-7.0.5-14.6.mga5                         THIS ONE IS FIXED
2- Files /usr/sbin/bat and /etc/bacula/bat.conf in package bacula-bat-7.0.5-14.6.mga5                         NOT FIXED
3- Files /usr/sbin/bconsole and /etc/bacula/bconsole.conf in package bacula-console-7.0.5-14.6.mga5                     NOT FIXED
4- Files /usr/sbin/bacula-tray-monitor and /etc/bacula/tray-monitor.conf in package bacula-tray-monitor-7.0.5-14.6.mga5    NOT FIXED
5- Files /usr/sbin/bacula-sd and /etc/bacula/bacula-sd.conf in package bacula-sd-7.0.5-14.6.mga5                          NOT FIXED
6- Files /usr/sbin/bacula-dir and /etc/bacula/bacula-dir.conf  in package bacula-dir-7.0.5-14.6.mga5                         NOT FIXED
Regarding Tray-Monitor

SD_GROUP=tape  instead of bacula in File /etc/sysconfig/bacula-sd in package bacula-sd-7.0.5-14.6.mga5                   NOT FIXED

Moreover regarding Tray-Monitor, the problem describes in comment 3 is still there.
Comment 6 Thomas Spuhler 2015-10-17 00:15:06 CEST
(In reply to pat dealt from comment #5)
> I just tested the new bacula packages version 7.0.5-14.6.mga available in
> updates_testing repository.
> 
> Some issues are still there :
> All these files have still group root attributed instead of bacula :
> 
> 1- File /usr/sbin/dbcheck  in package bacula-dir-7.0.5-14.6.mga5            
> THIS ONE IS FIXED
> 2- Files /usr/sbin/bat and /etc/bacula/bat.conf in package
> bacula-bat-7.0.5-14.6.mga5                         NOT FIXED
> 3- Files /usr/sbin/bconsole and /etc/bacula/bconsole.conf in package
> bacula-console-7.0.5-14.6.mga5                     NOT FIXED
> 4- Files /usr/sbin/bacula-tray-monitor and /etc/bacula/tray-monitor.conf in
> package bacula-tray-monitor-7.0.5-14.6.mga5    NOT FIXED
> 5- Files /usr/sbin/bacula-sd and /etc/bacula/bacula-sd.conf in package
> bacula-sd-7.0.5-14.6.mga5                          NOT FIXED
> 6- Files /usr/sbin/bacula-dir and /etc/bacula/bacula-dir.conf  in package
> bacula-dir-7.0.5-14.6.mga5                         NOT FIXED
> Regarding Tray-Monitor
> 
> SD_GROUP=tape  instead of bacula in File /etc/sysconfig/bacula-sd in package
> bacula-sd-7.0.5-14.6.mga5                   NOT FIXED
> 
> Moreover regarding Tray-Monitor, the problem describes in comment 3 is still
> there.

version 7.0.5-14.6 did not address this bug.
Comment 7 Marja Van Waes 2018-04-14 23:56:19 CEST
Thank you for having taken the needed time to report this issue!

Did this bug get fixed? If so, please change its status to RESOLVED - FIXED

If it didn't, then we regret that we weren't able to fix it in Mageia 5. Mageia 5 has officially reached its End of Life on December 31st, 2017 https://blog.mageia.org/en/2017/11/07/mageia-5-eol-postponed/
It only continued to get important security updates since then, because we are waiting for a big Plasma5 update in Mageia 6, that'll fix many of the Mageia 5 => 6 upgrade issues.

If you haven't seen that this bug got fixed, then please check whether this bug still exists in Mageia 6. If it does, then please change the Version (near the top, at the left) to "6". If you know it exists in Cauldron, then change Version to Cauldron. If you see it in both Cauldron and Mageia 6, then please set version to Cauldron and add MGA6TOO on the Whiteboard.

Thanks,
Marja

(In case this report needs to stay open for a supported release: Reassigning to all packagers collectively, since there is no longer a registered maintainer for this package.)

Status: ASSIGNED => NEW
CC: (none) => marja11
Source RPM: bacula-tray-monitor-7.0.5-14.mga5.x86_64 => bacula-7.0.5-14.mga5.x86_64
Assignee: thomas => pkg-bugs

Comment 8 Marja Van Waes 2018-10-07 15:15:22 CEST
@ Pat

No reply, so closing as OLD since Mageia 5 is no longer maintained.

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.