Backup not working to NFS-Share

Hello all,

NethServer Version: NethServer release 7.6.1810 (final)

Since Jan 10th the Data backup is’nt working anymore. it worked before without any problem for years.

I don’t get any entrys in /var/log/messages. in the backup log there is

Backup: backup-data
Backup started at 2020-01-14 22:12:44
Event pre-backup-data: FAIL
Backup status: FAIL

Log file: /var/log/backup/backup-backup-data-202001142212.log

I don’t find anything else in any logfile.

Is there a something like verbose level for the logs?

Please take a look: daily-backup-error

Thank you for your replay, but this is not working for me. the last backup log is from Aug 2018 :frowning: and even after deleting the content of the folder /var/lib/nethserver/backup/duplicity/ the backup fails.

Could you post /var/log/messages?
The problem is in pre-backup-data.

Jan 14 23:43:01 home2 systemd: Started Session 8459 of user root.
Jan 14 23:45:01 home2 systemd: Created slice User Slice of apache.
Jan 14 23:45:01 home2 systemd: Started Session 8460 of user apache.
Jan 14 23:45:08 home2 systemd: Removed slice User Slice of apache.
Jan 14 23:45:08 home2 sssd: tkey query failed: GSSAPI error: Major = Unspecified GSS failure. Minor code may provide more information, Minor = Server not found in Kerberos database.
Jan 14 23:45:09 home2 sssd: tkey query failed: GSSAPI error: Major = Unspecified GSS failure. Minor code may provide more information, Minor = Server not found in Kerberos database.
Jan 14 23:45:09 home2 sssd: tkey query failed: GSSAPI error: Major = Unspecified GSS failure. Minor code may provide more information, Minor = Server not found in Kerberos database.
Jan 14 23:45:09 home2 sssd: tkey query failed: GSSAPI error: Major = Unspecified GSS failure. Minor code may provide more information, Minor = Server not found in Kerberos database.
Jan 14 23:45:10 home2 sssd: tkey query failed: GSSAPI error: Major = Unspecified GSS failure. Minor code may provide more information, Minor = Server not found in Kerberos database.
Jan 14 23:47:54 home2 sshd[21928]: Connection closed by 146.66.244.246 port 42014 [preauth]
Jan 14 23:50:01 home2 systemd: Created slice User Slice of apache.
Jan 14 23:50:01 home2 systemd: Started Session 8461 of user apache.

thats all I found I just deletet some dhcp messages

Please follow this:

grep pre-backup-data /var/log/messages

You should find some lines like these:

Jan 14 03:00:04 mail esmith::event[4239]: Action: /etc/e-smith/events/pre-backup-data/S20nethserver-backup-config-predatabackup SUCCESS [1.65277]
Jan 14 03:00:04 mail esmith::event[4239]: Action: /etc/e-smith/events/pre-backup-data/S50mysql-dump-tables SUCCESS [0.362955]
Jan 14 03:00:04 mail esmith::event[4239]: Action: /etc/e-smith/events/pre-backup-data/S50nethserver-ejabberd-backup SUCCESS [0.297388]
Jan 14 03:00:04 mail esmith::event[4239]: Action: /etc/e-smith/events/pre-backup-data/S50nethserver-webtop5-backup SUCCESS [0.152889]
Jan 14 03:00:04 mail esmith::event[4239]: Event: pre-backup-data SUCCESS

Take the number in parentheses like [4239] and then launch

grep 4239 /var/log/messages

and post the output.

Replace the number with the number in your logs.

nope, there is nothing in there

Strange… have you cleaned your logs?

no I hven’t

Try launching on CLI signal-event pre-backup-data and then check your logs

still nothing in the logs. I just checkt some older log, when the backup was working, even there was nothing in the log file.

I’ve just launched the command on my server and in /var/log/messages I can found some entries…

thats strange.
is the loglevel somewhere to adjust?

Post the output of ls -l /etc/e-smith/events/actions/pre-backup-data

ls -l /etc/e-smith/events/actions/pre-backup-data
ls: Zugriff auf /etc/e-smith/events/actions/pre-backup-data nicht möglich: Datei oder Verzeichnis nicht gefunden
(Access to /etc/e-smith/events/actions/pre-backup-data not possible: file not found)

Sorry: wrong command…

ls -l /etc/e-smith/events/pre-backup-data/

 ls -l /etc/e-smith/events/pre-backup-data/
insgesamt 0
lrwxrwxrwx 1 root root 49 31. Jul 09:08 S20nethserver-backup-config-predatabackup -> ../actions/nethserver-backup-config-predatabackup
lrwxrwxrwx 1 root root 44  3. Sep 20:12 S20nethserver-restore-data-duc-index -> ../actions/nethserver-restore-data-duc-index
lrwxrwxrwx 1 root root 28 26. Okt 2018  S50mysql-dump-tables -> ../actions/mysql-dump-tables
lrwxrwxrwx 1 root root 37  3. Sep 20:12 S50nethserver-ibays-dump-acls -> ../actions/nethserver-ibays-dump-acls

Ok, you should execute these scripts and check which one has problems (I think mysql-dump-tables).
Try

/etc/e-smith/events/pre-backup-data/S50mysql-dump-tables

and post the output.

1 Like

thank you verry much. it was a missin right on the database. looks like its working now.

but still strange there are no entrys in the logfile :thinking:

Program your backup and check if next days there are populated logs. I suggest you also to check permissions on /var/log folder.

Please mark this topic as solved. If you need help with logs, I suggest you to open a new one.