Cant access system console after upgrade 2.2.0 -> 3.0.0

Not sure what happned here… upgrade script went fine but system console just keeps loading…

The console in the browser gives:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
method=getConfig status=500 statusCode=undefined err=Error: Internal Server Error

Object: message: “We received an unexpected status code from the server. (500)”

My Systemconsole is also “loading” but nothing happens after upgrading from 2.2 to 3.0 ;/
P.s: config.json doesnt seem to be updated, it lacks the new options

Version, Upgrade Log, and Debug Log when clicking on “systemconsole”:

# ./platform -version
[19:31:51 CEST 2016/05/16] [INFO] (github.com/mattermost/platform/utils.GetTranslationsBySystemLocale:56) Loaded system translations for 'en' from '/home/chat/www/mattermost/i18n/en.json'
Version: 3.0.0
Build Number: 3.0.0
Build Date: Fri May 13 18:14:01 UTC 2016
Build Hash: 9d94869cc6a0fb9f051879437c104ccd76094380
Build Enterprise Ready: false

2016/05/16 19:28:52 runtime error: invalid memory address or nil pointer dereference
goroutine 472 [running]:
runtime/debug.Stack(0x0, 0x0, 0x0)
        /usr/local/go/src/runtime/debug/stack.go:24 +0x80
runtime/debug.PrintStack()
        /usr/local/go/src/runtime/debug/stack.go:16 +0x18
github.com/gorilla/handlers.recoveryHandler.log(0x7f8e2eb007f0, 0xc8202d1e90, 0x0, 0x1, 0xca20c0, 0xc82000a100)
        /var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/Godeps/_workspace/src/github.com/gorilla/handlers/recovery.go:84 +0xb8
github.com/gorilla/handlers.recoveryHandler.ServeHTTP.func1(0x7f8e2eb1bb80, 0xc820052270, 0x7f8e2eb007f0, 0xc8202d1e90, 0x0, 0xc820616701)
        /var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/Godeps/_workspace/src/github.com/gorilla/handlers/recovery.go:69 +0x9b
panic(0xca20c0, 0xc82000a100)
        /usr/local/go/src/runtime/panic.go:443 +0x4e9
github.com/mattermost/platform/model.(*Config).Sanitize(0xc82090fb80)
        /var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/model/config.go:618 +0x3e
github.com/mattermost/platform/api.getConfig(0xc8209d39e0, 0x7f8e2eb1bb80, 0xc820052270, 0xc8209356c0)
        /var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/api/admin.go:131 +0x114
github.com/mattermost/platform/api.handler.ServeHTTP(0xf1cec0, 0x1010001, 0x7f8e2eb1bb80, 0xc820052270, 0xc8209356c0)
        /var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/api/context.go:207 +0x11f1
github.com/mattermost/platform/api.(*handler).ServeHTTP(0xc8202332f0, 0x7f8e2eb1bb80, 0xc820052270, 0xc8209356c0)
        <autogenerated>:1 +0xb6
github.com/gorilla/mux.(*Router).ServeHTTP(0xc82053f180, 0x7f8e2eb1bb80, 0xc820052270, 0xc8209356c0)
        /var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/Godeps/_workspace/src/github.com/gorilla/mux/mux.go:100 +0x29e
github.com/mattermost/platform/api.(*CorsWrapper).ServeHTTP(0xc820025f30, 0x7f8e2eb1bb80, 0xc820052270, 0xc8209356c0)
        /var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/api/context.go:251 +0x32b
gopkg.in/throttled/throttled%2ev1.(*Throttler).Throttle.func1(0x7f8e2eb1bb80, 0xc820052270, 0xc8209356c0)
        /var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/Godeps/_workspace/src/gopkg.in/throttled/throttled.v1/throttler.go:64 +0x161
net/http.HandlerFunc.ServeHTTP(0xc8202d1e90, 0x7f8e2eb1bb80, 0xc820052270, 0xc8209356c0)
        /usr/local/go/src/net/http/server.go:1618 +0x3a
github.com/gorilla/handlers.recoveryHandler.ServeHTTP(0x7f8e2eb007f0, 0xc8202d1e90, 0x0, 0x1, 0x7f8e2eb1bb80, 0xc820052270, 0xc8209356c0)
        /var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/Godeps/_workspace/src/github.com/gorilla/handlers/recovery.go:73 +0xb4
github.com/gorilla/handlers.(*recoveryHandler).ServeHTTP(0xc8202d4a40, 0x7f8e2eb1bb80, 0xc820052270, 0xc8209356c0)
        <autogenerated>:52 +0xb4
github.com/braintree/manners.(*gracefulHandler).ServeHTTP(0xc8202d4ac0, 0x7f8e2eb1bb80, 0xc820052270, 0xc8209356c0)
        /var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/Godeps/_workspace/src/github.com/braintree/manners/server.go:257 +0x7e
net/http.serverHandler.ServeHTTP(0xc820547f80, 0x7f8e2eb1bb80, 0xc820052270, 0xc8209356c0)
        /usr/local/go/src/net/http/server.go:2081 +0x19e
net/http.(*conn).serve(0xc820597e00)
        /usr/local/go/src/net/http/server.go:1472 +0xf2e
created by net/http.(*Server).Serve
        /usr/local/go/src/net/http/server.go:2137 +0x44e
[2016/05/16 19:28:52 CEST] [DEBG] /api/v3/admin/config
[2016/05/16 19:28:52 CEST] [DEBG] /api/v3/teams/all
# ./platform -upgrade_db_30
[19:15:37 CEST 2016/05/16] [INFO] (github.com/mattermost/platform/utils.GetTranslationsBySystemLocale:56) Loaded system translations for 'en' from '/home/chat/www/mattermost/i18n/en.json'
[2016/05/16 19:15:37 CEST] [INFO] Current version is 3.0.0 (3.0.0/Fri May 13 18:14:01 UTC 2016/9d94869cc6a0fb9f051879437c104ccd76094380)
[2016/05/16 19:15:37 CEST] [INFO] Enterprise Enabled: false
[2016/05/16 19:15:37 CEST] [INFO] Current working directory is [...]
[2016/05/16 19:15:37 CEST] [INFO] Loaded config file from [...]
[2016/05/16 19:15:37 CEST] [INFO] Pinging sql master database
[2016/05/16 19:15:37 CEST] [INFO] Pinging sql replica-0 database
[2016/05/16 19:15:37 CEST] [DEBG] Parsing server templates at [...]
[2016/05/16 19:15:37 CEST] [INFO] Attempting to run speical upgrade of the database schema to version 3.0 for user model changes

Please see http://www.mattermost.org/upgrade-to-3-0/
**WARNING** This upgrade process will be irreversible.
Have you performed a database backup? (YES/NO): YES
We found 1 teams.
start
Please pick a primary team from the list above: start
[2016/05/16 19:15:43 CEST] [INFO] Starting speical 3.0 database upgrade with performed_backup=YES team_name=start
[2016/05/16 19:15:43 CEST] [INFO] Primary team start will be left unchanged
[2016/05/16 19:15:43 CEST] [INFO] Upgrading primary team start
[2016/05/16 19:15:44 CEST] [WARN] No profile image to move for [...]
[2016/05/16 19:15:44 CEST] [WARN] No profile image to move for [...]
[...]
[2016/05/16 19:15:44 CEST] [INFO] Altering other scheme changes needed 3.0 for user model changes
[2016/05/16 19:15:44 CEST] [INFO] Finished running speical upgrade of the database schema to version 3.0 for user model changes
**SUCCESS** with upgrade
[2016/05/16 19:15:44 CEST] [INFO] The database schema has been upgraded to version 3.0.0

Same issue here after upgrading from 2.2.0 to 3.0.0, I can’t get the System Console to load. I get the SC menu, but the main window only shows “Loading…”, and clicking anything in the menu doesn’t give any response:

My setup has an nginx SSL proxy in front, and I can see these two lines appearing in access.log when i try to access the System Console:

“GET /api/v3/admin/config HTTP/1.1” 500 0 “-” “Mozilla/5.0 (Windows NT 6.3; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0”
“GET /api/v3/teams/all HTTP/1.1” 200 952 “-” “Mozilla/5.0 (Windows NT 6.3; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0”

I’m also pretty sure config.json was touched after the upgrade, but unfortunately I forgot to copy it before rolling back to 2.2.0.

Hey Folks you can check out this github issue https://github.com/mattermost/platform/issues/2999

1 Like