Hello Jose,

Thanks for providing those outputs.

I was able to reproduce the issue. It is a bug. It will be fixed in
the new release.

Thanks for reporting this problem here. This way Baculum becomes better.

Best regards,
Marcin Haba (gani)

On Mon, 2 Dec 2019 at 16:12, Jose Alberto <j.se...@gmail.com> wrote:
>
> show storage=MSL4048
> Autochanger: name=MSL4048 address=10.30.2.5 SDport=9103 MaxJobs=4 NumJobs=0
>       DeviceName=Hp4048 MediaType=LTO5 StorageId=6 Autochanger=1
>       AC group=6 ShareStore=*none*
>
> bsdjson -r Autochanger
> [
> {
>   "Autochanger": {
>     "Name": "Hp6000",
>     "Device": ["Drive-4", "Drive-5"],
>     "ChangerDevice": "/dev/tape/by-id/scsi-200900de6054a5000",
>     "ChangerCommand": "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
>   }
> },
> {
>   "Autochanger": {
>     "Name": "Hp6060",
>     "Device": ["Drive-2", "Drive-3"],
>     "ChangerDevice": "/dev/tape/by-id/scsi-200900d0627492000",
>     "ChangerCommand": "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
>   }
> },
> {
>   "Autochanger": {
>     "Name": "StorageWorks",
>     "Device": ["Drive-0", "Drive-1"],
>     "ChangerDevice": "/dev/tape/by-id/scsi-3500143800767b7fa",
>     "ChangerCommand": "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
>   }
> }
> ]
>
>
> Remember that my other SD is on another computer.
>
>
>
>
>
> On Tue, Nov 26, 2019 at 5:18 PM Marcin Haba <ganius...@gmail.com> wrote:
>>
>> Hello Jose,
>>
>> Thanks for providing this error message.
>>
>> Could I ask you about showing output from:
>>
>> 1) bconsole command:
>> show storage="STORAGE_NAME"
>>
>> where: STORAGE_NAME is your autochanger name on which you click in
>> Baculum and then this error occurs.
>>
>> 2) bsdjson program:
>> bsdjson -r Autochanger -n "AUTOCHANGER_NAME"
>>
>> where: AUTOCHANGER_NAME is Storage Daemon autochanger name that is used
>> on the Director side in the resource with name STORAGE_NAME.
>>
>> Thanks in advance for providing these details.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On 26.11.2019 00:09, Jose Alberto wrote:
>> > Hi Marcin
>> >
>> > Prado\Exceptions\TPhpErrorException
>> > Description
>> >
>> > [Notice] Trying to get property of non-object (@line 102 in file
>> > /usr/share/baculum/htdocs/protected/Web/Pages/StorageView.php).
>> > Source File
>> >
>> > /usr/share/baculum/htdocs/protected/Web/Pages/StorageView.php (102)
>> >
>> > 0091:         $devices = array();
>> > 0092:         if ($this->getIsAutochanger() && !empty($_SESSION['sd'])) {
>> > 0093:             $result = $this->Application->getModule('api')->get(
>> > 0094:                 array(
>> > 0095:                     'config',
>> > 0096:                     'sd',
>> > 0097:                     'Autochanger',
>> > 0098:                     $this->getDeviceName()
>> > 0099:                 )
>> > 0100:             );
>> > 0101:             if ($result->error === 0) {
>> > 0102:                 $devices = $result->output->Device;
>> > 0103:             }
>> > 0104:         } else {
>> > 0105:             $devices = array($this->getDeviceName());
>> > 0106:         }
>> > 0107:         $this->Devices->DataSource = $devices;
>> > 0108:         $this->Devices->dataBind();
>> > 0109:     }
>> > 0110:
>> > 0111:     /**
>> > 0112:      * Set storage storageid.
>> > 0113:      *
>> > 0114:      * @return none;
>> >
>> > Stack Trace
>> >
>> > #0 /usr/share/baculum/htdocs/protected/Web/Pages/StorageView.php(102):
>> > Prado\PradoBase::phpErrorHandler(8, 'Trying to get p...',
>> > '/usr/share/bacu...', 102, Array)
>> > #1 /usr/share/baculum/htdocs/protected/Web/Pages/StorageView.php(76):
>> > StorageView->setDevices()
>> > #2
>> > /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TControl.php(1318):
>> > StorageView->onInit(NULL)
>> > #3
>> > /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TCompositeControl.php(35):
>> > Prado\Web\UI\TControl->initRecursive(Object(StorageView))
>> > #4
>> > /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TTemplateControl.php(244):
>> > Prado\Web\UI\TCompositeControl->initRecursive(NULL)
>> > #5
>> > /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TPage.php(220):
>> > Prado\Web\UI\TTemplateControl->initRecursive()
>> > #6
>> > /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TPage.php(208):
>> > Prado\Web\UI\TPage->processNormalRequest(Object(Prado\Web\UI\THtmlWriter))
>> > #7
>> > /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/Services/TPageService.php(528):
>> > Prado\Web\UI\TPage->run(Object(Prado\Web\UI\THtmlWriter))
>> > #8
>> > /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/Services/TPageService.php(465):
>> > Prado\Web\Services\TPageService->runPage(Object(StorageView), Array)
>> > #9
>> > /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/TApplication.php(1190):
>> > Prado\Web\Services\TPageService->run()
>> > #10
>> > /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/TApplication.php(382):
>> > Prado\TApplication->runService()
>> > #11 /usr/share/baculum/htdocs/index.php(31): Prado\TApplication->run()
>> >
>> > On Fri, Nov 22, 2019 at 8:29 PM Marcin Haba <ganius...@gmail.com
>> > <mailto:ganius...@gmail.com>> wrote:
>> >
>> >     Hello Jose,
>> >
>> >     What is this PHP error? Could I ask you about pasting here the error
>> >     message?
>> >
>> >     Thanks in advance.
>> >
>> >     Best regards,
>> >     Marcin Haba (gani)
>> >
>> >     On 22.11.2019 16:00, Jose Alberto wrote:
>> >     > Hi.
>> >     >
>> >     > I Have Bacula 9.4.4  on Debian 9  with Baculum.
>> >     >
>> >     > All work Fine.  in server IP 10.20.2.5 all in one (postgres, dir and
>> >     > sd)   i have 2 Tape (ibm  and vtl D2D of HP).
>> >     >
>> >     > I Have in site remote (10.30.2.0/24 <http://10.30.2.0/24>
>> >     <http://10.30.2.0/24>) (other City
>> >     > lan to lan)  30 Hosts.
>> >     >
>> >     > I install only  Bacula-sd  (10.30.2.5) with Tape hp msl4048..
>> >     >
>> >     > All work Fine.
>> >     >
>> >     > The problem:   Button (baculum) Status Storage msl4048 (remote SD)
>> >     >  show error PHP.
>> >     >
>> >     > but:  bconsole,   status    storage msl4048    show info fine.
>> >     >
>> >     > Thanks.
>> >     >
>> >     >
>> >     >
>> >     > --
>> >     > #############################
>> >     > #   Sistema Operativo: Debian      #
>> >     > #        Caracas, Venezuela          #
>> >     > #############################
>> >     >
>> >     >
>> >     > _______________________________________________
>> >     > Bacula-users mailing list
>> >     > Bacula-users@lists.sourceforge.net
>> >     <mailto:Bacula-users@lists.sourceforge.net>
>> >     > https://lists.sourceforge.net/lists/listinfo/bacula-users
>> >     >
>> >
>> >
>> >     _______________________________________________
>> >     Bacula-users mailing list
>> >     Bacula-users@lists.sourceforge.net
>> >     <mailto:Bacula-users@lists.sourceforge.net>
>> >     https://lists.sourceforge.net/lists/listinfo/bacula-users
>> >
>> >
>> >
>> > --
>> > #############################
>> > #   Sistema Operativo: Debian      #
>> > #        Caracas, Venezuela          #
>> > #############################
>
>
>
> --
> #############################
> #   Sistema Operativo: Debian      #
> #        Caracas, Venezuela          #
> #############################



-- 
"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

Reply via email to