elrublog
(Rubén Salazar Estal)
February 23, 2016, 7:37pm
1
I’ve configured a single Ubuntu 14.04.4 server and have been following the Ubuntu 14.04 LTS guide: http://docs.mattermost.com/install/prod-ubuntu.html
When I run ./platform the service does not work.
This is the result of execution:
root@Mattermost:/home/mattermost/mattermost/bin# su mattermost
mattermost@Mattermost:~/mattermost/bin$ ./platform
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x6198b0]
goroutine 1 [running]:
github.com/mattermost/platform/utils.LoadConfig (0xc8200d3620, 0x2e)
/go/src/github.com/mattermost/platform/utils/config.go:152 +0x6a0
main.main()
/go/src/github.com/mattermost/platform/mattermost.go:54 +0x43
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1
goroutine 5 [syscall]:
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
/usr/local/go/src/os/signal/signal_unix.go:28 +0x37
goroutine 6 [chan receive]:
github.com/alecthomas/log4go.(*ConsoleLogWriter).run (0xc8200105a0, 0x7f394f3462b8, 0xc820028010)
/go/src/github.com/mattermost/platform/Godeps/_workspace/src/github.com/alecthomas/log4go/termlog.go:33 +0x69
created by github.com/alecthomas/log4go.NewConsoleLogWriter
/go/src/github.com/mattermost/platform/Godeps/_workspace/src/github.com/alecthomas/log4go/termlog.go:26 +0xb5
In this post: Single-server, CentOS 7 initial setup -- Won't launch as service indicates create the log file mattermost.log and assign the correct permissions, but does not influence in the result.
Any help would be appreciated.
elrublog
(Rubén Salazar Estal)
February 24, 2016, 11:53pm
2
Sorry, I had not set, the version is the Current Stable Release (v2.0.0).
Regards.
crspeller
(Christopher Speller)
February 25, 2016, 7:20pm
3
Hi elrublog,
The error your getting seems to intimidate that Mattermost can’t find or read its configuration file. Can you verify the the file is present, there are no errors in the JSON and the user running Mattermost has read write permissions to it?
benjohnson
(Ben Johnson)
February 27, 2016, 12:01am
4
I had the exact same problem with 2.0.0 on Ubuntu 14.04.4 64 bit - it turned out I was missing a trailing comma in the config.json file on the second line that I edited to connect to the database. I also entered postgresql instead of postgres like I should have.
wdmtech
(Wdmtech)
February 27, 2016, 3:50pm
5
Thanks for posting your solution, I had missed the , too!
Ewurama
(Ewurama Minka)
June 27, 2016, 5:45pm
6
Hello elrublog,
I have the same issue but the solution doesnt seem to work for me.
This is the error below:
v3nd1tt@v3nd1tt:~/mattermost/bin$ ./platform
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: interface conversion: interface is runtime.errorString, not string
[signal 0xb code=0x1 addr=0x0 pc=0x77664b]
goroutine 1 [running]:
panic(0xcd1aa0, 0xc820011c40)
/usr/local/go/src/runtime/panic.go:481 +0x3e6
main.doLoadConfig.func1(0xc820167d48)
/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/mattermost.go:73 +0x6f
panic(0xccbec0, 0xc82000a170)
/usr/local/go/src/runtime/panic.go:443 +0x4e9
github.com/mattermost/platform/utils.LoadConfig (0xc820143c20, 0x2b)
/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/utils/config.go:157 +0x6ab
main.doLoadConfig(0xdce990, 0xb, 0x0, 0x0)
/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/mattermost.go:76 +0x6a
main.main()
/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/mattermost.go:84 +0x43
Kindly help me resolve.
I went through a second time to double check my config.json but i still get this error.
v3nd1tt@v3nd1tt:~/mattermost/bin$ ./platform
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: interface conversion: interface is runtime.errorString, not string
[signal 0xb code=0x1 addr=0x0 pc=0x77664b]
goroutine 1 [running]:
panic(0xcd1aa0, 0xc820011c00)
/usr/local/go/src/runtime/panic.go:481 +0x3e6
main.doLoadConfig.func1(0xc820167d48)
/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/mattermost.go:73 +0x6f
panic(0xccbec0, 0xc82000a170)
/usr/local/go/src/runtime/panic.go:443 +0x4e9
github.com/mattermost/platform/utils.LoadConfig (0xc820143c50, 0x2b)
/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/utils/config.go:157 +0x6ab
main.doLoadConfig(0xdce990, 0xb, 0x0, 0x0)
/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/mattermost.go:76 +0x6a
main.main()
/var/lib/jenkins/jobs/mattermost-platform-release/workspace/src/github.com/mattermost/platform/mattermost.go:84 +0x43
crspeller
(Christopher Speller)
June 28, 2016, 1:45pm
7
Hi Ewurama,
It does seem to be a problem with your configuration. Can you try reverting to the default configuration and making your changes again?
Ewurama
(Ewurama Minka)
June 28, 2016, 2:55pm
8
Thanks crspeller,
it worked after i reverted to the defaulf configuration and input my settings again,
Thanks.