#Barman

2025-06-14

Barman woes on OVH

So, due to a cascade of Barman’s errors and corrupted backups due to running out of backup space, I had to pretty much clear out my Barman backup storage.

After resetting everything, however, I was not able to make a full backup, because Barman was not able to receive write-ahead logs from PostgreSQL.

2025-06-04 22:00:21,209 [523687] barman.cli ERROR: [Errno 5] Input/output error: '/backup/barman/pg/wals/00000001000000CD/00000001000000CD00000009.tmp'
See log file for more details.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/barman/cli.py", line 2390, in main
args.func(args)
File "/usr/lib/python3/dist-packages/barman/cli.py", line 1600, in archive_wal
server.archive_wal()
File "/usr/lib/python3/dist-packages/barman/server.py", line 2651, in archive_wal
self.backup_manager.archive_wal(verbose)
File "/usr/lib/python3/dist-packages/barman/backup.py", line 847, in archive_wal
archiver.archive(verbose)
File "/usr/lib/python3/dist-packages/barman/wal_archiver.py", line 213, in archive
self.archive_wal(compressor, wal_info)
File "/usr/lib/python3/dist-packages/barman/wal_archiver.py", line 356, in archive_wal
shutil.copystat(src_file, tmp_file)
File "/usr/lib/python3.12/shutil.py", line 388, in copystat
_copyxattr(src, dst, follow_symlinks=follow)
File "/usr/lib/python3.12/shutil.py", line 338, in _copyxattr
os.setxattr(dst, name, value, follow_symlinks=follow_symlinks)
OSError: [Errno 5] Input/output error: '/backup/barman/pg/wals/00000001000000CD/00000001000000CD00000009.tmp'

Input/output error? That’s odd, but the stacktrace tells us a lot, as from the function name (os.setxattr), we can deduce that it’s trying to set xattrs on our WAL files. The underlying storage for my backups is OVH’s Backup Storage, accessible over NFS. And NFS, for most of its life, was not able to support xattrs even if the underlying filesystem does. The support has been added to NFS 4.2, while OVH (still) uses 4.1.

So, how to fix this?

Initially, I thought of downgrading Barman, because things had worked before. But that did not help, and so I had to go digging into the source code (which was painful as I am not a Python guy).

# Perform the real filesystem operation with the xlogdb lock taken.            # This makes the operation atomic from the xlogdb file POV            with self.server.xlogdb("a") as fxlogdb:                # If the content has changed, it means the file was either compressed                # or encrypted or both. In this case, we need to update its metadata                if content_changed:                    shutil.copystat(src_file, current_file)                    stat = os.stat(current_file)                    wal_info.size = stat.st_size

So, if content_changed is true, we use copystat from shutil.py, which copies xattrs from the original file.

# If the bits of the file has changed e.g. due to compression or encryption            content_changed = False            # Compress the file if not already compressed            if compressor and not wal_info.compression:                compressor.compress(src_file, tmp_file)                files_to_remove.append(current_file)                current_file = tmp_file                content_changed = True                wal_info.compression = compressor.compression            # Encrypt the file            if encryption:                encrypted_file = encryption.encrypt(current_file, dst_dir)                files_to_remove.append(current_file)                current_file = encrypted_file                wal_info.encryption = encryption.NAME                content_changed = True

Ah, so therein lies the rub: Barman assumes that it needs to do this if the content is either being compressed or encrypted. And it just so happens that I’ve also enabled GZIP compression so as not to run out of space again. Well, we have to deal with this the old-fashioned way (by lowering the retention policy). After disabling compression, Barman was able to make backups again.

Hope this helps someone, because it sure as fuck would’ve helped me.

#Barman #lighthearted #NFS #NFSv4 #OVH #pgsql #PostgreSQL #SelfHosting

A screenshot of a grep on Barman logs, showing the error about which the blog post is talking about. /var/log/barman/barman.log:2025-06-04 21:59:04,771 [521188] barman.cli ERROR: [Errno 5] Input/output error: '/backup/barman/pg/wals/00000001000000CD/00000001000000CD00000009.tmp' /var/log/barman/barman.log-See log file for more details. /var/log/barman/barman.log-Traceback (most recent call last): /var/log/barman/barman.log- File "/usr/lib/python3/dist-packages/barman/cli.py", line 2390, in main /var/log/barman/barman.log- args.func(args) /var/log/barman/barman.log- File "/usr/lib/python3/dist-packages/barman/cli.py", line 1600, in archive_wal /var/log/barman/barman.log- server.archive_wal() /var/log/barman/barman.log- File "/usr/lib/python3/dist-packages/barman/server.py", line 2651, in archive_wal /var/log/barman/barman.log- self.backup_manager.archive_wal(verbose) /var/log/barman/barman.log- File "/usr/lib/python3/dist-packages/barman/backup.py", line 847, in archive_wal /var/log/barman/barman.log- archiver.archive(verbose) /var/log/barman/barman.log- File "/usr/lib/python3/dist-packages/barman/wal_archiver.py", line 213, in archive /var/log/barman/barman.log- self.archive_wal(compressor, wal_info) /var/log/barman/barman.log- File "/usr/lib/python3/dist-packages/barman/wal_archiver.py", line 356, in archive_wal /var/log/barman/barman.log- shutil.copystat(src_file, tmp_file) /var/log/barman/barman.log- File "/usr/lib/python3.12/shutil.py", line 388, in copystat /var/log/barm
La Gay Lifelagaylife
2025-05-25

Tommy dreams, à Montpellier, accueille le jeune Even Canaillou. Au moment de la fermeture de ce gay, ces deux beaux mecs vont vivre des moments chauds et érotiques dans cette vidéo gay très hot. A lire ici --> wp.me/pbyKZP-16op

2025-05-19

Commission I made for @rengaaraz.bsky.social‬. Fancy a drink, sweetheart?
#furry #furryart #commission #dragon #derg #barman #smirk

digital drawing of a dragon noodle fursona giving a drink to you. Looks like the drink has something in it making it fuming green.
RTL Nieuwsrtlnieuws
2025-03-20

𝗙𝗶𝗿𝘀𝘁 𝗗𝗮𝘁𝗲𝘀 𝘇𝗲𝗴𝘁 𝗯𝗮𝗿𝗺𝗮𝗻 𝗩𝗶𝗰𝘁𝗼𝗿 𝘃𝗮𝗮𝗿𝘄𝗲𝗹 𝗺𝗲𝘁 𝘀𝗽𝗲𝗰𝗶𝗮𝗹𝗲 𝘂𝗶𝘁𝘇𝗲𝗻𝗱𝗶𝗻𝗴

Barman Victor Abeln is op 25 maart voor het laatst te zien in datingprogramma First Dates. In deze laatste aflevering met Victor "blikken we terug met een compilatie en bedanken we Victor voor zijn bijdrage". Dat maakte BNNVARA donderdag bekend.

rtl.nl/boulevard/artikel/55002

2025-02-16

RDV cet aprem à l'Antre Jeux à #Limoges

🤔💡 PROTOTYPES 💡🤔
C'est après demain, et comme tous les mois des auteurs et autrices du coin viennent faire découvrir leurs prototypes de jeux !
Venez essayer et leur filer le coup de main dont ils ont besoin !
#limogesmaville💖 #instalimoges #antrejeux #friendship #sortiràlimoges #barman #newslimoges #cocktails #cafeludique #jeuxdesociété #fun #barajeux #bières #boardgamecafe #limogestourisme #limogesmaville

facebook.com/antrejeux

DV cet aprem à l'Antre Jeux à Limoges 

🤔💡 PROTOTYPES 💡🤔
C'est après demain, et comme tous les mois des auteurs et autrices du coin viennent faire découvrir leurs prototypes de jeux !
Venez essayer et leur filer le coup de main dont ils ont besoin !
 #limogesmaville💖 #instalimoges #antrejeux #friendship #sortiràlimoges #barman #newslimoges #cocktails #cafeludique #jeuxdesociété #fun #barajeux #bières #boardgamecafe #limogestourisme #limogesmaville

https://www.facebook.com/antrejeux
RTL Nieuwsrtlnieuws
2024-12-10

𝗕𝗮𝗿𝗺𝗮𝗻 𝗲𝗻 𝗸𝗹𝗮𝗻𝘁 𝘀𝗹𝗶𝗲𝗽𝗲𝗻 𝗶𝗻 𝗸𝗲𝗹𝗱𝗲𝗿 𝗰𝗮𝗳é 𝗧𝗮𝗿𝘄𝗲𝗸𝗮𝗺𝗽: '𝗢𝗻𝗴𝗲𝗹𝗼𝗼𝗳𝗹𝗶𝗷𝗸 𝗱𝗮𝘁 𝘇𝗲 𝗻𝗼𝗴 𝗹𝗲𝘃𝗲𝗻, 𝘃𝗮𝗻 𝗱𝗲 𝗯𝗮𝗿 𝗶𝘀 𝗻𝗶𝗲𝘁𝘀 𝗼𝘃𝗲𝗿'

De barman en een vaste klant van Café Bar Rosa, die zaterdagochtend gewond raakten in Den Haag, sliepen ten tijde van de explosies in de kelder van de horecagelegenheid. "Dat ze nog leven en nauwelijks gewond zijn, is...

rtl.nl/nieuws/binnenland/artik

RTL Nieuwsrtlnieuws
2024-12-10

'𝗕𝗮𝗿𝗺𝗮𝗻 𝗲𝗻 𝗸𝗹𝗮𝗻𝘁 𝘀𝗹𝗶𝗲𝗽𝗲𝗻 𝗶𝗻 𝗸𝗲𝗹𝗱𝗲𝗿 𝗸𝗿𝗼𝗲𝗴 𝗮𝗮𝗻 𝗱𝗲 𝗧𝗮𝗿𝘄𝗲𝗸𝗮𝗺𝗽'

De barman en een vaste klant van Café Bar Rosa, die zaterdagochtend gewond raakten aan de Tarwekamp in Den Haag, sliepen ten tijde van de explosies in de kelder van de horecagelegenheid. Dat meldt Omroep West.

rtl.nl/nieuws/binnenland/artik

2024-11-03

Quelques notes au sujet de la nouvelle fonctionnalité "increment" de #PostgreSQL 17 et de son impact sur #barman et #pgbackrest

notes.sklein.xyz/2024-11-03_11

RTL Nieuwsrtlnieuws
2024-06-24

𝗕𝗮𝗿𝗺𝗮𝗻 𝗯𝗲𝘃𝗲𝘀𝘁𝗶𝗴𝘁: '𝗝𝘂𝘀𝘁𝗶𝗻 𝗧𝗶𝗺𝗯𝗲𝗿𝗹𝗮𝗸𝗲 𝗵𝗮𝗱 𝗺𝗮𝗮𝗿 éé𝗻 𝗺𝗮𝗿𝘁𝗶𝗻𝗶 𝗼𝗽'

Justin Timberlake (43) wist vorige week de nieuwskoppen te halen toen hij werd opgepakt voor rijden onder invloed. De bloeddoorlopen ogen op zijn 'mugshot' voorspellen weinig goeds, maar de zanger zelf blijft volhouden dat hij slechts één martini heeft gedronken. Die bewering wordt nu ondersteund...

rtlnieuws.nl/entertainment/art

2024-06-09

Обзор открытых свободных инструментов для создания резервных копий СУБД PostgreSQL

Перефразируя древнюю мудрость: все люди делятся на 10 типов: те, кто не знает, зачем нужны резервные копии, и те, кто делает резервные копии. В данном обзоре я попробую мал-мала расшифровать свою давнюю табличку (внеся в неё некоторое количество изменений): Обзор наиболее популярных средств для создания резервных копий PostgreSQL. Ибо не вижу я ни подобных обзоров в информационном поле, ни грамотного, с технической точки зрения, подхода к выбору инструмента вообще, и для создания резервных копий (РК) СУБД PostgreSQL в тех организациях, куда заносит профессиональная деятельность, в частности. Основной аргумент выбора: знания и умения текущего системного администратора. Доводилось встречаться со сменой инструмента по причине того, что новый администратор баз данных не знал и не умел уже использовавшийся продукт. Причём использовался вполне себе достойный, но... (конкретики не будет, по причинам, например, секретным, увы мне).

habr.com/ru/articles/820349/

#postgresql #barman #walg #pg_probackup #pgbackrest #резервное_копирование #администрирование_баз_данных #администрирование_бд

vagabondageautourdesoivagabondageautourdesoi
2024-05-27


@AlbinMichel Philippe Collin est dans sur @franceinter pour presenter son incursion très réussie dans à travers son ❤️ et 🙏 @Philco750062
de ici
vagabondageautourdesoi.com/202

RTL Nieuwsrtlnieuws
2024-04-29

𝗕𝗮𝗿𝗺𝗮𝗻 𝗩𝗶𝗰𝘁𝗼𝗿 𝘀𝘁𝗼𝗽𝘁 𝗯𝗶𝗷 𝗙𝗶𝗿𝘀𝘁 𝗗𝗮𝘁𝗲𝘀: '𝗪𝗶𝗲 𝗻𝗲𝗲𝗺𝘁 𝗺𝗶𝗷𝗻 𝘀𝘁𝗿𝗶𝗸𝗷𝗲 𝗼𝘃𝗲𝗿?'

Een domper voor 'First Dates'-fans: na maître Sergio (53), houdt ook barman Victor (40) het voor gezien. De vertrouwde, knappe verschijning legt uit waarom hij (tijdelijk) vertrekt en doet een oproep aan zijn opvolger.

rtlnieuws.nl/entertainment/art

StormaticsStormaticsTech
2024-03-19

PostgreSQL expert, Semab Tariq, uncovers manual hacks to successfully recover tablespaces with Barman, navigating through errors encountered...

More details in this blog: stormatics.tech/blogs/recovery

...

Umair Shahidumairshahid
2024-02-26

Disaster recovery is an essential component of any strategy designed to run a reliably for mission-critical data in production. is one the most popular tools in the ecosystem to implement a strategy aligned with the RPO and RTO of an organization. This blog by Muhammad Ali dives deep into the concepts and the commands required to set up and point-in-time recovery for using Barman.

Read more: stormatics.tech/alis-planet-po

Adoro il Genio :verified:AdoroIlGenio@mastodon.uno
2024-01-08

ADORO IL GENIO - OI DIALOGOI

Eufrasio si che sa cosa vogliono i clienti il lunedì mattina!

#adoroilgenio #8gennaio #barber #caffè #caffe #caffetteria #caffèforte #lunedì #lunedi #lunedimattina #lunedimood #barman #barista

2023-11-30
2023-08-01

Sounds a bit random but all will become clear later. You have two #ingredients; #Monkey47 #Gin and #egg #white akin to the #Pisco #Sour. Adding other ingredients to your #imagination, make me a #cocktail! We will call it #Fipps.

#Barman #BarTender #Mixologist #Creative #Creation #Recipe #Alcohol #Ingredients #Idea #Ideas

! Quite Interestingnotqikipedia@toot.io
2023-06-25

The term ‘barista’ was introduced during Mussolini’s campaign against the use of foreign-languages. It was considered a more Italian word to replace the English term ‘tea lady’.

#barista #baristas #barman #tealady #coffee #coffeelover #coffeemaker #italiancoffee #italy #history #mussolini #QI #notQI

2023-05-23

Danilo, il #barman che sbuffa 😂 Caffetteria Fenaroli #lanciano #abruzzo #cafeart

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst