Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store and apply actions fail when user or group ID of some dirs/files in file system has no entry in password or group database #37

Open
krichter722 opened this issue Nov 2, 2015 · 4 comments
Labels
drawback is-dependent Issues that may be hard to resolve without doing other changes first.

Comments

@krichter722
Copy link

That's not ideal for usage with git as backup program since it shouldn't be necessary to have a file owner present on the system where the backup is created.

Failure is assumed from the text of the warning. In case that's just a warning, it needs be improved and/or labeled in order to sound like a warning.

@przemoc
Copy link
Owner

przemoc commented Nov 2, 2015

Well, it depends on the kind of backup you're actually doing. One thing is sure, I won't change the behavior for upcoming v1.1. There are two reasons:

  • v1.1 won't have behavioral changes,
  • you cannot store uid in current metastore format, because it uses names by design.

That said, I'm open to tune it in the future. Configuration (#7) and textual format (#6) will be needed for that.

@przemoc przemoc changed the title metastore -s fails with "getpwuid failed for [path]: uid [uid] not found" if uid isn't present Store action should not fail when there is no user in password file with uid equal to metastored file's owner uid. Nov 2, 2015
@przemoc przemoc added feature-request Feature request that has not been accepted yet. Prefer discussion in Ideas. is-dependent Issues that may be hard to resolve without doing other changes first. labels Nov 2, 2015
@smemsh
Copy link

smemsh commented Nov 4, 2015

Definitely good idea. Just had occasion for this yesterday:
ran a script that was supposed to recursively change
permissions in /etc/something/ but it had a bug that
caused it to start in /etc/; had to restore permissions
from backup.

However the backup machine had a totally different
/etc/passwd; I had done my backup using
rsync --numeric-ids. Unfortunately, lack of support for
this operation in metastore made this impossible (it does
getpw* calls and bombed).

I had to use getfacl | setfacl instead.

@insanityinside
Copy link

Moved from bug #41 - Attempting to apply metadata to a filesystem where the current UID/GID is not in /etc/passwd results in a "getpwuid failed" error on startup, and a failure to change the ownership of the files specified in .metadata, with a "removed" message when the files were actually there.

(Situation occurred after running an rsync from a host when restoring, and the UID/GID in question restored by rsync was a different UID/GID to the original.)

@moskalenko
Copy link

It looks like this issue is still present in metastore. Any plans to resolve it? Thanks.

Here's running it from a git hook:

getpwuid failed for .: uid 1005 not found

@przemoc przemoc changed the title Store action should not fail when there is no user in password file with uid equal to metastored file's owner uid. Store action fails when user/group ID of some dirs/files has no entry in password/group database Apr 7, 2021
@przemoc przemoc added drawback and removed feature-request Feature request that has not been accepted yet. Prefer discussion in Ideas. labels Apr 7, 2021
@przemoc przemoc changed the title Store action fails when user/group ID of some dirs/files has no entry in password/group database Store and apply actions fail when user or group ID of some dirs/files in file system has no entry in password/group database Apr 7, 2021
@przemoc przemoc changed the title Store and apply actions fail when user or group ID of some dirs/files in file system has no entry in password/group database Store and apply actions fail when user or group ID of some dirs/files in file system has no entry in password or group database Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
drawback is-dependent Issues that may be hard to resolve without doing other changes first.
Projects
None yet
Development

No branches or pull requests

5 participants