mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #1707] Bug: Cannot login with user created from web GUI #2532
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#2532
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 @larsony99 on GitHub (Oct 19, 2025).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1707
Originally assigned to: @pirate on GitHub.
Provide a screenshot and describe the bug
When I try to add a user via the web GUI, it allows me to add the user successfully, but when I try to login with the new user and the credentials I created, it gives an error "Please enter the correct username and password for a staff account. Note that both fields may be case-sensitive."
Steps to reproduce
Logs or errors
ArchiveBox Version
How did you install the version of ArchiveBox you are using?
Other
What operating system are you running on?
Other
What type of drive are you using to store your ArchiveBox data?
data/is on a local SSD or NVMe drivedata/is on a spinning hard drive or external USB drivedata/is on a network mount (e.g. NFS/SMB/Ceph/GlusterFS/etc.)data/is on a FUSE mount (e.g. SSHFS/RClone/S3/B2/Google Drive/Dropbox/etc.)Docker Compose Configuration
ArchiveBox Configuration
@NR2014 commented on GitHub (Nov 22, 2025):
chatgpt help me fix this
Fix permissions (check manuals / consult others before running this , it helped me though)
go into achievebox shell by running
docker exec -it --user=archivebox ArchiveBox basharchivebox manage shelland then this code (edit the username and password) , you can reuse the same password which you gave in admin webui portal.
This helped me resolve the issue. I am now able to login with non-root id
@pirate commented on GitHub (Dec 29, 2025):
@claude can you implement these fixes on dev
@claude[bot] commented on GitHub (Dec 29, 2025):
Claude finished @pirate's task in 3m 12s —— View job •
claude/issue-1707-20251229-2144• Create PR ➔Fix implemented for user login bug
Tasks
Root Cause Identified
Found the bug! In
archivebox/core/admin.pyline 10:This imports Django's default
UserAdmin(which is re-exported fromadmin_users.pyline 4), NOT theCustomUserAdminclass defined inadmin_users.pyline 9. This means all the custom admin logic was bypassed.Additionally,
CustomUserAdminwas modifyingfieldsetsto add custom readonly fields, but didn't explicitly preserveadd_fieldsets. Whenfieldsetsis customized without preservingadd_fieldsets, Django may not properly handle the user creation form.Fix Implemented
File:
archivebox/core/admin.pyUserAdmintoCustomUserAdminCustomUserAdmininstead ofUserAdminFile:
archivebox/core/admin_users.pyadd_fieldsets = UserAdmin.add_fieldsetsto preserve Django's default user creation behaviorUserCreationFormand permissions are set correctlyTesting Recommendation
To verify the fix:
/admin/auth/user/add/)|