Platform Troubleshooting
Common platform-specific issues and their solutions for EAC and CLIE development.
Windows
Windows Defender False Positives
Windows Defender's machine learning-based detection may flag Go test binaries as malware, typically with detection names like:
Trojan:Win32/Bearfoos.B!mlTrojan:Win32/Wacatac.B!ml
The !ml suffix indicates this is a heuristic/ML detection, not a signature-based match. This is a false positive that occurs because:
- Temp directory location - Go compiles test binaries to
%TEMP%\go-build*directories - Unsigned executables - Test binaries aren't code-signed
- Behavioral patterns - Go binaries have characteristics that trigger ML heuristics
Solution: Add Exclusions
Via PowerShell (Recommended):
# Run as Administrator
# Exclude Go build temp directory
Add-MpPreference -ExclusionPath "$env:LOCALAPPDATA\Temp\go-build*"
# Exclude Go module cache (optional)
Add-MpPreference -ExclusionPath "$env:GOPATH\pkg"
# Exclude your project directory (optional)
Add-MpPreference -ExclusionPath "C:\projects\eac"
Via Windows Security UI:
- Open Windows Security (search in Start menu)
- Click Virus & threat protection
- Under "Virus & threat protection settings", click Manage settings
- Scroll to Exclusions and click Add or remove exclusions
- Click Add an exclusion > Folder
- Enter:
C:\Users\<username>\AppData\Local\Temp
Verify Exclusions
Restore Quarantined Files
If Defender already quarantined your test binary:
- Open Windows Security > Virus & threat protection
- Click Protection history
- Find the quarantined item
- Click Actions > Restore
Path Length Limitations
Windows has a 260-character path limit by default. Deep directory structures can cause issues.
Solution: Enable long paths in Windows:
# Run as Administrator
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
-Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
Or via Group Policy:
- Run
gpedit.msc - Navigate to: Computer Configuration > Administrative Templates > System > Filesystem
- Enable "Enable Win32 long paths"
PowerShell Execution Policy
If PowerShell scripts fail to run:
# Check current policy
Get-ExecutionPolicy
# Allow local scripts (recommended)
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Docker Desktop Issues
WSL 2 Backend Not Working:
# Enable WSL 2
wsl --install
# Set WSL 2 as default
wsl --set-default-version 2
# Restart Docker Desktop
Insufficient Memory:
Edit .wslconfig in your home directory:
macOS
Gatekeeper Blocking Binaries
If macOS blocks the CLIE binary:
Or right-click the binary > Open > Open Anyway.
Docker Desktop Memory
Increase Docker memory allocation:
- Docker Desktop > Settings > Resources
- Increase Memory (recommended: 8GB+)
- Apply & Restart
Certificate Issues
If you encounter SSL certificate errors:
Linux
Docker Permission Denied
If Docker commands fail with permission errors:
File Watcher Limits
If you hit inotify limits during development:
# Check current limit
cat /proc/sys/fs/inotify/max_user_watches
# Increase limit (temporary)
sudo sysctl fs.inotify.max_user_watches=524288
# Make permanent
echo "fs.inotify.max_user_watches=524288" | sudo tee -a /etc/sysctl.conf
Missing Dependencies
Common missing packages:
# Debian/Ubuntu
sudo apt install build-essential git curl
# Fedora/RHEL
sudo dnf install @development-tools git curl
# Alpine
apk add build-base git curl
Docker Issues (All Platforms)
Image Pull Failures
# Check Docker is running
docker info
# Clear Docker cache
docker system prune -a
# Re-install extension
clie cleanup --all
clie install eac
Container Startup Failures
# Check container logs
docker logs $(docker ps -lq)
# Run interactively for debugging
clie interactive eac
Disk Space Issues
# Check Docker disk usage
docker system df
# Clean up unused resources
docker system prune -a --volumes
Network Issues
Proxy Configuration
If behind a corporate proxy:
# Docker proxy settings
# Edit ~/.docker/config.json
{
"proxies": {
"default": {
"httpProxy": "http://proxy:8080",
"httpsProxy": "http://proxy:8080",
"noProxy": "localhost,127.0.0.1"
}
}
}
Firewall Blocking Docker
Ensure these ports are allowed:
- 2375/2376 (Docker daemon)
- 443 (HTTPS for image pulls)
Reporting Issues
If you encounter issues not covered here:
- Check GitHub Issues
- Include: OS version, Docker version, error message, steps to reproduce
- Run diagnostics:
clie verifyand include output
Related Resources
- Go Issue #37800 - Windows Defender false positives
- Docker Documentation - Official Docker docs
- WSL Documentation - Windows Subsystem for Linux
Tutorials | How-to Guides | Explanation | Reference
You are here: How-to Guides — task-oriented recipes that guide you through solving specific problems.