Re: [Bacula-users] PHP exception for restores after retention period

2020-05-26 Thread Marcin Haba
Hello Yakup,

Yes, I would really like to add this feature. I opened a feature
request for that:

https://bugs.bacula.org/view.php?id=2546

To see progress in this task, please observe above ticket.

Best regards,
Marcin Haba (gani)

On Tue, 26 May 2020 at 22:32, Yakup Kaya  wrote:
>
> Hello Marcin,
>
> Thank you very much for your fast reply. And thank you very much for your 
> time,
>
> Then I assume that this is the default behavior for now. Would it be right to 
> think that this maybe a feature planned, for future releases maybe?
>
> Kind regards,
>
> Yakup Kaya
> 
> From: Marcin Haba 
> Sent: Tuesday, May 26, 2020 7:03 PM
> To: Yakup Kaya
> Cc: bacula-users@lists.sourceforge.net; Markus Flaisch
> Subject: Re: [Bacula-users] PHP exception for restores after retention period
>
> Hello Yakup,
>
> This type of restore is not supported yet. To prepare restore Baculum
> uses the Bacula Bvfs interface that uses Bvfs cache. If file records
> for a job in the catalog are pruned then the Bvfs cache for those
> records is removed as well.
>
> Best regards,
> Marcin Haba (gani)
>
> On Tue, 26 May 2020 at 16:54, Yakup Kaya  
> wrote:
> >
> > Hi everybody,
> >
> >
> > We have a problem that we cannot make a restore from the job history 
> > details, if the retention period has passed for a job (and the file list is 
> > deleted), or the file list is manually purged. But restore from bconsole 
> > still works for that job id.
> >
> >
> > When we try to restore with the restore wizard on Baculum, we get the 
> > following exception from RestoreWizard PHP file. To reproduce the problem 
> > one can just purge files for a job id as follows using bconsole, and try to 
> > restore all files from the baculum interface fort that job. Or try to 
> > restore with a job id, for which the retention time for deleting the file 
> > list has already passed.
> >
> >
> > *purge files jobid=1996;
> >
> >
> > Here is the exception after running restore wizard from Baculum:
> >
> >
> > -
> >
> > Prado\Exceptions\TPhpErrorException
> > Description
> >
> > [Notice] Undefined variable: ret (@line 897 in file 
> > /usr/share/baculum/htdocs/protected/Web/Pages/RestoreWizard.php).
> > Source File
> >
> > /usr/share/baculum/htdocs/protected/Web/Pages/RestoreWizard.php (897)
> >
> > 0886:
> > 0887: $ret = $this->getModule('api')->create(array('jobs', 
> > 'restore'), $restore_props);
> > 0888: $jobid = 
> > $this->getModule('misc')->findJobIdStartedJob($ret->output);
> > 0889: // Remove temporary BVFS table
> > 0890: $this->getModule('api')->set(array('bvfs', 'cleanup'), 
> > array('path' => $path));
> > 0891: }
> > 0892: $url_params = array();
> > 0893: if (is_numeric($jobid)) {
> > 0894: $url_params['jobid'] = $jobid;
> > 0895: $this->goToPage('JobHistoryView', $url_params);
> > 0896: } else {
> > 0897: $this->RestoreError->Text = implode('', 
> > $ret->output);
> > 0898: $this->show_error = true;
> > 0899: }
> > 0900: }
> > 0901:
> > 0902: /**
> > 0903:  * Load restore jobs on the list.
> > 0904:  *
> > 0905:  * @return none
> > 0906:  */
> > 0907: private function loadRestoreJobs() {
> > 0908: $restore_job_tasks = 
> > $this->getModule('api')->get(array('jobs', 'resnames', '?type=R'))->output;
> > 0909: $jobs = array();
> >
> > Stack Trace
> >
> > #0 /usr/share/baculum/htdocs/protected/Web/Pages/RestoreWizard.php(897): 
> > Prado\PradoBase::phpErrorHandler(8, 'Undefined varia...', 
> > '/usr/share/bacu...', 897, Array)
> > #1 
> > /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/TComponent.php(1169):
> >  RestoreWizard->wizardCompleted(Object(Prado\Web\UI\WebControls\TWizard), 
> > Object(Prado\Web\UI\WebControls\TWizardNavigationEventParameter), 
> > 'oncompletebutto...')
> > #2 
> > /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/WebControls/TWizard.php(664):
> >  Prado\TComponent->raiseEvent('OnCompleteButto...', 
> > Object(Prado\Web\UI\WebControls\TWizard), 
> > Object(Prado\Web\UI\WebControls\TWizardNavigationEventParameter))
> > #3 
> > /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/WebControls/TWizard.php(1365):
> >  
> > Prado\Web\UI\WebControls\TWizard->onCompleteButtonClick(Object(Prado\Web\UI\WebControls\TWizardNavigationEventParameter))
> > #4 
> > /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TControl.php(1470):
> >  
> > Prado\Web\UI\WebControls\TWizard->bubbleEvent(Object(Prado\Web\UI\WebControls\TLinkButton),
> >  Object(Prado\Web\UI\TCommandEventParameter))
> > #5 
> > /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/WebControls/TLinkButton.php(334):
> >  
> > Prado\Web\UI\TControl->raiseBubbleEvent(Object(Prado\Web\UI\WebControls\TLinkButton),
> >  

Re: [Bacula-users] Baculum job history, details page does not show job files

2020-05-26 Thread Marcin Haba
Hi Yakup,

Great. Good to hear you solved this problem.

Yes, it case many records the memory limit 128M can be insufficient.

Best regards,
Marcin Haba (gani)

On Tue, 26 May 2020 at 23:15, Yakup Kaya  wrote:
>
> Hi Marcin,
>
> Thank you very much for your reply. It seems like we are having problem 
> because of the allocated memory size for PHP.
>
> Here are my findings:
>
> - Without enabling debug, I have been able to see the file list from bconsole 
> with the command you provided (list files jobid=2089). This job had 301903 
> files
> - After enabling debug I see the following error message when I click the job 
> files tab. This log is from /var/log/httpd/baculum-api-error.log. This log 
> showed me the actual reason why we cannot see the file list.
>
> [Tue May 26 20:59:31.159529 2020] [:error] [pid 11213] [client 
> 127.0.0.1:50964] PHP Fatal error:  Allowed memory size of 134217728 bytes 
> exhausted (tried to allocate 72 bytes) in 
> /usr/share/baculum/htdocs/protected/API/Class/Bconsole.php on line 168
>
> From /etc/php.ini I have seen the memory limit is set to 128 M, which is the 
> exact same amount on the error log (134217728 bytes / 1024 / 1024 = 128M).
> memory_limit = 128M
>
> I changed the memory limit to 1024M for testing and voila, I can now see the 
> list of files from Baculum for the mentioned jobs.
>
> Thank you very much for all your help!
>
> Kind regards,
>
> Yakup Kaya
>
>
> 
> From: Marcin Haba 
> Sent: Tuesday, May 26, 2020 6:21 PM
> To: Yakup Kaya
> Cc: bacula-users@lists.sourceforge.net; Markus Flaisch
> Subject: Re: [Bacula-users] Baculum job history, details page does not show 
> job files
>
> Hello Yakup,
>
> I am not able to reproduce this problem. Could I ask you about
> enabling debug on the API side in
>
> /usr/share/baculum/htdocs/protected/API/Config/api.conf
>
> (debug option in [api] section set to "1")
>
> and check if file list is visible in API debug file. If not, I propose
> to check bconsole command
>
> list files jobid=your_jobid
>
> Also checking web server logs might be useful.
>
> More information about debugging you can find in the console manual:
> https://www.bacula.org/9.6.x-manuals/en/console/Baculum_API_Web_GUI_Tools.html#SECTION0036
>
> Thanks in advance for your feedback.
>
> Best regards,
> Marcin Haba (gani)
>
> On Tue, 26 May 2020 at 15:15, Yakup Kaya  
> wrote:
> >
> > Hello everybody,
> >
> >
> > I am trying to see the job files on the details of a job, from the Job 
> > History page, on the Baculum interface. On the release notes, I see this 
> > functionality of job files tab is added at version 9.6.2. We are now using 
> > 9.6.3.
> >
> >
> > But it does not seem to be working, if there are too many files backed up.
> >
> >
> > For example:
> >
> >
> > One of my full backups has 100 files in it, and when I go to "Job History - 
> > Details (from Action column) - Job Files tab', I can see the files list.
> >
> > Another full backup has 301.903 files in it and when I go to "Job Files" 
> > tab, it waits for some time (about 7-8 seconds) and it says "No item result"
> >
> >
> > By the way, I can see the number of files from the Details page for the 
> > same job. Is there a limit for showing job files for a backup?
> >
> >
> > Operating system: CentOS Linux release 7.6.1810 (Core)
> >
> > Database used: PostgreSQL (version 9.2.24)
> >
> > Bacula version: 9.6.3-1
> >
> > Baculum version: 9.6.3-1
> >
> > Baculum API version: 9.6.3-1
> >
> > Authentication method for users: Oauth2
> >
> >
> > Thank you very much in advance. We have installed bacula and baculum via 
> > rpms, so it seems we do not have a config.out file. So I wrote the versions 
> > we used manually.
> >
> >
> > Kind regards,
> >
> >
> > Yakup Kaya
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
>
> --
> "Greater love hath no man than this, that a man lay down his life for
> his friends." Jesus Christ
>
> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
> za przyjaciół swoich." Jezus Chrystus



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

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


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum job history, details page does not show job files

2020-05-26 Thread Yakup Kaya
Hi Marcin,

Thank you very much for your reply. It seems like we are having problem because 
of the allocated memory size for PHP.

Here are my findings:

- Without enabling debug, I have been able to see the file list from bconsole 
with the command you provided (list files jobid=2089). This job had 301903 files
- After enabling debug I see the following error message when I click the job 
files tab. This log is from /var/log/httpd/baculum-api-error.log. This log 
showed me the actual reason why we cannot see the file list.

[Tue May 26 20:59:31.159529 2020] [:error] [pid 11213] [client 127.0.0.1:50964] 
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to 
allocate 72 bytes) in 
/usr/share/baculum/htdocs/protected/API/Class/Bconsole.php on line 168

>From /etc/php.ini I have seen the memory limit is set to 128 M, which is the 
>exact same amount on the error log (134217728 bytes / 1024 / 1024 = 128M).
memory_limit = 128M

I changed the memory limit to 1024M for testing and voila, I can now see the 
list of files from Baculum for the mentioned jobs.

Thank you very much for all your help!

Kind regards,

Yakup Kaya



From: Marcin Haba 
Sent: Tuesday, May 26, 2020 6:21 PM
To: Yakup Kaya
Cc: bacula-users@lists.sourceforge.net; Markus Flaisch
Subject: Re: [Bacula-users] Baculum job history, details page does not show job 
files

Hello Yakup,

I am not able to reproduce this problem. Could I ask you about
enabling debug on the API side in

/usr/share/baculum/htdocs/protected/API/Config/api.conf

(debug option in [api] section set to "1")

and check if file list is visible in API debug file. If not, I propose
to check bconsole command

list files jobid=your_jobid

Also checking web server logs might be useful.

More information about debugging you can find in the console manual:
https://www.bacula.org/9.6.x-manuals/en/console/Baculum_API_Web_GUI_Tools.html#SECTION0036

Thanks in advance for your feedback.

Best regards,
Marcin Haba (gani)

On Tue, 26 May 2020 at 15:15, Yakup Kaya  wrote:
>
> Hello everybody,
>
>
> I am trying to see the job files on the details of a job, from the Job 
> History page, on the Baculum interface. On the release notes, I see this 
> functionality of job files tab is added at version 9.6.2. We are now using 
> 9.6.3.
>
>
> But it does not seem to be working, if there are too many files backed up.
>
>
> For example:
>
>
> One of my full backups has 100 files in it, and when I go to "Job History - 
> Details (from Action column) - Job Files tab', I can see the files list.
>
> Another full backup has 301.903 files in it and when I go to "Job Files" tab, 
> it waits for some time (about 7-8 seconds) and it says "No item result"
>
>
> By the way, I can see the number of files from the Details page for the same 
> job. Is there a limit for showing job files for a backup?
>
>
> Operating system: CentOS Linux release 7.6.1810 (Core)
>
> Database used: PostgreSQL (version 9.2.24)
>
> Bacula version: 9.6.3-1
>
> Baculum version: 9.6.3-1
>
> Baculum API version: 9.6.3-1
>
> Authentication method for users: Oauth2
>
>
> Thank you very much in advance. We have installed bacula and baculum via 
> rpms, so it seems we do not have a config.out file. So I wrote the versions 
> we used manually.
>
>
> Kind regards,
>
>
> Yakup Kaya
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



--
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

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


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] PHP exception for restores after retention period

2020-05-26 Thread Yakup Kaya
Hello Marcin,

Thank you very much for your fast reply. And thank you very much for your time,

Then I assume that this is the default behavior for now. Would it be right to 
think that this maybe a feature planned, for future releases maybe?

Kind regards,

Yakup Kaya

From: Marcin Haba 
Sent: Tuesday, May 26, 2020 7:03 PM
To: Yakup Kaya
Cc: bacula-users@lists.sourceforge.net; Markus Flaisch
Subject: Re: [Bacula-users] PHP exception for restores after retention period

Hello Yakup,

This type of restore is not supported yet. To prepare restore Baculum
uses the Bacula Bvfs interface that uses Bvfs cache. If file records
for a job in the catalog are pruned then the Bvfs cache for those
records is removed as well.

Best regards,
Marcin Haba (gani)

On Tue, 26 May 2020 at 16:54, Yakup Kaya  wrote:
>
> Hi everybody,
>
>
> We have a problem that we cannot make a restore from the job history details, 
> if the retention period has passed for a job (and the file list is deleted), 
> or the file list is manually purged. But restore from bconsole still works 
> for that job id.
>
>
> When we try to restore with the restore wizard on Baculum, we get the 
> following exception from RestoreWizard PHP file. To reproduce the problem one 
> can just purge files for a job id as follows using bconsole, and try to 
> restore all files from the baculum interface fort that job. Or try to restore 
> with a job id, for which the retention time for deleting the file list has 
> already passed.
>
>
> *purge files jobid=1996;
>
>
> Here is the exception after running restore wizard from Baculum:
>
>
> -
>
> Prado\Exceptions\TPhpErrorException
> Description
>
> [Notice] Undefined variable: ret (@line 897 in file 
> /usr/share/baculum/htdocs/protected/Web/Pages/RestoreWizard.php).
> Source File
>
> /usr/share/baculum/htdocs/protected/Web/Pages/RestoreWizard.php (897)
>
> 0886:
> 0887: $ret = $this->getModule('api')->create(array('jobs', 
> 'restore'), $restore_props);
> 0888: $jobid = 
> $this->getModule('misc')->findJobIdStartedJob($ret->output);
> 0889: // Remove temporary BVFS table
> 0890: $this->getModule('api')->set(array('bvfs', 'cleanup'), 
> array('path' => $path));
> 0891: }
> 0892: $url_params = array();
> 0893: if (is_numeric($jobid)) {
> 0894: $url_params['jobid'] = $jobid;
> 0895: $this->goToPage('JobHistoryView', $url_params);
> 0896: } else {
> 0897: $this->RestoreError->Text = implode('', $ret->output);
> 0898: $this->show_error = true;
> 0899: }
> 0900: }
> 0901:
> 0902: /**
> 0903:  * Load restore jobs on the list.
> 0904:  *
> 0905:  * @return none
> 0906:  */
> 0907: private function loadRestoreJobs() {
> 0908: $restore_job_tasks = $this->getModule('api')->get(array('jobs', 
> 'resnames', '?type=R'))->output;
> 0909: $jobs = array();
>
> Stack Trace
>
> #0 /usr/share/baculum/htdocs/protected/Web/Pages/RestoreWizard.php(897): 
> Prado\PradoBase::phpErrorHandler(8, 'Undefined varia...', 
> '/usr/share/bacu...', 897, Array)
> #1 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/TComponent.php(1169):
>  RestoreWizard->wizardCompleted(Object(Prado\Web\UI\WebControls\TWizard), 
> Object(Prado\Web\UI\WebControls\TWizardNavigationEventParameter), 
> 'oncompletebutto...')
> #2 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/WebControls/TWizard.php(664):
>  Prado\TComponent->raiseEvent('OnCompleteButto...', 
> Object(Prado\Web\UI\WebControls\TWizard), 
> Object(Prado\Web\UI\WebControls\TWizardNavigationEventParameter))
> #3 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/WebControls/TWizard.php(1365):
>  
> Prado\Web\UI\WebControls\TWizard->onCompleteButtonClick(Object(Prado\Web\UI\WebControls\TWizardNavigationEventParameter))
> #4 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TControl.php(1470):
>  
> Prado\Web\UI\WebControls\TWizard->bubbleEvent(Object(Prado\Web\UI\WebControls\TLinkButton),
>  Object(Prado\Web\UI\TCommandEventParameter))
> #5 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/WebControls/TLinkButton.php(334):
>  
> Prado\Web\UI\TControl->raiseBubbleEvent(Object(Prado\Web\UI\WebControls\TLinkButton),
>  Object(Prado\Web\UI\TCommandEventParameter))
> #6 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/WebControls/TLinkButton.php(309):
>  
> Prado\Web\UI\WebControls\TLinkButton->onCommand(Object(Prado\Web\UI\TCommandEventParameter))
> #7 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TPage.php(947):
>  Prado\Web\UI\WebControls\TLinkButton->raisePostBackEvent('')
> #8 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TPage.php(273):
>  Prado\Web\UI\TPage->raisePostBackEvent()
> #9 
> 

Re: [Bacula-users] Update via rpm repository

2020-05-26 Thread Per Qvindesland via Bacula-users
Hi Luca

Have you tried adding in 
https://copr-be.cloud.fedoraproject.org/results/slaanesh/Bacula/epel-7-x86_64/ 

 to your repo server? I update all my instances with foreman/katello in this 
way.

Regards
Per



> On 26 May 2020, at 19:59, Luca De Rugeriis  wrote:
> 
> Hi Davide and thanks for chiming in!
> Configured with redhat satellite just means that we use satellite (a standard 
> for Redhat enterprise) to get software updates but it is the same as 
> configuring bacula repo with yum on a single host. 
> What I’d like to know is: how we can get say from bacula 9.6.3 to (say) 
> 9.6.4, since we are pointing at 9.6.3 repository...
> I couldn’t find much explanation reading the docs. Thanks!
> 
> Il giorno mar 26 mag 2020 alle 18:57 Davide Franco  > ha scritto:
> Hi Luca,
> 
> Can you elaborate a bit more what you mean by
> 
> - configured the repo with red hat satellite
> 
> Thanks for your feedback
> 
> Davide
> 
> On Tue, 26 May 2020 at 15:24, Luca De Rugeriis  > wrote:
> Hi, 
> does anyone know something about these repos? Or where may I ask? The just 
> get security updates maybe, and I have to change repo manually if I want to 
> upgrade bacula version?
> 
> Thanks!
> Luca
> 
> Il giorno mer 20 mag 2020 alle ore 15:57 Luca De Rugeriis 
> mailto:luca.deruger...@gmail.com>> ha scritto:
> Hi everyone, my first post here and thanks for the amazing software! 
> I just configured the community repo with Redhat Satellite and migrated to 
> the latest Bacula version.
> The URL I'm using for the repository contains a specific Bacula version 
> (9.6.3), what I'd like to accomplish is to have the software updating 
> automatically (like 9.6.4, 9.6.5, 9.7...) is that possible?
> 
> Thanks for your help,
> Luca
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/bacula-users 
> 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Update via rpm repository

2020-05-26 Thread Luca De Rugeriis
Hi Davide and thanks for chiming in!
Configured with redhat satellite just means that we use satellite (a
standard for Redhat enterprise) to get software updates but it is the same
as configuring bacula repo with yum on a single host.
What I’d like to know is: how we can get say from bacula 9.6.3 to (say)
9.6.4, since we are pointing at 9.6.3 repository...
I couldn’t find much explanation reading the docs. Thanks!

Il giorno mar 26 mag 2020 alle 18:57 Davide Franco  ha
scritto:

> Hi Luca,
>
> Can you elaborate a bit more what you mean by
>
> - configured the repo with red hat satellite
>
> Thanks for your feedback
>
> Davide
>
> On Tue, 26 May 2020 at 15:24, Luca De Rugeriis 
> wrote:
>
>> Hi,
>> does anyone know something about these repos? Or where may I ask? The
>> just get security updates maybe, and I have to change repo manually if I
>> want to upgrade bacula version?
>>
>> Thanks!
>> Luca
>>
>> Il giorno mer 20 mag 2020 alle ore 15:57 Luca De Rugeriis <
>> luca.deruger...@gmail.com> ha scritto:
>>
>>> Hi everyone, my first post here and thanks for the amazing software!
>>> I just configured the community repo with Redhat Satellite and migrated
>>> to the latest Bacula version.
>>> The URL I'm using for the repository contains a specific Bacula version
>>> (9.6.3), what I'd like to accomplish is to have the software updating
>>> automatically (like 9.6.4, 9.6.5, 9.7...) is that possible?
>>>
>>> Thanks for your help,
>>> Luca
>>>
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Recommendation for NAS Appliance that Supports Bacula Community

2020-05-26 Thread J W
I am looking for a NAS appliance that supports Bacula Community.

Use case is to back up a single server with 16 - 20 TB of storage. The
server has not been purchased yet. It will start out empty but could grow
to completely full over years.

Idea is to keep backups for about six months.

I want to run Bacula Director on the NAS rather than mounting the NAS
storage on the server and running Director on the server so that if
something goes wrong and overwrites everything on the server then it does
not overwrite the NAS as well.

Any suggestions? I have been looking at FREENAS, Synology, Qnap , and
ReadyNAS so far.

I already have a system that I set up to back up a server with 8 TB of
space. I made it from an old Xeon workstation. I put 4 x 16 tb drives in it
set up as a ZFS mirrored pool with Centos 7 to give ~ 30 TB of space and
running Bacula 9.44. I do one full backup/month. It gives about 4 months
worth of backups.

I do not want to do a larger version of this because this backup system
will be installed across the country so it needs to be a little more
turnkey so the people there can set it up. After that then I can manage it
remotely.
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] PHP exception for restores after retention period

2020-05-26 Thread Marcin Haba
Hello Yakup,

This type of restore is not supported yet. To prepare restore Baculum
uses the Bacula Bvfs interface that uses Bvfs cache. If file records
for a job in the catalog are pruned then the Bvfs cache for those
records is removed as well.

Best regards,
Marcin Haba (gani)

On Tue, 26 May 2020 at 16:54, Yakup Kaya  wrote:
>
> Hi everybody,
>
>
> We have a problem that we cannot make a restore from the job history details, 
> if the retention period has passed for a job (and the file list is deleted), 
> or the file list is manually purged. But restore from bconsole still works 
> for that job id.
>
>
> When we try to restore with the restore wizard on Baculum, we get the 
> following exception from RestoreWizard PHP file. To reproduce the problem one 
> can just purge files for a job id as follows using bconsole, and try to 
> restore all files from the baculum interface fort that job. Or try to restore 
> with a job id, for which the retention time for deleting the file list has 
> already passed.
>
>
> *purge files jobid=1996;
>
>
> Here is the exception after running restore wizard from Baculum:
>
>
> -
>
> Prado\Exceptions\TPhpErrorException
> Description
>
> [Notice] Undefined variable: ret (@line 897 in file 
> /usr/share/baculum/htdocs/protected/Web/Pages/RestoreWizard.php).
> Source File
>
> /usr/share/baculum/htdocs/protected/Web/Pages/RestoreWizard.php (897)
>
> 0886:
> 0887: $ret = $this->getModule('api')->create(array('jobs', 
> 'restore'), $restore_props);
> 0888: $jobid = 
> $this->getModule('misc')->findJobIdStartedJob($ret->output);
> 0889: // Remove temporary BVFS table
> 0890: $this->getModule('api')->set(array('bvfs', 'cleanup'), 
> array('path' => $path));
> 0891: }
> 0892: $url_params = array();
> 0893: if (is_numeric($jobid)) {
> 0894: $url_params['jobid'] = $jobid;
> 0895: $this->goToPage('JobHistoryView', $url_params);
> 0896: } else {
> 0897: $this->RestoreError->Text = implode('', $ret->output);
> 0898: $this->show_error = true;
> 0899: }
> 0900: }
> 0901:
> 0902: /**
> 0903:  * Load restore jobs on the list.
> 0904:  *
> 0905:  * @return none
> 0906:  */
> 0907: private function loadRestoreJobs() {
> 0908: $restore_job_tasks = $this->getModule('api')->get(array('jobs', 
> 'resnames', '?type=R'))->output;
> 0909: $jobs = array();
>
> Stack Trace
>
> #0 /usr/share/baculum/htdocs/protected/Web/Pages/RestoreWizard.php(897): 
> Prado\PradoBase::phpErrorHandler(8, 'Undefined varia...', 
> '/usr/share/bacu...', 897, Array)
> #1 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/TComponent.php(1169):
>  RestoreWizard->wizardCompleted(Object(Prado\Web\UI\WebControls\TWizard), 
> Object(Prado\Web\UI\WebControls\TWizardNavigationEventParameter), 
> 'oncompletebutto...')
> #2 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/WebControls/TWizard.php(664):
>  Prado\TComponent->raiseEvent('OnCompleteButto...', 
> Object(Prado\Web\UI\WebControls\TWizard), 
> Object(Prado\Web\UI\WebControls\TWizardNavigationEventParameter))
> #3 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/WebControls/TWizard.php(1365):
>  
> Prado\Web\UI\WebControls\TWizard->onCompleteButtonClick(Object(Prado\Web\UI\WebControls\TWizardNavigationEventParameter))
> #4 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TControl.php(1470):
>  
> Prado\Web\UI\WebControls\TWizard->bubbleEvent(Object(Prado\Web\UI\WebControls\TLinkButton),
>  Object(Prado\Web\UI\TCommandEventParameter))
> #5 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/WebControls/TLinkButton.php(334):
>  
> Prado\Web\UI\TControl->raiseBubbleEvent(Object(Prado\Web\UI\WebControls\TLinkButton),
>  Object(Prado\Web\UI\TCommandEventParameter))
> #6 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/WebControls/TLinkButton.php(309):
>  
> Prado\Web\UI\WebControls\TLinkButton->onCommand(Object(Prado\Web\UI\TCommandEventParameter))
> #7 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TPage.php(947):
>  Prado\Web\UI\WebControls\TLinkButton->raisePostBackEvent('')
> #8 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TPage.php(273):
>  Prado\Web\UI\TPage->raisePostBackEvent()
> #9 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TPage.php(205):
>  Prado\Web\UI\TPage->processPostBackRequest(Object(Prado\Web\UI\THtmlWriter))
> #10 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/Services/TPageService.php(528):
>  Prado\Web\UI\TPage->run(Object(Prado\Web\UI\THtmlWriter))
> #11 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/Services/TPageService.php(465):
>  Prado\Web\Services\TPageService->runPage(Object(RestoreWizard), Array)
> #12 
> 

Re: [Bacula-users] Update via rpm repository

2020-05-26 Thread Davide Franco
Hi Luca,

Can you elaborate a bit more what you mean by

- configured the repo with red hat satellite

Thanks for your feedback

Davide

On Tue, 26 May 2020 at 15:24, Luca De Rugeriis 
wrote:

> Hi,
> does anyone know something about these repos? Or where may I ask? The just
> get security updates maybe, and I have to change repo manually if I want to
> upgrade bacula version?
>
> Thanks!
> Luca
>
> Il giorno mer 20 mag 2020 alle ore 15:57 Luca De Rugeriis <
> luca.deruger...@gmail.com> ha scritto:
>
>> Hi everyone, my first post here and thanks for the amazing software!
>> I just configured the community repo with Redhat Satellite and migrated
>> to the latest Bacula version.
>> The URL I'm using for the repository contains a specific Bacula version
>> (9.6.3), what I'd like to accomplish is to have the software updating
>> automatically (like 9.6.4, 9.6.5, 9.7...) is that possible?
>>
>> Thanks for your help,
>> Luca
>>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum job history, details page does not show job files

2020-05-26 Thread Marcin Haba
Hello Yakup,

I am not able to reproduce this problem. Could I ask you about
enabling debug on the API side in

/usr/share/baculum/htdocs/protected/API/Config/api.conf

(debug option in [api] section set to "1")

and check if file list is visible in API debug file. If not, I propose
to check bconsole command

list files jobid=your_jobid

Also checking web server logs might be useful.

More information about debugging you can find in the console manual:
https://www.bacula.org/9.6.x-manuals/en/console/Baculum_API_Web_GUI_Tools.html#SECTION0036

Thanks in advance for your feedback.

Best regards,
Marcin Haba (gani)

On Tue, 26 May 2020 at 15:15, Yakup Kaya  wrote:
>
> Hello everybody,
>
>
> I am trying to see the job files on the details of a job, from the Job 
> History page, on the Baculum interface. On the release notes, I see this 
> functionality of job files tab is added at version 9.6.2. We are now using 
> 9.6.3.
>
>
> But it does not seem to be working, if there are too many files backed up.
>
>
> For example:
>
>
> One of my full backups has 100 files in it, and when I go to "Job History - 
> Details (from Action column) - Job Files tab', I can see the files list.
>
> Another full backup has 301.903 files in it and when I go to "Job Files" tab, 
> it waits for some time (about 7-8 seconds) and it says "No item result"
>
>
> By the way, I can see the number of files from the Details page for the same 
> job. Is there a limit for showing job files for a backup?
>
>
> Operating system: CentOS Linux release 7.6.1810 (Core)
>
> Database used: PostgreSQL (version 9.2.24)
>
> Bacula version: 9.6.3-1
>
> Baculum version: 9.6.3-1
>
> Baculum API version: 9.6.3-1
>
> Authentication method for users: Oauth2
>
>
> Thank you very much in advance. We have installed bacula and baculum via 
> rpms, so it seems we do not have a config.out file. So I wrote the versions 
> we used manually.
>
>
> Kind regards,
>
>
> Yakup Kaya
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

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


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] PHP exception for restores after retention period

2020-05-26 Thread Yakup Kaya
Hi everybody,


We have a problem that we cannot make a restore from the job history details, 
if the retention period has passed for a job (and the file list is deleted), or 
the file list is manually purged. But restore from bconsole still works for 
that job id.


When we try to restore with the restore wizard on Baculum, we get the following 
exception from RestoreWizard PHP file. To reproduce the problem one can just 
purge files for a job id as follows using bconsole, and try to restore all 
files from the baculum interface fort that job. Or try to restore with a job 
id, for which the retention time for deleting the file list has already passed.


*purge files jobid=1996;


Here is the exception after running restore wizard from Baculum:


-

Prado\Exceptions\TPhpErrorException
Description

[Notice] Undefined variable: ret (@line 897 in file 
/usr/share/baculum/htdocs/protected/Web/Pages/RestoreWizard.php).
Source File

/usr/share/baculum/htdocs/protected/Web/Pages/RestoreWizard.php (897)

0886:
0887: $ret = $this->getModule('api')->create(array('jobs', 
'restore'), $restore_props);
0888: $jobid = 
$this->getModule('misc')->findJobIdStartedJob($ret->output);
0889: // Remove temporary BVFS table
0890: $this->getModule('api')->set(array('bvfs', 'cleanup'), 
array('path' => $path));
0891: }
0892: $url_params = array();
0893: if (is_numeric($jobid)) {
0894: $url_params['jobid'] = $jobid;
0895: $this->goToPage('JobHistoryView', $url_params);
0896: } else {
0897: $this->RestoreError->Text = implode('', $ret->output);
0898: $this->show_error = true;
0899: }
0900: }
0901:
0902: /**
0903:  * Load restore jobs on the list.
0904:  *
0905:  * @return none
0906:  */
0907: private function loadRestoreJobs() {
0908: $restore_job_tasks = $this->getModule('api')->get(array('jobs', 
'resnames', '?type=R'))->output;
0909: $jobs = array();

Stack Trace

#0 /usr/share/baculum/htdocs/protected/Web/Pages/RestoreWizard.php(897): 
Prado\PradoBase::phpErrorHandler(8, 'Undefined varia...', '/usr/share/bacu...', 
897, Array)
#1 
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/TComponent.php(1169):
 RestoreWizard->wizardCompleted(Object(Prado\Web\UI\WebControls\TWizard), 
Object(Prado\Web\UI\WebControls\TWizardNavigationEventParameter), 
'oncompletebutto...')
#2 
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/WebControls/TWizard.php(664):
 Prado\TComponent->raiseEvent('OnCompleteButto...', 
Object(Prado\Web\UI\WebControls\TWizard), 
Object(Prado\Web\UI\WebControls\TWizardNavigationEventParameter))
#3 
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/WebControls/TWizard.php(1365):
 
Prado\Web\UI\WebControls\TWizard->onCompleteButtonClick(Object(Prado\Web\UI\WebControls\TWizardNavigationEventParameter))
#4 
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TControl.php(1470):
 
Prado\Web\UI\WebControls\TWizard->bubbleEvent(Object(Prado\Web\UI\WebControls\TLinkButton),
 Object(Prado\Web\UI\TCommandEventParameter))
#5 
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/WebControls/TLinkButton.php(334):
 
Prado\Web\UI\TControl->raiseBubbleEvent(Object(Prado\Web\UI\WebControls\TLinkButton),
 Object(Prado\Web\UI\TCommandEventParameter))
#6 
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/WebControls/TLinkButton.php(309):
 
Prado\Web\UI\WebControls\TLinkButton->onCommand(Object(Prado\Web\UI\TCommandEventParameter))
#7 
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TPage.php(947):
 Prado\Web\UI\WebControls\TLinkButton->raisePostBackEvent('')
#8 
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TPage.php(273):
 Prado\Web\UI\TPage->raisePostBackEvent()
#9 
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TPage.php(205):
 Prado\Web\UI\TPage->processPostBackRequest(Object(Prado\Web\UI\THtmlWriter))
#10 
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/Services/TPageService.php(528):
 Prado\Web\UI\TPage->run(Object(Prado\Web\UI\THtmlWriter))
#11 
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/Services/TPageService.php(465):
 Prado\Web\Services\TPageService->runPage(Object(RestoreWizard), Array)
#12 
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/TApplication.php(1190):
 Prado\Web\Services\TPageService->run()
#13 
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/TApplication.php(382):
 Prado\TApplication->runService()
#14 /usr/share/baculum/htdocs/index.php(31): Prado\TApplication->run()
#15 {main}



Details of the Bacula/Baculum installation:


Operating system: CentOS Linux release 7.6.1810 (Core)

Database used: PostgreSQL (version 9.2.24)

Bacula version: 9.6.3-1

Baculum version: 9.6.3-1

Re: [Bacula-users] Update via rpm repository

2020-05-26 Thread Luca De Rugeriis
Hi,
does anyone know something about these repos? Or where may I ask? The just
get security updates maybe, and I have to change repo manually if I want to
upgrade bacula version?

Thanks!
Luca

Il giorno mer 20 mag 2020 alle ore 15:57 Luca De Rugeriis <
luca.deruger...@gmail.com> ha scritto:

> Hi everyone, my first post here and thanks for the amazing software!
> I just configured the community repo with Redhat Satellite and migrated to
> the latest Bacula version.
> The URL I'm using for the repository contains a specific Bacula version
> (9.6.3), what I'd like to accomplish is to have the software updating
> automatically (like 9.6.4, 9.6.5, 9.7...) is that possible?
>
> Thanks for your help,
> Luca
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Baculum job history, details page does not show job files

2020-05-26 Thread Yakup Kaya
Hello everybody,


I am trying to see the job files on the details of a job, from the Job History 
page, on the Baculum interface. On the release notes, I see this functionality 
of job files tab is added at version 9.6.2. We are now using 9.6.3.


But it does not seem to be working, if there are too many files backed up.


For example:


One of my full backups has 100 files in it, and when I go to "Job History - 
Details (from Action column) - Job Files tab', I can see the files list.

Another full backup has 301.903 files in it and when I go to "Job Files" tab, 
it waits for some time (about 7-8 seconds) and it says "No item result"


By the way, I can see the number of files from the Details page for the same 
job. Is there a limit for showing job files for a backup?


Operating system: CentOS Linux release 7.6.1810 (Core)

Database used: PostgreSQL (version 9.2.24)

Bacula version: 9.6.3-1

Baculum version: 9.6.3-1

Baculum API version: 9.6.3-1

Authentication method for users: Oauth2


Thank you very much in advance. We have installed bacula and baculum via rpms, 
so it seems we do not have a config.out file. So I wrote the versions we used 
manually.


Kind regards,


Yakup Kaya
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula database is corrupt (Postgres)

2020-05-26 Thread Nico De Ranter
Thanks !

Nico

On Sat, May 23, 2020 at 9:32 PM Pierre Bernhardt 
wrote:

> Hi,
>
> if you want to restore the database best solution from my point of view
> is:
>
> 1. Clean Database by dropping it,
> 2. Initialise Database by creating new one
> 3. Restore latest pg_dump file
> 4. bscan -m -s of all newer tapes which should fill the database with newer
> backups.
>
> Theses are the steps which I did it in the past and which are gave a
> solution for me.
>
> Cheers,
> Pierre
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 

Nico De Ranter

Operations Engineer

T. +32 16 38 72 10







eSATURNUS
Philipssite 5, D, box 28
3001 Leuven – Belgium

T. +32 16 40 12 82
F. +32 16 40 84 77
www.esaturnus.com



*For Service & Support :*

Support Line Belgium: +32 2 2009897

Support Line International: +44 12 56 68 38 78

Or via email : medical.services...@sony.com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users