Bareos Bug Tracker
Bareos Bug Tracker

View Issue Details Jump to Notes ] Related Changesets ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000890bareos-core[All Projects] directorpublic2018-01-08 21:552018-02-20 15:08
Assigned To 
PlatformOSOS Version
Product Version17.2.4 
Target Version17.2.5Fixed in Version 
Summary0000890: .bvfs_update does not always create all cache enties. This results in a not working webui restore tree
Description.bvfs_update is a bconsole command to update the cache needed for the other bvfs commands to should directory and file information about backup jobs, see [^]

It is used by the bareos-webui to show the restore tree.
(It is not used by the bconsole restore command).
Steps To ReproduceBest pick a backup job with backup level Full, say jobid=5

*.bvfs_clear_cache yes
*.bvfs_update joibid=5

*.bvfs_lsdir jobid=1 path=
only returns a single entry, but not the / entry:
12 0 0 A A A A A A A A A A A A A A .

In this case, the PathHierarchy table will be empty. Check via bconsole:
*.sql query="select * from PathHierarchy;"
No results to list.

Correct result of the lsdir command would have at least two entries:
*.bvfs_lsdir jobid=1 path=
12 0 0 A A A A A A A A A A A A A A .
11 0 0 A A A A A A A A A A A A A A /
Additional InformationA workaround that sometimes worked is to restart the director.

echo ".bvfs_clear_cache yes" | bconsole
systemctl restart bareos-dir.service
echo ".bvfs_update" | bconsole
TagsNo tags attached.
bareos-master: impactyes
bareos-master: actionfixed
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impactyes
bareos-17.2: actionfixed
bareos-16.2: impactno
bareos-16.2: action
bareos-15.2: impactno
bareos-15.2: action
bareos-14.2: impactno
bareos-14.2: action
bareos-13.2: impactno
bareos-13.2: action
bareos-12.4: impactno
bareos-12.4: action
Attached Files

- Relationships
related to 0000887assignedjoergs Restore file list taking 20 minutes to populate 
child of 0000910closed Release bareos-17.2.5 

-  Notes
joergs (administrator)
2018-01-29 15:26

Fix committed to bareos bareos-17.2 branch with changesetid 7466.

- Related Changesets
bareos: bareos-17.2 43b2bfea
Timestamp: 2018-01-10 18:38:59
Author: joergs
Ported: N/A
Details ] Diff ]
.bvfs_update: fix to create all required cache entries

During the restructuring of the database code,
an error has been introduced to this function.
This error has caused that cache entries are not generated in all cases.
This commit fixes this.

Fixes 0000890: .bvfs_update does not always create all cache entries.
mod - src/cats/bvfs.c Diff ] File ]

- Issue History
Date Modified Username Field Change
2018-01-08 21:55 joergs New Issue
2018-01-08 21:55 joergs Status new => assigned
2018-01-08 21:55 joergs Assigned To => joergs
2018-01-08 21:55 joergs Status assigned => confirmed
2018-01-08 21:55 joergs bareos-master: impact => yes
2018-01-08 21:55 joergs bareos-master: action => will care
2018-01-08 21:55 joergs bareos-17.2: impact => yes
2018-01-08 21:55 joergs bareos-17.2: action => will care
2018-01-08 21:55 joergs bareos-16.2: impact => no
2018-01-08 21:55 joergs bareos-15.2: impact => no
2018-01-08 21:55 joergs bareos-14.2: impact => no
2018-01-08 21:55 joergs bareos-13.2: impact => no
2018-01-08 21:55 joergs bareos-12.4: impact => no
2018-01-08 21:56 joergs Relationship added related to 0000887
2018-01-08 22:02 joergs Steps to Reproduce Updated View Revisions
2018-01-08 22:02 joergs Additional Information Updated View Revisions
2018-01-29 15:26 joergs Changeset attached => bareos bareos-17.2 43b2bfea
2018-01-29 15:26 joergs Note Added: 0002893
2018-01-29 15:26 joergs Status confirmed => resolved
2018-01-29 15:26 joergs Resolution open => fixed
2018-02-13 09:36 joergs Relationship added child of 0000910
2018-02-20 15:08 joergs bareos-master: action will care => fixed
2018-02-20 15:08 joergs bareos-17.2: action will care => fixed
2018-02-20 15:08 joergs Status resolved => closed
2018-02-20 15:08 joergs Assigned To joergs =>

Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker