Re: [Bacula-users] Help with configuration

2023-03-13 Thread Bill Arlofski via Bacula-users

On 3/6/23 11:08, Don Hammer wrote:


Hello Don, sorry for my delay and thank you for the information you provided.

OK, going back a bit.

You Jobs are asking for a new volume:
8<
harorbu01-sd JobId 299: Job Spice01.2023-03-05_02.00.01_38 is waiting.  Cannot 
find any appendable volumes.
8<

This is because your `status slots` shows all of your volumes in the tape library are either marked 
"Full" or "Used."

Volumes in these two states are not eligible to be used in a backup job by 
Bacula.

Please show your media. In bconsole, please do:

* @tall /tmp/listmedia.txt  (opens a log file so this does not wrap in 
email)
* list media
* @tall (with no filename closes log file)

Then, please attach that `/tmp/listmedia.txt` file to your next reply.
You might as well show us your Pool configurations too


The last column 'expiresin' (written in seconds) will tell you when each of 
these volumes will become eligible to be pruned
,
recycled, purged, and re-used.

It is most likely that a combination of the `MaximumVolumeSize` (this has been 
deprecated in favor of `MaximumVolumeBytes,
btw) settings on your tape device(s), and your Pool `VolumeRetention` periods 
are not working together the way you
want/need/expect.


If the `VolumeRetention` settings in your Pools have been modified after these 
volumes were labeled, then you will need to
update the Volumes so that they inherit the new `VolumeRetention` settings in 
your pools. In bconsole, please do:

* reload(not necessary if you have recently 
reloaded/restarted the DIR)
* update pool=  (do this for each pool you have edited)
* update volume fromallpools

But, you can see the volumes' settings before running that `update volume` 
command and then again after running it to verify
the volumes have the correct retention time after the update by doing:

* ll volume=   (Run this against each volume before and
after. We don't need to see these before and after outputs)


Best regards,
Bill

--
Bill Arlofski
w...@protonmail.com



signature.asc
Description: OpenPGP digital signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum 401 Unauthorized

2023-03-13 Thread Adam Weremczuk

It worked, thank you Marcin.

On 09/03/2023 19:13, Marcin Haba wrote:

Hello Adam,

Thanks for your detailed report.

Described behavior is not dangerous but I agree that it is not too 
natural. It will be fixed in the next release.


For now if you want you can try a patch. I am sending it in attachment. 
It should help for this problem.


Best regards,
Marcin Haba (gani)

On Tue, 7 Mar 2023 at 14:36, Adam Weremczuk > wrote:


Hi all,

Bacula 9.6.7
Baculum 9.6.6
Debian 11.6

It installed and configured fine:

- Catalog API
- Console API
- Config API
- Actions (start, stop restart Bacula services): skipped
- Custom SSL cert added for ports 9095 and 9096

Bacula and Bacula Web seem to be working fine (backups, restores, tape
management, listings etc.).

I've noticed though bursts of 8 x 401 errors
/var/log/apache2/baculum-api-access.log happening every minute, e.g:

192.168.x.x - - [06/Mar/2023:16:35:09 +] "GET
/api/v1/pools?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"
192.168.x.x - - [06/Mar/2023:16:35:09 +] "GET
/api/v1/jobs/totals?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"
192.168.x.x - - [06/Mar/2023:16:35:09 +] "GET
/api/v1/dbsize?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"
192.168.x.x - - [06/Mar/2023:16:36:09 +] "GET
/api/v1/jobs?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"
192.168.x.x - - [06/Mar/2023:16:36:09 +] "GET
/api/v1/jobs/?jobstatus=CR=bacula-dir HTTP/1.1" 401 3597
"-" "-"
192.168.x.x - - [06/Mar/2023:16:36:09 +] "GET
/api/v1/clients?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"
192.168.x.x - - [06/Mar/2023:16:36:09 +] "GET
/api/v1/pools?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"

192.168.x.x is the IP of Bacula director.

No clues in error logs from the same day:

cat /var/log/apache2/error.log.1
[Mon Mar 06 00:00:01.618268 2023] [mpm_prefork:notice] [pid 1881723]
AH00163: Apache/2.4.54 (Debian) OpenSSL/1.1.1n configured -- resuming
normal operations
[Mon Mar 06 00:00:01.618291 2023] [core:notice] [pid 1881723] AH00094:
Command line: '/usr/sbin/apache2'
[Tue Mar 07 00:00:02.124967 2023] [mpm_prefork:notice] [pid 1881723]
AH00171: Graceful restart requested, doing restart

cat /var/log/apache2/baculum-api-error.log.1
[Mon Mar 06 00:00:01.618032 2023] [ssl:warn] [pid 1881723] AH01909:
localhost:443:0 server certificate does NOT include an ID which matches
the server name

cat /var/log/apache2/baculum-web-error.log.1
[Mon Mar 06 00:00:01.617261 2023] [ssl:warn] [pid 1881723] AH01909:
localhost:443:0 server certificate does NOT include an ID which matches
the server name


Daily AIDE log digest gives me this:

   - httpd Begin 

   64.55 MB transferred in 12133 responses  (1xx 0, 2xx 6639, 3xx 6,
4xx
5488, 5xx 0)
          7 Images (0.03 MB),
       3553 Content pages (15.71 MB),
       8573 Other (48.81 MB)

   Requests with error response codes
      400 Bad Request
         /: 2 Time(s)
      401 Unauthorized
         /api/v1/jobs/?jobstatus=CR=bacula-dir: 869 Time(s)
         /api/v1/clients?director=bacula-dir: 823 Time(s)
         /api/v1/jobs?director=bacula-dir: 817 Time(s)
         /api/v1/dbsize?director=bacula-dir: 812 Time(s)
         /api/v1/jobs/totals?director=bacula-dir: 812 Time(s)
         /api/v1/pools?director=bacula-dir: 812 Time(s)
         /api/v1/status/client/?name=client1-fd= ...
ector=bacula-dir: 148 Time(s)
         /api/v1/clients/4?director=bacula-dir: 74 Time(s)
         /api/v1/jobs/?name=restore=15000=bacula-dir: 50
Time(s)
         /api/v1/joblog/64/?show_time=0=bacula-dir: 43 Time(s)
         /api/v1/jobs/64?director=bacula-dir: 42 Time(s)
         /api/v1/config?director=bacula-dir: 19 Time(s)
(...)

What authorization is missing and how to fix it?

Regards,
Adam


___
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] Baculum 11.6 Adding new section block or File/Dir Field error

2023-03-13 Thread Lionel PLASSE
Ok thanks,


PLASSE Lionel | Administrateur systèmes et réseaux 
221 Allée de Fétan
01600 TREVOUX | 
https://www.google.fr/maps/place/221+Allée+de+Fétan,+01600+Trévoux/@45.9445028,4.7581844,17z/data=!4m13!1m7!3m6!1s0x47f4906e98463259:0x32e33a7755284538!2zMjEyIEFsbMOpZSBkZSBGw6l0YW4sIDAxNjAwIFRyw6l2b3V4!3b1!8m2!3d45.9444281!4d4.7578088!3m4!1s0x47f4906e98463259:0x32e33a7755284538!8m2!3d45.9444281!4d4.7578088?hl=fr
Tel : 04.37.49.91.39
pla...@cofiem.fr
https://www.cofiem.fr/ | https://www.cofiem-robotics.fr/

 



De : Marcin Haba  
Envoyé : vendredi 10 mars 2023 19:54
À : Lionel PLASSE 
Cc : bacula-users 
Objet : Re: [Bacula-users] Baculum 11.6 Adding new section block or File/Dir 
Field error

Hello Lionel,

This is a bug that is fixed in Branch-13.0 starting from version 13.0.0.

https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/commit/b706fe1929ae5655eb0899392101f93713e4dffc

Best regards,
Marcin Haba (gani)

On Fri, 10 Mar 2023 at 10:16, Lionel PLASSE  wrote:
Hello,

I'm testing baculum 11.6 with Bacula 13.0.1 on Debian bullseye , php v 8.2.3 , 
mysql Ver 15.1 Distrib 10.10.3-MariaDB, apache2  

All works good except when I want to add an  option block  or include/exlude 
block in a fileset or add a new single file/directory
  it always focus on the last current field or block and don't create new 
fields or blocks

It is the same in job section when adding a runscript block

In firefox (but don't works on edge/chromium too)
TypeError with message "method_exists(): Argument #1 ($object_or_class) must be 
of type object|string, null given" in 
/usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveControlTemplate.php(37)
Stack trace:
  #0 
/usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveControlTemplate.php(37):
 undefined->method_exists()
  #1 
/usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveTemplate.php(108): 
DirectiveControlTemplate->getCmdParam()
  #2 
/usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveTemplate.php(190): 
DirectiveTemplate->saveValue()
  #3 /usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveTextBox.php(46): 
DirectiveTemplate->getDirectiveValue()
  #4 
/usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveRenderer.php(129): 
DirectiveTextBox->createDirective()
  #5 
/usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveRenderer.php(88): 
DirectiveRenderer->createItem()
  #6 
/usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveRenderer.php(82): 
DirectiveRenderer->createItemInternal()
  #7 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1681):
 DirectiveRenderer->loadState()
  #8 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1250):
 Prado\Web\UI\TControl->loadStateRecursive()
  #9 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControlCollection.php(65):
 Prado\Web\UI\TControl->addedControl()
  #10 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Collections/TList.php(144):
 Prado\Web\UI\TControlCollection->insertAt()
  #11 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/WebControls/TRepeater.php(473):
 Prado\Collections\TList->add()
  #12 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/WebControls/TRepeater.php(637):
 Prado\Web\UI\WebControls\TRepeater->createItemInternal()
  #13 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/WebControls/TRepeater.php(606):
 Prado\Web\UI\WebControls\TRepeater->restoreItemsFromViewState()
  #14 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControlAdapter.php(71):
 Prado\Web\UI\WebControls\TRepeater->loadState()
  #15 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1679):
 Prado\Web\UI\TControlAdapter->loadState()
  #16 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
 Prado\Web\UI\TControl->loadStateRecursive()
  #17 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
 Prado\Web\UI\TControl->loadStateRecursive()
  #18 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
 Prado\Web\UI\TControl->loadStateRecursive()
  #19 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
 Prado\Web\UI\TControl->loadStateRecursive()
  #20 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
 Prado\Web\UI\TControl->loadStateRecursive()
  #21 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
 Prado\Web\UI\TControl->loadStateRecursive()
  #22 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TPage.php(794):
 Prado\Web\UI\TControl->loadStateRecursive()
  #23