Hi Greg and Falko

> On 21 Apr 2020, at 20:09, Greg Harris <ghar...@teamexpansion.org> wrote:
> 
> You seem to have a pretty good handle on stuff, but you aren’t suffering from 
> CentOS’ silent killer are you?  SELinux?

Thank for the suggestion. Unfortunately it's not SELinux, I have it fully 
disabled to be certain.

> On 21 Apr 2020, at 20:05, Falko Trojahn via BackupPC-users 
> <backuppc-users@lists.sourceforge.net> wrote:
> 
> So, the differences seem to be:
> 
> * you're using sudo and a special backup user
> 
> * as your DumpPreUserCmd errors out, did you try without?
>  *  does the backup work without DumpPreUserCmd?

Yes, I have tried without DumpPreUserCmd.

Without DumpPreUserCmd I get the following error when initiating an incremental 
backup through the web interface:

        Got fatal error during xfer (rsync error: unexplained error (code 255) 
at io.c(226) [Receiver=3.1.2.0])

And the following error when initiating a full backup through the web interface:

        Got fatal error during xfer (No files dumped for share /)

Also, both backup attempts do not yield any visible outgoing traffic via 
tcpdump. So apparently it is not even initiating the outbound SSH connections.

> > DumpPreUserCmd returned error status 65280... exiting
>  *  what is this errorstatus from?

I think it is a wrapper script multiplying an exit code 255 with 256. The 255 
may be coming from the SSh command. But that is just speculation from my end. 

> May be this helps, too:
> (...)
> (on Debian, this is in another location:
>  /usr/share/backuppc/bin/BackupPC_dump
> don't know about CentOS)

Thanks. Already tried a manual backup through the CLI, and this works.
The outbound SSH connection to the jump host is visible in "tcpdump" and the 
backups succeed. There is nothing interesting in the verbose output, it's just 
showing a successful backup process. :-)

For later reference: the command on CentOS is:

        /usr/share/BackupPC/bin/BackupPC_dump

So, I am only seeing this issue with backups automatically initiated from the 
hourly schedule or manually initiated through the web interface.

That's weird, right? I guess since you guys are able to get it working without 
any issues, I must be doing something awfully stupid or I am hitting a weird 
bug in my CentOS environment. Can I increase logging of the scheduling 
processes or of the web interface so I can see more details about which exact 
commands are being executed? 

I am still thinking the SSH command is somehow getting mixed up when started 
from the scheduler or web application.

> Yes, you can use another user. Is it a normal sshd what you use for jump 
> host, or something like sshportal or ssh-bastion?

All hosts use normal sshd from CentOS 7.

Best regards,

Pim Rupert

_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to