Mattermost didn't upgraded

I upgraded from Mattermost 7.10.2 to version 9.1.0, but the Mattermost information and console logs still show version 7.10.2. However, what’s interesting is that when I run the “mattermost/bin/mattermost version” command in the console, it shows version 9.1.0.

I followed the official documentation for the upgrade (Upgrade Mattermost Server — Mattermost documentation) exactly, and I even tried overwriting all the existing files with the new ones just in case. However, it still shows version 7.10.2.

Do you know how to resolve this issue?