[Solved] Linux - Database error


hiro24

Recommended Posts

I'm getting a database error on my share on a Linux client. The following error continues to repeat over and over again in the logs.

 


[20170430 15:32:17.798] SF[876A]: Not loading torrents - state: { "downloadPaused": 0, "error": 0, "licensed": 1, "paused": 0, "stopped": 0, "uploadPaused": 0 } error description: "Database error."
[20170430 15:32:17.798] ScheduledTask: "ConnectMorePeers" invoked: timer, reason:ConnectMorePeers - sync is paused or fc error
[20170430 15:32:18.798] SF[876A]: Not loading torrents - state: { "downloadPaused": 0, "error": 0, "licensed": 1, "paused": 0, "stopped": 0, "uploadPaused": 0 } error description: "Database error."
[20170430 15:32:18.798] ScheduledTask: "ConnectMorePeers" invoked: timer, reason:ConnectMorePeers - sync is paused or fc error
[20170430 15:32:19.799] SF[876A]: Not loading torrents - state: { "downloadPaused": 0, "error": 0, "licensed": 1, "paused": 0, "stopped": 0, "uploadPaused": 0 } error description: "Database error."
[20170430 15:32:19.799] ScheduledTask: "ConnectMorePeers" invoked: timer, reason:ConnectMorePeers - sync is paused or fc error
[20170430 15:32:20.799] SF[876A]: Not loading torrents - state: { "downloadPaused": 0, "error": 0, "licensed": 1, "paused": 0, "stopped": 0, "uploadPaused": 0 } error description: "Database error."
[20170430 15:32:20.799] ScheduledTask: "ConnectMorePeers" invoked: timer, reason:ConnectMorePeers - sync is paused or fc error
[20170430 15:32:21.800] SF[876A]: Not loading torrents - state: { "downloadPaused": 0, "error": 0, "licensed": 1, "paused": 0, "stopped": 0, "uploadPaused": 0 } error description: "Database error."
[20170430 15:32:21.800] ScheduledTask: "ConnectMorePeers" invoked: timer, reason:ConnectMorePeers - sync is paused or fc error
[20170430 15:32:22.800] SF[876A]: Not loading torrents - state: { "downloadPaused": 0, "error": 0, "licensed": 1, "paused": 0, "stopped": 0, "uploadPaused": 0 } error description: "Database error."
[20170430 15:32:22.800] ScheduledTask: "ConnectMorePeers" invoked: timer, reason:ConnectMorePeers - sync is paused or fc error
[20170430 15:32:23.801] SF[876A]: Not loading torrents - state: { "downloadPaused": 0, "error": 0, "licensed": 1, "paused": 0, "stopped": 0, "uploadPaused": 0 } error description: "Database error."
[20170430 15:32:23.801] ScheduledTask: "ConnectMorePeers" invoked: timer, reason:ConnectMorePeers - sync is paused or fc error
 

 

Any ideas?

Link to comment
Share on other sites

Support ticked did indeed solve the problem for me, thanks.

In the event that anyone else runs into my specific situation, let me offer some background and what was discovered and how I fixed it.

Apparently, after a series of automatic updates on Linux, suddenly my Resilio Sync was running as a newly created rslsync username. What I needed to do was to run the application as another user, but after several failed attempts to make this work and not being able to find documentation anywhere, I opted to do a sort of hack/shortcut. I changed the UID number of rslsync to the other user that DID have access in /etc/passwd. 

While this DID give me access, there were some permission problems lingering in /var/lib/resilio-sync. To combat this, I opened up read/write permissions recursively on everything in this directory for the group level. (since now the owner was the other user, but the group was still rslsync) I then disconnected the share and reconnected it. No problems thusfar. I'm sure there are better ways to have done this, but this has worked for me.

As a side note, let me just say that I'm glad the support ticket system was on top of things and directed me quickly where to look to find the problem. That being said, please don't push updates out that break things like this. Also, PLEASE address the SYNC_USER variable in your init script, which as far as I can tell does absolutely nothing.

#!/bin/sh
### BEGIN INIT INFO
# Provides: resilio-sync
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: daemonized version of resilio-sync.
# Description: Starts the resilio-sync daemon.
### END INIT INFO


DAEMON=/usr/bin/rslsync
SYNC_USER=rslsync
CONFIG=/etc/resilio-sync/config.json

I was just stabbing in the dark here, but this file which resides in /etc/init.d, your average user would assume that changing SYNC_USER to something other than rslsync would change the user the program runs at. This is not the case. Please look into this.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.