mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #1344] Bug: getpwuid(): uid not found: 999 in config.get_system_user() when running in K3S #3840
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#3840
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @darkstar on GitHub (Feb 8, 2024).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1344
Describe the bug
I am running archivebox in a k3s setup. The last version I successfully used was tagged with sha-c5ccb05 from ~2 years ago.
Now I wanted to update to a more recent version (sha-babd273, which is equal to main at the time of this writing, so it's from Feb. 1st 2024) but I keep getting this error:
Basically I try running as non-priviledged user 999, which seems to fail. There was one issue (#993) which seems to be the same problem, and apparently that is supposed to be fixed, but the fix doesn't seem to be in the version from 7 days ago?
I have no idea how the config.py script looks like in that version, sice I don't have any means of getting into the container as it keeps stopping/crashing
Steps to reproduce
Run a deployment similar to this in your k3s cluster:
ArchiveBox version
I only have the sha-babd273 from dockerhub, no idea what archivebox version is behind this, and since the container crashes immediately I also cannot enter a shell to inspect it. It looks like the check for the uid is done before the check for the "version" command, so even if I change the startup parameters to
@darkstar commented on GitHub (Feb 8, 2024):
I switched to an older container image (sha-4950cee in this case, from 5 months ago) and everything works fine there...
@pirate commented on GitHub (Feb 9, 2024):
Interesting, I've only ever seen this on Windows before.
The error is indicating that ArchiveBox is unable to detect the username that corresponds to uid:999. Detecting a username is not critical, we just use it for debugging purposes, so I added a fallback option and wrapped it in another
try: except:.I just pushed the fix to
:dev19aefc85e6.Give it ~15min for the auto build to finish, then try pulling and running
archivebox/archivebox:dev.(Obligatory warning that
devis not as thoroughly vetted asmain, so it may be worth pulling and testing with an empty collection before you run it with any real data.)@pirate commented on GitHub (Mar 1, 2024):
Closing as fixed for now. Comment back if you're still seeing this issue on
:devand I can reopen it.