Connot update to version 9

hi
i have mattermost server local version 8.1 and
im not able to update it to version 9 with apt install mattermost command
my ubuntu version is 22

Hello Ramin,

I am unable to replicate the issue locally.
To illustrate, I successfully upgraded a freshly provisioned Ubuntu 22.04LTS system from Mattermost 8.1.2 to version 9.0.0.

> root@hostname:/opt/mattermost/config# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"

> root@hostname:/opt/mattermost/config# mattermost version
Version: 8.1.2
Build Number: 8.1.2
Build Date: Fri Sep  8 17:56:57 UTC 2023
Build Hash: 9d2d03594f2ebca50ae47161ab9a22059f751fb8
Build Enterprise Ready: true

> root@hostname:/opt/mattermost/config# service mattermost status
● mattermost.service - Mattermost
     Loaded: loaded (/lib/systemd/system/mattermost.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2023-10-04 08:39:15 UTC; 35s ago
   Main PID: 30476 (mattermost)
      Tasks: 34 (limit: 2307)
     Memory: 295.8M
        CPU: 14.186s
     CGroup: /system.slice/mattermost.service
             ├─30476 /opt/mattermost/bin/mattermost
             ├─30508 plugins/com.mattermost.calls/server/dist/plugin-linux-amd64
             ├─30516 plugins/playbooks/server/dist/plugin-linux-amd64
             └─30532 plugins/com.mattermost.nps/server/dist/plugin-linux-amd64

Oct 04 08:39:13 hostname mattermost[30476]: {"timestamp":"2023-10-04 08:39:13.388 Z","level":"warn","msg":"Rudder credentials are not set. Disabling analytics.","caller":"app/plugin_api.go:979","plugin_id":"playbooks","plugin_caller":"github.com/mattermost/mattermost-plugin-playbooks/server/plugin.go:140"}
Oct 04 08:39:15 hostname mattermost[30476]: {"timestamp":"2023-10-04 08:39:15.749 Z","level":"info","msg":"Starting Server...","caller":"app/server.go:913"}
Oct 04 08:39:15 hostname systemd[1]: Started Mattermost.
Oct 04 08:39:15 hostname mattermost[30476]: {"timestamp":"2023-10-04 08:39:15.749 Z","level":"info","msg":"Server is listening on [::]:8065","caller":"app/server.go:989","address":"[::]:8065"}
Oct 04 08:39:15 hostname mattermost[30476]: {"timestamp":"2023-10-04 08:39:15.749 Z","level":"info","msg":"Sending systemd READY notification.","caller":"commands/server.go:130"}
Oct 04 08:39:36 hostname mattermost[30476]: {"timestamp":"2023-10-04 08:39:36.690 Z","level":"warn","msg":"Health check failed for plugin","caller":"plugin/health_check.go:59","id":"com.mattermost.nps","error":"plugin RPC connection is not responding"}
Oct 04 08:39:36 hostname mattermost[30476]: {"timestamp":"2023-10-04 08:39:36.690 Z","level":"error","msg":"RPC call OnDeactivate to plugin failed.","caller":"plugin/client_rpc_generated.go:33","plugin_id":"com.mattermost.nps","error":"connection is shut down"}
Oct 04 08:39:36 hostname mattermost[30476]: {"timestamp":"2023-10-04 08:39:36.690 Z","level":"warn","msg":"error closing client during Kill","caller":"plugin/hclog_adapter.go:70","plugin_id":"com.mattermost.nps","wrapped_extras":"errconnection is shut down"}
Oct 04 08:39:36 hostname mattermost[30476]: {"timestamp":"2023-10-04 08:39:36.690 Z","level":"warn","msg":"plugin failed to exit gracefully","caller":"plugin/hclog_adapter.go:72","plugin_id":"com.mattermost.nps"}
Oct 04 08:39:36 hostname mattermost[30476]: {"timestamp":"2023-10-04 08:39:36.992 Z","level":"info","msg":"Ensuring Feedbackbot exists","caller":"app/plugin_api.go:973","plugin_id":"com.mattermost.nps"}

> root@hostname:/opt/mattermost/config# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  mattermost
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/420 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 99351 files and directories currently installed.)
Preparing to unpack .../mattermost_9.0.0-0_amd64.deb ...
Unpacking mattermost (9.0.0-0) over (8.1.2-0) ...
Setting up mattermost (9.0.0-0) ...
Scanning processes...
Scanning candidates...
Scanning linux images...
Restarting services...
Service restarts being deferred:
 /etc/needrestart/restart.d/dbus.service
 systemctl restart getty@tty1.service
 systemctl restart networkd-dispatcher.service
 systemctl restart unattended-upgrades.service
 systemctl restart user@1000.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.


> root@hostname:/opt/mattermost/config# mattermost version
Version: 9.0.0
Build Number: 9.0.0
Build Date: Fri Sep  8 19:04:35 UTC 2023
Build Hash: 987e843629fe3f11861fda23ceb66884f5973ef1
Build Enterprise Ready: true

> root@hostname:/opt/mattermost/config# service mattermost status
● mattermost.service - Mattermost
     Loaded: loaded (/lib/systemd/system/mattermost.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2023-10-04 08:40:28 UTC; 14s ago
   Main PID: 31014 (mattermost)
      Tasks: 22 (limit: 2307)
     Memory: 323.8M
        CPU: 12.876s
     CGroup: /system.slice/mattermost.service
             ├─31014 /opt/mattermost/bin/mattermost
             ├─31032 plugins/com.mattermost.calls/server/dist/plugin-linux-amd64
             └─31039 plugins/playbooks/server/dist/plugin-linux-amd64

Oct 04 08:40:28 hostname mattermost[31014]: {"timestamp":"2023-10-04 08:40:28.437 Z","level":"info","msg":"got public IP address for local interface","caller":"app/plugin_api.go:977","plugin_id":"com.mattermost.calls","origin":"main.(*logger).Info log.go:95","localAddr":"172.28.4.40","remoteAddr":"54.162.217.45"}
Oct 04 08:40:28 hostname mattermost[31014]: {"timestamp":"2023-10-04 08:40:28.437 Z","level":"info","msg":"rtc: server is listening on udp 127.0.0.1:8443","caller":"app/plugin_api.go:977","plugin_id":"com.mattermost.calls","origin":"main.(*logger).Info log.go:95"}
Oct 04 08:40:28 hostname mattermost[31014]: {"timestamp":"2023-10-04 08:40:28.438 Z","level":"info","msg":"rtc: server is listening on udp 127.0.0.1:8443","caller":"app/plugin_api.go:977","plugin_id":"com.mattermost.calls","origin":"main.(*logger).Info log.go:95"}
Oct 04 08:40:28 hostname mattermost[31014]: {"timestamp":"2023-10-04 08:40:28.439 Z","level":"info","msg":"rtc: server is listening on udp 172.28.4.40:8443","caller":"app/plugin_api.go:977","plugin_id":"com.mattermost.calls","origin":"main.(*logger).Info log.go:95"}
Oct 04 08:40:28 hostname mattermost[31014]: {"timestamp":"2023-10-04 08:40:28.440 Z","level":"info","msg":"rtc: server is listening on udp 172.28.4.40:8443","caller":"app/plugin_api.go:977","plugin_id":"com.mattermost.calls","origin":"main.(*logger).Info log.go:95"}
Oct 04 08:40:28 hostname mattermost[31014]: {"timestamp":"2023-10-04 08:40:28.441 Z","level":"info","msg":"Listening TCP on 0.0.0.0:8443","caller":"app/plugin_api.go:977","plugin_id":"com.mattermost.calls","origin":"main.(*logger).Info log.go:95"}
Oct 04 08:40:28 hostname mattermost[31014]: {"timestamp":"2023-10-04 08:40:28.723 Z","level":"info","msg":"Starting Server...","caller":"app/server.go:914"}
Oct 04 08:40:28 hostname mattermost[31014]: {"timestamp":"2023-10-04 08:40:28.724 Z","level":"info","msg":"Server is listening on [::]:8065","caller":"app/server.go:990","address":"[::]:8065"}
Oct 04 08:40:28 hostname systemd[1]: Started Mattermost.
Oct 04 08:40:28 hostname mattermost[31014]: {"timestamp":"2023-10-04 08:40:28.724 Z","level":"info","msg":"Sending systemd READY notification.","caller":"commands/server.go:130"}

Would it be possible for you to share any logs that might assist in diagnosing this issue?

Your assistance would be greatly appreciated.
Thank you!