View Issue Details

IDProjectCategoryView StatusLast Update
0001578bareos-corewebuipublic2024-01-09 16:15
Reporterangelogobbi Assigned Tobruno-at-bareos  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
PlatformLinuxOSCentOS StreamOS Version8
Product Version23.0.0 
Summary0001578: Não lista arquivos para fazer restore
DescriptionEstou tentando fazer um restore e a apartir de uma data não lista os arquivos

erro - {"id":"#","xhr":{"readyState":4,"responseText":"Decoding failed: Syntax error[]","status":200,"statusText":"OK"}}
Steps To ReproduceRestaurar...escolho o cliente...e escolho a data do backup
TagsNo tags attached.

Activities

angelogobbi

angelogobbi

2023-12-06 20:33

reporter  

error bareos.png (46,825 bytes)   
error bareos.png (46,825 bytes)   
bruno-at-bareos

bruno-at-bareos

2023-12-07 10:24

manager   ~0005575

Nadie habla español
angelogobbi

angelogobbi

2023-12-07 11:46

reporter   ~0005578

I'm trying to do a restore from a date and it doesn't list the files

error - {"id":"#","xhr":{"readyState":4,"responseText":"Decoding failed: Syntax error[]","status":200,"statusText":"OK"}}

as picture sent
bruno-at-bareos

bruno-at-bareos

2023-12-07 12:13

manager   ~0005581

What would be the ouput of the same job done in bconsole ?
angelogobbi

angelogobbi

2023-12-07 12:30

reporter   ~0005582

image.png (2,980 bytes)   
image.png (2,980 bytes)   
angelogobbi

angelogobbi

2023-12-07 13:13

reporter   ~0005583

image-2.png (12,286 bytes)   
image-2.png (12,286 bytes)   
bruno-at-bareos

bruno-at-bareos

2023-12-07 13:34

manager   ~0005584

So data are there, you have to check the web server logs and php-fpm engine log.
angelogobbi

angelogobbi

2023-12-07 13:44

reporter   ~0005585

PHP Warning: unpack(): Type N: not enough input, need 4, have 0 in /usr/share/bareos-webui/vendor/Bareos/library/Bareos/BSock/BareosBSock.php on line 173
angelogobbi

angelogobbi

2023-12-07 13:45

reporter   ~0005586

image-3.png (58,444 bytes)   
image-3.png (58,444 bytes)   
bruno-at-bareos

bruno-at-bareos

2023-12-07 14:27

manager   ~0005587

Did you try to not merge all fileset and job for that client ?

It would be nice to have the exchange between the browser and the webserver step by step
(javascript debug console network tab, headers and response put/get)

Is this occur also if you try another client ?
bruno-at-bareos

bruno-at-bareos

2023-12-07 14:27

manager   ~0005588

or another job of that client.
angelogobbi

angelogobbi

2023-12-07 14:34

reporter   ~0005589

only on this client and only after this job does not work, previous jobs list normal
bruno-at-bareos

bruno-at-bareos

2023-12-07 14:36

manager   ~0005590

A restore with bconsole is still possible for that job ?
angelogobbi

angelogobbi

2023-12-07 14:37

reporter   ~0005591

I haven't tested doing the restore via console, I also don't know what the command is
bruno-at-bareos

bruno-at-bareos

2023-12-07 14:51

manager   ~0005592

bconsole
restore
choice 5 (should be equivalent to what you have actually in the webui)
   then using mark * will select everything for restore.
mark *
done


---- Maybe that job contain a list of files that can't be correctly decoded by the webui
the list can be obtained with the following.

bconsole <<< "list files jobid=4274" > /var/tmp/jobid_4274_files-list.log

maybe you can compress that log file and if < 2MB you can attach as a private comment, so it will not be public,
angelogobbi

angelogobbi

2023-12-07 15:13

reporter   ~0005593

file was very large, there are many folders, compressed it was 52mb
bruno-at-bareos

bruno-at-bareos

2023-12-07 16:16

manager   ~0005594

Did the restore with bconsole has worked ?
angelogobbi

angelogobbi

2023-12-07 17:42

reporter   ~0005595

the backup is very large, how do I select just one folder through bconsole?
angelogobbi

angelogobbi

2023-12-07 17:43

reporter   ~0005596

image-4.png (84,845 bytes)   
image-4.png (84,845 bytes)   
bruno-at-bareos

bruno-at-bareos

2023-12-11 14:04

manager   ~0005598

like indicated in the documentation
with the help of
```
cd /XXXX
cd YYYY
cd ZZZ
mark xyz
done
```
angelogobbi

angelogobbi

2023-12-11 19:06

reporter   ~0005600

it works through bconsole, only through webui which doesn't
bruno-at-bareos

bruno-at-bareos

2023-12-12 10:49

manager   ~0005602

As you can imagine, without knowing which exactly create the error state, it will be hard for us to guess what it is.

To have a chance to fix it, we need to reproduce it, so it can be tested.
To do so, we need a precise description of the selection that didn't work. So mainly the list of dirs/files the webui isn't capable of showing.

As you seems to know how to listing them with the .bvfs* command, could you make a list of what you would expect.
and attach the text result in a copy/pasted file.

Thanks.
bruno-at-bareos

bruno-at-bareos

2023-12-14 11:54

manager   ~0005644

Ping
bruno-at-bareos

bruno-at-bareos

2024-01-09 16:15

manager   ~0005679

Closing without no feedback or clues to reproduce

Issue History

Date Modified Username Field Change
2023-12-06 20:33 angelogobbi New Issue
2023-12-06 20:33 angelogobbi File Added: error bareos.png
2023-12-07 10:24 bruno-at-bareos Note Added: 0005575
2023-12-07 10:24 bruno-at-bareos Priority high => normal
2023-12-07 11:46 angelogobbi Note Added: 0005578
2023-12-07 12:13 bruno-at-bareos Note Added: 0005581
2023-12-07 12:30 angelogobbi Note Added: 0005582
2023-12-07 12:30 angelogobbi File Added: image.png
2023-12-07 13:13 angelogobbi Note Added: 0005583
2023-12-07 13:13 angelogobbi File Added: image-2.png
2023-12-07 13:34 bruno-at-bareos Note Added: 0005584
2023-12-07 13:44 angelogobbi Note Added: 0005585
2023-12-07 13:45 angelogobbi Note Added: 0005586
2023-12-07 13:45 angelogobbi File Added: image-3.png
2023-12-07 14:27 bruno-at-bareos Note Added: 0005587
2023-12-07 14:27 bruno-at-bareos Note Added: 0005588
2023-12-07 14:30 bruno-at-bareos Product Version 22.1.1 => 23.0.0
2023-12-07 14:34 angelogobbi Note Added: 0005589
2023-12-07 14:36 bruno-at-bareos Note Added: 0005590
2023-12-07 14:37 angelogobbi Note Added: 0005591
2023-12-07 14:51 bruno-at-bareos Note Added: 0005592
2023-12-07 15:13 angelogobbi Note Added: 0005593
2023-12-07 16:16 bruno-at-bareos Note Added: 0005594
2023-12-07 17:42 angelogobbi Note Added: 0005595
2023-12-07 17:43 angelogobbi Note Added: 0005596
2023-12-07 17:43 angelogobbi File Added: image-4.png
2023-12-11 14:04 bruno-at-bareos Note Added: 0005598
2023-12-11 19:06 angelogobbi Note Added: 0005600
2023-12-12 10:49 bruno-at-bareos Note Added: 0005602
2023-12-14 11:54 bruno-at-bareos Assigned To => bruno-at-bareos
2023-12-14 11:54 bruno-at-bareos Status new => feedback
2023-12-14 11:54 bruno-at-bareos Note Added: 0005644
2024-01-09 16:15 bruno-at-bareos Status feedback => closed
2024-01-09 16:15 bruno-at-bareos Resolution open => no change required
2024-01-09 16:15 bruno-at-bareos Note Added: 0005679