Mender-update install 4.0.6 gives Json error because missing /var/lib/mender/mender.conf

Interesting! I didn’t solve this and simply froze the client to 3.x instead. I will perhaps try your solution in the coming weeks.