[Bug]: https://docs.opensignlabs.com/docs/self-host/docker/run-locally : Missing information about username/password
Issue Description
Hi,
I have tried to find any information related to how to authenticated using this instruction. But the initial username/password is not there? And the /addadmin says an admin is already created
Expected Behavior
No response
Current Behavior
No response
Steps to reproduce
No response
Screenshots of the issue(optional)
No response
Operating System [e.g. MacOS Sonoma 14.1, Windows 11]
Linux (docker)
What browsers are you seeing the problem on?
Chrome
What version of OpenSignâ„¢ are you seeing this issue on? [e.g. 1.0.6]
main
What environment are you seeing the problem on?
Dev (localhost or vercel)
Please check the boxes that apply to this issue report.
- [x] I have searched the existing issues & discussions to make sure that this is not a duplicate.
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
- [x] I have searched the existing issues & discussions to make sure that this is not a duplicate.
That message indicates that your database already has an admin user. If you are sure there is no user added, try connecting to a blank database just to be double sure.
Thanks Andrew
The thing is I did a fresh installation using the guidelines on your web, so I have not created any user account. But maybee the image that was prebuilt by your organization did this?
So my question is how to reset and create my own user password after first installation? Is there a env to set?
---- Den Sat, 10 May 2025 19:49:03 +0200 skrev @.*** ----
andrew-opensignlabs left a comment https://github.com/OpenSignLabs/OpenSign/issues/1723#issuecomment-2869059952
That message indicates that your database already has an admin user. If you are sure there is no user added, try connecting to a blank database just to be double sure.
— Reply to this email directly, https://github.com/OpenSignLabs/OpenSign/issues/1723#issuecomment-2869059952, or https://github.com/notifications/unsubscribe-auth/AQUO5B7EXMUFBM7ISZERA3T25Y3Y7AVCNFSM6AAAAAB43CCNMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNRZGA2TSOJVGI. You are receiving this because you authored the thread.
I am having the same issue on a fresh install. I've cleared the mongo database, but /addadmin still says an admin is already created.
I am having the same issue on a fresh install. I've cleared the mongo database, but /addadmin still says an admin is already created.
Then something is not configured right. It will auto forward you to /AddAdmin once it's communicating correctly.
Same issue
Same here
After some trial and error, I finally got it working. Here’s how you can create an admin user locally: 1. Stop the caddy-container. 2. Open your Caddyfile and replace its content with the following:
:80 {
route {
handle_path /api/* {
rewrite * {path}
reverse_proxy server:8080
}
reverse_proxy client:3000
}
}
- What changed? • Replaced {$HOST_URL} with a hardcoded :80 for local access. • Moved the rewrite directive before reverse_proxy, which is required for proper routing to the backend. 4. Restart your containers and navigate to: 👉 http://localhost:80
You should be redirected to /addadmin where you can create your first admin account using the signup form.
Hope this helps someone else.