Database error following Btsync 2.0.124 update

Status
Not open for further replies.

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
@Joshua Parker Ruehlig

Not sure if this is one you can assist with mate?

I just updated Btsync to the latest version 2.0.124.

Everything seemed to go fine, however now when I open Btsync, all the folders are showing Database error.

As a test, I tried adding a new folder, but that also gave a database error

Any thoughts on what the issue might be? Or worst case scenario and I need to reinstall, which is the folder I need to copy over, to retain my settings?

Cheers
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
@Joshua Parker Ruehlig

Not sure if this is one you can assist with mate?

I just updated Btsync to the latest version 2.0.124.

Everything seemed to go fine, however now when I open Btsync, all the folders are showing Database error.

As a test, I tried adding a new folder, but that also gave a database error

Any thoughts on what the issue might be? Or worst case scenario and I need to reinstall, which is the folder I need to copy over, to retain my settings?

Cheers
You btsync related metadata is in /var/db/btsync

You might want to post about this on the btsync forum. Looks like someother people are experiencing this as well =/
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Urgghh, looks like this is going to be a major pain! I can't even install it again from scratch as it comes up with an error during installation. Error, unable to find template
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Urgghh, looks like this is going to be a major pain! I can't even install it again from scratch as it comes up with an error during installation. Error, unable to find template
this error is unrelated to btsync or the plugin. I think what your experiencing is related to your jail template then.

one idea is to delete your plugins, jails, and jail dataset. then reinstall your plugin(s)
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Really? All of them?

If I save all my /var/db/PLUGIN folders, will it simply be a case of replacing them all once I reinstall all my plugins? Or is it going to be more complicated than that?

I did move plugin jails to a new volume about a month ago. Everything seemed to go fine. Do you think it could be related?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Really? All of them?

If I save all my /var/db/PLUGIN folders, will it simply be a case of replacing them all once I reinstall all my plugins? Or is it going to be more complicated than that?

I did move plugin jails to a new volume about a month ago. Everything seemed to go fine. Do you think it could be related?
hmm, might not be worth the risk of deleting multiple jails. metadata folder is usually there, but it depends on the plugin.

so you can't install any new jails/plugins? you might want to see if there's a way to delete/refresh your jail template. I have a feeling it's in a dataset in your jail dataset.
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
No I just tested it by trying to install another plugin and I get the same template error :(

Bellow is the guide I followed to move my plugin jails. Do you think that is what's messed things up? All existing plugins work fine and are updatable. I just can't add new ones :(

Assumptions:
The pool you are transferring the jails from is main_pool
The destination pool is ssd_pool
The jail root (Jails->Configuration) is /mnt/main_pool/jails
The new jail root will be /mnt/ssd_pool/jails


Steps:

Turn off all plugins (Plugins->Installed)

Stop all jails (Jails->View Jails)

Run these commands via CLI:

[PANEL]zfs snapshot -r Movies_and_Music/pluginjails@relocate
zfs send -R Movies_and_Music/pluginjails@relocate | zfs receive -v TV/pluginjails
zfs get -rH -o name -s received mountpoint TV/pluginjails | xargs -I {} sh -c "zfs set mountpoint=/{} {}; zfs mount {};"[/PANEL]

Change the Jail Root to /mnt/TV/jails (Jails->Configuration)

Start jails/plugins

Check that everything works and destroy the original jails dataset (main_pool/jails)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
No I just tested it by trying to install another plugin and I get the same template error :(

Bellow is the guide I followed to move my plugin jails. Do you think that is what's messed things up? All existing plugins work fine and are updatable. I just can't add new ones :(

Assumptions:
The pool you are transferring the jails from is main_pool
The destination pool is ssd_pool
The jail root (Jails->Configuration) is /mnt/main_pool/jails
The new jail root will be /mnt/ssd_pool/jails


Steps:

Turn off all plugins (Plugins->Installed)

Stop all jails (Jails->View Jails)

Run these commands via CLI:

[PANEL]zfs snapshot -r Movies_and_Music/pluginjails@relocate
zfs send -R Movies_and_Music/pluginjails@relocate | zfs receive -v TV/pluginjails
zfs get -rH -o name -s received mountpoint TV/pluginjails | xargs -I {} sh -c "zfs set mountpoint=/{} {}; zfs mount {};"[/PANEL]

Change the Jail Root to /mnt/TV/jails (Jails->Configuration)

Start jails/plugins

Check that everything works and destroy the original jails dataset (main_pool/jails)
I'm not exactly sure how the templates work, but my jail dataset has these datasets@snapshots in it.
Code:
tank/jails/.warden-template-pluginjail@clean
tank/jails/.warden-template-standard@clean


Do you have the same? If not, maybe just delete those datasets and see if freenas recreated them when you try installing a plugin
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Where am I looking for them?

I've attached a screenshot of my datasets
 

Attachments

  • Datasets.jpg
    Datasets.jpg
    304.8 KB · Views: 262

Joshua Parker Ruehlig

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

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Ok, so just to make sure I'm not misunderstanding you and making things worse for myself, you're suggesting I delete both of those datasets?

I had a look inside the datasets, but couldn't see where the snapshots would be
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Ok, so just to make sure I'm not misunderstanding you and making things worse for myself, you're suggesting I delete both of those datasets?

I had a look inside the datasets, but couldn't see where the snapshots would be
snapshots themselves aren't shown as files. You can list them with "zfs list -t snapshot" and view their contents in the /path/to/dataset/.zfs/snapshots folder.
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Sorry, i'm being a total noob, but because there are so many snapshots in there, I have no idea how to scroll back up to see them!
 

Attachments

  • shell.jpg
    shell.jpg
    370.3 KB · Views: 270

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Sorry, i'm being a total noob, but because there are so many snapshots in there, I have no idea how to scroll back up to see them!
You could pipe your output to 'more' or 'grep' the output for some keywords
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
zfs list -t snapshot | more
zfs list -t snapshot | grep 'template'
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Ok so I don't have exactly these two no

  1. tank/jails/.warden-template-pluginjail@clean
  2. tank/jails/.warden-template-standard@clean

I've attached screenshots to show what I do have
 

Attachments

  • Screenshot_1.jpg
    Screenshot_1.jpg
    384.5 KB · Views: 250
  • Screenshot_2.jpg
    Screenshot_2.jpg
    403.7 KB · Views: 256

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Ok so I don't have exactly these two no

  1. tank/jails/.warden-template-pluginjail@clean
  2. tank/jails/.warden-template-standard@clean

I've attached screenshots to show what I do have
OK, not sure what else to tell you.

I already said I don't know much about how the jail template work, and you might want to try deleting them. other than that, maybe a bug report at bugs.freenas.org would help so we can forward it to someone who knows how the templates work better.
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
No that's cool, thanks for trying to help. Just to confirm you were suggesting deleting the two template data sets, rather than the snapshots?

Fingers crossed ;)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
No that's cool, thanks for trying to help. Just to confirm you were suggesting deleting the two template data sets, rather than the snapshots?

Fingers crossed ;)
yup, my guess is freenas will decide to redownload the templates. but... I could be completely wrong
 
Status
Not open for further replies.
Top