Backup Error dnsmasq to SMB-Share

NethServer Version: ns8
Module: Backup
Hi,
I’ve got a problem with one backup job. It is for backing up three applications: Loki, Traefik and DNSmasq. The first two work fine, and the third, DNSmasq, did as well until today.
The error:
dnsmasq2: starting backup 4 at Wed Jul 1 08:48:54 2026
Repository is present at path dc336d94-e81f-58ea-b923-b12bd78229c2/dnsmasq/799e8565-f65f-4c60-9cff-2d3dfc91ff55
[ERROR] restic backup failed: Popen.init() got an unexpected keyword argument ‘check’
dnsmasq2: backup 4 failed (exit code 1)

Does anyone have any idea what I’ve done wrong?

Thank you for any suggestions.

maddin

Hi,

Latest core.

I recently added a crowdsec module then added it to an existing backup :

When lauched from the UI, it fails :

crowdsec2: starting backup 8 at Wed Jul  1 11:23:00 2026
Repository is present at path ce9fb2b8-d342-5aaa-b538-ada6b54553f7/crowdsec/4274927c-0a9c-4efb-b1c9-84ada41e2048
[ERROR] restic backup failed: Popen.__init__() got an unexpected keyword argument 'check'
crowdsec2: backup 8 failed (exit code 1)

When launched manually it succeeds :

[root@ns8 ~]# runagent -m node run-backup --backup 8
(...)
crowdsec2: starting backup 8 at Wed Jul  1 11:16:09 2026
Repository is present at path ce9fb2b8-d342-5aaa-b538-ada6b54553f7/crowdsec/4274927c-0a9c-4efb-b1c9-84ada41e2048
no parent snapshot found, will read all files

Files:          19 new,     0 changed,     0 unmodified
Dirs:            4 new,     0 changed,     0 unmodified
Added to the repository: 41.857 MiB (6.923 MiB stored)

processed 19 files, 41.838 MiB in 0:07
snapshot 84222e41 saved
Applying Policy: keep 30 latest snapshots
keep 1 snapshots:
ID        Time                 Host        Tags        Reasons        Paths                                            Size
---------------------------------------------------------------------------------------------------------------------------------
84222e41  2026-07-01 09:16:12  ns8                     last snapshot  /srv/state/environment                           41.838 MiB
                                                                      /srv/state/secrets/bouncer_keys_firewall.secret
                                                                      /srv/volumes/data
---------------------------------------------------------------------------------------------------------------------------------
1 snapshots

crowdsec2: backup 8 completed
(...)
Backup 8 completed successfully

What’s wrong ? :thinking:

Txs !

not reproducible here on my system

1 Like

It seems the same error reported here: Backup Error dnsmasq to SMB-Share

Can you past the full task log extract?

2 Likes

It looks like a programming error!

When backup runs under UI a different execution path is chosen.

2 Likes

huw why only for rootfull module therefore ?

1 Like

I can reproduce with crowdsec and dnsmasq. It seems only rootfull apps are affected.

To me it seems the error is triggered by following line: (after commenting out there’s no error anymore)

Which leads to the following subprocess.popen command:

4 Likes

Is still needed ? The log is quite big, too big to be pasted here.

Txs for looking at this.

1 Like

Hi All,

sry, should have added that I’ve updated the core today!

And as I read, my log isn’t needed anymore!?

Thx you all

maddin

The bug can be easily reproduced, logs are not needed. I’m changing the category of this topic to Bug, thank you! Manual rootful app backup run fails for Popen.__init__() unexpected keyword argument 'check' · Issue #8076 · NethServer/dev · GitHub

3 Likes