mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #395] Question: Unable to createsuperuser on Unraid #262
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#262
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 @smikwily on GitHub (Jul 29, 2020).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/395
Version: .0.4.9 (new install)
OS: Unraid 6.8.3
It is my understanding that Unraid runs as root no matter what (I'm not that technical, but that is my understanding from my research). I finally got archivebox up and running after a morning of tweaking, but I can't create a user for the GUI interface as no matter what I do, I can't run the command "archivebox manage createsuperuser" without it complaining that it shouldn't run as ROOT.
Is there anything I can do to bypass this? I've created a variable ALLOW_ROOT: and set that to True, but it still fails and won't allow me to create a user, so I can't use the GUI to add links, etc, which would be my preferred method of using the software.
Thanks in advance!
@apkallum commented on GitHub (Jul 29, 2020):
Interesting. That's based on FreeBSD right? Did you try running the docker image? Also what's the console output?
@pirate commented on GitHub (Jul 29, 2020):
Docker doesn't exist on FreeBSD 😉 @apkallum
Also I removed the
ALLOW_ROOTintentionally, I don't think it's needed as there is always a way to make a less privileged user and use that instead of root.Whats preventing you from just running
adduser archivebox; sudo -u archivebox archivebox server@smikwily?@smikwily commented on GitHub (Jul 29, 2020):
Honestly, I'm not quite sure how to do that. Let me post on the Unraid forums and see what I can find out. The person making the docker available has admitted that he's just making a template to make it easier to run in Unraid and isn't really set up to handle tech support for it. His instructions have you entering ./archive (URL,FEED,BOOKMARK,FILE) in the post arguments to handle the processing, so it doesn't really use the GUI interface outside of accessing the info. I'd like to be able to sign in and use the GUI to add site that way if possible.
From what I can tell, I do have a user called archivebox created, as when I tried to add it, it said one already existed, but when I try to run it as the user, I'm having issues with it. Let this sit for a little while and I'll see what I can find on my end.
FYI - I found the references to ALLOW_ROOT on the site in the docs, which was throwing me when it was complaining, as it didn't seem to be working as expected. I do feel a bit better knowing you removed it and I wasn't doing something wrong :)
@apkallum commented on GitHub (Jul 29, 2020):
Hmm, I looked a bit at Unraid and it's based on some Linux dist, FreeNAS is what's based on FreeBSD.
https://wiki.unraid.net/UnRAID_6/Docker_Management
It looks like they have 'native' docker support in v6
@smikwily commented on GitHub (Jul 29, 2020):
They have a community section that is somewhat like an "app store" approach to allow you to configure things a bit easier. It presents you with some of the variables and paths preconfigured and asks for information for others.
They have an option as part of that to add things from docker directly via that same interface, but hitting dockerHub as an additional option if it isn't found in the app store. You have to manually enter the variables/paths/ports, etc. using their interface and do some digging to find what you need, which I've gotten a little better at, but I'm nowhere near "full docker user".
I'm a lifetime Windows guy broadening my horizons a bit :)
@pirate commented on GitHub (Jul 29, 2020):
Ah this may be part of what's tripping you up:
This is the old system and the new docker image is using the new CLI and config system that is very different, likely breaking any setup dependent on the older CLI.
You should be able to run the new docker image without needing to muck around with creating your own user at all on the host. It's compatible with both root and non-root users on the host and handles all of the permissions stuff automatically inside the container.
@smikwily commented on GitHub (Jul 30, 2020):
That's the thing - I'm not using his method to use the program. I'm trying to use the regular GUI interface vs the CLI interface he's using to get it to work.
I'm still messing around with it, but as it stands, I'm wondering if I won't be able to run it from the "native Unraid interface".
@cdvv7788 commented on GitHub (Aug 10, 2020):
@smikwily were you able to solve the issue? Running the instructions @pirate provided should give you a way to start the web interface.
@pirate commented on GitHub (Aug 10, 2020):
Closing this for now, but feel free to comment back here if you still need help.
@emiliobool commented on GitHub (Apr 25, 2021):
Leaving some info here for the people coming from google. To clear the confusion, unraid uses docker for most apps on their "app store", so any docker instructions should work.
You first need to open a shell to the actual unraid server, either via ssh or the GUI. Once there you just need to run:
docker exec -it --user archivebox archivebox bashand after that, once in the container shell you need to follow with:
archivebox manage createsuperuserfollow the instructions and that's it.