Uci: Parse error (invalid command) at line 1, byte 0 should contain the file name as well as

Hello

In case uci commit there is a following error message uci: Parse error (invalid command) at line 1, byte 0 it would be nice if this also display the exact file where the parses is given up other vice this message is not say to much. I have several file in that directory.

I wonder if possible to fix this?

For future reference here is the command to find the wrong file:

for CONF in /etc/config/* ; do uci show "${CONF##*/}" > /dev/null || echo "${CONF}"; done

2 Likes

This is already documented:
https://openwrt.org/docs/guide-user/base-system/uci#corrupted_configs

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.