Bareos Bug Tracker
Bareos Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000897bareos-core[All Projects] webuipublic2018-01-26 14:382018-02-16 18:33
Reporterrightmirem 
Assigned Tofrank 
PriorityhighSeveritymajorReproducibilityhave not tried
StatusconfirmedResolutionopen 
PlatformIntelOSDebian Jessie 8OS Version8
Product Version17.2.4 
Target VersionFixed in Version 
Summary0000897: Webui dashboard cannot access catalog data (input just spinning)
DescriptionMaybe related to issue:
https://bugs.bareos.org/view.php?id=896 [^]

After updating to Bareos 17.2.4 (including the webui), and a server restart ... opening the webui shows no data.

Jobstaus area (Running, Waiting, Successful, Failed) simply spin.

"Job Totals" area shows "No matching records found"

"Most recent job status per job name" shows "No matching records found"

Catalog is intact and bconsole can backup and restore normally.

Additional Informationroot@servername> apt list --installed | grep bareos

WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.

bareos/unknown,now 17.2.4-9.1 amd64 [installed]
bareos-bconsole/unknown,now 17.2.4-9.1 amd64 [installed,automatic]
bareos-client/unknown,now 17.2.4-9.1 amd64 [installed,automatic]
bareos-common/unknown,now 17.2.4-9.1 amd64 [installed,automatic]
bareos-database-common/unknown,now 17.2.4-9.1 amd64 [installed,automatic]
bareos-database-postgresql/unknown,now 17.2.4-9.1 amd64 [installed,automatic]
bareos-database-tools/unknown,now 17.2.4-9.1 amd64 [installed,automatic]
bareos-director/unknown,now 17.2.4-9.1 amd64 [installed,automatic]
bareos-docs/unknown,now 17.2.4-14.1 all [installed]
bareos-filedaemon/unknown,now 17.2.4-9.1 amd64 [installed,automatic]
bareos-storage/unknown,now 17.2.4-9.1 amd64 [installed,automatic]
bareos-storage-tape/unknown,now 17.2.4-9.1 amd64 [installed]
bareos-tools/unknown,now 17.2.4-9.1 amd64 [installed]
bareos-traymonitor/unknown,now 17.2.4-9.1 amd64 [installed,automatic]
bareos-webui/unknown,now 17.2.4-15.1 all [installed]

TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action
Attached Filespng file icon Screen Shot 2018-01-26 at 14.36.42.png [^] (228,119 bytes) 2018-01-26 14:38

- Relationships

-  Notes
(0002884)
rightmirem (reporter)
2018-01-26 14:55

"bareos-audit.log" is also repeating ...

26-Jan 14:53 servername-dir: Console [admin] from [127.0.0.1] cmdline llist jobs jobstatus=R jobname="" limit=1000 offset=1565000

...anytime the webgui is attempting to access data.
(0002905)
rightmirem (reporter)
2018-02-12 09:51

Any progress on this issue? Have you been able to recreate it, or do you need more information from me?
(0002911)
archanfel (reporter)
2018-02-14 18:35

I have exactly the same issue.
Fresh install, CentOS 7, apache 2.4, php 7.2, mariadb 10.2
(0002912)
frank (manager)
2018-02-14 18:54

Thanks for the report, I'm going to fix this as soon as possible. I'm pretty sure what the case is here.
It should no longer happen after running your first backups. Nevertheless this needs a fix.
(0002914)
archanfel (reporter)
2018-02-14 19:09

The apache error log full of this:
array_merge(): Argument 0000001 is not an array in /usr/share/bareos-webui/module/Job/src/Job/Model/JobModel.php on line 126, referer: https://bareos.ttre.hu/bareos-webui/dashboard/ [^]

I do a backup job and the issue is still here.
(0002915)
frank (manager)
2018-02-15 10:37

Ok, just guessing here by now, but probably it's some kind of timing issue where the request takes longer than the refresh interval so the wheels keep on spinning. I have to dig a bit deeper, it looks like. As said, going to investigate as soon as possible.
(0002919)
rightmirem (reporter)
2018-02-15 13:25

@frank
Thats a good thought. And I appreciate you looking into it. Is there a place where I can change the refresh interval as a test?

It may also be important to note, the WEB-UI was working fine right up until the update. So whatever changed, most certainly changed there. Perhaps the timeout changed in the update?
(0002920)
frank (manager)
2018-02-15 13:43

@archanfel

What is the output of https://<your [^] host>/bareos-webui/dashboard/getData?data=jobslaststatus when you open it in your browser?

@rightmirem

Refresh interval can be changed in /etc/bareos-webui/configuration.ini, dashboard autorefresh_interval.

;
; Bareos WebUI Configuration File
;
; File: /etc/bareos-webui/configuration.ini
;

;------------------------------------------------------------------------------
; SESSION SETTINGS
;------------------------------------------------------------------------------
;
[session]
; Default: 3600 seconds
timeout=3600

;------------------------------------------------------------------------------
; DASHBOARD SETTINGS
;------------------------------------------------------------------------------
[dashboard]
; Autorefresh Interval
; Default: 60000 milliseconds
autorefresh_interval=60000

;------------------------------------------------------------------------------
; TABLE SETTINGS
;------------------------------------------------------------------------------
[tables]
; Possible values for pagination
; Default: 10,25,50,100
pagination_values=10,25,50,100

; Default number of rows per page
; for possible values see pagination_values
; Default: 25
pagination_default_value=25

; State saving - restore table state on page reload.
; Default: false
save_previous_state=false

;------------------------------------------------------------------------------
; VARIOUS SETTINGS
;------------------------------------------------------------------------------
[autochanger]
; Pooltype for label to use as filter.
; Default: none
labelpooltype=scratch
(0002924)
archanfel (reporter)
2018-02-16 10:39

@frank
The url gave me a blank page.

and this error log:
[:error] [pid 2479] [client xxx.xxx.xxx.xxx:25795] PHP Notice: Undefined index: result in /usr/share/b
areos-webui/module/Job/src/Job/Model/JobModel.php on line 262
(0002926)
frank (manager)
2018-02-16 16:16

@archanfel

What's the exact command output of 'llist jobs last current enabled' executed in bconsole in api 2?

* .api 2
* llist jobs last current enabled
*
(0002927)
archanfel (reporter)
2018-02-16 18:32

Okay, i may find the problem.
I have multiple catalog connected to multiple database, since we have a huge amount of data, so in one database its just break down.
I created multiple director configuration in the bareos-webui/directors.ini for each catalog. Now i can login after i pick one of the director and see everything what is in that specific catalog. All of the director-catalog pair working fine, but if i comment out the catalog= config parameter and use one director for all catalog the issue is got back.
(0002928)
archanfel (reporter)
2018-02-16 18:33

Here is the command output:

*.api 2
{
  "jsonrpc": "2.0",
  "id": null,
  "result": {
    "api": 2
  }
}*llist jobs last current enabled
{
  "jsonrpc": "2.0",
  "id": null,
  "error": {
    "code": 1,
    "message": "failed",
    "data": {
      "result": {},
      "messages": {
        "error": [
          "Could not find a Catalog resource\n"
        ]
      }
    }
  }
}*

- Issue History
Date Modified Username Field Change
2018-01-26 14:38 rightmirem New Issue
2018-01-26 14:38 rightmirem File Added: Screen Shot 2018-01-26 at 14.36.42.png
2018-01-26 14:55 rightmirem Note Added: 0002884
2018-01-26 16:25 frank Assigned To => frank
2018-01-26 16:25 frank Status new => confirmed
2018-01-26 16:26 frank Assigned To frank =>
2018-01-26 16:27 frank Assigned To => frank
2018-01-26 16:27 frank Status confirmed => new
2018-01-26 16:29 frank Status new => assigned
2018-02-12 09:51 rightmirem Note Added: 0002905
2018-02-14 18:35 archanfel Note Added: 0002911
2018-02-14 18:54 frank Note Added: 0002912
2018-02-14 18:55 frank Status assigned => confirmed
2018-02-14 19:09 archanfel Note Added: 0002914
2018-02-15 10:37 frank Note Added: 0002915
2018-02-15 13:25 rightmirem Note Added: 0002919
2018-02-15 13:43 frank Note Added: 0002920
2018-02-16 10:39 archanfel Note Added: 0002924
2018-02-16 16:16 frank Note Added: 0002926
2018-02-16 18:32 archanfel Note Added: 0002927
2018-02-16 18:33 archanfel Note Added: 0002928


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker