mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-26 01:26:00 +03:00
[GH-ISSUE #1276] Bug: "ArchiveBox should never be run as root" error after updating docker-compose.yml #2292
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#2292
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 @yesezra on GitHub (Nov 24, 2023).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1276
Hello! New ArchiveBox user here. I'm somewhat new to Docker as well so apologies if I'm missing something obvious.
Describe the bug
After installing the app using the recommended docker compose method on macOS, I have been continually getting the following error after editing my docker-compose.yml file.
Steps to reproduce
Ctrl+Cin the terminal to stop the webserverenvironment:docker compose upand note error:docker compose upand note that the same error exists:Screenshots or log output
Included as part of the above steps.
ArchiveBox version
Many thanks for your help and please let me know if I can clarify anything here!
@pirate commented on GitHub (Nov 24, 2023):
It's starting as root because the data folder is owned by root. I can add a check to avoid this edge case, but in the meantime can you try
chown -R 901:901 datato see if changing the ownership of that folder fixes it.@yesezra commented on GitHub (Nov 24, 2023):
Got it, thanks for that context!
Here's what happened with that chown:
As instructed, I tried
chown -R 0:0 ./dataFor context I'm on macOS 14.1.1. using the
idcommand it appears that my user's uid is 501, and gid is 20 (staff). I tried those values as well and got the root error.@pirate commented on GitHub (Dec 18, 2023):
I've updated the error messages to be clearer and added some hints for a few specific use cases, this should be fixed now.
Can you try with the latest
:devbuild https://github.com/ArchiveBox/ArchiveBox#install-and-run-a-specific-github-branchComment back here if you're still having issues and I'll reopen the ticket.