Invalid Directory Error During Asset Discovery
Symptoms
You may encounter the error logs containing InvalidDirectoryError.
System Behavior
Dagster raises an InvalidDirectoryError and stops the discovery process to prevent silent configuration failures.
Possible Causes
This issue may occur because of one or more of the following conditions:
- The configured asset directory path is incorrect.
- The
OPENIT_CONFIGenvironment variable points to a non-existent location. - The specified path points to a file instead of a directory.
- The Core Server installation is incomplete or corrupted.
- Asset directories were deleted, renamed, or moved.
- The Dagster service account does not have permission to access the directory.
- Automated tests use invalid or missing mock directories.
Resolution
Verify Core Server installation
Follow the steps given in Core Server Installation Verification to determine if Core Server was successfully installed.