Hi Jennifer, that's actually a very good guess... I'll check later on
and
report back.
CJ
Jennifer Sutton via samba <samba at lists.samba.org> escreveu (segunda,
14/10/2024 ?(s) 00:11):
> On 13/10/24 6:53 am, Carlos Jesus via samba wrote:
> > Hello all,
> > Hoping I never have to restore it, I'm trying to do an offline
backup of
> my
> > domain. On a DC I "croned" /usr/bin/samba-tool domain backup
offline
> > --targetdir=/usr/local/backups/samba
> >
> > The backup systematically fails leaving a folder
> > INCOMPLETEsambabackupfileXXXXX with a small .tar inside.
> > If I run it "by hand", I get the same result. The (what I
think is the)
> > relevant part of the error is:
> >
> > running offline ntacl backup of sysvol
> > py_smbd_create_file: init_files_struct failed:
> NT_STATUS_INVALID_PARAMETER
> > ERROR(runtime): uncaught exception - (3221225485, 'An invalid
parameter
> was
> > passed to a service or function.')
> > File
"/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line
> 279,
> > in _run
> > return self.run(*args, **kwargs)
> > ^^^^^^^^^^^^^^^^^^^^^^^^^
> > File
"/usr/lib/python3/dist-packages/samba/netcmd/domain/backup.py",
> line
> > 1219, in run
> > backup_offline(paths.sysvol, sysvol_tar, paths.smbconf, dom_sid)
> > File "/usr/lib/python3/dist-packages/samba/ntacls.py",
line 583, in
> > backup_offline
> > smbd.create_file(dst, session_info, service)
> >
> > I don't Python, and all I could think of was to check the sysvol
> > permissions and, just in case, reset them according to
> > https://wiki.samba.org/index.php/Sysvolreset.
> > Same result.
> >
> >
> > Kinda out of ideas here.... and, as usually, any help is appreciated.
>
> This is just a guess? but do you have permission to write to
> /usr/local/backups/samba without using ?sudo??
>
> Cheers,
> Jennifer (she/her)
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>