Comments (7)
Thanks! After running tune2fs -m 1 /dev/sda1
I could use borg again (prune/compact). Thanks!
from borg.
That rather looks like an issue with your temp directory.
Remote: FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/home/kmille']
But if the fs is completely out of space, that is a bad situation to be in (that's why the docs warn about it).
Can you make the fs bigger? If not, can you copy the files to a bigger fs?
from borg.
Can you make the fs bigger? If not, can you copy the files to a bigger fs?
Nope
from borg.
OK, then at least check what's up with the temp directory.
Also do a ls -l
in the repo/ directory and also in the 2 highest-number subdirs inside repo/data/ and post it below or on a pastebin.
This will get a bit complicated and risky. If it is super important and you don't want to take the risk of making it worse, make a copy of your current repo state.
from borg.
Also, you might need to execute some borg
commands directly as I have no clue about borgctl
.
from borg.
borgctl is just a wrapper, I can just use borg. But you see all the borgs command that are executed.
It's one of the remote backup storage. So no worry. But it would be nice to have it up and running again.
borg info fails
kmille@linbox:.ssh sudo borgctl -c 123 info
2024-05-02 14:42:13,023 INFO Using config file /etc/borgctl/123.yml
Please enter the borg passphrase for [email protected]:borg-laptop:
2024-05-02 14:42:28,634 INFO Executing: BORG_REPO="[email protected]:borg-laptop" BORG_LOGGING_CONF="/etc/borgctl/logging.conf" BORG_RELOCATED_REPO_ACCESS_IS_OK="yes" BORG_RSH="ssh -i /root/.ssh/borg_123_laptop" /usr/bin/borg --verbose info
2024-05-02 14:42:30,380 ERROR Remote: self test test_identical_creation (borg.testsuite.hashindex.HashIndexDataTestCase.test_identical_creation) FAILED:
Remote: Traceback (most recent call last):
Remote: File "/usr/lib/python3/dist-packages/borg/testsuite/hashindex.py", line 339, in test_identical_creation
Remote: serialized = self._serialize_hashindex(idx1)
Remote: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Remote: File "/usr/lib/python3/dist-packages/borg/testsuite/hashindex.py", line 314, in _serialize_hashindex
Remote: with tempfile.TemporaryDirectory() as tempdir:
Remote: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Remote: File "/usr/lib/python3.11/tempfile.py", line 993, in __init__
Remote: self.name = mkdtemp(suffix, prefix, dir)
Remote: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Remote: File "/usr/lib/python3.11/tempfile.py", line 496, in mkdtemp
Remote: prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)
Remote: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Remote: File "/usr/lib/python3.11/tempfile.py", line 265, in _sanitize_params
Remote: dir = gettempdir()
Remote: ^^^^^^^^^^^^
Remote: File "/usr/lib/python3.11/tempfile.py", line 438, in gettempdir
Remote: return _os.fsdecode(_gettempdir())
Remote: ^^^^^^^^^^^^^
Remote: File "/usr/lib/python3.11/tempfile.py", line 431, in _gettempdir
Remote: tempdir = _get_default_tempdir()
Remote: ^^^^^^^^^^^^^^^^^^^^^^
Remote: File "/usr/lib/python3.11/tempfile.py", line 362, in _get_default_tempdir
Remote: raise FileNotFoundError(_errno.ENOENT,
Remote: FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/home/kmille']
Remote:
2024-05-02 14:42:30,430 ERROR Connection closed by remote host. Is borg working on the server?
2024-05-02 14:42:30,506 ERROR Borg failed with exit code 2
I'm out of space:
kmille@borg01:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 478M 0 478M 0% /dev
tmpfs 98M 468K 98M 1% /run
/dev/sda1 296G 284G 0 100% /
tmpfs 489M 0 489M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 98M 0 98M 0% /run/user/1001
Regarding TMP:
kmille@borg01:~$ ls /tmp/
systemd-private-32fc863ff9e84481940d8eeabf21638f-ntpsec.service-P65kRe systemd-private-32fc863ff9e84481940d8eeabf21638f-systemd-logind.service-z9cS2x
kmille@borg01:~$ ls /var/tmp/
cloud-init systemd-private-32fc863ff9e84481940d8eeabf21638f-ntpsec.service-owVh2q systemd-private-32fc863ff9e84481940d8eeabf21638f-systemd-logind.service-z57NEn
kmille@borg01:~$ ls /usr/tmp
ls: cannot access '/usr/tmp': No such file or directory
kmille@borg01:~$ ls /home/kmille/
borg-more-data borg-laptop borg-more-more
kmille@borg01:~$ echo 123 > /tmp/test.txt
-bash: echo: write error: No space left on device
Regarding borg
kmille@borg01:~/borg-laptop$ ls -l
total 90696
-rw------- 1 kmille kmille 700 Jan 9 12:24 config
drwx------ 3 kmille kmille 4096 Jan 9 12:24 data
-rw------- 1 kmille kmille 5267447 Apr 22 09:39 hints.602
-rw------- 1 kmille kmille 87578378 Apr 22 09:39 index.602
-rw------- 1 kmille kmille 190 Apr 22 09:39 integrity.602
-rw------- 1 kmille kmille 16 Apr 30 10:41 nonce
-rw------- 1 kmille kmille 73 Jan 9 12:24 README
-rw------- 1 kmille kmille 3229 Apr 22 09:39 transactions
kmille@borg01:~/borg-laptop$ ls -l data/
total 12
drwx------ 2 kmille kmille 12288 Apr 30 10:42 0
kmille@borg01:~/borg-laptop$ ls data/0/ -lv
...
-rw------- 1 kmille kmille 17 Apr 22 09:39 599
-rw------- 1 kmille kmille 49 Apr 22 09:39 600
-rw------- 1 kmille kmille 1885 Apr 22 09:39 601
-rw------- 1 kmille kmille 17 Apr 22 09:39 602
-rw------- 1 kmille kmille 524389521 Apr 30 10:25 603
-rw------- 1 kmille kmille 524980570 Apr 30 10:28 604
-rw------- 1 kmille kmille 524485294 Apr 30 10:31 605
-rw------- 1 kmille kmille 524753901 Apr 30 10:34 606
-rw------- 1 kmille kmille 524298357 Apr 30 10:35 607
-rw------- 1 kmille kmille 525603612 Apr 30 10:37 608
-rw------- 1 kmille kmille 524850642 Apr 30 10:39 609
-rw------- 1 kmille kmille 526923171 Apr 30 10:41 610
-rw------- 1 kmille kmille 527638641 Apr 30 10:42 611
-rw------- 1 kmille kmille 484970496 Apr 30 10:44 612
kmille@borg01:~/borg-laptop$
Anything else you need? Thanks for your support!
from borg.
/dev/sda1 296G 284G 0 100% /
No, you are not really out of space, you have ~12GB left.
For ext4 (ext3, ext2), there is a "reserved free space only for root" percentage you can adjust with tune2fs
.
So:
- reduce that percentage to the minimum allowed (0 or 1 %)
- fix your temp dir if it still gives errors
- try borg delete / prune / ... and compact(!) to free space
- raise reserved space to some reasonable percentage again
- use the borg repo config to also reserve some space so the fs does not run full
- check whether you invoke borg compact in your scripts, this is required to free space since borg 1.2
from borg.
Related Issues (20)
- run in venv w/ root rights HOT 3
- As of 1.2.0, the ssh relative path hack "/./" works for most actions but not "borg init" HOT 4
- Please add a way to keep backups independently of pruning retention policy HOT 2
- ConnectionResetError: [Errno 104] Connection reset by peer HOT 3
- `borgfs` in Standalone Binary Installation Docs HOT 2
- Can't build borg on arm64 (armbian 22.04LTS) HOT 20
- Use multithreaded zstd compression HOT 4
- Security Feature: Error if local / repository nonce are not in agreement -- improve encryption trust HOT 1
- Are backup archive names encrypted? Cannot find answer in docs. HOT 1
- Backups much slower (5 mins compared to 0.3 secs) than reported "Duration" -- any way to speed it up? HOT 6
- Possible bug in pruning logic with keep-weekly and keep-monthly HOT 7
- netbsd9 vagrant box: broken libxxhash.pc HOT 2
- locking.py seems multiprocess-safe but not thread-safe HOT 1
- `borg check` hangs after errors HOT 5
- pytest startdir: py.path.local argument is deprecated
- Getting "Data integrity error: Invalid segment entry size 0" on fresh repos HOT 9
- Breaking change between b7 and b8 for encrypted repos HOT 5
- --pattern having different outcome in crontab HOT 6
- 2.0.0b5 repositories inaccessible with 2.0.0b8 - KeyError: 'type' in repoobj.py HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from borg.