{"action":"created","issue":{"url":"https://api.github.com/repos/mattermost/platform/issues/3369","repository_url":"https://api.github.com/repos/mattermost/platform","labels_url":"https://api.github.com/repos/mattermost/platform/issues/3369/labels{/name}","comments_url":"https://api.github.com/repos/mattermost/platform/issues/3369/comments","events_url":"https://api.github.com/repos/mattermost/platform/issues/3369/events","html_url":"https://github.com/mattermost/platform/issues/3369","id":160932611,"number":3369,"title":"Mattermost will not start up after config change","user":{"login":"TheNixNinja","id":898637,"avatar_url":"https://avatars.githubusercontent.com/u/898637?v=3","gravatar_id":"","url":"https://api.github.com/users/TheNixNinja","html_url":"https://github.com/TheNixNinja","followers_url":"https://api.github.com/users/TheNixNinja/followers","following_url":"https://api.github.com/users/TheNixNinja/following{/other_user}","gists_url":"https://api.github.com/users/TheNixNinja/gists{/gist_id}","starred_url":"https://api.github.com/users/TheNixNinja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheNixNinja/subscriptions","organizations_url":"https://api.github.com/users/TheNixNinja/orgs","repos_url":"https://api.github.com/users/TheNixNinja/repos","events_url":"https://api.github.com/users/TheNixNinja/events{/privacy}","received_events_url":"https://api.github.com/users/TheNixNinja/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-17T17:03:28Z","updated_at":"2016-06-17T17:40:32Z","closed_at":null,"body":"#### Summary\r\nMattermost does not start up after changing max file size\r\n\r\n#### Steps to reproduce\r\n 1. Stop a running instance of mattermost ```sudo /etc/init.d/mattermost stop```\r\n 2. Edit config.json change the max file size setting from 52428800 to 10485760\r\n 3. Start the mattermost service ```sudo /etc/init.d/mattermost start```\r\n\r\n#### Expected behavior\r\nExpected the server to start up as it was running fine before\r\n\r\n#### Observed behavior\r\nTo get an error message I had to run the platform executable as root otherwise it just fails start and doesn't report any problems.\r\n```\r\npanic: runtime error: invalid memory address or nil pointer dereference [recovered]\r\n\tpanic: interface conversion: interface is runtime.errorString, not string\r\n[signal 0xb code=0x1 addr=0x0 pc=0x780b9d]\r\n\r\ngoroutine 1 [running]:\r\npanic(0xcd1aa0, 0xc820262480)\r\n\t/usr/local/go/src/runtime/panic.go:481 +0x3e6\r\nmain.doLoadConfig.func1(0xc820255d38)\r\n\t/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/mattermost.go:73 +0x6f\r\npanic(0xccbec0, 0xc82000a0c0)\r\n\t/usr/local/go/src/runtime/panic.go:443 +0x4e9\r\ngithub.com/mattermost/platform/utils.TestConnection(0xc82007ab00)\r\n\t/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/utils/mail.go:89 +0x32d\r\ngithub.com/mattermost/platform/utils.LoadConfig(0xc820139aa0, 0x22)\r\n\t/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/utils/config.go:181 +0x10aa\r\nmain.doLoadConfig(0xdce990, 0xb, 0x0, 0x0)\r\n\t/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/mattermost.go:76 +0x6a\r\nmain.main()\r\n\t/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/mattermost.go:84 +0x43\r\n```\r\n\r\n#### Possible fixes\r\nI have tried putting the setting back to the way it was, and even deleting the config line completely but neither seem to help.\r\n"},"comment":{"url":"https://api.github.com/repos/mattermost/platform/issues/comments/226833813","html_url":"https://github.com/mattermost/platform/issues/3369#issuecomment-226833813","issue_url":"https://api.github.com/repos/mattermost/platform/issues/3369","id":226833813,"user":{"login":"TheNixNinja","id":898637,"avatar_url":"https://avatars.githubusercontent.com/u/898637?v=3","gravatar_id":"","url":"https://api.github.com/users/TheNixNinja","html_url":"https://github.com/TheNixNinja","followers_url":"https://api.github.com/users/TheNixNinja/followers","following_url":"https://api.github.com/users/TheNixNinja/following{/other_user}","gists_url":"https://api.github.com/users/TheNixNinja/gists{/gist_id}","starred_url":"https://api.github.com/users/TheNixNinja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheNixNinja/subscriptions","organizations_url":"https://api.github.com/users/TheNixNinja/orgs","repos_url":"https://api.github.com/users/TheNixNinja/repos","events_url":"https://api.github.com/users/TheNixNinja/events{/privacy}","received_events_url":"https://api.github.com/users/TheNixNinja/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T17:40:32Z","updated_at":"2016-06-17T17:40:32Z","body":"Was also able to find the error message in syslog\r\n```\r\nJun 17 17:38:52  systemd[1]: Started Mattermost is an open source, self-hosted Slack-alternative.\r\nJun 17 17:38:52  platform[1965]: panic: runtime error: invalid memory address or nil pointer dereference [recovered]\r\nJun 17 17:38:52  platform[1965]: #011panic: interface conversion: interface is runtime.errorString, not string\r\nJun 17 17:38:52  platform[1965]: [signal 0xb code=0x1 addr=0x0 pc=0x780b9d]\r\nJun 17 17:38:52  platform[1965]: goroutine 1 [running]:\r\nJun 17 17:38:52  platform[1965]: panic(0xcd1aa0, 0xc82024a7c0)\r\nJun 17 17:38:52  platform[1965]: #011/usr/local/go/src/runtime/panic.go:481 +0x3e6\r\nJun 17 17:38:52  platform[1965]: main.doLoadConfig.func1(0xc820241d38)\r\nJun 17 17:38:52  platform[1965]: #011/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/mattermost.go:73 +0x6f\r\nJun 17 17:38:52  platform[1965]: panic(0xccbec0, 0xc82000a0a0)\r\nJun 17 17:38:52  platform[1965]: #011/usr/local/go/src/runtime/panic.go:443 +0x4e9\r\nJun 17 17:38:52  platform[1965]: github.com/mattermost/platform/utils.TestConnection(0xc820078b00)\r\nJun 17 17:38:52  platform[1965]: #011/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/utils/mail.go:89 +0x32d\r\nJun 17 17:38:52  platform[1965]: github.com/mattermost/platform/utils.LoadConfig(0xc820133a70, 0x22)\r\nJun 17 17:38:52  platform[1965]: #011/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/utils/config.go:181 +0x10aa\r\nJun 17 17:38:52  platform[1965]: main.doLoadConfig(0xdce990, 0xb, 0x0, 0x0)\r\nJun 17 17:38:52  platform[1965]: #011/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/mattermost.go:76 +0x6a\r\nJun 17 17:38:52  platform[1965]: main.main()\r\nJun 17 17:38:52  platform[1965]: #011/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/mattermost.go:84 +0x43\r\nJun 17 17:38:52  systemd[1]: mattermost.service: Main process exited, code=exited, status=2/INVALIDARGUMENT\r\nJun 17 17:38:52 systemd[1]: mattermost.service: Unit entered failed state.\r\nJun 17 17:38:52 systemd[1]: mattermost.service: Failed with result 'exit-code'.\r\n```"}}
{"actor":{"display_login":"TheNixNinja"}}