You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to Reset Your Arcane Password (When You're Locked Out)
So you've updated Arcane or for some reason you can't log in with your old credentials? Been there! Here's a quick guide to get you back in by resetting your password directly in the PostgreSQL database.
The Situation
You've got Arcane running with PostgreSQL, and you need to reset your password.
What You'll Need
Access to your Docker host
Your PostgreSQL container running (for example: arcane-postgres)
Step 1: Generate a Bcrypt Hash
First, we need to create a bcrypt hash of the new password. Here are a few methods:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How to Reset Your Arcane Password (When You're Locked Out)
So you've updated Arcane or for some reason you can't log in with your old credentials? Been there! Here's a quick guide to get you back in by resetting your password directly in the PostgreSQL database.
The Situation
You've got Arcane running with PostgreSQL, and you need to reset your password.
What You'll Need
arcane-postgres)Step 1: Generate a Bcrypt Hash
First, we need to create a bcrypt hash of the new password. Here are a few methods:
Method 1: Using Python (Easiest)
If you have Python installed on your system:
python3 -c "import bcrypt; print(bcrypt.hashpw(b'arcaneadminpass', bcrypt.gensalt(rounds=10)).decode())"If bcrypt isn't installed, install it first:
Method 2: Using htpasswd (Apache Utils)
On Ubuntu/Debian:
On RHEL/CentOS:
Method 3: Online Generator (Quick but less secure)
If you're in a pinch, use [bcrypt-generator.com](https://bcrypt-generator.com/) - just remember this is less secure for production systems. Set the rounds to 10.
Example output:
Copy this hash - you'll need it in a moment!
Step 2: Access Your PostgreSQL Database
Now let's hop into the database:
docker exec -it arcane-postgres psql -U arcane -d arcaneYou should see a PostgreSQL prompt that looks like this:
Step 3: Check Your Current Users
this will show you all current users available:
You'll probably see something like:
Step 4: Update the Password
Now for the magic! Replace
YOUR_HASH_HEREwith the hash you generated in Step 1:Real example:
You should see:
This means success!
Step 5: Verify and Exit
Double-check your work:
Looking good? Exit PostgreSQL:
Step 6: Test Your Login
Now head back to your Arcane interface at
http://your-server:3552and log in with:arcanearcaneadminpass(or whatever you used in Step 1)Bonus: Quick Reset Script
If you want to make this easier for next time? Here's a one-liner (after generating your hash):
Remember to replace container name with the name on you docker(docker ps)
🔄 Still having issues? If this doesn't work, you might need to restart the Arcane container:
The Nuclear Option
If all else fails and you just want to reset back to default credentials:
This will reset Arcane to factory settings with the default
arcane/arcane-admincredentials.After restart, you can log in with the default credentials:
Username: arcane
Password: arcane-admin
And that's it! You should be back in without have to delete volume/database
Beta Was this translation helpful? Give feedback.
All reactions