View Issue Details

IDProjectCategoryView StatusLast Update
0000890bareos-coredirectorpublic2018-02-20 15:08
Reporterjoergs Assigned To 
PriorityhighSeveritymajorReproducibilitysometimes
Status closedResolutionfixed 
Product Version17.2.4 
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 http://doc.bareos.org/master/html/bareos-developer-guide.html#sec:bvfs

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

bconsole
*.bvfs_clear_cache yes
*.bvfs_update
or
*.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.

Relationships

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

Activities

joergs

joergs

2018-01-29 15:26

developer   ~0002893

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

Related Changesets

bareos: bareos-17.2 43b2bfea

2018-01-10 19:38

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.
Affected Issues
0000890
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:56 joergs Relationship added related to 0000887
2018-01-08 22:02 joergs Steps to Reproduce Updated
2018-01-08 22:02 joergs Additional Information Updated
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 Status resolved => closed
2018-02-20 15:08 joergs Assigned To joergs =>