Self Hosting
Creating a Superuser
Learn how to create a superuser account for camelAI.
Prerequisites
Before creating a superuser, ensure that:
-
All services are running:
-
The database is properly initialized:
Creating the Superuser
Using the Command Line
Run the following command to create a superuser:
You’ll be prompted to enter:
- Username
- Email address
- Password (and confirmation)
Example interaction:
Password Requirements
The password should meet the following requirements:
- At least 8 characters long
- Not too common
- Not entirely numeric
- Not similar to your username
- Not a commonly used password
Verifying the Superuser
Check User Creation
You can verify the superuser was created by checking the database:
Test Login
-
Visit the admin interface:
-
Log in with your superuser credentials
Troubleshooting
Common Issues
-
Database Connection Error
- Check if the database service is running
- Verify environment variables are correct
- Check database logs:
-
Permission Issues
- Ensure you have the correct permissions:
- Ensure you have the correct permissions:
-
User Creation Fails
- Check application logs:
- Check application logs:
Resetting Password
If you need to reset the superuser password:
Next Steps
After creating your superuser account: