Re: [Bacula-users] Bconsole hangs when connecting to SD after upgrade from Fed 14 to Fed 15

2011-07-18 Thread Jeremy Maes

Op 15/07/2011 12:02, Bill Damage schreef:

Hi Jeremy,

Since this sounds exactly like the root of the problem any chance of 
you spelling out to this humble newbie how I'd check and fix that please?


Do an ls -al of the /dev folder and look for the (n)stX entries (X 
being a number). Example (partial) output on RHEL6:

/crw-rw   1 root tape  9, 128 jul  7 15:01 nst0/

As you can see this device is owned by user root and group tape. Because 
bacula-sd runs as user bacula, and the bacula user is by default member 
of only the disk group, it has no rights to use the tapedrive.


To fix this you'd use vigr (or vi /etc/groups) and make sure that the 
bacula user is a member of the group the tape devices belong to.
An example of how this was achieved on RHEL6: tape:x:33:bacula. So 
just add the bacula user at the end of the line for the correct group, 
using a comma to separate different users if needed.


Regards,
Jeremy



**
You should really check which group owns the tape devices /dev/st0 and 
/dev/nst0 (or (n)st1 or higher if there's more than one drive).
I'll bet it is now owned by the group tape instead of the usual 
group disk it was in the past.


If that's the case you can just run the SD as user bacula and group 
tape :-)


Regards,
Jeremy

 DISCLAIMER 
http://www.schaubroeck.be/maildisclaimer.htm



 DISCLAIMER 
http://www.schaubroeck.be/maildisclaimer.htm
--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bconsole hangs when connecting to SD after upgrade from Fed 14 to Fed 15

2011-07-15 Thread Bill Damage
Hi Allesandro

Well ain't that something? I'd have put money on it being something we did. In 
fact I can add to this - we have another server, which was running the same 
bacula on F15, which we upgraded using the preupgrade method, i.e. entirely 
via the web and wizards. This went perfectly. It was this process which went 
wrong on the second server, so we ended up doing the upgrade via a DVD. Whilst 
from a Fed pov it now seems ok, there is this bacula problem and pretty much 
that's the only difference between these systems. 

Its too important to mess with any longer. We're already a week behind with our 
backups so I'm going to use the workaround you suggested, thanks.




From: Alessandro Bianchi a...@skynet.it
To: bacula-users@lists.sourceforge.net
Cc: bill.dam...@yahoo.com
Sent: Thu, 14 July, 2011 12:50:14
Subject: Re:  Bconsole hangs when connecting to SD after upgrade from Fed 14 to 
Fed 15

Il 14/07/2011 13:29, bacula-users-requ...@lists.sourceforge.net ha scritto: 
Hi - the upgrade wasn't without trouble - we had to preserve the bacula config, 
 
do a clean installation and restore the config/cats etc. So its almost  
definitely not a bacula doesn't work with Fed15 problem ;-)  What happens is 
if I restart the services I can see them running fine and the sd  is running as 
the user bacula. If I try anything with touches the sd, say in  bconsole even 
a status all, the display stops at the first Connecting to  Storage 
daemon... message. However, if I kill the sd process and run it from  root 
with 
bacula-sd -f -v in another console all is well. There's nothing in  any logs 
I 
can see. Whats gives please? Thanks.
Hi

I faced a very similar problem after upgrading from F14 to F15

I had the SD hanging on every operation

I tracked it to a permission problem.

It seems to have some sort of trouble while dropping privileges.

I fixed it editing the /etc/syscongif/bacula-sd file and setting it like 
follows:

SD_USER=root
SD_GROUP=bacula

I don't like having the SD running as root so before doing that I worked on 
permissions on the bacula SD storage area (I'm using the File storage) with 
no luck.

Hope this points you in some useful direction.

Besta regards

Alessandro Bianchi


-- 
  
SkyNet SRL
Via Maggiate 67/a - 28021 Borgomanero (NO) - tel. +39 
0322-836487/834765 - fax +39 0322-836608
http://www.skynet.it
Autorizzazione Ministeriale n.197
Le informazioni contenute in questo messaggio sono riservate e 
confidenziali ed è vietata la diffusione in qualunque modo 
eseguita.
Qualora Lei non fosse la persona a cui il presente messaggio è 
destinato, La invitiamo ad eliminarlo ed a distruggerlo non 
divulgandolo, dandocene gentilmente comunicazione. 

Per qualsiasi informazione si prega di contattare i...@skynet.it 
(e-mail 
dell'azienda). Rif. D.L. 196/2003--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bconsole hangs when connecting to SD after upgrade from Fed 14 to Fed 15

2011-07-15 Thread Jeremy Maes

Op 15/07/2011 8:25, Bill Damage schreef:

Hi Allesandro

Well ain't that something? I'd have put money on it being something we 
did. In fact I can add to this - we have another server, which was 
running the same bacula on F15, which we upgraded using the 
preupgrade method, i.e. entirely via the web and wizards. This went 
perfectly. It was this process which went wrong on the second server, 
so we ended up doing the upgrade via a DVD. Whilst from a Fed pov it 
now seems ok, there is this bacula problem and pretty much that's the 
only difference between these systems.


Its too important to mess with any longer. We're already a week behind 
with our backups so I'm going to use the workaround you suggested, thanks.



*From:* Alessandro Bianchi a...@skynet.it
*To:* bacula-users@lists.sourceforge.net
*Cc:* bill.dam...@yahoo.com
*Sent:* Thu, 14 July, 2011 12:50:14
*Subject:* Re: Bconsole hangs when connecting to SD after upgrade from 
Fed 14 to Fed 15


Il 14/07/2011 13:29, bacula-users-requ...@lists.sourceforge.net ha 
scritto:

Hi - the upgrade wasn't without trouble - we had to preserve the bacula config,
do a clean installation and restore the config/cats etc. So its almost
definitely not a bacula doesn't work with Fed15 problem;-)

What happens is if I restart the services I can see them running fine and the sd
is running as the user bacula. If I try anything with touches the sd, say in
bconsole even a status all, the display stops at the first Connecting to
Storage daemon... message. However, if I kill the sd process and run it from
root with bacula-sd -f -v in another console all is well. There's nothing in
any logs I can see. Whats gives please? Thanks.

Hi

I faced a very similar problem after upgrading from F14 to F15

I had the SD hanging on every operation

I tracked it to a permission problem.

It seems to have some sort of trouble while dropping privileges.

I fixed it editing the /etc/syscongif/bacula-sd file and setting it 
like follows:


SD_USER=root
SD_GROUP=bacula

I don't like having the SD running as root so before doing that I 
worked on permissions on the bacula SD storage area (I'm using the 
File storage) with no luck.


Hope this points you in some useful direction.


You should really check which group owns the tape devices /dev/st0 and 
/dev/nst0 (or (n)st1 or higher if there's more than one drive).
I'll bet it is now owned by the group tape instead of the usual group 
disk it was in the past.


If that's the case you can just run the SD as user bacula and group tape :-)

Regards,
Jeremy

 DISCLAIMER 
http://www.schaubroeck.be/maildisclaimer.htm
--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bconsole hangs when connecting to SD after upgrade from Fed 14 to Fed 15

2011-07-15 Thread Bill Damage
Hi Jeremy,

Since this sounds exactly like the root of the problem any chance of you 
spelling out to this humble newbie how I'd check and fix that please?

Cheers!




From: Jeremy Maes j...@schaubroeck.be
To: Bill Damage bill.dam...@yahoo.com
Cc: a...@skynet.it; bacula-users@lists.sourceforge.net
Sent: Fri, 15 July, 2011 9:09:36
Subject: Re: [Bacula-users] Bconsole hangs when connecting to SD after upgrade 
from Fed 14 to Fed 15

Op 15/07/2011 8:25, Bill Damage schreef: 
Hi Allesandro


Well ain't that something? I'd have put money on it being   something 
we 
did. In fact I can add to this - we have another   server, which was 
running the same bacula on F15, which we   upgraded using the 
preupgrade method, i.e. entirely via the   web and wizards. This 
went 
perfectly. It was this process   which went wrong on the second 
server, 
so we ended up doing   the upgrade via a DVD. Whilst from a Fed pov it 
now seems ok,   there is this bacula problem and pretty much that's 
the 
only   difference between these systems. 


Its too important to mess with any longer. We're already a   week 
behind 
with our backups so I'm going to use the   workaround you suggested, 
thanks.




From: Alessandro Bianchi a...@skynet.it
To: bacula-users@lists.sourceforge.net
Cc: bill.dam...@yahoo.com
Sent: Thu,   14 July, 2011 12:50:14
Subject: Re: Bconsole hangs when connecting to SD after upgrade   
from Fed 14 to Fed 15

Il 14/07/2011 13:29, bacula-users-requ...@lists.sourceforge.net ha scritto: 
Hi - the upgrade wasn't without trouble - we had to preserve the bacula 
config,  
do a clean installation and restore the config/cats etc. So its almost  
definitely not a bacula doesn't work with Fed15 problem ;-)  What happens is 
if I restart the services I can see them running fine and the sd  is running 
as 
the user bacula. If I try anything with touches the sd, say in  bconsole 
even 
a status all, the display stops at the first Connecting to  Storage 
daemon... message. However, if I kill the sd process and run it from  root 
with 
bacula-sd -f -v in another console all is well. There's nothing in  any logs 
I 
can see. Whats gives please? Thanks.
Hi

I faced a very similar problem after upgrading from F14 to F15

I had the SD hanging on every operation

I tracked it to a permission problem.

It seems to have some sort of trouble while dropping privileges.

I fixed it editing the /etc/syscongif/bacula-sd file and setting 
it like follows:

SD_USER=root
SD_GROUP=bacula

I don't like having the SD running as root so before doing that I 
worked on permissions on the bacula SD storage area (I'm using the 
File storage) with no luck.

Hope this points you in some useful direction.

You should really check which group owns the tape devices /dev/st0 and 
/dev/nst0 (or (n)st1 or higher if there's more than one drive).
I'll bet it is now owned by the group tape instead of the usual group 
disk it was in the past. 


If that's the case you can just run the SD as user bacula and group tape :-)

Regards,
Jeremy

 DISCLAIMER 
http://www.schaubroeck.be/maildisclaimer.htm--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bconsole hangs when connecting to SD after upgrade from Fed 14 to Fed 15

2011-07-13 Thread Josh Fisher
On 7/13/2011 5:36 AM, Bill Damage wrote:
 Hi - the upgrade wasn't without trouble - we had to preserve the 
 bacula config, do a clean installation and restore the config/cats 
 etc. So its almost definitely not a bacula doesn't work with Fed15 
 problem ;-)

 What happens is if I restart the services I can see them running fine 
 and the sd is running as the user bacula. If I try anything with 
 touches the sd, say in bconsole even a status all, the display stops 
 at the first Connecting to Storage daemon... message. However, if I 
 kill the sd process and run it from root with bacula-sd -f -v in 
 another console all is well. There's nothing in any logs I can see. 
 Whats gives please? Thanks.

Does user bacula, (or the group bacula-sd runs as), have the needed 
permissions to access the /dev devices? Do you have selinux enabled?



--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users