Re: [Bacula-users] restricted consoles and uids

2016-02-24 Thread Marcin Haba
Hello,

Alternatively you can use Baculum and define restricted consoles self.
In this case users have access to assigned restricted consoles even
without having shell accounts. And they have bconsole access via web
interface.

Advantages:
- no users shell accounts required
- access to bconsole via http(s)
- each user logs in using HTTP Basic auth
- besides bconsole access users can use web interface features
- in web interface features users see only resources assigned them in
theirs bconsole config
- adding/editing/removing users credential by Baculum admin

Disadvantages:
- you have take care of creating users bconsole config files in system

More info you can find in Baculum documentation here:

http://www.bacula.org/7.4.x-manuals/en/console/Baculum_WebGUI_Tool.html

I hope that it helps.

Best regards.
Marcin Haba

On 24 February 2016 at 23:35, Peter Keller  wrote:
> Hello,
>
> Does bacula have any feature where, depending upon the UID of the unix user
> executing the bconsole program, one can choose different restrictions for
> the console and this would all be specified in one config file?
>
> Thank you!
>
> -pete
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restricted consoles and uids

2016-02-24 Thread Kern Sibbald
Hello,

This feature is not needed.

Simply specify a different bconsol.conf (different restricted console 
name + password) in different directories that can only be accessed by 
the person you want to use a particular restricted console.

Best regards,
Kern

On 02/25/2016 08:35 AM, Peter Keller wrote:
> Hello,
>
> Does bacula have any feature where, depending upon the UID of the unix user
> executing the bconsole program, one can choose different restrictions for
> the console and this would all be specified in one config file?
>
> Thank you!
>
> -pete
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restricted consoles and uids

2016-02-24 Thread Dimitri Maziuk
On 02/24/2016 06:39 PM, Peter Keller wrote:

... Also, all users would have the
> same Password, and there would be nothing stopping them from
> just writing a baculejo.conf for root and escalating
> themselves into administrative privileges in bacula's console.

As a side note backups vs permissions has always been a very icky issue
anyway: what do you expect to happen when a non-root user tries to
restore files they have no read permission to? Or look at other peoples
filenames in the catalog? Personally I don't think there is a general
solution other than not letting non-root users touch any of it.

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu



signature.asc
Description: OpenPGP digital signature
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restricted consoles and uids

2016-02-24 Thread Heitor Faria


- Original Message -
> From: "Peter Keller" 
> To: "Heitor Faria" 
> Cc: "Bacula Users List" 
> Sent: Wednesday, February 24, 2016 9:39:13 PM
> Subject: Re: [Bacula-users] restricted consoles and uids

> Hello,
> 
> On 02/24/2016 05:50 PM, Heitor Faria wrote:
>> *Minor correction:
>> 
>> cat /usr/sbin/baculejo
>> =>8 Cut Here >8===
>> DIR_NAME=hfaria-K46CB-dir
>> DIR_ADDRESS=localhost
>> 
>> echo " Director {
>>  Name = $DIR_NAME
>>  DIRport = 9101
>>  Address = $DIR_ADDRESS
>>  Password = ""
>> }
>> 
>> Console {
>>Name = $USER
>>Password = "password"
>> }" > /tmp/baculejo.conf
>> 
>> bconsole -c /tmp/baculejo.conf
> 
> I see why this works, but it tells me there is no way in bacula
> to perform the configuration in question without resorting to
> either a wrapper script, some other out of band solution, or
> implementing code in bacula. Also, all users would have the
> same Password, and there would be nothing stopping them from
> just writing a baculejo.conf for root and escalating
> themselves into administrative privileges in bacula's console.

Hello, Peter. You are right in all your affirmatives.
'root' was just one example, but I though you would use less generic users for 
this solution. I think you can improve the security issues of this script, 
e.g., replacing the $USER for CONUSER=$(id -u -n) making harder for user 
spoofing. If you have all workstation secure authenticated in your directory 
service (assuming you have one) I think you can improve the security even more. 
Besides that I think UI with directory service integration would be Bacula 
Enterprise Bweb or any Apache one (Webacula, baculum etc.).
Where you see 'band solutions' I see lot's of possibilities. Perhaps not the 
free plug'n'play one you were expecting. =)

> Thank you.
> 
> -pete

Regards,
-- 
=== 
Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified 
Administrator II 
Do you need Bacula training? http://bacula.us/video-classes/ 
+55 61 8268-4220 
Site: http://bacula.us FB: heitor.faria 
===

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restricted consoles and uids

2016-02-24 Thread Peter Keller
Hello,

On 02/24/2016 05:50 PM, Heitor Faria wrote:
> *Minor correction:
> 
> cat /usr/sbin/baculejo
> =>8 Cut Here >8===
> DIR_NAME=hfaria-K46CB-dir
> DIR_ADDRESS=localhost
> 
> echo " Director {
>  Name = $DIR_NAME
>  DIRport = 9101
>  Address = $DIR_ADDRESS
>  Password = ""
> }
> 
> Console {
>Name = $USER
>Password = "password"
> }" > /tmp/baculejo.conf 
> 
> bconsole -c /tmp/baculejo.conf

I see why this works, but it tells me there is no way in bacula
to perform the configuration in question without resorting to
either a wrapper script, some other out of band solution, or
implementing code in bacula. Also, all users would have the
same Password, and there would be nothing stopping them from
just writing a baculejo.conf for root and escalating
themselves into administrative privileges in bacula's console.

Thank you.

-pete

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restricted consoles and uids

2016-02-24 Thread Heitor Faria
*Minor correction:

cat /usr/sbin/baculejo
=>8 Cut Here >8===
DIR_NAME=hfaria-K46CB-dir
DIR_ADDRESS=localhost

echo " Director {
 Name = $DIR_NAME
 DIRport = 9101
 Address = $DIR_ADDRESS
 Password = ""
}

Console {
   Name = $USER
   Password = "password"
}" > /tmp/baculejo.conf 

bconsole -c /tmp/baculejo.conf
=>8 Cut Here >8===

bacula-dir.conf sample:

=>8 Cut Here >8===
Console {
  Name = root
  Password = "password"
  JobACL = *all*
  ClientACL = *all*
  StorageACL = *all*
  ScheduleACL = *all*
  PoolACL = *all*
  FileSetACL = *all*
  CatalogACL = *all*
  CommandACL = *all*
}
=>8 Cut Here >8===

- Original Message -
> From: "Heitor Faria" 
> To: "Peter Keller" 
> Cc: "Bacula Users List" 
> Sent: Wednesday, February 24, 2016 8:46:40 PM
> Subject: Re: [Bacula-users] restricted consoles and uids

>> On 02/24/2016 04:41 PM, Heitor Faria wrote:
>>> 
 Hello,

 Does bacula have any feature where, depending upon the UID of the unix user
 executing the bconsole program, one can choose different restrictions for
 the console and this would all be specified in one config file?
>>> 
>>> Hello, Peter: please read the nice manual =>
>>> http://www.bacula.org/5.2.x-manuals/en/main/main/Console_Configuration.html
>> 
>> Thanks. I did read it. As far as I can tell, the answer is "no". It is
>> easy to _define_ different console privilege levels, but it is hard to
>> _select_ between them.
>> 
>> If I wasn't clear in my original explanation, Suppose I three users:
>> root, foo, bar.
>> 
>> I'd like root to have all privileges, foo to only be able to invoke 'status',
>> and bar to invoke 'status' and 'run'. I have only one director and one
>> bconsole.conf config file. I'd like 'bconsole' when run (with no arguments) 
>> by
>> each user to get the right console resource (based on their user id). And, to
>> top it off, I'd like the root console configs in a separate file included by
>> bconsole.conf so they aren't readable by foo or bar.
>> 
>> Thank you.
>> 
>> -pete
> 
> Hello, Peter: please check if this shell script (I named it 'baculejo') and
> configurations bellow suits you, given root user.
> 
> cat /usr/sbin/baculejo
> =>8 Cut Here >8===
> DIR_NAME=hfaria-K46CB-dir
> DIR_ADDRESS=localhost
> 
> echo " Director {
> Name = $DIR_NAME
> DIRport = 9101
> Address = $DIR_ADDRESS
> Password = ""
> }
> 
> Console {
>   Name = $USER
>   Password = "password"
> }" > /tmp/bconsole.user.conf
> 
> bconsole -c /tmp/baculejo.conf
> =>8 Cut Here >8===
> 
> bacula-dir.conf sample:
> 
> =>8 Cut Here >8===
> Console {
>  Name = root
>  Password = "password"
>  JobACL = *all*
>  ClientACL = *all*
>  StorageACL = *all*
>  ScheduleACL = *all*
>  PoolACL = *all*
>  FileSetACL = *all*
>  CatalogACL = *all*
>  CommandACL = *all*
> }
> =>8 Cut Here >8===
> 
> Regards,
> --
> ===
> Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified
> Administrator II
> Próximas aulas telepresencial ao-vivo - 15 de fevereiro:
> http://www.bacula.com.br/agenda/
> Ministro treinamento e implementação in-company Bacula:
> http://www.bacula.com.br/in-company/
> Ou assista minhas videoaulas on-line:
> http://www.bacula.com.br/treinamento-bacula-ed/
> 61 8268-4220
> Site: www.bacula.com.br | Facebook: heitor.faria
> 
> 
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
=== 
Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified 
Administrator II 
Próximas aulas telepresencial ao-vivo - 15 de fevereiro: 
http://www.bacula.com.br/agenda/ 
Ministro treinamento e implementação in-company Bacula: 
http://www.bacula.com.br/in-company/ 
Ou assista minhas videoaulas on-line: 
http://www.bacula.com.br/treinamento-bacula-ed/ 
61 8268-4220 
Site: www.bacula.com.br | Facebook: heitor.faria 



Re: [Bacula-users] restricted consoles and uids

2016-02-24 Thread Heitor Faria
> On 02/24/2016 04:41 PM, Heitor Faria wrote:
>> 
>>> Hello,
>>>
>>> Does bacula have any feature where, depending upon the UID of the unix user
>>> executing the bconsole program, one can choose different restrictions for
>>> the console and this would all be specified in one config file?
>> 
>> Hello, Peter: please read the nice manual =>
>> http://www.bacula.org/5.2.x-manuals/en/main/main/Console_Configuration.html
> 
> Thanks. I did read it. As far as I can tell, the answer is "no". It is
> easy to _define_ different console privilege levels, but it is hard to
> _select_ between them.
> 
> If I wasn't clear in my original explanation, Suppose I three users:
> root, foo, bar.
> 
> I'd like root to have all privileges, foo to only be able to invoke 'status',
> and bar to invoke 'status' and 'run'. I have only one director and one
> bconsole.conf config file. I'd like 'bconsole' when run (with no arguments) by
> each user to get the right console resource (based on their user id). And, to
> top it off, I'd like the root console configs in a separate file included by
> bconsole.conf so they aren't readable by foo or bar.
> 
> Thank you.
> 
> -pete

Hello, Peter: please check if this shell script (I named it 'baculejo') and 
configurations bellow suits you, given root user.

cat /usr/sbin/baculejo
=>8 Cut Here >8===
DIR_NAME=hfaria-K46CB-dir
DIR_ADDRESS=localhost

echo " Director {
 Name = $DIR_NAME
 DIRport = 9101
 Address = $DIR_ADDRESS
 Password = ""
}

Console {
   Name = $USER
   Password = "password"
}" > /tmp/bconsole.user.conf 

bconsole -c /tmp/baculejo.conf
=>8 Cut Here >8===

bacula-dir.conf sample:

=>8 Cut Here >8===
Console {
  Name = root
  Password = "password"
  JobACL = *all*
  ClientACL = *all*
  StorageACL = *all*
  ScheduleACL = *all*
  PoolACL = *all*
  FileSetACL = *all*
  CatalogACL = *all*
  CommandACL = *all*
}
=>8 Cut Here >8===

Regards,
-- 
=== 
Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified 
Administrator II 
Próximas aulas telepresencial ao-vivo - 15 de fevereiro: 
http://www.bacula.com.br/agenda/ 
Ministro treinamento e implementação in-company Bacula: 
http://www.bacula.com.br/in-company/ 
Ou assista minhas videoaulas on-line: 
http://www.bacula.com.br/treinamento-bacula-ed/ 
61 8268-4220 
Site: www.bacula.com.br | Facebook: heitor.faria 


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restricted consoles and uids

2016-02-24 Thread Peter Keller
On 02/24/2016 04:41 PM, Heitor Faria wrote:
> 
>> Hello,
>>
>> Does bacula have any feature where, depending upon the UID of the unix user
>> executing the bconsole program, one can choose different restrictions for
>> the console and this would all be specified in one config file?
> 
> Hello, Peter: please read the nice manual => 
> http://www.bacula.org/5.2.x-manuals/en/main/main/Console_Configuration.html

Thanks. I did read it. As far as I can tell, the answer is "no". It is
easy to _define_ different console privilege levels, but it is hard to
_select_ between them.

If I wasn't clear in my original explanation, Suppose I three users:
root, foo, bar.

I'd like root to have all privileges, foo to only be able to invoke 'status',
and bar to invoke 'status' and 'run'. I have only one director and one
bconsole.conf config file. I'd like 'bconsole' when run (with no arguments) by
each user to get the right console resource (based on their user id). And, to
top it off, I'd like the root console configs in a separate file included by
bconsole.conf so they aren't readable by foo or bar.

Thank you.

-pete

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restricted consoles and uids

2016-02-24 Thread Heitor Faria

> Hello,
> 
> Does bacula have any feature where, depending upon the UID of the unix user
> executing the bconsole program, one can choose different restrictions for
> the console and this would all be specified in one config file?

Hello, Peter: please read the nice manual => 
http://www.bacula.org/5.2.x-manuals/en/main/main/Console_Configuration.html
> 
> Thank you!
> 

Regards,
-- 
=== 
Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified 
Administrator II 
Próximas aulas telepresencial ao-vivo - 15 de fevereiro: 
http://www.bacula.com.br/agenda/ 
Ministro treinamento e implementação in-company Bacula: 
http://www.bacula.com.br/in-company/ 
Ou assista minhas videoaulas on-line: 
http://www.bacula.com.br/treinamento-bacula-ed/ 
61 8268-4220 
Site: www.bacula.com.br | Facebook: heitor.faria 


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] restricted consoles and uids

2016-02-24 Thread Peter Keller
Hello,

Does bacula have any feature where, depending upon the UID of the unix user
executing the bconsole program, one can choose different restrictions for
the console and this would all be specified in one config file?

Thank you!

-pete

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Next Scheduled Jobs as SQL Query?

2016-02-24 Thread Heitor Faria
> Hello :)
> 
> now that i'm going to change my employer, i wanted to leave an easy to use
> Bacula server.
> I've implemented many functions in my php-site. One of them is to show the 
> next
> running jobs via the output of "status dir" from the bconsole.
> 
> This works well, but looks a bit messy..
> 
> I've wondered how the "status dir" command works in detail and if there is a 
> way
> to get a list of the uhm maybe 20 next running jobs via sql suery?!
> So i could display it in a nice table and the implementation would be more 
> easy
> if there is a way to query this.

Hello, Gerwayn: you could make PHP calls a shell script (shell_exec) with 
something like in order to display next scheduled jobs:

echo "status schedule" |bconsole

Of course, you can grep, cut, awk, sort etc. and format the output the way you 
want.

Regards
-- 
=== 
Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified 
Administrator II 
Próximas aulas telepresencial ao-vivo - 15 de fevereiro: 
http://www.bacula.com.br/agenda/ 
Ministro treinamento e implementação in-company Bacula: 
http://www.bacula.com.br/in-company/ 
Ou assista minhas videoaulas on-line: 
http://www.bacula.com.br/treinamento-bacula-ed/ 
61 8268-4220 
Site: www.bacula.com.br | Facebook: heitor.faria 


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Next Scheduled Jobs as SQL Query?

2016-02-24 Thread Gerwayn
Hello :)

now that i'm going to change my employer, i wanted to leave an easy to use 
Bacula server.
I've implemented many functions in my php-site. One of them is to show the next 
running jobs via the output of "status dir" from the bconsole.

This works well, but looks a bit messy..

I've wondered how the "status dir" command works in detail and if there is a 
way to get a list of the uhm maybe 20 next running jobs via sql suery?!
So i could display it in a nice table and the implementation would be more easy 
if there is a way to query this.

If someone got a clue, please let me know :)

+--
|This was sent by l.schulth...@buchbinder.de via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bextract error

2016-02-24 Thread compdoc
> In case it happens again I'll try and restart a single process at a time
and see if I can pinpoint the root cause better.

I build and repair computers for a living, and it's very common for hard
drives to begin to fail slowly, rather than die all at once. 

The only way to know whats happening is to read the SMART info stored in the
drive. If there are any reallocated or pending sectors, you have to replace
the drive.


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bextract error

2016-02-24 Thread Andrea Venturoli
On 02/24/16 11:09, Wanderlei Huttel wrote:
> Have you tried to restore another job to check if occurs the same?

No.


However, after power cycling the NAS everything seems to work correctly 
once again.
Sorry for the noise.

In case it happens again I'll try and restart a single process at a time 
and see if I can pinpoint the root cause better.

  bye & Thanks
av.

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bextract error

2016-02-24 Thread Wanderlei Huttel
Have you tried to restore another job to check if occurs the same?

Atenciosamente

Wanderlei Hüttel
Enviado de Motorola Moto X2
Em 24 de fev de 2016 6:47 AM, "Andrea Venturoli"  escreveu:

> On 02/24/16 10:13, Wanderlei Huttel wrote:
>
>> Hello Andrea
>>
>
> Hello.
>
>
>
> I guess the error is clear, volume error!
>>
>
> Yes, it's clear; what isn't clear is the cause/reason.
>
>
>
>
> The job terminates fine?
>>
>
> Yes:
>
>>   Non-fatal FD errors:0
>>   SD Errors:  0
>>   FD termination status:  OK
>>   SD termination status:  OK
>>   Termination:Backup OK
>>
>
> This scares me: I have an OK results, but I cannot restore!
>
>
>
>
> Can you restore this job in bconsole?
>>
>
> No: same error as with bextract.
>
>
>
>
> I'll see if this trouble persists.
>
>  bye & Thanks
> av.
>
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bextract error

2016-02-24 Thread Andrea Venturoli
On 02/24/16 10:13, Wanderlei Huttel wrote:
> Hello Andrea

Hello.



> I guess the error is clear, volume error!

Yes, it's clear; what isn't clear is the cause/reason.




> The job terminates fine?

Yes:
>   Non-fatal FD errors:0
>   SD Errors:  0
>   FD termination status:  OK
>   SD termination status:  OK
>   Termination:Backup OK

This scares me: I have an OK results, but I cannot restore!




> Can you restore this job in bconsole?

No: same error as with bextract.




I'll see if this trouble persists.

  bye & Thanks
av.

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bextract error

2016-02-24 Thread Wanderlei Huttel
Hello Andrea

I guess the error is clear, volume error!

The job terminates fine?

Can you restore this job in bconsole?

Best Regards

Wanderlei Hüttel
Enviado de Motorola Moto X2
Em 24 de fev de 2016 5:44 AM, "Andrea Venturoli"  escreveu:

> Hello.
>
> I'm getting an error and having an hard time figuring the reason, so I'm
> looking for some insight.
>
> I have a job that backups a Windows client. It
> _ dumps some databases in "Client Run Before Job";
> _ backs the dump files normally to a NAS which is running bacula-sd;
> _ runs a "Run After Job" script that:
>mounts that NAS via NFS;
>runs bextract on the storage file used by the job;
>uploads those file somewhere else.
>
> It has been working flawlessly for a long time, but in the last two days
> I'm getting messages like:
>
> > 23-Feb 22:52 dir JobId 5202: AfterJob: bextract: butil.c:289-0 Using
> device: "BackupXX" for reading.
> > 23-Feb 22:52 dir JobId 5202: AfterJob: 23-Feb 22:52 bextract JobId 0:
> Ready to read from volume "GestI1242" on file device "BackupXX"
> (/mnt/XXbackup).
> > 23-Feb 22:52 dir JobId 5202: AfterJob: bextract JobId 0: -rwxrwxrwx   1
> root wheel  300042752 2016-02-23 22:51:07
> /usr/local/local/XXDBs/2016022322521456264333/C:/Users/Public/Bacula/1.bak
> > 23-Feb 22:52 dir JobId 5202: AfterJob: bextract JobId 0: -rwxrwxrwx   1
> root wheel  187002368 2016-02-23 22:51:12
> /usr/local/local/XXDBs/2016022322521456264333/C:/Users/Public/Bacula/2.bak
> > 23-Feb 22:52 dir JobId 5202: AfterJob: 23-Feb 22:52 bextract JobId 0:
> Error: block_util.c:352 Volume data error at 0:53803237!
> > 23-Feb 22:52 dir JobId 5202: AfterJob: Block checksum mismatch in
> block=835 len=64512: calc=6c456dfa blk=f9b4bb13
> > 23-Feb 22:52 dir JobId 5202: AfterJob: 23-Feb 22:52 bextract JobId 0:
> Error: file_attrs.c:568 File size of restored file
> /usr/local/local/XXDBs/2016022322521456264333/C:/Users/Public/Bacula/2.bak
> not correct. Original 187002368, restored 90963752.
> > 23-Feb 22:52 dir JobId 5202: AfterJob: 2 files restored.
>
> There should be 4 restored files, but the second gives an error and the
> procedure stops.
>
> I know NFS has problems with very large files (>2GB), but the storage
> file in this case is less than 100MB.
> What can cause that "Volume data error"?
>
>   bye & Thanks
> av.
>
> P.S. The version is 7.0.5 on FreeBSD 9.3 and the NAS is a Zyxel NSA-310
> (I've been using several such objects with bacula without problems for a
> long time).
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] bextract error

2016-02-24 Thread Andrea Venturoli
Hello.

I'm getting an error and having an hard time figuring the reason, so I'm 
looking for some insight.

I have a job that backups a Windows client. It
_ dumps some databases in "Client Run Before Job";
_ backs the dump files normally to a NAS which is running bacula-sd;
_ runs a "Run After Job" script that:
   mounts that NAS via NFS;
   runs bextract on the storage file used by the job;
   uploads those file somewhere else.

It has been working flawlessly for a long time, but in the last two days 
I'm getting messages like:

> 23-Feb 22:52 dir JobId 5202: AfterJob: bextract: butil.c:289-0 Using device: 
> "BackupXX" for reading.
> 23-Feb 22:52 dir JobId 5202: AfterJob: 23-Feb 22:52 bextract JobId 0: Ready 
> to read from volume "GestI1242" on file device "BackupXX" 
> (/mnt/XXbackup).
> 23-Feb 22:52 dir JobId 5202: AfterJob: bextract JobId 0: -rwxrwxrwx   1 root  
>wheel  300042752 2016-02-23 22:51:07  
> /usr/local/local/XXDBs/2016022322521456264333/C:/Users/Public/Bacula/1.bak
> 23-Feb 22:52 dir JobId 5202: AfterJob: bextract JobId 0: -rwxrwxrwx   1 root  
>wheel  187002368 2016-02-23 22:51:12  
> /usr/local/local/XXDBs/2016022322521456264333/C:/Users/Public/Bacula/2.bak
> 23-Feb 22:52 dir JobId 5202: AfterJob: 23-Feb 22:52 bextract JobId 0: Error: 
> block_util.c:352 Volume data error at 0:53803237!
> 23-Feb 22:52 dir JobId 5202: AfterJob: Block checksum mismatch in block=835 
> len=64512: calc=6c456dfa blk=f9b4bb13
> 23-Feb 22:52 dir JobId 5202: AfterJob: 23-Feb 22:52 bextract JobId 0: Error: 
> file_attrs.c:568 File size of restored file 
> /usr/local/local/XXDBs/2016022322521456264333/C:/Users/Public/Bacula/2.bak
>  not correct. Original 187002368, restored 90963752.
> 23-Feb 22:52 dir JobId 5202: AfterJob: 2 files restored.

There should be 4 restored files, but the second gives an error and the 
procedure stops.

I know NFS has problems with very large files (>2GB), but the storage 
file in this case is less than 100MB.
What can cause that "Volume data error"?

  bye & Thanks
av.

P.S. The version is 7.0.5 on FreeBSD 9.3 and the NAS is a Zyxel NSA-310 
(I've been using several such objects with bacula without problems for a 
long time).

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users