Hello Neil, >From your description it looks that Bacularis works with the mtx-changer script well.
For labeling volumes, as it is action realized by Bacula SD, so I think, it might be good to check if the mtx-changer script is capable of being correctly executed by the bacula user. For test I would propose to try this command: # sudo -u bacula /etc/bacula/scripts/mtx-changer /dev/pass1 slots and also a good test could be trying to label a sample volume using bconsole. Best regards, Marcin Haba (gani) On Tue, 9 Apr 2024 at 20:30, Rob Gerber <r...@craeon.net> wrote: > What happens when you click 'update slots' on the volumes page, and tell > it to update slots 1-24? Idk if this is relevant, but perhaps it is. Should > update bacula's knowledge of what is in the library, as per mtx. The output > once you click that button and tell it to update slots 1-24 should show > that it knew about every tape's position in various slots in the library. > If it says anything about updating a record to reflect a tape being in a > certain slot, then its knowledge was incorrect and has been corrected. > > Robert Gerber > 402-237-8692 > r...@craeon.net > > On Tue, Apr 9, 2024, 1:14 PM Neil Balchin <n...@neilandjo.com> wrote: > >> Ok Great, that solves that problem >> >> I’m almost there >> >> I’m using a Dell TL2000 Tape library and a HH LTO7 drive >> >> I’ve added these to my bacula-sd ( configs pasted below). Also added the >> Autochanger and Drives to the API device list >> >> From the API gui. It’s clearly running the slots and status commands >> properly. Because it shows the 19 tapes with barcodes , however when I try >> to label these tapes from the volumes page it reports Zero slots >> >> Autochanger { >> >> Name = "TL2000" >> >> Device = "HH-LTO7" >> >> ChangerDevice = "/dev/pass1" >> >> ChangerCommand = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d" >> >> } >> >> >> Device { >> >> Name = "HH-LTO7" >> >> MediaType = "LTO-7" >> >> ArchiveDevice = "/dev/sa0" >> >> HardwareEndOfMedium = no >> >> BackwardSpaceRecord = no >> >> BsfAtEom = yes >> >> TwoEof = yes >> >> FastForwardSpaceFile = yes >> >> RemovableMedia = yes >> >> RandomAccess = no >> >> AutomaticMount = yes >> >> AlwaysOpen = yes >> >> Autochanger = yes >> >> ControlDevice = "/dev/pass1" >> >> AlertCommand = "/usr/local/share/bacula/tapealert %l" >> >> } >> >> >> I can run mt and mtx commands freely from the command line as both the >> bacula user and www user so I think my /dev/ permissions are ok >> >> >> >> >> >> >> On 9 Apr 2024, at 09:39, Marcin Haba <ganius...@gmail.com> wrote: >> >> Hello Neil, >> >> Great to hear that you were able to set up the Bacularis instance. >> >> This error that you see is because in the php.ini file on FreeBSD by >> default is error reporting set to display all errors. To fix this error you >> need to edit php.ini file: >> >> /usr/local/etc/php.ini >> >> and change error reporting line from this: >> >> error_reporting = E_ALL >> >> into this one: >> >> error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT >> >> At the end you need to restart PHP. >> >> Best regards, >> Marcin Haba (gani) >> >> On Tue, 9 Apr 2024 at 15:22, Neil Balchin <n...@neilandjo.com> wrote: >> >>> Thanks so much, >>> >>> >>> I got a little further along my path >>> >>> The Bacularis web guide is up and running >>> >>> I’ve configured my web server user (www) to have appropriate file >>> permissions for the bacula config files and directories and added the sudo >>> permissions for the necessary binaries >>> >>> I think I’m missing something in my server setup because >>> >>> I get this error when I try to config anything: >>> >>> >>> >>> Error 1000 - Internal error. [Unknown Error] substr(): Passing null to >>> parameter #1 ($string) of type string is deprecated (@line 232 in file >>> /usr/local/www/bacularis/protected/vendor/pradosoft/prado/framework/Data/Common/Pgsql/TPgsqlMetaData.php). >>> >>> >>> >>> On 8 Apr 2024, at 23:35, Marcin Haba <ganius...@gmail.com> wrote: >>> >>> Hello Neil, >>> >>> I have checked installing Bacularis on FreeBSD and I have one more note. >>> >>> By default in Apache is used PHP as Apache module. If you want to use it >>> this way, it is fine. Nothing else to do. If you will need to use PHP >>> through PHP-FPM, then you need to do a few changes in your httpd.conf to >>> disable the Apache PHP module and enable PHP-FPM. >>> >>> First, you need to disable/comment the MPM Prefork module and libphp: >>> >>> #LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so >>> #LoadModule php_module libexec/apache24/libphp.so >>> >>> and enable/uncomment these modules: >>> >>> LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so >>> LoadModule proxy_module libexec/apache24/mod_proxy.so >>> LoadModule proxy_fcgi_module libexec/apache24/mod_proxy_fcgi.so >>> >>> Then you need to add these lines to the same httpd.conf: >>> >>> <FilesMatch "\.php$"> >>> SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 >>> <If "-f %{REQUEST_FILENAME}"> >>> SetHandler "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost/" >>> </If> >>> </FilesMatch> >>> >>> At the end in /usr/local/etc/php-fpm.d/www.conf you need to set >>> permissions for PHP-FPM unix socket: >>> >>> listen.owner = www >>> listen.group = www >>> listen.mode = 0660 >>> >>> and restart the services: >>> >>> # service php-fpm restart >>> # service apache24 restart >>> >>> Best regards, >>> Marcin Haba (gani) >>> >>> On Tue, 9 Apr 2024 at 04:54, Marcin Haba <ganius...@gmail.com> wrote: >>> >>>> Hello Neil, >>>> >>>> Thanks for your feedback with installing Bacularis on FreeBSD. >>>> >>>> It looks that in your environment this script uses the default FreeBSD >>>> shell /bin/sh (or any other) that does not support arrays. >>>> >>>> This is the Bash script so to use it you need to install Bash: >>>> >>>> # pkg install bash >>>> >>>> After that you need to update shebang in the install.sh script to: >>>> >>>> #!/usr/local/bin/bash >>>> >>>> Once it is done, it should start working well. In case problems, please >>>> let us know. >>>> >>>> Good luck! >>>> >>>> Best regards, >>>> Marcin Haba (gani) >>>> >>>> On Tue, 9 Apr 2024 at 02:38, Neil Balchin <n...@neilandjo.com> wrote: >>>> >>>>> I’ve installed Bacula in a Freebsd Jail and all is well, Also >>>>> installed Apache24, and the requisite php mods to run bacularis. >>>>> >>>>> I’ve followed the manual instructions to the letter but when I get to >>>>> the install.sh step I get this error output : >>>>> >>>>> root@Bacula1:/usr/local/www/bacularis/protected/tools # sh >>>>> ./install.sh -p /tmp/php-fpm.sock >>>>> >>>>> +===================================================+ >>>>> | Welcome in the Bacularis install script | >>>>> +---------------------------------------------------+ >>>>> | This script will help you to adjust privileges | >>>>> | for Bacularis files and it will prepare | >>>>> | configuration files for popular web servers. | >>>>> +---------------------------------------------------+ >>>>> >>>>> >>>>> ./install.sh: 34: Syntax error: word unexpected (expecting ")") >>>>> root@Bacula1:/usr/local/www/bacularis/protected/tools # >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>> >>> >>> >> >> -- >> >> "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 >> > -- "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