Git Product home page Git Product logo

Comments (7)

kmille avatar kmille commented on June 9, 2024 1

Thanks! After running tune2fs -m 1 /dev/sda1I could use borg again (prune/compact). Thanks!

from borg.

ThomasWaldmann avatar ThomasWaldmann commented on June 9, 2024

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.

kmille avatar kmille commented on June 9, 2024

Can you make the fs bigger? If not, can you copy the files to a bigger fs?
Nope

from borg.

ThomasWaldmann avatar ThomasWaldmann commented on June 9, 2024

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.

ThomasWaldmann avatar ThomasWaldmann commented on June 9, 2024

Also, you might need to execute some borg commands directly as I have no clue about borgctl.

from borg.

kmille avatar kmille commented on June 9, 2024

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.

ThomasWaldmann avatar ThomasWaldmann commented on June 9, 2024
/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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.