-
-
Notifications
You must be signed in to change notification settings - Fork 4
Troubleshooting
This guide helps you diagnose and resolve common issues with the Home Assistant Unraid integration.
Problem: Unable to find the Unraid integration in HACS. Solutions:
- Ensure HACS is properly installed
- Try refreshing HACS by going to HACS → ⋮ → Clear cache
- Add custom repository:
- HACS → ⋮ → Custom repositories
- Add URL:
https://github.com/domalab/ha-unraid
- Category: Integration
Problem: Integration fails to install through HACS. Solutions:
- Clear Home Assistant browser cache
- Remove integration if previously installed:
rm -rf /config/custom_components/unraid
- Restart Home Assistant
- Try installation again
Problem: Integration fails to connect during setup. Solutions:
- Verify SSH credentials:
ssh username@unraid-ip
- Check SSH port (default 22)
- Ensure Unraid server is reachable:
ping unraid-ip
- Verify no firewall rules blocking access
Problem: Integration loses connection to Unraid server. Solutions:
- Check network stability
- Adjust update interval in configuration
- Verify SSH service is running on Unraid:
# On Unraid server ps aux | grep sshd
- Check Home Assistant logs for timeout errors
Problem: Sensors display as unavailable in Home Assistant. Solutions:
- Verify entity permissions
- Check sensor update interval
- Validate sensor paths on Unraid system
- Restart Home Assistant
Problem: Sensors show wrong or unexpected values. Solutions:
- Compare with Unraid dashboard
- Check sensor attributes in Developer Tools
- Verify command outputs directly on Unraid
- Clear sensor cache if available
Problem: Unable to start/stop Docker containers. Solutions:
- Verify Docker service is running:
# On Unraid server docker ps
- Check user permissions for Docker commands
- Ensure container names match exactly
- Test Docker commands directly on Unraid
Problem: Container states don't refresh properly. Solutions:
- Force update through service call:
service: unraid.force_update data: entry_id: YOUR_UNRAID_IP
- Adjust update interval
- Check for Docker service issues
Problem: Unable to start/stop virtual machines. Solutions:
- Verify libvirt is running:
# On Unraid server ps aux | grep libvirt
- Check VM names match exactly
- Test VM controls directly on Unraid
- Verify user permissions for VM operations
Problem: Service commands don't work. Solutions:
- Test command directly on Unraid
- Check command syntax
- Verify user permissions
- Look for command output in Home Assistant logs
Problem: User scripts won't run. Solutions:
- Check script permissions:
ls -l /boot/config/plugins/user.scripts/scripts
- Verify script exists in correct location
- Test script manually on Unraid
- Check script syntax
Users may notice frequent SSH session logs in their Unraid system logs coming from Home Assistant. These logs are normal and indicate the integration is working properly, but can fill up logs quickly. Here's how to suppress them:
Solutions:
- Install the User Scripts plugin from Community Applications
- Create a new script in User Scripts
- Copy the following code (replace 192.168.10.1 with your Home Assistant IP):
#!/bin/bash
echo "Starting SSH log suppression script..."
# Create rsyslog config with additional rules
cat > /etc/rsyslog.d/00-ha-ssh.conf << 'EOF'
# Filter SSH messages with IP and port
:msg,contains,"192.168.10.1 port" stop
# Filter session opened/closed messages
:msg,contains,"pam_unix(sshd:session): session opened" stop
:msg,contains,"pam_unix(sshd:session): session closed" stop
# Filter User child messages
:msg,contains,"User child is on pid" stop
# Original session messages filter
:msg,contains,"sshd-session[" stop
EOF
# Set permissions
chmod 644 /etc/rsyslog.d/00-ha-ssh.conf
echo "Config file created with content:"
cat /etc/rsyslog.d/00-ha-ssh.conf
# Full restart of rsyslog
echo "Performing full rsyslog restart..."
/etc/rc.d/rc.rsyslogd stop
sleep 2
/etc/rc.d/rc.rsyslogd start
sleep 2
echo "Testing log messages..."
logger -t TEST "Normal message should appear"
echo "Script completed"
- Save and run the script once
After running the script, check your syslog:
tail -f /var/log/syslog
You should no longer see SSH session messages from Home Assistant.
- Tested on Unraid version 7.0
- This doesn't affect the functionality of the integration
- Other system logs continue to work normally
- The configuration persists across Unraid reboots
- If you change your Home Assistant IP address, you'll need to run the script again with the new IP
# Look for errors
grep -i "unraid" /config/home-assistant.log
- Go to Settings → Devices & Services
- Find Unraid integration
- Check for error messages
- Try removing and readding if needed
# From Home Assistant
ping UNRAID_IP
# Test SSH
ssh USERNAME@UNRAID_IP
# Test Docker
docker ps
- Check SSH user permissions
- Verify Docker group membership
- Test file access permissions
- Validate script execution rights
Enable debug logging by adding to configuration.yaml:
logger:
default: info
logs:
custom_components.unraid: debug
Test service commands using Developer Tools:
service: unraid.execute_command
data:
entry_id: "UNRAID_IP"
command: "echo 'test'"
- Check for network issues:
traceroute UNRAID_IP
- Verify no firewall blocks
- Test alternate ports if needed
- Check for VPN interference
If you cannot resolve an issue:
-
Collect Information:
- Home Assistant logs
- Integration configuration
- Error messages
- Steps to reproduce
-
Check Existing Issues:
- Search GitHub Issues
- Look for similar problems
-
Create New Issue:
- Use the issue template
- Include all collected information
- Describe your setup
- List steps tried
- Remove integration
- Clear cache:
rm -rf /config/custom_components/unraid
- Restart Home Assistant
- Reinstall integration
Always backup before major changes:
- Backup Home Assistant configuration
- Note down integration settings
- Document custom automations
- Save any modified scripts
-
Community Support:
- Home Assistant Community Forums
- GitHub Discussions
-
Documentation:
- Read the Integration Documentation
- Check the CHANGELOG
- Review Configuration Options
Remember to always test commands and scripts directly on your Unraid server before implementing them in Home Assistant automations.