Interesting. I just upgraded to Enterprise from Team Edition and it looks like I needed to redo these commands:
sudo chown -R mattermost:mattermost /opt/mattermost
sudo chmod -R g+w /opt/mattermost
The upgrade documentation should probably mention that