• 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.

Problem running

Status
Not open for further replies.

TheŚnieg

Member
Hello. I can not run a bot from another account than root. The console spits me this error:

Error on startup. Sorry, this may be unrecoverable.
2017/06/15 19:16:00 {"e":"unable to open database file","s":[{"l":106,"f":"\ufffd\ufffd\ufffd\ufffd\ufffdF\ufffd\ufffdy\\$\ufffdn\ufffd\ufffd\u0011|\ufffdx\ufffd\ufffd\ufffd\"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd79\ufffd7\ufffdA\u0018\ufffd\\\u0003\ufffdYb]","n":"\u0010\ufffd*\ufffd#A\ufffdZn^MqVu\ufffd\u0008S\ufffdXcc\ufffd\u003c\"\ufffdd\"\u000c\ufffd\ufffd\ufffdI"},{"l":403,"f":"\ufffd\ufffd\u000e\ufffdBJ\ufffd-\u0008\ufffd\u003c\ufffd\ufffd\ufffd[)\ufffd!u\ufffd\ufffd'\ufffdz\ufffd\u0013\ufffd._\ufffd\ufffd\ufffd\ufffdW","n":"main.func·019"},{"l":401,"f":"/usr/local/go/src/runtime/asm_amd64.s","n":"i\ufffdj)\ufffd}\ufffd\u0013\ufffdo\ufffd\n\u0016\ufffd"},{"l":387,"f":"/usr/local/go/src/runtime/panic.go","n":"\ufffd\ufffdX7\ufffdF\ufffd\ufffd\u0007\ufffdı`k?"},{"l":669,"f":"\ufffdѱ\ufffd\ufffd\u0008ӍҀ\ufffduHf\ufffd\ufffd\ufffd\ufffdt\ufffd\ufffd_\ufffd\ufffd\ufffd\u003et'\u0026O\ufffdh\u0013\ufffd%\ufffdb\ufffdxX\ufffd\ufffdL","n":"\ufffd\ufffd\u000f\ufffd\ufffd\ufffd\u001f \ufffd˼\ufffd\ufffd\ufffd\u0011\ufffd\ufffd\ufffd\u001b\ufffd\ufffd%\ufffd\ufffd\u000f\ufffd\ufffd\ufffd\ufffd\ufffdR;"},{"l":341,"f":"\ufffdѱ\ufffd\ufffd\u0008ӍҀ\ufffduHf\ufffd\ufffd\ufffd\ufffdt\ufffd\ufffd_\ufffd\ufffd\ufffd\u003et'\u0026O\ufffdh\u0013\ufffd%\ufffdb\ufffdxX\ufffd\ufffdL","n":"\ufffd\u0017\u0019f\u000b\ufffdp\u0001Uԧ\ufffd\u00110\u000e\ufffdF\ufffd\ufffd\ufffdd\u000e\u0014\u001e\ufffd\ufffdF\ufffd}M嫻ո\ufffdH\u0004"},{"l":529,"f":"\ufffd\ufffd\u000e\ufffdBJ\ufffd-\u0008\ufffd\u003c\ufffd\ufffd\ufffd[)\ufffd!u\ufffd\ufffd'\ufffdz\ufffd\u0013\ufffd._\ufffd\ufffd\ufffd\ufffdW","n":"main.main"},{"l":63,"f":"/usr/local/go/src/runtime/proc.go","n":"\ufffd\u001b[Bz\ufffd\ufffd\ufffd\ufffd\ufffda\ufffd"},{"l":2232,"f":"/usr/local/go/src/runtime/asm_amd64.s","n":"\ufffd\\\u001f\ufffd\u001c\ufffd\ufffd\ufffdm\u0018\\d\ufffdV"}]}
 

Diesmon

Tuetchen Dominator
is awesome!
Contributor
Insider
Looks like your bot is unable to open the database.

I guess because you started the bot always as root, untill the last update hit and now you need to use a differn tuser.

But the rights are still on the root account. So you need to change the ownership of the database/botfolder to your new user and that should fix it.
 

LetsBlade

Active Member
Quick Tut:

Change into Root user and type Following Commands:
adduser sinusbot
(Give him a Password)
su - root
(Type in your Root Password to Change back to Root)
chmod -R 0766 /opt/SINUSBOTFOLDER
chown -R sinusbot:sinusbot /opt/SINUSBOTFOLDER
(Change back to the Sinusbot User)
su - sinusbot
./opt/SINUSBOTFOLDER/sinusbot
 
Status
Not open for further replies.
Top