This issue is due to a collision between the configuration file name and the executable name.
Both were called
algorand-indexer until commit https://github.com/algorand/indexer/commit/0a58e9a78ba7684c7f4cfb4fe7cb24b3d4622d9b (that is not merged to the branch master yet).
You will encounter this issue if you run
(This command will try to read the executable
algorand-indexer as a configuration file.
The PR https://github.com/algorand/indexer/pull/229 fixes the issue but is not yet merged into master.
In the meantime, you can do the following to avoid the issue:
algorand-indexer to the
$PATH and run
algorand-indexer from a different folder or
- rename the executable
algorand-indexer to something else or
- use the
develop branch of the Algorand index (not recommended).
Thanks @aojjazz for debugging this issue on Discord!
Note, you may also see the following error instead:
Invalid configuration: While parsing config: yaml: invalid trailing UTF-8 octet
This is due to the same issue.