View Issue Details

IDProjectCategoryView StatusLast Update
0000832bareos-corewebuipublic2024-05-08 15:30
Reporterbkasprzyk Assigned Tofrank  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionopen 
PlatformLinuxOSDebianOS Version8.6
Product Version16.2.4 
Summary0000832: Problem listing volumes using autochanger
DescriptionI am unable to list volumes from tab "manage autochanger"
But when i try list volumes from bconsole it works:
list volumes pool=offsite_copy
Using Catalog "MyCatalog"
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+--------------+
| mediaid | volumename | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten | storage |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+--------------+
| 920 | 000101L3 | Full | 1 | 426,288,190,164 | 36 | 1 | 1 | 1 | 1 | LTO-3 | 2017-07-13 14:59:13 | offsite_copy |
| 962 | 000104L3 | Full | 1 | 349,629,967,465 | 36 | 1 | 1 | 2 | 1 | LTO-3 | 2017-07-13 14:27:04 | offsite_copy |
| 983 | 000106L3 | Append | 1 | 203 | 0 | 604,800 | 1 | 7 | 1 | LTO-3 | | offsite_copy |
| 984 | 000105L3 | Append | 1 | 203 | 0 | 604,800 | 1 | 3 | 1 | LTO-3 | | offsite_copy |
| 985 | 000103L3 | Append | 1 | 203 | 0 | 604,800 | 1 | 4 | 1 | LTO-3 | | offsite_copy |
| 986 | 000102L3 | Append | 1 | 203 | 0 | 604,800 | 1 | 5 | 1 | LTO-3 | | offsite_copy |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+--------------+

I also tried to use same command as specified in php file /usr/share/bareos-webui/module/Storage/src/Storage/Model/StorageModel.php on
line 47: status storage="' . $storage . '" slots
But after typing status storage=offsite_copy slots I get this:

Connecting to Storage daemon offsite_copy at offsite_copy:9103 ...
3306 Issuing autochanger "listall" command.
 Slot | Volume Name | Status | Media Type | Pool |
------+------------------+-----------+----------------+--------------------------|
    1 | 000101L3 | Full | LTO-3 | offsite_copy |
    2 | 000104L3 | Full | LTO-3 | offsite_copy |
    3 | 000105L3 | Append | LTO-3 | offsite_copy |
    4 | 000103L3 | Append | LTO-3 | offsite_copy |
    5*| 000102L3 | Append | LTO-3 | offsite_copy |
    6*| ? | ? | ? | ? |
    7 | 000106L3 | Append | LTO-3 | offsite_copy |
    8*| ? | ? | ? | ? |
Slot 9 greater than max 8 ignored.
Slot 10 greater than max 8 ignored.
Slot 11 greater than max 8 ignored.
Slot 12 greater than max 8 ignored.
Slot 13 greater than max 8 ignored.
Slot 14 greater than max 8 ignored.
Slot 15 greater than max 8 ignored.
Slot 16 greater than max 8 ignored.
Steps To ReproduceWhen I click on "manage autochanger" from Storage tab, i get error windows( details in attachment.
Additional InformationI have some helpful debug information in /var/log/apache/error.log:

[Fri Jul 14 10:46:52.314572 2017] [:error] [pid 10127] [client Client_addr:54106] PHP Notice: Undefined index: contents in /usr/share/bareos-webui/module/Storage/src/Storage/Model/StorageModel.php on line 174, referer: http://bareos-webui/storage//
[Fri Jul 14 10:46:52.314621 2017] [:error] [pid 10127] [client Client_addr:54106] PHP Warning: Invalid argument supplied for foreach() in /usr/share/bareos-webui/module/Storage/src/Storage/Controller/StorageController.php on line 120, referer: http://bareos-webui/storage//
[Fri Jul 14 10:46:53.634660 2017] [:error] [pid 10127] [client Client_addr:54106] PHP Notice: Undefined index: contents in /usr/share/bareos-webui/module/Storage/src/Storage/Model/StorageModel.php on line 50, referer: http://bareos-webui/storage/details/offsite_copy
[Fri Jul 14 10:46:53.738599 2017] [:error] [pid 10127] [client Client_addr:54106] PHP Notice: Undefined index: contents in /usr/share/bareos-webui/module/Storage/src/Storage/Model/StorageModel.php on line 50, referer: http://bareos-webui/storage/details/offsite_copy
[Fri Jul 14 10:46:53.858596 2017] [:error] [pid 10127] [client Client_addr:54106] PHP Notice: Undefined index: contents in /usr/share/bareos-webui/module/Storage/src/Storage/Model/StorageModel.php on line 50, referer: http://bareos-webui/storage/details/offsite_copy
[Fri Jul 14 10:46:59.046489 2017] [:error] [pid 11459] [client Client_addr:54112] PHP Notice: Undefined index: contents in /usr/share/bareos-webui/module/Storage/src/Storage/Model/StorageModel.php on line 174, referer: http://bareos-webui/storage/details/offsite_copy
[Fri Jul 14 10:46:59.046527 2017] [:error] [pid 11459] [client Client_addr:54112] PHP Warning: Invalid argument supplied for foreach() in /usr/share/bareos-webui/module/Storage/src/Storage/Controller/StorageController.php on line 120, referer: http://bareos-webui/storage/details/offsite_copy
[Fri Jul 14 10:47:04.209490 2017] [:error] [pid 11459] [client Client_addr:54112] PHP Notice: Undefined index: contents in /usr/share/bareos-webui/module/Storage/src/Storage/Model/StorageModel.php on line 50, referer: http://bareos-webui/storage/details/offsite_copy?action=updateslots&storage=offsite_copy
[Fri Jul 14 10:47:04.302691 2017] [:error] [pid 10130] [client Client_addr:54114] PHP Notice: Undefined index: contents in /usr/share/bareos-webui/module/Storage/src/Storage/Model/StorageModel.php on line 50, referer: http://bareos-webui/storage/details/offsite_copy?action=updateslots&storage=offsite_copy
[Fri Jul 14 10:47:04.398596 2017] [:error] [pid 11459] [client Client_addr:54112] PHP Notice: Undefined index: contents in /usr/share/bareos-webui/module/Storage/src/Storage/Model/StorageModel.php on line 50, referer: http://bareos-webui/storage/details/offsite_copy?action=updateslots&storage=offsite_copy



I also tried bareos-webui with nightly version, and this error does not apper.
TagsNo tags attached.

Activities

bkasprzyk

bkasprzyk

2017-07-14 11:05

reporter  

bareos_screenshots.tar.xz (219,884 bytes)
arogge

arogge

2024-05-08 15:30

manager   ~0005919

No update since 2019, probably not going to be worked on anymore.

Issue History

Date Modified Username Field Change
2017-07-14 11:05 bkasprzyk New Issue
2017-07-14 11:05 bkasprzyk File Added: bareos_screenshots.tar.xz
2017-07-20 11:12 frank Assigned To => frank
2017-07-20 11:12 frank Status new => assigned
2024-05-08 15:30 arogge Note Added: 0005919
2024-05-08 15:30 arogge Status assigned => closed