Dj0k3
October 13, 2018, 5:58pm
1
I’ve updated to version 0.9.3 and the stats
command is indicating a fatal error when using latest
. My repo contains 3 hosts. The command I used was: restic stats latest
and restic stats --mode raw-data latest
.
Version 0.9.2:
~$ restic stats latest
Total File Count: 14367
Total Size: 77.898 GiB
~$ restic stats --mode raw-data
Total Blob Count: 100337
Total Size: 71.905 GiB
Version 0.9.3:
~$ restic stats latest
scanning...
Fatal: latest snapshot for criteria not found: no snapshot found
~$ restic stats --mode raw-data latest
scanning...
Fatal: latest snapshot for criteria not found: no snapshot found
However, when I use the same command with the host it works:
~$ restic stats latest --host hostname
scanning...
Stats for the latest snapshot in restore-size mode:
Total File Count: 14368
Total Size: 77.911 GiB
~$ restic stats --mode raw-data latest --host hostname
scanning...
Stats for the latest snapshot in raw-data mode:
Total Blob Count: 100348
Total Size: 71.916 GiB
Don’t mind the sizes indicated in v0.9.2 VS v0.9.3. I made a new snapshot after updating and that is why it has increased a little.
1 Like
fd0
October 13, 2018, 8:22pm
2
That’s odd, and a bug. Would you mind opening an issue on GitHub? Thanks!
Dj0k3
October 13, 2018, 9:04pm
3
Submitted. I didn’t know it was a bug. I assumed I was doing something wrong (as usual).
opened 09:03PM - 13 Oct 18 UTC
closed 06:07PM - 24 Nov 18 UTC
type: bug
state: need implementing
<!--
Welcome! - We kindly ask that you:
1. Fill out the issue template b… elow - not doing so needs a good reason.
2. Use the forum if you have a question rather than a bug or feature request.
The forum is at: https://forum.restic.net
NOTE: Not filling out the issue template needs a good reason, as otherwise it
may take a lot longer to find the problem, not to mention it can take up a lot
more time which can otherwise be spent on development. Please also take the
time to help us debug the issue by collecting relevant information, even if
it doesn't seem to be relevant to you. Thanks!
The forum is a better place for questions about restic or general suggestions
and topics, e.g. usage or documentation questions! This issue tracker is mainly
for tracking bugs and feature requests directly relating to the development of
the software itself, rather than the project.
Thanks for understanding, and for contributing to the project!
-->
Output of `restic version`
--------------------------
restic 0.9.3 compiled with go1.11.1 on linux/amd64
How did you run restic exactly?
-------------------------------
```
restic stats latest
restic stats --mode raw-data latest
```
<!--
This section should include at least:
* The complete command line and any environment variables you used to
configure restic's backend access. Make sure to replace sensitive values!
* The output of the commands, what restic prints gives may give us much
information to diagnose the problem!
-->
What backend/server/service did you use to store the repository?
----------------------------------------------------------------
sftp
Expected behavior
-----------------
```
scanning...
Stats for the latest snapshot in restore-size mode:
Total File Count: 14368
Total Size: 77.911 GiB
scanning...
Stats for the latest snapshot in raw-data mode:
Total Blob Count: 100348
Total Size: 71.916 GiB
```
<!--
Describe what you'd like restic to do differently.
-->
Actual behavior
---------------
```
scanning...
Fatal: latest snapshot for criteria not found: no snapshot found
```
<!--
In this section, please try to concentrate on observations, so only describe
what you observed directly.
-->
Steps to reproduce the behavior
-------------------------------
Running the following commands:
```
restic stats latest
restic stats --mode raw-data latest
```
<!--
The more time you spend describing an easy way to reproduce the behavior (if
this is possible), the easier it is for the project developers to fix it!
-->
Do you have any idea what may have caused this?
-----------------------------------------------
No.
Do you have an idea how to solve the issue?
-------------------------------------------
No.
Did restic help you or made you happy in any way?
-------------------------------------------------
Yes! Restic is the best backup solution I've ever tested so far.
<!--
Answering this question is not required, but if you have anything positive to share, please do so here!
Sometimes we get tired of reading bug reports all day and a little positive end note does wonders.
Idea by Joey Hess, https://joeyh.name/blog/entry/two_holiday_stories/
-->
And thanks to you for this great software!
1 Like