Common issues and solutions for getting Ashfolio running smoothly.
elixir: command not found
# Install via Homebrew (macOS)
brew install elixir
# Verify installation
elixir --version
# Should show: Elixir 1.14+ (compiled with Erlang/OTP 25+)Version mismatch or old Elixir
# Update Homebrew and Elixir
brew update
brew upgrade elixir
# If still issues, try clean install
brew uninstall elixir erlang
brew install elixirjust: command not found
# Install Just
brew install just
# Verify installation
just --versionJust commands fail
# Make sure you're in the project directory
cd path/to/ashfolio
# Check if justfile exists
ls -la justfile
# Try running commands manually if Just fails
mix deps.get
mix ecto.create
mix ecto.migrate
mix phx.serverdatabase "ashfolio_dev.db" does not exist
# Create database
mix ecto.create
# Or use Just command
just setupDatabase locked or busy
# Stop any running servers
pkill -f "phx.server"
# Remove database locks
rm -f data/*.db-wal data/*.db-shm
# Reset database
just resetMigration fails or pending migrations
# Run pending migrations
mix ecto.migrate
# If migrations are corrupted, reset database
mix ecto.drop
mix ecto.create
mix ecto.migrate
mix run priv/repo/seeds.exsSample data missing
# Re-seed database
mix run priv/repo/seeds.exs
# Or full reset with sample data
just resetPort 4000 already in use
# Find and kill process using port 4000
lsof -ti:4000 | xargs kill -9
# Or use a different port
PORT=4001 just server
# Or use Phoenix built-in port detection
mix phx.serverServer crashes on startup
# Check for compilation errors
mix compile
# Check for missing dependencies
mix deps.get
# Check database is set up
just setupLiveView socket errors or crashes
# Clear browser cache and refresh
# Check browser console for JavaScript errors
# Restart server with clean compile
mix clean
just devMass test failures (100+ failing)
# Use emergency test database reset
just test-db-emergency-reset
# Or manual reset
MIX_ENV=test mix ecto.drop
MIX_ENV=test mix ecto.create
MIX_ENV=test mix ecto.migrate
MIX_ENV=test mix run -e "Ashfolio.SQLiteHelpers.setup_global_test_data!()""Default user not found" in tests
# Set up global test data
MIX_ENV=test mix run -e "Ashfolio.SQLiteHelpers.setup_global_test_data!()"
# Verify test database health
just test-health-check"Database busy" errors in tests
# SQLite concurrency issue - reset test database
just test-db-reset
# Run health check
just test-health-check
# Try running tests with safeguards
just test-safeSpecific test file fails
# Run specific test with verbose output
just test-file-verbose path/to/test.exs
# Check test setup and database state
MIX_ENV=test iex -S mixIntegration tests fail
# Integration tests are sensitive to database state
just test-db-emergency-reset
# Run just integration tests
just test-integrationMix compilation fails
# Clean and recompile
mix clean
mix compile
# Check for syntax errors
mix format --check-formatted
# Update dependencies
mix deps.get
mix deps.compileAsh Framework errors
# Common Ash issues:
# 1. Resource not in domain registry
# 2. Missing `require` statements
# 3. Invalid action definitions
# Check the specific error message and refer to:
# https://ash-hq.org/docs/guides/ash/latest/tutorials/get-startedDependency conflicts or missing
# Clean deps and reinstall
rm -rf _build deps
mix deps.get
mix deps.compileAsset compilation fails
# Check Node.js and npm are installed (for assets)
cd assets
npm install
cd ..
# Or skip assets and just run backend
mix phx.server --no-assetsDashboard takes long to load
# Check if database needs reset
just db-status
# Clear ETS cache
# Restart application - cache will rebuildPrice updates slow or failing
# Check Yahoo Finance connectivity
curl "https://query1.finance.yahoo.com/v8/finance/chart/AAPL"
# Clear price cache
# Restart server - cache will rebuildHigh memory usage
# Check Observer
# In IEx: :observer.start()
# Or restart application
pkill -f "phx.server"
just serverDependency compilation fails
# Some dependencies need x86_64 mode
arch -x86_64 brew install elixir
arch -x86_64 mix deps.getSQLite issues on Apple Silicon
# Reinstall SQLite
brew reinstall sqlite3
# If still issues, try native compilation
mix deps.compile --forcePermission denied errors
# Fix permissions on project directory
chmod -R 755 .
chmod -R 644 *.md *.ex *.exs
# Fix data directory permissions
mkdir -p data
chmod 755 dataWhen asking for help, provide:
# System information
elixir --version
just --version
mix --version
# Project status
just db-status
just check
# Error logs
# Copy the full error message and stack trace- ashfolio/issues
- For questions and help
- Check other docs in this directory
- Elixir Forum
- Phoenix Documentation
Include:
- macOS version, chip type (Intel/Apple Silicon)
- Elixir, Erlang, Phoenix versions
- Exact commands that cause the issue
- Complete error output with stack traces
- What you expected vs what happened
Still having issues? Don't hesitate to open an issue with the debug information above!