Database error following Btsync 2.0.124 update

Status
Not open for further replies.

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Hmmm, might not have been the best idea after all. One dataset deleted fine but the other one won't budge as it says the file system has dependent clones and goes on to list some of my plugin jails (see screengrab) I tried installing a plugin to see if the missing template dir would be rebuilt, but sadly no dice

Do you think I should cut my losses, back up my var/db/PLUGIN directories and then set up my Jails dataset afresh?
 

Attachments

  • Screenshot_3.jpg
    Screenshot_3.jpg
    271.4 KB · Views: 235

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hmmm, might not have been the best idea after all. One dataset deleted fine but the other one won't budge as it says the file system has dependent clones and goes on to list some of my plugin jails (see screengrab) I tried installing a plugin to see if the missing template dir would be rebuilt, but sadly no dice

Do you think I should cut my losses, back up my var/db/PLUGIN directories and then set up my Jails dataset afresh?
that's what I would do. do double check what you've backed up. for example, transmission keeps it's metadata somewhere else.
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
that's what I would do. do double check what you've backed up. for example, transmission keeps it's metadata somewhere else.

Thanks Josh,

other than Transmission, are there many plugins that you know of, that store their metadata in alternative locations?

I'm using:

Btsync
Mylar
Headphones
Sickrage
Couch Potato
Plex

My other question is whether it's cool to just copy the var/db/PLUGIN directories onto my windows box and then copy them back after I've set up the fresh plugins and jails.

I'm hoping that won't cause problems with permissions etc?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thanks Josh,

other than Transmission, are there many plugins that you know of, that store their metadata in alternative locations?

I'm using:

Btsync
Mylar
Headphones
Sickrage
Couch Potato
Plex

My other question is whether it's cool to just copy the var/db/PLUGIN directories onto my windows box and then copy them back after I've set up the fresh plugins and jails.

I'm hoping that won't cause problems with permissions etc?
I give the relevant info here. https://forums.freenas.org/index.ph...plugins-write-permissions-to-your-data.27273/
I think the only one that is different than the norm in that list is Plex

I would assume copying it to a windows OS would lose permission levels, but I don't know how that stuff works with windows. Should be fine, as long as you set the ownership of the files back to the plugin user. (User info per plugin in the link)
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Thanks Josh,

I've been moving the data within the Freenas system to try and minimise issues and with Mylar the first plugin I moved, everything has worked fine, however when it came to Plex, the settings don't appear to have migrated and when opened I see a fresh account without any of my media.

I used this code:

cp -Rp /mnt/Goliath/jails/plexmediaserver_2/var/db/plexdata/* /mnt/Goliath/Jails/plexmediaserver_1/var/db/plexdata

Is there something else I should be taking into consideration with Plex?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thanks Josh,

I've been moving the data within the Freenas system to try and minimise issues and with Mylar the first plugin I moved, everything has worked fine, however when it came to Plex, the settings don't appear to have migrated and when opened I see a fresh account without any of my media.

I used this code:

cp -Rp /mnt/Goliath/jails/plexmediaserver_2/var/db/plexdata/* /mnt/Goliath/Jails/plexmediaserver_1/var/db/plexdata

Is there something else I should be taking into consideration with Plex?
older versions of plex don't use /var/db/plexdata, so that could be an issue
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
older versions of plex don't use /var/db/plexdata, so that could be an issue

I just got Plex working. I needed to start it once, before copying over the old files and then all was good.

That said I'm now struggling with Couch Potato.

I followed the same procedure I've done with all the other plugins, including starting it first before copying over the files, however the plugin just will not start at all now :(

cp -Rp /mnt/Goliath/jails/couchpotato_2/var/db/couchpotato/* /mnt/Goliath/Jails/couchpotato_1/var/db/couchpotato
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I just got Plex working. I needed to start it once, before copying over the old files and then all was good.

That said I'm now struggling with Couch Potato.

I followed the same procedure I've done with all the other plugins, including starting it first before copying over the files, however the plugin just will not start at all now :(

cp -Rp /mnt/Goliath/jails/couchpotato_2/var/db/couchpotato/* /mnt/Goliath/Jails/couchpotato_1/var/db/couchpotato
maybe start CP without the datadir there so it can download the latest version of it's program code, then stop it, replace the datadir
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
maybe start CP without the datadir there so it can download the latest version of it's program code, then stop it, replace the datadir

Tried again, this time setting up Couch Potato first, but once again, if I copy the datadir over Couch Potato won't start anymore.

Copying over the data was extremely quick, almost instantaneous. Not sure if that's relevant?

The jail is running fine, just not the plugin :(

I can successfully run: service couchpotato onestart however Couchpotato is still unavailable afterwards.

Not sure why it's behaving differently to the others which now all work fine
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Tried again, this time setting up Couch Potato first, but once again, if I copy the datadir over Couch Potato won't start anymore.

Copying over the data was extremely quick, almost instantaneous. Not sure if that's relevant?

The jail is running fine, just not the plugin :(

I can successfully run: service couchpotato onestart however Couchpotato is still unavailable afterwards.

Not sure why it's behaving differently to the others which now all work fine
if you want you can edit CPs init file to remove the daemon flag. then start it and look for any errors.

or you could check if there's any logs in the CP directory.
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
I found an error log in the CP directory which seems to refer to a critical error around the time I tried copying over the database this morning

There seem to be references to conflicts, but I'm not quite sure what it's referencing.

I've attached the log if you have a moment to cast your eye over it?

Cheers
 

Attachments

  • error.txt
    39.4 KB · Views: 359

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I found an error log in the CP directory which seems to refer to a critical error around the time I tried copying over the database this morning

There seem to be references to conflicts, but I'm not quite sure what it's referencing.

I've attached the log if you have a moment to cast your eye over it?

Cheers
Sorry, read the log but can't tell what the issue exactly is. I'd suggest you ask on the CP forum if you need to dubeg further.

Just to confirm you..
  1. started CP with no /var/db/couchpotato (datadir)
  2. set it up so it grabbed the latest version of it's source
  3. stopped CP
  4. replaced the datadir, set ownership of the directory to 'media'
  5. started CP
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Yes, apart from setting the ownership of the directory to 'media'

As I was copying from a working jail dataset on the same volume, I didn't think it would be necessary. Especially as all the other plugins had copied over without issue

What command would I run to set ownership of that dir?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Yes, apart from setting the ownership of the directory to 'media'

As I was copying from a working jail dataset on the same volume, I didn't think it would be necessary. Especially as all the other plugins had copied over without issue

What command would I run to set ownership of that dir?
chown -R media:media /var/db/couchpotato
 
Last edited:

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
I tried running that from the Couchpotato jail, but it threw an error:

root@couchpotato_1:/ # chmod -R media:media /var/db/couchpotato
chmod: invalid file mode: media:media
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
whoops, I meant chown. I'll fix my previous post
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Ok, so I deleted the plugin and did everything again from scratch and it's all back on line

Thanks again mate :D
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Status
Not open for further replies.
Top