View Issue Details

IDProjectCategoryView StatusLast Update
0001317bareos-corestorage daemonpublic2023-07-18 15:50
Reporterrenato.ramonda Assigned Tobruno-at-bareos  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
PlatformLinuxOSRHELOS Version7
Product Version20.0.0 
Summary0001317: Statistics not collected
DescriptionStatistics about running jobs do not appear in the webui. After checking, and making sure we enabled Statistics Collection in the Directror and Storage Demon and Devices, they still seem not to be sent from the SD.
Steps To ReproduceWe put both dir and sd in -d 200 and checked the verbose output, and even went so far as to follow along on the source code. We still can't figure out where the problem is.

I'm pasting here in the Additional Information the output of one job run on the SD. You can see it sends device stats (lines with "New Stats") but no Job Stats.


Additional Informationh21-lrd-sd (200): stored/sd_stats.cc:249-0 NumWaiting 0, NumWriters 1, ReadTime=264, WriteTime=0,
h21-lrd-sd (200): stored/sd_stats.cc:252-0 MediaId=316 VolBytes=2438206967, VolFiles=0, VolBlocks=37811
h21-lrd-sd (200): stored/sd_stats.cc:330-0 New stats [1612273216]: JobId 589194, JobFiles 1685, JobBytes 5152460781, DevName h21-lrd-FileStorage-bakdc01-01
h21-lrd-sd (200): stored/sd_stats.cc:246-0 New stats [1612273246]: Device h21-lrd-FileStorage-bakdc01-01 Read 64512, Write 0, Spoolsize 5689855306,
h21-lrd-sd (200): stored/sd_stats.cc:249-0 NumWaiting 0, NumWriters 1, ReadTime=264, WriteTime=0,
h21-lrd-sd (200): stored/sd_stats.cc:252-0 MediaId=316 VolBytes=2438206967, VolFiles=0, VolBlocks=37811
h21-lrd-sd (200): stored/sd_stats.cc:330-0 New stats [1612273246]: JobId 589194, JobFiles 1685, JobBytes 5684489901, DevName h21-lrd-FileStorage-bakdc01-01
h21-lrd-sd (200): stored/sd_stats.cc:246-0 New stats [1612273276]: Device h21-lrd-FileStorage-bakdc01-01 Read 64512, Write 0, Spoolsize 6157138110,
h21-lrd-sd (200): stored/sd_stats.cc:249-0 NumWaiting 0, NumWriters 1, ReadTime=264, WriteTime=0,
h21-lrd-sd (200): stored/sd_stats.cc:252-0 MediaId=316 VolBytes=2438206967, VolFiles=0, VolBlocks=37811
h21-lrd-sd (200): stored/sd_stats.cc:330-0 New stats [1612273276]: JobId 589194, JobFiles 1685, JobBytes 6151336701, DevName h21-lrd-FileStorage-bakdc01-01
h21-lrd-sd (110): stored/fd_cmds.cc:220-589194 <filed: append end session 1
h21-lrd-sd (120): stored/fd_cmds.cc:288-589194 stored<filed: append end session 1
h21-lrd-sd (110): stored/fd_cmds.cc:220-589194 <filed: append close session 1
h21-lrd-sd (120): stored/fd_cmds.cc:329-589194 <filed: append close session 1
h21-lrd-sd (120): stored/fd_cmds.cc:340-589194 >filed: 3000 OK close Status = 84
h21-lrd-sd (200): stored/append.cc:278-589194 Write EOS label JobStatus=T
h21-lrd-sd (130): stored/label.cc:672-589194 session_label record=ec01b028
h21-lrd-sd (150): stored/label.cc:718-589194 Write sesson_label record JobId=589194 FI=EOS_LABEL SessId=1 Strm=589194 len=225 remainder=0
h21-lrd-sd (150): stored/label.cc:722-589194 Leave WriteSessionLabel Block=2438206967d File=0d
h21-lrd-sd (90): stored/append.cc:297-589194 back from write_end_session_label()
h21-lrd-sd (100): stored/spool.cc:156-589194 Committing spooled data
h21-lrd-sd (100): stored/spool.cc:255-589194 Despooling data
h21-lrd-sd (100): stored/block.cc:137-589194 created new block of blocksize 64512 (dev->max_block_size)
h21-lrd-sd (200): stored/sd_stats.cc:246-0 New stats [1612273306]: Device h21-lrd-FileStorage-bakdc01-01 Read 64512, Write 713567218, Spoolsize 6547306204,
h21-lrd-sd (200): stored/sd_stats.cc:249-0 NumWaiting 0, NumWriters 1, ReadTime=264, WriteTime=1615736,
h21-lrd-sd (200): stored/sd_stats.cc:252-0 MediaId=316 VolBytes=3151774185, VolFiles=0, VolBlocks=48872
h21-lrd-sd (200): stored/sd_stats.cc:330-0 New stats [1612273306]: JobId 589194, JobFiles 1686, JobBytes 6541117690, DevName h21-lrd-FileStorage-bakdc01-01
h21-lrd-sd (50): stored/askdir.cc:388-589194 >dird CatReq Job=Backup_h08-lrd_files.2021-02-02_13.35.08_24 CreateJobMedia FirstIndex=1 LastIndex=1685 StartFile=0 EndFile=0 StartBlock=2438206967 EndBlock=3
438142952 Copy=0 Strip=0 MediaId=316
h21-lrd-sd (50): stored/askdir.cc:396-589194 <dird 1000 OK CreateJobMedia
h21-lrd-sd (50): stored/askdir.cc:304-589194 Update cat VolBytes=3438142953
h21-lrd-sd (50): stored/askdir.cc:327-589194 >dird CatReq Job=Backup_h08-lrd_files.2021-02-02_13.35.08_24 UpdateMedia VolName=SD01Volume0314 VolJobs=23 VolFiles=0 VolBlocks=53311 VolBytes=3438142953 VolM
ounts=142 VolErrors=0 VolWrites=33302709 MaxVolBytes=214748364800 EndTime=1612273308 VolStatus=Append Slot=0 relabel=0 InChanger=0 VolReadTime=27470710 VolWriteTime=3838906943 VolFirstWritten=0
h21-lrd-sd (50): stored/askdir.cc:108-589194 <dird 1000 OK VolName=SD01Volume0314 VolJobs=23 VolFiles=0 VolBlocks=53311 VolBytes=3438142953 VolMounts=142 VolErrors=0 VolWrites=33302709 MaxVolBytes=214748
364800 VolCapacityBytes=0 VolStatus=Append Slot=0 MaxVolJobs=0 MaxVolFiles=0 InChanger=0 VolReadTime=27470710 VolWriteTime=3838906943 EndFile=0 EndBlock=3438142952 LabelType=0 MediaId=316 EncryptionKey=
MinBlocksize=0 MaxBlocksize=0
TagsNo tags attached.

Activities

bruno-at-bareos

bruno-at-bareos

2023-07-18 15:50

manager   ~0005208

Statistics are deprecated, and we don't know when they will be replaced by something else.
Of course community PR are still welcomed.

Issue History

Date Modified Username Field Change
2021-02-02 17:15 renato.ramonda New Issue
2023-07-18 15:50 bruno-at-bareos Assigned To => bruno-at-bareos
2023-07-18 15:50 bruno-at-bareos Status new => closed
2023-07-18 15:50 bruno-at-bareos Resolution open => won't fix
2023-07-18 15:50 bruno-at-bareos Note Added: 0005208