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

Backups open and read /etc/passwd and /etc/group for each file that is added #4252

Open
bdraco opened this issue Apr 21, 2023 · 4 comments
Open
Assignees

Comments

@bdraco
Copy link
Member

bdraco commented Apr 21, 2023

Describe the issue you are experiencing

strace sample:

[pid   108] newfstatat(AT_FDCWD, "/data/homeassistant/yalexs-ble/.git/refs/tags/v1.9.7", {st_mode=S_IFREG|0644, st_size=41, ...}, 0) = 0
[pid   108] newfstatat(AT_FDCWD, "/data/homeassistant/yalexs-ble/.git/refs/tags/v1.9.7", {st_mode=S_IFREG|0644, st_size=41, ...}, AT_SYMLINK_NOFOLLOW) = 0
[pid   108] openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 39
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] read(39, "root:x:0:0:root:/root:/bin/ash\nb"..., 1024) = 1024
[pid   108] lseek(39, -993, SEEK_CUR)   = 31
[pid   108] close(39)                   = 0
[pid   108] openat(AT_FDCWD, "/etc/group", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 39
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] read(39, "root:x:0:root\nbin:x:1:root,bin,d"..., 1024) = 697
[pid   108] lseek(39, -683, SEEK_CUR)   = 14
[pid   108] close(39)                   = 0
[pid   108] openat(AT_FDCWD, "/data/homeassistant/yalexs-ble/.git/refs/tags/v1.9.7", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 39
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] fstat(39, {st_mode=S_IFREG|0644, st_size=41, ...}) = 0
[pid   108] ioctl(39, TIOCGWINSZ, 0xffff87b3a5a8) = -1 ENOTTY (Not a tty)
[pid   108] lseek(39, 0, SEEK_CUR)      = 0
[pid   108] read(39, "7c7682ec8049bac41e02e62a041f6ba7"..., 4096) = 41
[pid   108] close(39)                   = 0
[pid   108] newfstatat(AT_FDCWD, "/data/homeassistant/yalexs-ble/.git/refs/tags/v2.1.11", {st_mode=S_IFREG|0644, st_size=41, ...}, 0) = 0
[pid   108] newfstatat(AT_FDCWD, "/data/homeassistant/yalexs-ble/.git/refs/tags/v2.1.11", {st_mode=S_IFREG|0644, st_size=41, ...}, AT_SYMLINK_NOFOLLOW) = 0
[pid   108] openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 39
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] read(39, "root:x:0:0:root:/root:/bin/ash\nb"..., 1024) = 1024
[pid   108] lseek(39, -993, SEEK_CUR)   = 31
[pid   108] close(39)                   = 0
[pid   108] openat(AT_FDCWD, "/etc/group", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 39
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] read(39, "root:x:0:root\nbin:x:1:root,bin,d"..., 1024) = 697
[pid   108] lseek(39, -683, SEEK_CUR)   = 14
[pid   108] close(39)                   = 0
[pid   108] openat(AT_FDCWD, "/data/homeassistant/yalexs-ble/.git/refs/tags/v2.1.11", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 39
[pid   108] fcntl(39, F_SETFD, FD_CLOEXEC) = 0
[pid   108] fstat(39, {st_mode=S_IFREG|0644, st_size=41, ...}) = 0
[pid   108] ioctl(39, TIOCGWINSZ, 0xffff87b3a5a8) = -1 ENOTTY (Not a tty)
[pid   108] lseek(39, 0, SEEK_CUR)      = 0
[pid   108] read(39, "a7897b0faf087779b377d351f03ddb5a"..., 4096) = 41
[pid   108] close(39)                   = 0
[pid   108] newfstatat(AT_FDCWD, "/data/homeassistant/yalexs-ble/.git/refs/tags/v1.9.3", {st_mode=S_IFREG|0644, st_size=41, ...}, 0) = 0
[pid   108] newfstatat(AT_FDCWD, "/data/homeassistant/yalexs-ble/.git/refs/tags/v1.9.3", {st_mode=S_IFREG|0644, st_size=41, ...}, AT_SYMLINK_NOFOLLOW) = 0

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Steps to reproduce the issue

Do a back, strace the supervisor python process

Anything in the Supervisor logs that might be useful for us?

n/a

System Health information

n/a

Supervisor diagnostics

No response

Additional information

No response

@bdraco bdraco added the bug label Apr 21, 2023
@bdraco
Copy link
Member Author

bdraco commented Apr 22, 2023

With glibc I would turn on nscd but I'm not sure what the equivalent option would be for musl

@bdraco
Copy link
Member Author

bdraco commented Apr 22, 2023

@bdraco
Copy link
Member Author

bdraco commented Apr 22, 2023

@github-actions
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label May 27, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jul 4, 2023
@pvizeli pvizeli reopened this Oct 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants