BackupPC-users

Re: [BackupPC-users] userid mismatch error...though uid's are not wrong

2008-08-11 13:47:24
Subject: Re: [BackupPC-users] userid mismatch error...though uid's are not wrong
From: James Kyle <jameskyle AT ucla DOT edu>
To: BackupPC User List <backuppc-users AT lists.sourceforge DOT net>
Date: Mon, 11 Aug 2008 10:48:21 -0700
Thank you for the response and pointed questions

James Kyle wrote on 2008-08-06 12:19:38 -0700 [[BackupPC-users] userid mismatch error...though uid's are not wrong]:
I'm getting a userid mismatch error using mod_perl and a specialized  
httpd daemon run as the backppc user.

your error message seems to indicate that it is not related to the web server.

If my backuppc user has uid 300, the error reads as follows:

/usr/local/BackupPC/bin/BackupPC_dump: Wrong user: my userid is 300,  
instead of  (backuppc)

As I mentioned, the backuppc uid *is* 300.

First of all, what version of BackupPC are you running?


The 3.1.0 sources indicate that there *should* be a user id before the
"(backuppc)" in the error message. It is empty, so "getpwnam ('backuppc')"
failed - which is strange, to say the least.

What do the relevant lines of nsswitch.conf look like
("egrep 'passwd|shadow' /etc/nsswitch.conf")?


Could you give us some more information on your OS environment?


So I'm a bit confused at  
what is going on. In addition, I can restart the BackupPC daemon and  
initialize a backup and it completes without error...then after a  
while, this error arises and will not go away.

Are you using some strange ulimits? SElinux? Can you tell if the time until it
reappears is "about the same" or very random (actually, the count of processes
started by the BackupPC daemon - assuming they all "use Lib;" - would be the
interesting figure, but that's hard to count)?
Version: 3.1.0 on OSX 10.5.5
As of osx 10.5, all usernames/uid's are kept in ldap. The backuppc user was created in the local directory.
ulimits: sysctl kern.maxproc => 532



You might try setting DumpPostUserCmd to '/usr/bin/id -a' (unless you're
already using it; DumpPostShareCmd will do just as well or either of the Pre
commands, though Post would be better). Does 'id' start having the same
problems at the same time? Are there better diagnostics from 'id' as to the
cause?

Executing id from the command line always provides the correct uid for the backuppc user. I have added /usr/bin/id -a to the Pre and Post command for dump. However, it does not appear to be outputting this to the log. 

Below is the output of the log showing the application of the pre command (same entry was made for post, I do this to indicate that the change is, indeed, taking place). Followed by the output of a couple of requested incrementals. This was immediately after restarting the BackupPC daemon so the request succeeded. 

2008-08-11 10:41:04 User jkyle requested backup of mscohen (mscohen)
2008-08-11 10:41:04 Started incr backup on mscohen (pid=51279, share=/Users)
2008-08-11 10:42:10 jkyle changed DumpPreUserCmd in main config to '/usr/bin/id -a' from undef
2008-08-11 10:42:10 Reloading config/host files via CGI request
2008-08-11 10:42:10 Next wakeup is 2008-08-11 11:00:00
2008-08-11 10:42:17 Stopping current incr of mscohen, request by jkyle (backoff=)
2008-08-11 10:42:22 Backup canceled on mscohen (aborted by user (signal=INT))
2008-08-11 10:42:48 User jkyle requested backup of mscohen (mscohen)
2008-08-11 10:42:48 Started incr backup on mscohen (pid=51291, share=/Users)
2008-08-11 10:45:53 User jkyle requested backup of arne (arne)
2008-08-11 10:45:55 Started incr backup on arne (pid=51306, share=/Users)

When the aberrant behavior shows up again, I'll post the complete output of that process.

Regards,
Holger

Thanks, Holger,

James Kyle
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
<Prev in Thread] Current Thread [Next in Thread>