Troubleshooting
Common Issues
Here are solutions to common issues you might encounter with the Keystash Agent:
Agent Not Starting
-
Check the agent status using systemd:
systemctl status keystash
-
Review the logs:
journalctl -u keystash
-
Verify configuration file permissions:
ls -l /etc/keystash/keystash.conf # Should show: -rw------- 1 root root
Authentication Failures
Check your configuration:
- Verify
account_id
anddeployment_secret
in your config file - Ensure network connectivity to server-api.keystash.io
- Check proxy settings if using a proxy
User Synchronization Issues
Verify permissions:
- Check if agent can write to /etc/passwd
- Verify permissions on user home directories
- Look for conflicts with local user management tools
SSH Key Problems
Check file permissions:
~/.ssh
directories should be 700authorized_keys
files should be 600- Verify SELinux/AppArmor aren't blocking access
Logging
The Keystash Agent provides detailed logging to help troubleshoot issues:
-
Enable debug logging:
/opt/keystash/keystash-key-manager.bin --debug
-
View logs:
- Systemd logs:
journalctl -u keystash
- Agent logs:
/opt/keystash_update.log