what version of mattermost is GL9 installing for you? guess I ran out of ideas, the permissions look OK, the config.json~ was probably a left over copy from some command
perhaps you might want to try re-installing the latest binary version instead... I know you're using GL for the simplicity but its an option.