Common Errors
This page covers common error messages, their causes, and how to resolve them.Please pass in an argument
Please pass in an argument
Error Message:Source: Program.cs line 11Cause: You ran the See the Commands documentation for available commands.
vault command without any arguments.Solution: Vault requires at least one command argument. Provide a valid command:Please enter a valid command, could not execute
Please enter a valid command, could not execute
Error Message:Source: KVSTORE.cs lines 138, 154Cause: Either the command name is invalid, or the command was called with the wrong number of arguments.Solution: Verify you’re using a valid command with the correct arguments:
Examples of invalid usage:
| Command | Arguments | Example |
|---|---|---|
add | 2 (key, value) | vault add mykey myvalue |
remove | 1 (key) | vault remove mykey |
update | 2 (key, value) | vault update mykey newvalue |
get | 1 (key) | vault get mykey |
list | 0 | vault list |
Please {command} is not a valid command
Please {command} is not a valid command
Error Message:Source: KVSTORE.cs line 194 (Note: source has typo “comand”)Cause: The command name you entered doesn’t match any of the supported commands.Solution: Use one of the five supported commands:
addremoveupdategetlist
Key: {key} does not exist in db
Key: {key} does not exist in db
Error Message:Source: KVSTORE.cs line 85Cause: You tried to update a key that doesn’t exist in the database.Solution:
- Check if the key exists:
- If the key doesn’t exist, use
addinstead ofupdate:
- If the key should exist, verify the key name (keys are case-sensitive):
The
update command only modifies existing keys. To add a new key, use the add command.Database Issues
Permission denied when accessing database
Permission denied when accessing database
Symptoms:
- Cannot read or write to database
- Permission errors when running commands
- Database file cannot be created
.kvstore directory or store.db file.Solution:- Check permissions on the database directory:
- Ensure you have read/write permissions:
- If the issue persists, try recreating the database:
Database is locked
Database is locked
Error Message:Cause: Another process is currently accessing the database, or a previous process didn’t close the connection properly.Solution:
- Check for running Vault processes:
- Wait a few seconds and try again (connections auto-close)
- If the issue persists, reboot your machine to clear all locks
Database corruption / malformed database
Database corruption / malformed database
Error Message:Cause: The database file has been corrupted, possibly due to:
- Unexpected system shutdown
- Disk errors
- Manual file modification
- Running out of disk space
- Try recovery first (if you have a backup):
- Use SQLite recovery tools:
- Last resort - reset the database:
Installation Issues
vault command not found
vault command not found
Symptoms:
- Running
vaultreturns “command not found” - Tool appears installed but doesn’t run
- Verify the tool is installed:
- Check your PATH includes the .NET tools directory:
- Restart your terminal after modifying PATH
.NET runtime not found
.NET runtime not found
Error Message:Cause: .NET 9.0 or later is not installed on your system.Solution:
- Download and install .NET 9.0 or later from https://dotnet.microsoft.com/download
- Verify installation:
- Reinstall Vault after .NET is installed:
Resetting Vault
If you need to completely reset Vault and start fresh:Complete Reset
Debug Steps
When troubleshooting issues, follow these steps:1. Verify Installation
2. Check Database Location
3. Test Basic Operations
4. Examine Database Directly
You can use the SQLite CLI to inspect the database:5. Check for Conflicting Processes
If you’re still experiencing issues after following these steps, consider resetting the database or checking the GitHub repository for known issues.
Getting Help
If you’ve tried all troubleshooting steps and still need assistance:- Check the database location is correct for your OS
- Verify file permissions on
~/.kvstore/directory - Ensure you’re using .NET 9.0 or later
- Try with a fresh database (backup first)
- Review error messages carefully - they indicate the specific issue
- Using the correct command syntax
- Ensuring proper file permissions
- Resetting a corrupted database