• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Solved attempt to write a readonly database

Status
Not open for further replies.

Huskynarr

Member
Code:
 ___ ___ _  _ _   _ ___ ___  ___ _____  BETA
/ __|_ _| \| | | | / __| _ )/ _ \_   _|
\__ \| || .` | |_| \__ \ _ \ (_) || |
|___/___|_|\_|\___/|___/___/\___/ |_|

(C) 2013-2015 Michael Friese. All rights reserved.

2015/10/12 21:38:40 6cc6b747 INFO   Initializing bot://6cc6b747-255c-4bab-86fb-10f7c63ed050
panic: attempt to write a readonly database

goroutine 10 [running]:
github.com/jmoiron/sqlx.MustExec(0x7fc650d95850, 0xc20806d680, 0xab94d0, 0x17, 0x0, 0x0, 0x0, 0x0, 0x0)
        /opt/go/src/github.com/jmoiron/sqlx/sqlx.go:669 +0xde
github.com/jmoiron/sqlx.(*DB).MustExec(0xc20806d680, 0xab94d0, 0x17, 0x0, 0x0, 0x0, 0x0, 0x0)
        /opt/go/src/github.com/jmoiron/sqlx/sqlx.go:341 +0xa2
main.(*DB).Init(0xc208080480, 0xa78500, 0x7, 0xc2080ee150, 0x61)
        /opt/go/src/frie.se/ts3bot/db.go:155 +0x111c
main.(*Bot).Init(0xc208080480, 0x0, 0x7fc650d955f8)
        /opt/go/src/frie.se/ts3bot/bot.go:169 +0x36b
main.func·036()
        /opt/go/src/frie.se/ts3bot/main.go:544 +0x1829
created by time.goFunc
        /usr/local/go/src/time/sleep.go:129 +0x4b

goroutine 1 [select (no cases)]:
main.main()
        /opt/go/src/frie.se/ts3bot/main.go:672 +0x2929

goroutine 5 [syscall]:
os/signal.loop()
        /usr/local/go/src/os/signal/signal_unix.go:21 +0x1f
created by os/signal.init·1
        /usr/local/go/src/os/signal/signal_unix.go:27 +0x35

goroutine 7 [chan receive]:
database/sql.(*DB).connectionOpener(0xc20803e000)
        /usr/local/go/src/database/sql/sql.go:589 +0x4c
created by database/sql.Open
        /usr/local/go/src/database/sql/sql.go:452 +0x31c

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
        /usr/local/go/src/runtime/asm_amd64.s:2232 +0x1

goroutine 11 [chan receive]:
database/sql.(*DB).connectionOpener(0xc20803e5a0)
        /usr/local/go/src/database/sql/sql.go:589 +0x4c
created by database/sql.Open
        /usr/local/go/src/database/sql/sql.go:452 +0x31c



FIXED: Wrong User! :D
 
Last edited:
Status
Not open for further replies.
Top