A service rarely says "line 5 of app.conf is wrong". It writes a symptom in its log. You walk back from the symptom to the cause, as in "Find and Fix a Settings Error".
the log linegrep ERROR logs/app.log
the file and linegrep -rn VALUE config
what is really on diskls data
the fixnano, then grep -n
The commands for each step
| Step | Command |
|---|---|
| Read the errors | grep ERROR logs/app.log |
| See which errors repeat | grep ERROR logs/app.log | sort | uniq -c |
| Search all settings files | grep -rn TEXT config |
| Compare with the disk | ls -l data |
| Change one value | nano config/app.conf |
Before you edit
- Check that you can change the file:
ls -l config/app.confandid. A file withrw-rw-r--and the groupdeploycan be changed by the members ofdeploy. - Change one value. Keep every other line as it was.
- Check the result with
grep -nafter you save. Then read the log again. The other errors can have other causes, which the next labs fix.