View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000849 | bareos-core | webui | public | 2017-08-31 16:03 | 2024-05-08 15:30 |
Reporter | chaos_prevails | Assigned To | frank | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | open | ||
Platform | linux | OS | Ubuntu | OS Version | 16.04.3 amd64 |
Product Version | 16.2.4 | ||||
Summary | 0000849: JSON Errors when managing autoloader on remote storage via webui | ||||
Description | When using a remote storage with an autoloader, I get JSON errors when trying to manage the autoloader. All 3 tables (import/export slots, drives, slots) stay empty. bareos-dir and bareos-webui are installed on the same machine, bareos-sd with the autoloader is installed on another machine The JSON error messages are: "DataTables warning: table id=storage-drives - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1" upon clicking OK, I get: "DataTables warning: table id=storage-slots - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1" upon clicking OK, I get: "DataTables warning: table id=storage-ie-slots - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1" via bconsole, I don't see any errors. I can label and list volumes, move them, etc. | ||||
Steps To Reproduce | 1. configure remote storage autoloader + reload sd and dir 2. login to webui 3. click storages 4. click "manage autoloader" | ||||
Additional Information | In the webui, I can successfully import volumes with "import all". The drive and the slots show up, and I get the following message: Connecting to Storage daemon XXXX_HP_G2_Autochanger at XXXXX.org:9103 ... 3306 Issuing autochanger "listall" command. Nothing to do Storage status: Connecting to Storage daemon remote-sd_HP_G2_Autochanger at remote-sd.address:9103 remote-sd Version: 16.2.4 (01 July 2016) x86_64-pc-linux-gnu ubuntu Ubuntu 16.04 LTS Daemon started 30-Aug-17 17:11. Jobs: run=0, running=0. Heap: heap=135,168 smbytes=46,171 max_bytes=2,178,242 bufs=121 max_bufs=135 Sizes: boffset_t=8 size_t=8 int32_t=4 int64_t=8 mode=0 bwlimit=0kB/s Running Jobs: No Jobs running. ==== Jobs waiting to reserve a drive: ==== Terminated Jobs: ==== Device status: Autochanger "HP_G2_Autochanger" with devices: "Ultrium920" (/dev/st2) Device "Ultrium920" (/dev/st2) is not open. Slot 8 was last loaded in drive 0. == ==== Used Volume status: VOLUMEX on device "Ultrium920" (/dev/st2) Reader=0 writers=0 reserves=0 volinuse=0 ==== ==== my configuration files: 1) bareos-dir server: bareos-dir.d/director/bareos-dir.conf Director { # define myself Name = bareos-dir QueryFile = "/usr/lib/bareos/scripts/query.sql" Maximum Concurrent Jobs = 10 Password = "XXXX1" # Console password Messages = Daemon Auditing = yes # Enable the Heartbeat if you experience connection losses # (eg. because of your router or firewall configuration). # Additionally the Heartbeat can be enabled in bareos-sd and bareos-fd. # # Heartbeat Interval = 1 min # remove comment in next line to load dynamic backends from specified directory # Backend Directory = /usr/lib/bareos/backends # remove comment from "Plugin Directory" to load plugins from specified directory. # if "Plugin Names" is defined, only the specified plugins will be loaded, # otherwise all director plugins (*-dir.so) from the "Plugin Directory". # # Plugin Directory = /usr/lib/bareos/plugins # Plugin Names = "" } bareos-dir.d/storage/remote-sd.conf Storage { Name = remote-sd_HP_G2_Autochanger Address = "remote-sd.address" Password = "xxxx2" Device = "HP_G2_Autochanger" Media Type = LTO Autochanger = yes TLS Certificate = /etc/bareos/ssl/remote-sd.crt TLS Key = /etc/bareos/ssl/remote-sd.key TLS CA Certificate File = /etc/bareos/ssl/xx TLS DH File = /etc/bareos/ssl/xx TLS Enable = yes TLS Require = yes TLS Verify Peer = yes } 2) bareos-sd remote machine with autochanger bareos-sd.d/director/bareos-dir.conf Director { Name = bareos-dir Password = "[md5]xxxx2" Description = "Director, who is permitted to contact this storage daemon." TLS Certificate = /etc/bareos/ssl/remote-sd.crt TLS Key = /etc/bareos/ssl/remote-sd.key TLS CA Certificate File = /etc/bareos/ssl/xx TLS DH File = /etc/bareos/ssl/xx TLS Enable = yes TLS Require = yes TLS Verify Peer = yes } bareos-sd.d/storage/bareos-sd.conf Storage { Name = remote-sd Maximum Concurrent Jobs = 20 # remove comment from "Plugin Directory" to load plugins from specified directory. # if "Plugin Names" is defined, only the specified plugins will be loaded, # otherwise all storage plugins (*-sd.so) from the "Plugin Directory". # # Plugin Directory = /usr/lib/bareos/plugins # Plugin Names = "" TLS Certificate = /etc/bareos/ssl/remote-sd.crt TLS Key = /etc/bareos/ssl/remote-sd.key TLS DH File = /etc/bareos/ssl/ TLS CA Certificate File = /etc/bareos/ssl/ TLS Enable = yes TLS Require = yes TLS Verify Peer = yes } bareos-sd.d/autochanger/HP_G2_Autochanger.conf Autochanger { Name = "HP_G2_Autochanger" Device = Ultrium920 Changer Device = /dev/sg5 Changer Command = "/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d" } bareos-sd.d/device/Ultrium920.conf Device { Name = "Ultrium920" Media Type = LTO Archive Device = /dev/st2 Autochanger = yes LabelMedia = no AutomaticMount = yes AlwaysOpen = yes RemovableMedia = yes Maximum Spool Size = 50G Spool Directory = /tmp Maximum Block Size = 2097152 # Maximum Block Size = 4194304 Maximum File Size = 50G } | ||||
Tags | No tags attached. | ||||
|
|
|
|
I forgot to mention: with the director installed on the remote machine, there are no JSON error messages | |
No update since 2019, probably not going to be worked on anymore. | |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-08-31 16:03 | chaos_prevails | New Issue | |
2017-08-31 16:03 | chaos_prevails | File Added: bareos-webui_error1.jpg | |
2017-08-31 16:05 | chaos_prevails | File Added: bareos-webui_error2.jpg | |
2017-08-31 16:06 | chaos_prevails | Note Added: 0002716 | |
2017-09-01 12:17 | frank | Assigned To | => frank |
2017-09-01 12:17 | frank | Status | new => assigned |
2024-05-08 15:30 | arogge | Note Added: 0005921 | |
2024-05-08 15:30 | arogge | Status | assigned => closed |