We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2015-03-04 13:47:15 +0200

How to recover an account which lost sync (facebook, email, etc.)

There is an issue with the Jolla accounts system, where accounts aren't able to syncronise with a remote server any more, and it is not possible to activate it agein via settings menu. I discovered it with some of my email accounts and my facebook account (the notification system). @Okw reported this issue already here and made a video illustrating this issue here.

This bug occours apparently when the phone crashes while it is syncing. If this happens some mandatory config files get currupted. For now, there is no automatic solution for this. To fix the problem you can either delete and recreate the broken account, which is awkward, or you can fix the corrupted config files manually. I want to show how in this post.

I want to thank @VDVsx, who originally gave the instructions here.

Prerequisites

You have to enable developer mode to get root privileges. See the instructions here. I recommend to do the following steps via an ssh shell on a PC, that is much easier than in fingertern :).

Identifying the accounts

When you enabled developer mode and connected to the terminal via ssh, type the following commands:

devel-su -p       # To get permissions to install packages
pkcon install libaccounts-glib-tools    #Install accounts-tools package
ag-tool list-accounts    #list your accounts

From the list printed above locate your broken account and check what's the ID, you will need that number later. Now change to the directory where the brokoen config files are:

cd .cache/msyncd/sync  #navigates to the folder with the sync configs
ls -l  #list the files in the above folder

Fix broken email account

If you have a file called syncemail-xxx.xml (the xxx is the ID you found above), open it, if not create one with the following command:

nano syncemail-XXX.xml

In any of the cases add the following content to the file, replacing your account number above in two places marked with the XXX:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="syncemail-XXX">
    <key value="XXX" name="accountid"/>
    <key value="online" name="destinationtype"/>
    <key value="syncemail-" name="displayname"/>
    <key value="true" name="enabled"/>
    <key value="true" name="hidden"/>
    <key value="true" name="scheduled"/>
    <key value="true" name="sync_always_up_to_date"/>
    <key value="30" name="sync_since_days_past"/>
    <key value="true" name="use_accounts"/>
    <profile type="client" name="syncemail">
        <key value="from-remote" name="Sync Direction"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" time="" enabled="true" interval="30" externalsync="false" syncconfiguredtime="">
        <rush end="" days="" enabled="false" interval="15" externalsync="false" begin=""/>
    </schedule>
</profile>

Afterwards go to Settings -> Accounts -> email account. You should be able to select a sync schedule now.

Fix broken facebook account

Check the files handling the facebook account:

[nemo@Jolla sync]$ ls -l facebook.*

There should be five files: facebook.Calendars-XX.xml, facebook.Contacts-XX.xml, facebook.Images-XX.xml, facebook.Notifications-XX.xml and facebook.Signon-XX.xml, where XX is the ID of the account. Some of them, probably facebook.Notifications-XX.xml and facebook.Signon-XX.xml, are empty or missing. Open the empty files or create the missing ones with the nano command (of cource replace XX with your account's ID):

nano facebook.Notifications-XX.xml
nano facebook.Signon-XX.xml

Add the following content to the corresponding file, replacing your account number above in two places marked with the XX:

facebook.Notifications-XX.xml:

<profile type="sync" name="facebook.Notifications-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Notifications"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Notifications-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-notifications">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="30" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>
<?xml version="1.0" encoding="UTF-8"?>

facebook.Signon-XX.xml:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="facebook.Signon-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Signon"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Signon-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-Signon">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="720" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>

Afterwards go to Settings -> Accounts -> Facebook account. You should be able to select a sync schedule now.

other accounts

The same instructions are probably straightforward for other accounts, but I don't have one of them on my jolla. If you know a solution, just edit this wiki.

How to recover an account which lost sync (facebook, email, etc.)

There is an issue with the Jolla accounts system, where accounts aren't able to syncronise with a remote server any more, and it is not possible to activate it agein again via settings menu. I discovered it with some of my email accounts and my facebook account (the notification system). @Okw reported this issue already here and made a video illustrating this issue here.

This bug occours apparently when the phone crashes while it is syncing. If this happens some mandatory config files get currupted. For now, there is no automatic solution for this. To fix the problem you can either delete and recreate the broken account, which is awkward, or you can fix the corrupted config files manually. I want to show how in this post.

I want to thank @VDVsx, who originally gave the instructions here.

Prerequisites

You have to enable developer mode to get root privileges. See the instructions here. I recommend to do the following steps via an ssh shell on a PC, that is much easier than in fingertern :).

Identifying the accounts

When you enabled developer mode and connected to the terminal via ssh, type the following commands:

devel-su -p       # To get permissions to install packages
pkcon install libaccounts-glib-tools    #Install accounts-tools package
ag-tool list-accounts    #list your accounts

From the list printed above locate your broken account and check what's the ID, you will need that number later. Now change to the directory where the brokoen config files are:

cd .cache/msyncd/sync  #navigates to the folder with the sync configs
ls -l  #list the files in the above folder

Fix broken email account

If you have a file called syncemail-xxx.xml (the xxx is the ID you found above), open it, if not create one with the following command:

nano syncemail-XXX.xml

In any of the cases add the following content to the file, replacing your account number above in two places marked with the XXX:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="syncemail-XXX">
    <key value="XXX" name="accountid"/>
    <key value="online" name="destinationtype"/>
    <key value="syncemail-" name="displayname"/>
    <key value="true" name="enabled"/>
    <key value="true" name="hidden"/>
    <key value="true" name="scheduled"/>
    <key value="true" name="sync_always_up_to_date"/>
    <key value="30" name="sync_since_days_past"/>
    <key value="true" name="use_accounts"/>
    <profile type="client" name="syncemail">
        <key value="from-remote" name="Sync Direction"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" time="" enabled="true" interval="30" externalsync="false" syncconfiguredtime="">
        <rush end="" days="" enabled="false" interval="15" externalsync="false" begin=""/>
    </schedule>
</profile>

Afterwards go to Settings -> Accounts -> email account. You should be able to select a sync schedule now.

Fix broken facebook account

Check the files handling the facebook account:

[nemo@Jolla sync]$ ls -l facebook.*

There should be five files: facebook.Calendars-XX.xml, facebook.Contacts-XX.xml, facebook.Images-XX.xml, facebook.Notifications-XX.xml and facebook.Signon-XX.xml, where XX is the ID of the account. Some of them, probably facebook.Notifications-XX.xml and facebook.Signon-XX.xml, are empty or missing. Open the empty files or create the missing ones with the nano command (of cource replace XX with your account's ID):

nano facebook.Notifications-XX.xml
nano facebook.Signon-XX.xml

Add the following content to the corresponding file, replacing your account number above in two places marked with the XX:

facebook.Notifications-XX.xml:

<profile type="sync" name="facebook.Notifications-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Notifications"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Notifications-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-notifications">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="30" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>
<?xml version="1.0" encoding="UTF-8"?>

facebook.Signon-XX.xml:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="facebook.Signon-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Signon"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Signon-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-Signon">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="720" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>

Afterwards go to Settings -> Accounts -> Facebook account. You should be able to select a sync schedule now.

other accounts

The same instructions are probably straightforward for other accounts, but I don't have one of them on my jolla. If you know a solution, just edit this wiki.

How to recover an account which lost sync (facebook, email, etc.)

There is an issue with the Jolla accounts system, where accounts aren't able to syncronise with a remote server any more, and it is not possible to activate it again via settings menu. I discovered it with some of my email accounts and my facebook account (the notification system). @Okw reported this issue already here and made a video illustrating this issue here.

This bug occours apparently when the phone crashes while it is syncing. If this happens some mandatory config files get currupted. For now, there is no automatic solution for this. To fix the problem you can either delete and recreate the broken account, which is awkward, or you can fix the corrupted config files manually. I want to show how in this post.

I want to thank @VDVsx, who originally gave the instructions here.

Prerequisites

You have to enable developer mode to get root privileges. See the instructions here. I recommend to do the following steps via an ssh shell on a PC, that is much easier than in fingertern fingerterm :).

Identifying the accounts

When you enabled developer mode and connected to the terminal via ssh, type the following commands:

devel-su -p       # To get permissions to install packages
pkcon install libaccounts-glib-tools    #Install accounts-tools package
ag-tool list-accounts    #list your accounts

From the list printed above locate your broken account and check what's the ID, you will need that number later. Now change to the directory where the brokoen config files are:

cd .cache/msyncd/sync  #navigates to the folder with the sync configs
ls -l  #list the files in the above folder

Fix broken email account

If you have a file called syncemail-xxx.xml (the xxx is the ID you found above), open it, if not create one with the following command:

nano syncemail-XXX.xml

In any of the cases add the following content to the file, replacing your account number above in two places marked with the XXX:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="syncemail-XXX">
    <key value="XXX" name="accountid"/>
    <key value="online" name="destinationtype"/>
    <key value="syncemail-" name="displayname"/>
    <key value="true" name="enabled"/>
    <key value="true" name="hidden"/>
    <key value="true" name="scheduled"/>
    <key value="true" name="sync_always_up_to_date"/>
    <key value="30" name="sync_since_days_past"/>
    <key value="true" name="use_accounts"/>
    <profile type="client" name="syncemail">
        <key value="from-remote" name="Sync Direction"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" time="" enabled="true" interval="30" externalsync="false" syncconfiguredtime="">
        <rush end="" days="" enabled="false" interval="15" externalsync="false" begin=""/>
    </schedule>
</profile>

Afterwards go to Settings -> Accounts -> email account. You should be able to select a sync schedule now.

Fix broken facebook account

Check the files handling the facebook account:

[nemo@Jolla sync]$ ls -l facebook.*

There should be five files: facebook.Calendars-XX.xml, facebook.Contacts-XX.xml, facebook.Images-XX.xml, facebook.Notifications-XX.xml and facebook.Signon-XX.xml, where XX is the ID of the account. Some of them, probably facebook.Notifications-XX.xml and facebook.Signon-XX.xml, are empty or missing. Open the empty files or create the missing ones with the nano command (of cource replace XX with your account's ID):

nano facebook.Notifications-XX.xml
nano facebook.Signon-XX.xml

Add the following content to the corresponding file, replacing your account number above in two places marked with the XX:

facebook.Notifications-XX.xml:

<profile type="sync" name="facebook.Notifications-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Notifications"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Notifications-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-notifications">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="30" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>
<?xml version="1.0" encoding="UTF-8"?>

facebook.Signon-XX.xml:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="facebook.Signon-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Signon"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Signon-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-Signon">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="720" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>

Afterwards go to Settings -> Accounts -> Facebook account. You should be able to select a sync schedule now.

other accounts

The same instructions are probably straightforward for other accounts, but I don't have one of them on my jolla. If you know a solution, just edit this wiki.

How to recover an account which lost sync (facebook, email, etc.)

There is an issue with the Jolla accounts system, where accounts aren't able to syncronise with a remote server any more, and it is not possible to activate it again via settings menu. I discovered it with some of my email accounts and my facebook account (the notification system). @Okw reported this issue already here and made a video illustrating this issue here.

This bug occours apparently when the phone crashes while it is syncing. If this happens some mandatory config files get currupted. For now, there is no automatic solution for this. To fix the problem you can either delete and recreate the broken account, which is awkward, or you can fix the corrupted config files manually. I want to show how in this post.

I want to thank @VDVsx, who originally gave the instructions here.

Prerequisites

You have to enable developer mode to get root privileges. See the instructions here. I recommend to do the following steps via an ssh shell on a PC, that is much easier than in fingerterm :).

Identifying the accounts

When you enabled developer mode and connected to the terminal via ssh, type the following commands:

devel-su -p       # To get permissions to install packages
pkcon install libaccounts-glib-tools    #Install accounts-tools package
ag-tool list-accounts    #list your accounts

From the list printed above locate your broken account and check what's the ID, you will need that number later. Now change to the directory where the brokoen broken config files are:

cd .cache/msyncd/sync  #navigates to the folder with the sync configs
ls -l  #list the files in the above folder

Fix broken email account

If you have a file called syncemail-xxx.xml (the xxx is the ID you found above), open it, if not create one with the following command:

nano syncemail-XXX.xml

In any of the cases add the following content to the file, replacing your account number above in two places marked with the XXX:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="syncemail-XXX">
    <key value="XXX" name="accountid"/>
    <key value="online" name="destinationtype"/>
    <key value="syncemail-" name="displayname"/>
    <key value="true" name="enabled"/>
    <key value="true" name="hidden"/>
    <key value="true" name="scheduled"/>
    <key value="true" name="sync_always_up_to_date"/>
    <key value="30" name="sync_since_days_past"/>
    <key value="true" name="use_accounts"/>
    <profile type="client" name="syncemail">
        <key value="from-remote" name="Sync Direction"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" time="" enabled="true" interval="30" externalsync="false" syncconfiguredtime="">
        <rush end="" days="" enabled="false" interval="15" externalsync="false" begin=""/>
    </schedule>
</profile>

Afterwards go to Settings -> Accounts -> email account. You should be able to select a sync schedule now.

Fix broken facebook account

Check the files handling the facebook account:

[nemo@Jolla sync]$ ls -l facebook.*

There should be five files: facebook.Calendars-XX.xml, facebook.Contacts-XX.xml, facebook.Images-XX.xml, facebook.Notifications-XX.xml and facebook.Signon-XX.xml, where XX is the ID of the account. Some of them, probably facebook.Notifications-XX.xml and facebook.Signon-XX.xml, are empty or missing. Open the empty files or create the missing ones with the nano command (of cource replace XX with your account's ID):

nano facebook.Notifications-XX.xml
nano facebook.Signon-XX.xml

Add the following content to the corresponding file, replacing your account number above in two places marked with the XX:

facebook.Notifications-XX.xml:

<profile type="sync" name="facebook.Notifications-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Notifications"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Notifications-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-notifications">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="30" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>
<?xml version="1.0" encoding="UTF-8"?>

facebook.Signon-XX.xml:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="facebook.Signon-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Signon"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Signon-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-Signon">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="720" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>

Afterwards go to Settings -> Accounts -> Facebook account. You should be able to select a sync schedule now.

other accounts

The same instructions are probably straightforward for other accounts, but I don't have one of them on my jolla. If you know a solution, just edit this wiki.

How to recover an account which lost sync (facebook, email, etc.)

There is an issue with the Jolla accounts system, where accounts aren't able to syncronise with a remote server any more, and it is not possible to activate it again via settings menu. I discovered it with some of my email accounts and my facebook account (the notification system). @Okw reported this issue already here and made a video illustrating this issue here.

This bug occours apparently when the phone crashes while it is syncing. If this happens some mandatory config files get currupted. For now, there is no automatic solution for this. To fix the problem you can either delete and recreate the broken account, which is awkward, or you can fix the corrupted config files manually. I want to show how in this post.

I want to thank @VDVsx, who originally gave the instructions here.

Prerequisites

You have to enable developer mode to get root privileges. See the instructions here. I recommend to do the following steps via an ssh shell on a PC, that is much easier than in fingerterm :).

Identifying the accounts

When you enabled developer mode and connected to the terminal via ssh, type the following commands:

devel-su -p       # To get permissions to install packages
pkcon install libaccounts-glib-tools    #Install accounts-tools package
ag-tool list-accounts    #list your accounts

From the list printed above locate your broken account and check what's the ID, you will need that number later. Now change to the directory where the broken config files are:

cd .cache/msyncd/sync  #navigates to the folder with the sync configs
ls -l  #list the files in the above folder

Fix broken email account

If you have a file called syncemail-xxx.xml (the xxx is the ID you found above), open it, if not create one with the following command:

nano syncemail-XXX.xml

In any of the cases add the following content to the file, replacing your account number above in two places marked with the XXX:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="syncemail-XXX">
    <key value="XXX" name="accountid"/>
    <key value="online" name="destinationtype"/>
    <key value="syncemail-" name="displayname"/>
    <key value="true" name="enabled"/>
    <key value="true" name="hidden"/>
    <key value="true" name="scheduled"/>
    <key value="true" name="sync_always_up_to_date"/>
    <key value="30" name="sync_since_days_past"/>
    <key value="true" name="use_accounts"/>
    <profile type="client" name="syncemail">
        <key value="from-remote" name="Sync Direction"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" time="" enabled="true" interval="30" externalsync="false" syncconfiguredtime="">
        <rush end="" days="" enabled="false" interval="15" externalsync="false" begin=""/>
    </schedule>
</profile>

Afterwards go to Settings -> Accounts -> email account. You should be able to select a sync schedule now.

Fix broken facebook account

Check the files handling the facebook account:

[nemo@Jolla sync]$ ls -l facebook.*

There should be five files: facebook.Calendars-XX.xml, facebook.Contacts-XX.xml, facebook.Images-XX.xml, facebook.Notifications-XX.xml and facebook.Signon-XX.xml, where XX is the ID of the account. Some of them, probably facebook.Notifications-XX.xml and facebook.Signon-XX.xml, are empty or missing. Open the empty files or create the missing ones with the nano command (of cource course replace XX with your account's ID):

nano facebook.Notifications-XX.xml
nano facebook.Signon-XX.xml

Add the following content to the corresponding file, replacing your account number above in two places marked with the XX:

facebook.Notifications-XX.xml:

<profile type="sync" name="facebook.Notifications-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Notifications"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Notifications-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-notifications">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="30" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>
<?xml version="1.0" encoding="UTF-8"?>

facebook.Signon-XX.xml:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="facebook.Signon-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Signon"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Signon-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-Signon">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="720" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>

Afterwards go to Settings -> Accounts -> Facebook account. You should be able to select a sync schedule now.

other accounts

The same instructions are probably straightforward for other accounts, but I don't have one of them on my jolla. If you know a solution, just edit this wiki.

How to recover an account which lost sync (facebook, email, etc.)

There is an issue with the Jolla accounts system, where accounts aren't able to syncronise with a remote server any more, and it is not possible to activate it again via settings menu. I discovered it with some of my email accounts and my facebook account (the notification system). @Okw reported this issue already here and made a video illustrating this issue here.

This bug occours apparently when the phone crashes while it is syncing. If this happens some mandatory config files get currupted. For now, there is no automatic solution for this. To fix the problem you can either delete and recreate the broken account, which is awkward, or you can fix the corrupted config files manually. I want to show how in this post.

I want to thank @VDVsx, who originally gave the instructions here.

Prerequisites

You have to enable developer mode to get root privileges. See the instructions here. I recommend to do the following steps via an ssh shell on a PC, that is much easier than in fingerterm :).

Identifying the accounts

When you enabled developer mode and connected to the terminal via ssh, type the following commands:

devel-su -p       # To get permissions to install packages
pkcon install libaccounts-glib-tools    #Install accounts-tools package
ag-tool list-accounts    #list your accounts

From the list printed above locate your broken account and check what's the ID, you will need that number later. Now change to the directory where the broken config files are:

cd .cache/msyncd/sync  #navigates to the folder with the sync configs
ls -l  #list the files in the above folder

Fix broken email account

If you have a file called syncemail-xxx.xml (the xxx is the ID you found above), open it, if not create one with the following command:

nano syncemail-XXX.xml

In any of the cases add the following content to the file, replacing your account number above in two places marked with the XXX:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="syncemail-XXX">
    <key value="XXX" name="accountid"/>
    <key value="online" name="destinationtype"/>
    <key value="syncemail-" name="displayname"/>
    <key value="true" name="enabled"/>
    <key value="true" name="hidden"/>
    <key value="true" name="scheduled"/>
    <key value="true" name="sync_always_up_to_date"/>
    <key value="30" name="sync_since_days_past"/>
    <key value="true" name="use_accounts"/>
    <profile type="client" name="syncemail">
        <key value="from-remote" name="Sync Direction"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" time="" enabled="true" interval="30" externalsync="false" syncconfiguredtime="">
        <rush end="" days="" enabled="false" interval="15" externalsync="false" begin=""/>
    </schedule>
</profile>

Afterwards go to Settings -> Accounts -> email account. You should be able to select a sync schedule now.

Fix broken facebook account

Check the files handling the facebook account:

[nemo@Jolla sync]$ ls -l facebook.*

There should be five files: facebook.Calendars-XX.xml, facebook.Contacts-XX.xml, facebook.Images-XX.xml, facebook.Notifications-XX.xml and facebook.Signon-XX.xml, where XX is the ID of the account. Some of them, probably facebook.Notifications-XX.xml and facebook.Signon-XX.xml, are empty or missing. Open the empty files or create the missing ones with the nano command editor (of course replace XX with your account's ID):

nano facebook.Notifications-XX.xml
nano facebook.Signon-XX.xml

Add the following content to the corresponding file, replacing your account number above in two places marked with the XX:

facebook.Notifications-XX.xml:

<profile type="sync" name="facebook.Notifications-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Notifications"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Notifications-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-notifications">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="30" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>
<?xml version="1.0" encoding="UTF-8"?>

facebook.Signon-XX.xml:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="facebook.Signon-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Signon"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Signon-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-Signon">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="720" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>

Afterwards go to Settings -> Accounts -> Facebook account. You should be able to select a sync schedule now.

other accounts

The same instructions are probably straightforward for other accounts, but I don't have one of them on my jolla. If you know a solution, just edit this wiki.

How to recover an account which lost sync (facebook, email, etc.)

There is an issue with the Jolla accounts system, where accounts aren't able to syncronise with a remote server any more, and it is not possible to activate it again via settings menu. I discovered it with some of my email accounts and my facebook account (the notification system). @Okw reported this issue already here and made a video illustrating this issue here.

This bug occours apparently when the phone crashes while it is syncing. If this happens some mandatory config files get currupted. For now, there is no automatic solution for this. To fix the problem you can either delete and recreate the broken account, which is awkward, or you can fix the corrupted config files manually. I want to show how in this post.

I want to thank @VDVsx, who originally gave the instructions here.

Prerequisites

You have to enable developer mode to get root privileges. See the instructions here. I recommend to do the following steps via an ssh shell on a PC, that is much easier than in fingerterm :).

Identifying the accounts

When you enabled developer mode and connected to the terminal via ssh, type the following commands:

devel-su -p       # To get permissions to install packages
pkcon install libaccounts-glib-tools    #Install accounts-tools package
ag-tool list-accounts    #list your accounts

From the list printed above locate your broken account and check what's the ID, you will need that number later. Now change to the directory where the broken config files are:

cd .cache/msyncd/sync  #navigates to the folder with the sync configs
ls -l  #list the files in the above folder

Fix broken email account

If you have a file called syncemail-xxx.xml (the xxx is the ID you found above), open it, if not create one with the following command:

nano syncemail-XXX.xml

In any of the cases add the following content to the file, replacing your account number above in two places marked with the XXX:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="syncemail-XXX">
    <key value="XXX" name="accountid"/>
    <key value="online" name="destinationtype"/>
    <key value="syncemail-" name="displayname"/>
    <key value="true" name="enabled"/>
    <key value="true" name="hidden"/>
    <key value="true" name="scheduled"/>
    <key value="true" name="sync_always_up_to_date"/>
    <key value="30" name="sync_since_days_past"/>
    <key value="true" name="use_accounts"/>
    <profile type="client" name="syncemail">
        <key value="from-remote" name="Sync Direction"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" time="" enabled="true" interval="30" externalsync="false" syncconfiguredtime="">
        <rush end="" days="" enabled="false" interval="15" externalsync="false" begin=""/>
    </schedule>
</profile>

Afterwards go to Settings -> Accounts -> email account. You should be able to select a sync schedule now.

Fix broken facebook account

Check the files handling the facebook account:

[nemo@Jolla sync]$ ls -l facebook.*

There should be five files: facebook.Calendars-XX.xml, facebook.Contacts-XX.xml, facebook.Images-XX.xml, facebook.Notifications-XX.xml and facebook.Signon-XX.xml, where XX is the ID of the account. Some of them, probably facebook.Notifications-XX.xml and facebook.Signon-XX.xml, are empty or missing. Open the empty files or create the missing ones with the nano editor (of course replace XX with your account's ID):

nano facebook.Notifications-XX.xml
nano facebook.Signon-XX.xml

Add the following content to the corresponding file, replacing your account number above in two places marked with the XX:

facebook.Notifications-XX.xml:

<profile type="sync" name="facebook.Notifications-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Notifications"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Notifications-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-notifications">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="30" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>
<?xml version="1.0" encoding="UTF-8"?>

facebook.Signon-XX.xml:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="facebook.Signon-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Signon"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Signon-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-Signon">
name="facebook-signon">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="720" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>

Afterwards go to Settings -> Accounts -> Facebook account. You should be able to select a sync schedule now.

other accounts

The same instructions are probably straightforward for other accounts, but I don't have one of them on my jolla. If you know a solution, just edit this wiki.

How to recover an account which lost sync (facebook, email, etc.)

There is an issue with the Jolla accounts system, where accounts aren't able to syncronise with a remote server any more, and it is not possible to activate it again via settings menu. I discovered it with some of my email accounts and my facebook account (the notification system). @Okw reported this issue already here and made a video illustrating this issue here.

This bug occours apparently when the phone crashes while it is syncing. If this happens some mandatory config files get currupted. For now, there is no automatic solution for this. To fix the problem you can either delete and recreate the broken account, which is awkward, or you can fix the corrupted config files manually. I want to show how in this post.

I want to thank @VDVsx, who originally gave the instructions here.

Prerequisites

You have to enable developer mode to get root privileges. See the instructions here. I recommend to do the following steps via an ssh shell on a PC, PC, that is much easier than in fingerterm :).

:). If you don't have a terminal editor installed on your jolla, install one. I recommend nano:

pkcon install nano

Identifying the accounts

When you enabled developer mode and connected to the terminal via ssh, type the following commands:

devel-su -p       # To get permissions to install packages
pkcon install libaccounts-glib-tools    #Install accounts-tools package
ag-tool list-accounts    #list your accounts

From the list printed above locate your broken account and check what's the ID, you will need that number later. Now change to the directory where the broken config files are:

cd .cache/msyncd/sync  #navigates to the folder with the sync configs
ls -l  #list the files in the above folder

Fix broken email account

If you have a file called syncemail-xxx.xml (the xxx is the ID you found above), open it, if not create one with the following command:

nano syncemail-XXX.xml

In any of the cases add the following content to the file, replacing your account number above in two places marked with the XXX:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="syncemail-XXX">
    <key value="XXX" name="accountid"/>
    <key value="online" name="destinationtype"/>
    <key value="syncemail-" name="displayname"/>
    <key value="true" name="enabled"/>
    <key value="true" name="hidden"/>
    <key value="true" name="scheduled"/>
    <key value="true" name="sync_always_up_to_date"/>
    <key value="30" name="sync_since_days_past"/>
    <key value="true" name="use_accounts"/>
    <profile type="client" name="syncemail">
        <key value="from-remote" name="Sync Direction"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" time="" enabled="true" interval="30" externalsync="false" syncconfiguredtime="">
        <rush end="" days="" enabled="false" interval="15" externalsync="false" begin=""/>
    </schedule>
</profile>

Afterwards go to Settings -> Accounts -> email account. You should be able to select a sync schedule now.

Fix broken facebook account

Check the files handling the facebook account:

[nemo@Jolla sync]$ ls -l facebook.*

There should be five files: facebook.Calendars-XX.xml, facebook.Contacts-XX.xml, facebook.Images-XX.xml, facebook.Notifications-XX.xml and facebook.Signon-XX.xml, where XX is the ID of the account. Some of them, probably facebook.Notifications-XX.xml and facebook.Signon-XX.xml, are empty or missing. Open the empty files or create the missing ones with the nano editor (of course replace XX with your account's ID):

nano facebook.Notifications-XX.xml
nano facebook.Signon-XX.xml

Add the following content to the corresponding file, replacing your account number above in two places marked with the XX:

facebook.Notifications-XX.xml:

<profile type="sync" name="facebook.Notifications-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Notifications"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Notifications-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-notifications">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="30" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>
<?xml version="1.0" encoding="UTF-8"?>

facebook.Signon-XX.xml:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="facebook.Signon-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Signon"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Signon-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-signon">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="720" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>

Afterwards go to Settings -> Accounts -> Facebook account. You should be able to select a sync schedule now.

other accounts

The same instructions are probably straightforward for other accounts, but I don't have one of them on my jolla. If you know a solution, just edit this wiki.

How to recover an account which lost sync (facebook, email, etc.)

There is an issue with the Jolla accounts system, where accounts aren't able to syncronise with a remote server any more, and it is not possible to activate it again via settings menu. I discovered it with some of my email accounts and my facebook account (the notification system). @Okw reported this issue already here and made a video illustrating this issue here.

This bug occours apparently when the phone crashes while it is syncing. If this happens some mandatory config files get currupted. For now, there is no automatic solution for this. To fix the problem you can either delete and recreate the broken account, which is awkward, account (which is awkward), or you can fix the corrupted config files manually. I want to show how in this post.

Edit 5.3.2015: I experimented a little bit an discovered an even easier way to recover broken accounts: Just delete the broken files. This should work for all sort of accounts. I hope jolla will provide a fix for the underlying bug in the upcoming release.

I want to thank @VDVsx, who originally gave the instructions here.

Prerequisites

You have to enable developer mode to get root privileges. See the instructions here. I recommend to do the following steps via an ssh shell on a PC, that is much easier than in fingerterm :). If you don't have a terminal editor installed on your jolla, install one. I recommend nano:

pkcon install nano
:).

Identifying the accounts

When you enabled developer mode and connected to the terminal via ssh, type the following commands:

devel-su -p       # To get permissions to install packages
pkcon install libaccounts-glib-tools    #Install accounts-tools package
ag-tool list-accounts    #list your accounts

From the list printed above locate your broken account and check what's the ID, you will need that number later. Now change to the directory where the broken config files are:

cd .cache/msyncd/sync  #navigates to the folder with the sync configs
ls -l  #list the files in the above folder

Fix broken email account

If Check the files handling the email accounts:

[nemo@Jolla sync]$ ls -l syncemail-*

There is a file for every e-mail account you have a installed, the output looks like this:

-rw-r--r-- 1 nemo privileged  0 2015-03-05 09:30 syncemail-XX.xml

Instead of the XX in the filename xou will see the ID of the e-mail account. Now check the number in the fourth column (after "privileged"). This is the size of the file. For your corrupted e-mail account it will be probably 0, which means that it is empty. Re-check this with

cat syncemail-XX.xml

If there is no output, the file called syncemail-xxx.xml (the xxx is the ID you found above), open it, if not create one is empty. Delete it with the following command:

nano syncemail-XXX.xml

In any of the cases add the following content to the file, replacing your account number above in two places marked with the XXX:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="syncemail-XXX">
    <key value="XXX" name="accountid"/>
    <key value="online" name="destinationtype"/>
    <key value="syncemail-" name="displayname"/>
    <key value="true" name="enabled"/>
    <key value="true" name="hidden"/>
    <key value="true" name="scheduled"/>
    <key value="true" name="sync_always_up_to_date"/>
    <key value="30" name="sync_since_days_past"/>
    <key value="true" name="use_accounts"/>
    <profile type="client" name="syncemail">
        <key value="from-remote" name="Sync Direction"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" time="" enabled="true" interval="30" externalsync="false" syncconfiguredtime="">
        <rush end="" days="" enabled="false" interval="15" externalsync="false" begin=""/>
    </schedule>
</profile>

rm syncemail-XX.xml

Afterwards go on your phone to Settings -> Accounts -> email account. You should be able to select a sync schedule now.now. By doing this, a new syncemail-XX.xml is created. Now everything should be fine again.

Fix broken facebook account

Check the files handling the facebook account:

[nemo@Jolla sync]$ ls -l facebook.*

There should be five files: facebook.Calendars-XX.xml, facebook.Contacts-XX.xml, facebook.Images-XX.xml, facebook.Notifications-XX.xml and facebook.Signon-XX.xml, where

-rw-r--r-- 1 nemo privileged 916 2015-03-05 10:00 facebook.Calendars-XX.xml
-rw-r--r-- 1 nemo privileged 912 2015-03-05 10:00 facebook.Contacts-XX.xml
-rw-r--r-- 1 nemo privileged 904 2015-03-05 10:00 facebook.Images-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Notifications-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Signon-XX.xml

XX is the ID of the account. Some The number in the fourth column (after "privileged") is the size of the file. For some of them, probably facebook.Notifications-XX.xml and facebook.Signon-XX.xml, facebook.Signon-XX.xml it will be 0, which means that these files are empty. Re-check this with

cat facebook.Notifications-XX.xml
cat facebook.Signon-XX.xml

Now delete all the empty or missing. Open the empty files or create the missing ones with the nano editor (of course replace XX with your account's ID):

nano files with

rm facebook.Notifications-XX.xml
nano rm facebook.Signon-XX.xml

Add the following content to the corresponding file, replacing your account number above in two places marked with the XX:

facebook.Notifications-XX.xml:

<profile type="sync" name="facebook.Notifications-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Notifications"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Notifications-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-notifications">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="30" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>
<?xml version="1.0" encoding="UTF-8"?>

facebook.Signon-XX.xml:

<?xml version="1.0" encoding="UTF-8"?>
<profile type="sync" name="facebook.Signon-XX">
    <key name="accountid" value="XX"/>
    <key name="category" value="facebook.Signon"/>
    <key name="destinationtype" value="online"/>
    <key name="displayname" value="facebook.Signon-"/>
    <key name="enabled" value="true"/>
    <key name="hidden" value="true"/>
    <key name="scheduled" value="true"/>
    <key name="sync_always_up_to_date" value="true"/>
    <key name="sync_since_days_past" value="30"/>
    <key name="use_accounts" value="true"/>
    <profile type="client" name="facebook-signon">
        <key name="Sync Direction" value="from-remote"/>
    </profile>
    <schedule days="4,5,6,7,1,2,3" interval="720" time="" enabled="true" externalsync="false" syncconfiguredtime="">
        <rush days="" interval="15" end="" enabled="false" externalsync="false" begin=""/>
    </schedule>
</profile>

Afterwards go to Settings -> Accounts -> Facebook account. You should be able to select a sync schedule now.now. By doing this, the missing xml files are created new. Now everything should be fine again.

other accounts

The same instructions are probably should be straightforward for other accounts, but I don't accounts.In principle you just have one to check the folder ~/.cache/msyncd/sync for empty files and delete them. Afterwards go into the settings menu of them on my jolla. If you know a solution, just edit this wiki.the corrupted account and readjust the settings.

How to recover an account which lost sync (facebook, email, etc.)

There is an issue with the Jolla accounts system, where accounts aren't able to syncronise with a remote server any more, and it is not possible to activate it again via settings menu. I discovered it with some of my email accounts and my facebook account (the notification system). @Okw reported this issue already here and made a video illustrating this issue here.

This bug occours apparently when the phone crashes while it is syncing. If this happens some mandatory config files get currupted. For now, there is no automatic solution for this. To fix the problem you can either delete and recreate the broken account (which is awkward), or you can fix the corrupted config files manually. I want to show how in this post.

Edit 5.3.2015: I experimented a little bit an discovered an even easier way to recover broken accounts: Just delete the broken files. This should work for all sort of accounts. I hope jolla will provide a fix for the underlying bug in the upcoming release.

I want to thank @VDVsx, who originally gave the instructions here.

Prerequisites

You have to enable developer mode to get root privileges. See the instructions here. I recommend to do the following steps via an ssh shell on a PC, that is much easier than in fingerterm :).

Identifying the accounts

When you enabled developer mode and connected to the terminal via ssh, type the following commands:

devel-su -p       # To get permissions to install packages
pkcon install libaccounts-glib-tools    #Install accounts-tools package
ag-tool list-accounts    #list your accounts

From the list printed above locate your broken account and check what's the ID, you will need that number later. Now change to the directory where the broken config files are:

cd .cache/msyncd/sync  #navigates to the folder with the sync configs
ls -l  #list the files in the above folder

Fix broken email account

Check the files handling the email accounts:

[nemo@Jolla sync]$ ls -l syncemail-*

There is a file for every e-mail account you have installed, the output looks like this:

-rw-r--r-- 1 nemo privileged  0 2015-03-05 09:30 syncemail-XX.xml

Instead of the XX in the filename xou you will see the ID of the e-mail account. Now check the number in the fourth column (after "privileged"). This is the size of the file. For your corrupted e-mail account it will be probably 0, which means that it is empty. Re-check this with

cat syncemail-XX.xml

If there is no output, the file is empty. Delete it with

rm syncemail-XX.xml

Afterwards go on your phone to Settings -> Accounts -> email account. You should be able to select a sync schedule now. By doing this, a new syncemail-XX.xml is created. Now everything should be fine again.

Fix broken facebook account

Check the files handling the facebook account:

[nemo@Jolla sync]$ ls -l facebook.*

There should be five files:

-rw-r--r-- 1 nemo privileged 916 2015-03-05 10:00 facebook.Calendars-XX.xml
-rw-r--r-- 1 nemo privileged 912 2015-03-05 10:00 facebook.Contacts-XX.xml
-rw-r--r-- 1 nemo privileged 904 2015-03-05 10:00 facebook.Images-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Notifications-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Signon-XX.xml

XX is the ID of the account. The number in the fourth column (after "privileged") is the size of the file. For some of them, probably facebook.Notifications-XX.xml and facebook.Signon-XX.xml it will be 0, which means that these files are empty. Re-check this with

cat facebook.Notifications-XX.xml
cat facebook.Signon-XX.xml

Now delete all the empty files with

rm facebook.Notifications-XX.xml
rm facebook.Signon-XX.xml

Afterwards go to Settings -> Accounts -> Facebook account. You should be able to select a sync schedule now. By doing this, the missing xml files are created new. Now everything should be fine again.

other accounts

The same instructions should be straightforward for other accounts.In accounts. In principle you just have to check the folder ~/.cache/msyncd/sync for empty files and delete them. Afterwards go into the settings menu of the corrupted account and readjust the settings.

How to recover an account which lost sync (facebook, email, etc.)

There is an issue with the Jolla accounts system, where accounts aren't able to syncronise with a remote server any more, and it is not possible to activate it again via settings menu. I discovered it with some of my email accounts and my facebook account (the notification system). @Okw reported this issue already here and made a video illustrating this issue here.

This bug occours apparently when the phone crashes while it is syncing. If this happens some mandatory config files get currupted. corrupted. For now, there is no automatic solution for this. To fix the problem you can either delete and recreate the broken account (which is awkward), or you can fix the corrupted config files manually. I want to show how in this post.

Edit 5.3.2015: I experimented a little bit an discovered an even easier way to recover broken accounts: Just delete the broken config files. This should work for all sort of accounts. I hope jolla will provide a fix for the underlying bug in the upcoming release.

I want to thank @VDVsx, who originally gave the instructions here.

Prerequisites

You have to enable developer mode to get root privileges. See the instructions here. I recommend to do the following steps via an ssh shell on a PC, that is much easier than in fingerterm :).

Identifying the accounts

When you enabled developer mode and connected to the terminal via ssh, type the following commands:

devel-su -p       # To get permissions to install packages
pkcon install libaccounts-glib-tools    #Install accounts-tools package
ag-tool list-accounts    #list your accounts

From the list printed above locate your broken account and check what's the ID, you will need that number later. Now change to the directory where the broken config files are:

cd .cache/msyncd/sync  #navigates to the folder with the sync configs
ls -l  #list the files in the above folder

Fix broken email account

Check the files handling the email accounts:

[nemo@Jolla sync]$ ls -l syncemail-*

There is a file for every e-mail account you have installed, the output looks like this:

-rw-r--r-- 1 nemo privileged  0 2015-03-05 09:30 syncemail-XX.xml

Instead of the XX in the filename you will see the ID of the e-mail account. Now check the number in the fourth column (after "privileged"). This is the size of the file. For your corrupted e-mail account it will be probably 0, which means that it is empty. Re-check this with

cat syncemail-XX.xml

If there is no output, the file is empty. Delete it with

rm syncemail-XX.xml

Afterwards go on your phone to Settings -> Accounts -> email account. You should be able to select a sync schedule now. By doing this, a new syncemail-XX.xml is created. Now everything should be fine again.

Fix broken facebook account

Check the files handling the facebook account:

[nemo@Jolla sync]$ ls -l facebook.*

There should be five files:

-rw-r--r-- 1 nemo privileged 916 2015-03-05 10:00 facebook.Calendars-XX.xml
-rw-r--r-- 1 nemo privileged 912 2015-03-05 10:00 facebook.Contacts-XX.xml
-rw-r--r-- 1 nemo privileged 904 2015-03-05 10:00 facebook.Images-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Notifications-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Signon-XX.xml

XX is the ID of the account. The number in the fourth column (after "privileged") is the size of the file. For some of them, probably facebook.Notifications-XX.xml and facebook.Signon-XX.xml it will be 0, which means that these files are empty. Re-check this with

cat facebook.Notifications-XX.xml
cat facebook.Signon-XX.xml

Now delete all the empty files with

rm facebook.Notifications-XX.xml
rm facebook.Signon-XX.xml

Afterwards go to Settings -> Accounts -> Facebook account. You should be able to select a sync schedule now. By doing this, the missing xml files are created new. Now everything should be fine again.

other accounts

The same instructions should be straightforward for other accounts. In principle you just have to check the folder ~/.cache/msyncd/sync for empty files and delete them. Afterwards go into the settings menu of the corrupted account and readjust the settings.

How to recover an account which lost sync (facebook, email, etc.)

There is an issue with the Jolla accounts system, where accounts aren't able to syncronise with a remote server any more, and it is not possible to activate it again via settings menu. I discovered it with some of my email accounts and my facebook account (the notification system). @Okw reported this issue already here and made a video illustrating this issue here.

This bug occours apparently when the phone crashes while it is syncing. If this happens some mandatory config files get corrupted. For now, there is no automatic solution for this. To fix the problem you can either delete and recreate the broken account (which is awkward), or you can fix the corrupted config files manually. I want to show how in this post.

Edit 5.3.2015: I experimented a little bit an discovered an even easier way to recover broken accounts: Just delete the broken config files. This should work for all sort of accounts. I hope jolla will provide a fix for the underlying bug in the upcoming release.

I want to thank @VDVsx, who originally gave the instructions here.

Prerequisites

You have to enable developer mode to get root privileges. See the instructions here. I recommend to do the following steps via an ssh shell on a PC, that is much easier than in fingerterm :).

Identifying the accounts

When you enabled developer mode and connected to the terminal via ssh, type the following commands:

devel-su -p       # To get permissions to install packages
pkcon install libaccounts-glib-tools    #Install accounts-tools package
ag-tool list-accounts    #list your accounts

From the list printed above locate your broken account and check what's the ID, you will need that number later. Now change to the directory where the broken config files are:

cd .cache/msyncd/sync  #navigates to the folder with the sync configs
ls -l  #list the files in the above folder

Fix broken email account

Check the files handling the email accounts:

[nemo@Jolla sync]$ ls -l syncemail-*

There is a file for every e-mail account you have installed, the output looks like this:

-rw-r--r-- 1 nemo privileged  0 2015-03-05 09:30 syncemail-XX.xml

Instead of the XX in the filename you will see the ID of the e-mail account. Now check the number in the fourth column (after "privileged"). This is the size of the file. For your corrupted e-mail account it will be probably 0, which means that it is empty. Re-check this with

cat syncemail-XX.xml

If there is no output, the file is empty. Delete it with

rm syncemail-XX.xml

Afterwards go on your phone to Settings -> Accounts -> email account. You should be able to select a sync schedule now. By doing this, a new syncemail-XX.xml is created. Now everything should be fine again.

Fix broken facebook account

Check the files handling the facebook account:

[nemo@Jolla sync]$ ls -l facebook.*

There should be five files:

-rw-r--r-- 1 nemo privileged 916 2015-03-05 10:00 facebook.Calendars-XX.xml
-rw-r--r-- 1 nemo privileged 912 2015-03-05 10:00 facebook.Contacts-XX.xml
-rw-r--r-- 1 nemo privileged 904 2015-03-05 10:00 facebook.Images-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Notifications-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Signon-XX.xml

XX is the ID of the account. The number in the fourth column (after "privileged") is the size of the file. For some of them, probably facebook.Notifications-XX.xml and facebook.Signon-XX.xml it will be 0, which means that these files are empty. Re-check this with

cat facebook.Notifications-XX.xml
cat facebook.Signon-XX.xml

Now delete all the empty files with

rm facebook.Notifications-XX.xml
rm facebook.Signon-XX.xml

Afterwards go to Settings -> Accounts -> Facebook account. You should be able to select a sync schedule now. By doing this, the missing xml files are created new. Now everything should be fine again.

other Other accounts

The same instructions should be straightforward for other accounts. In principle you just have to check the folder ~/.cache/msyncd/sync for empty files and delete them. Afterwards go into the settings menu of the corrupted account and readjust the settings.

How to recover an account which lost sync (facebook, email, etc.)

There is an issue with the Jolla accounts system, where accounts aren't able to syncronise with a remote server any more, and it is not possible to activate it again via settings menu. I discovered it with some of my email accounts and my facebook account (the notification system). @Okw reported this issue already here and made a video illustrating this issue here.

This bug occours apparently when the phone crashes while it is syncing. If this happens some mandatory config files get corrupted. For now, there is no automatic solution for this. To fix the problem you can either delete and recreate the broken account (which is awkward), or you can fix the corrupted config files manually. I want to show how in this post.

Edit 5.3.2015: I experimented a little bit an and discovered an even easier way to recover broken accounts: Just delete the broken config files. This should work for all sort of accounts. I hope jolla will provide a fix for the underlying bug in the upcoming release.

I want to thank @VDVsx, who originally gave the instructions here.

Prerequisites

You have to enable developer mode to get root privileges. See the instructions here. I recommend to do the following steps via an ssh shell on a PC, that is much easier than in fingerterm :).

Identifying the accounts

When you enabled developer mode and connected to the terminal via ssh, type the following commands:

devel-su -p       # To get permissions to install packages
pkcon install libaccounts-glib-tools    #Install accounts-tools package
ag-tool list-accounts    #list your accounts

From the list printed above locate your broken account and check what's the ID, you will need that number later. Now change to the directory where the broken config files are:

cd .cache/msyncd/sync  #navigates to the folder with the sync configs
ls -l  #list the files in the above folder

Fix broken email account

Check the files handling the email accounts:

[nemo@Jolla sync]$ ls -l syncemail-*

There is a file for every e-mail account you have installed, the output looks like this:

-rw-r--r-- 1 nemo privileged  0 2015-03-05 09:30 syncemail-XX.xml

Instead of the XX in the filename you will see the ID of the e-mail account. Now check the number in the fourth column (after "privileged"). This is the size of the file. For your corrupted e-mail account it will be probably 0, which means that it is empty. Re-check this with

cat syncemail-XX.xml

If there is no output, the file is empty. Delete it with

rm syncemail-XX.xml

Afterwards go on your phone to Settings -> Accounts -> email account. You should be able to select a sync schedule now. By doing this, a new syncemail-XX.xml is created. Now everything should be fine again.

Fix broken facebook account

Check the files handling the facebook account:

[nemo@Jolla sync]$ ls -l facebook.*

There should be five files:

-rw-r--r-- 1 nemo privileged 916 2015-03-05 10:00 facebook.Calendars-XX.xml
-rw-r--r-- 1 nemo privileged 912 2015-03-05 10:00 facebook.Contacts-XX.xml
-rw-r--r-- 1 nemo privileged 904 2015-03-05 10:00 facebook.Images-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Notifications-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Signon-XX.xml

XX is the ID of the account. The number in the fourth column (after "privileged") is the size of the file. For some of them, probably facebook.Notifications-XX.xml and facebook.Signon-XX.xml it will be 0, which means that these files are empty. Re-check this with

cat facebook.Notifications-XX.xml
cat facebook.Signon-XX.xml

Now delete all the empty files with

rm facebook.Notifications-XX.xml
rm facebook.Signon-XX.xml

Afterwards go to Settings -> Accounts -> Facebook account. You should be able to select a sync schedule now. By doing this, the missing xml files are created new. Now everything should be fine again.

Other accounts

The same instructions should be straightforward for other accounts. In principle you just have to check the folder ~/.cache/msyncd/sync for empty files and delete them. Afterwards go into the settings menu of the corrupted account and readjust the settings.

How to recover an account which lost sync (facebook, email, etc.)

There is an issue with the Jolla accounts system, where accounts aren't able to syncronise with a remote server any more, and it is not possible to activate it again via settings menu. I discovered it with some of my email accounts and my facebook account (the notification system). @Okw reported this issue already here and made a video illustrating this issue here.

This bug occours apparently when the phone crashes while it is syncing. If this happens some mandatory config files get corrupted. For now, there is no automatic solution for this. To fix the problem you can either delete and recreate the broken account (which is awkward), or you can fix the corrupted config files manually. I want to show how in this post.

Edit 5.3.2015: I experimented a little bit and discovered an even easier way to recover broken accounts: Just delete the broken config files. This should work for all sort of accounts. I hope jolla will provide a fix for the underlying bug in the upcoming release.

I want to thank @VDVsx, who originally gave the instructions here.

Prerequisites

You have to enable developer mode to get root privileges. See the instructions here. I recommend to do the following steps via an ssh shell on a PC, that is much easier than in fingerterm :).

Identifying the accounts

When you enabled developer mode and connected to the terminal via ssh, type the following commands:

devel-su -p       # To get permissions to install packages
pkcon install libaccounts-glib-tools    #Install accounts-tools package
ag-tool list-accounts    #list your accounts

From the list printed above locate your broken account and check what's the ID, you will need that number later. Now change to the directory where the broken config files are:

cd .cache/msyncd/sync ~/.cache/msyncd/sync  #navigates to the folder with the sync configs
ls -l  #list the files in the above folder

Fix broken email account

Check the files handling the email accounts:

[nemo@Jolla sync]$ ls -l syncemail-*

There is a file for every e-mail account you have installed, the output looks like this:

-rw-r--r-- 1 nemo privileged  0 2015-03-05 09:30 syncemail-XX.xml

Instead of the XX in the filename you will see the ID of the e-mail account. Now check the number in the fourth column (after "privileged"). This is the size of the file. For your corrupted e-mail account it will be probably 0, which means that it is empty. Re-check this with

cat syncemail-XX.xml

If there is no output, the file is empty. Delete it with

rm syncemail-XX.xml

Afterwards go on your phone to Settings -> Accounts -> email account. You should be able to select a sync schedule now. By doing this, a new syncemail-XX.xml is created. Now everything should be fine again.

Fix broken facebook account

Check the files handling the facebook account:

[nemo@Jolla sync]$ ls -l facebook.*

There should be five files:

-rw-r--r-- 1 nemo privileged 916 2015-03-05 10:00 facebook.Calendars-XX.xml
-rw-r--r-- 1 nemo privileged 912 2015-03-05 10:00 facebook.Contacts-XX.xml
-rw-r--r-- 1 nemo privileged 904 2015-03-05 10:00 facebook.Images-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Notifications-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Signon-XX.xml

XX is the ID of the account. The number in the fourth column (after "privileged") is the size of the file. For some of them, probably facebook.Notifications-XX.xml and facebook.Signon-XX.xml it will be 0, which means that these files are empty. Re-check this with

cat facebook.Notifications-XX.xml
cat facebook.Signon-XX.xml

Now delete all the empty files with

rm facebook.Notifications-XX.xml
rm facebook.Signon-XX.xml

Afterwards go to Settings -> Accounts -> Facebook account. You should be able to select a sync schedule now. By doing this, the missing xml files are created new. Now everything should be fine again.

Other accounts

The same instructions should be straightforward for other accounts. In principle you just have to check the folder ~/.cache/msyncd/sync for empty files and delete them. Afterwards go into the settings menu of the corrupted account and readjust the settings.

How to recover an account which lost sync (facebook, email, etc.)

There is an issue with the Jolla accounts system, where accounts aren't able to syncronise with a remote server any more, and it is not possible to activate it again via settings menu. I discovered it with some of my email accounts and my facebook account (the notification system). @Okw reported this issue already here and made a video illustrating this issue here.

This bug occours apparently when the phone crashes while it is syncing. If this happens some mandatory config files get corrupted. For now, there is no automatic solution for this. To fix the problem you can either delete and recreate the broken account (which is awkward), or you can fix the corrupted config files manually. I want to show how in this post.

Edit 5.3.2015: I experimented a little bit and discovered an even easier way to recover broken accounts: Just delete the broken config files. This should work for all sort of accounts. I hope jolla will provide a fix for the underlying bug in the upcoming release.

I want to thank @VDVsx, who originally gave the instructions here.

Prerequisites

You have to enable developer mode to get root privileges. See the instructions here. I recommend to do the following steps via an ssh shell on a PC, that is much easier than in fingerterm :).

Identifying the accounts

When you enabled developer mode and connected to the terminal via ssh, type the following commands:

devel-su -p       # To get permissions to install packages
pkcon install libaccounts-glib-tools    #Install accounts-tools package
ag-tool list-accounts    #list your accounts

From the list printed above locate your broken account and check what's the ID, you will need that number later. Now change to the directory where the broken config files are:

cd ~/.cache/msyncd/sync  #navigates to the folder with the sync configs
ls -l  #list the files in the above folder

Fix broken email account

Check the files handling the email accounts:

[nemo@Jolla sync]$ ls -l syncemail-*

There is a file for every e-mail account you have installed, the output looks like this:

-rw-r--r-- 1 nemo privileged  0 2015-03-05 09:30 syncemail-XX.xml

Instead of the XX in the filename you will see the ID of the e-mail account. Now check the number in the fourth column (after "privileged"). This is the size of the file. For your corrupted e-mail account it will be probably 0, which means that it is empty. Re-check this with

cat syncemail-XX.xml

If there is no output, the file is empty. Delete it with

rm syncemail-XX.xml

Afterwards go on your phone to Settings -> Accounts -> email account. You should be able to select a sync schedule now. By doing this, a new syncemail-XX.xml is created. Now everything should be fine again.

Fix broken facebook account

Check the files handling the facebook account:

[nemo@Jolla sync]$ ls -l facebook.*

There should be five files:

-rw-r--r-- 1 nemo privileged 916 2015-03-05 10:00 facebook.Calendars-XX.xml
-rw-r--r-- 1 nemo privileged 912 2015-03-05 10:00 facebook.Contacts-XX.xml
-rw-r--r-- 1 nemo privileged 904 2015-03-05 10:00 facebook.Images-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Notifications-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Signon-XX.xml

XX is the ID of the account. The number in the fourth column (after "privileged") is the size of the file. For some of them, probably facebook.Notifications-XX.xml and facebook.Signon-XX.xml it will be 0, which means that these files are empty. Re-check this with

cat facebook.Notifications-XX.xml
cat facebook.Signon-XX.xml

Now delete all the empty files with

rm facebook.Notifications-XX.xml
rm facebook.Signon-XX.xml

Afterwards go to Settings -> Accounts -> Facebook account. You should be able to select a sync schedule now. By doing this, the missing xml files are created new. Now everything should be fine again.

Other accounts

The same instructions should be straightforward for other accounts. In principle you just have to check the folder ~/.cache/msyncd/sync for empty files and delete them. Afterwards go into the settings menu of the corrupted account and readjust the settings.

How to recover an account which lost sync (facebook, email, etc.)

There is an issue with the Jolla accounts system, where accounts aren't able to syncronise with a remote server any more, and it is not possible to activate it again via settings menu. I discovered it with some of my email accounts and my facebook account (the notification system). @Okw reported this issue already here and made a video illustrating this issue here.

This bug occours apparently when the phone crashes while it is syncing. If this happens some mandatory config files get corrupted. For now, there is no automatic solution for this. To fix the problem you can either delete and recreate the broken account (which is awkward), or you can fix the corrupted config files manually. I want to show how in this post.

Edit 5.3.2015: I experimented a little bit and discovered an even easier way to recover broken accounts: Just delete the broken config files. This should work for all sort of accounts. I hope jolla will provide a fix for the underlying bug in the upcoming release.

I want to thank @VDVsx, who originally gave the instructions here.

Prerequisites

You have to enable developer mode to get root privileges. See the instructions here. I recommend to do the following steps via an ssh shell on a PC, that is much easier than in fingerterm :).

Identifying the accounts

When you enabled developer mode and connected to the terminal via ssh, type the following commands:

devel-su -p       # To get permissions to install packages
pkcon install libaccounts-glib-tools    #Install accounts-tools package
ag-tool list-accounts    #list your accounts

From the list printed above locate your broken account and check what's the ID, you will need that number later. Now change to the directory where the broken config files are:

cd ~/.cache/msyncd/sync  #navigates to the folder with the sync configs

Fix broken email account

Check the files handling the email accounts:

[nemo@Jolla sync]$ ls -l syncemail-*

There is a file for every e-mail account you have installed, the output looks like this:

-rw-r--r-- 1 nemo privileged  0 2015-03-05 09:30 syncemail-XX.xml

Instead of the XX in the filename you will see the ID of the e-mail account. Now check the number in the fourth fifth column (after "privileged"). This is the size of the file. For your corrupted e-mail account it will be probably 0, which means that it is empty. Re-check this with

cat syncemail-XX.xml

If there is no output, the file is empty. Delete it with

rm syncemail-XX.xml

Afterwards go on your phone to Settings -> Accounts -> email account. You should be able to select a sync schedule now. By doing this, a new syncemail-XX.xml is created. Now everything should be fine again.

Fix broken facebook account

Check the files handling the facebook account:

[nemo@Jolla sync]$ ls -l facebook.*

There should be five files:

-rw-r--r-- 1 nemo privileged 916 2015-03-05 10:00 facebook.Calendars-XX.xml
-rw-r--r-- 1 nemo privileged 912 2015-03-05 10:00 facebook.Contacts-XX.xml
-rw-r--r-- 1 nemo privileged 904 2015-03-05 10:00 facebook.Images-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Notifications-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Signon-XX.xml

XX is the ID of the account. The number in the fourth fifth column (after "privileged") is the size of the file. For some of them, probably facebook.Notifications-XX.xml and facebook.Signon-XX.xml it will be 0, which means that these files are empty. Re-check this with

cat facebook.Notifications-XX.xml
cat facebook.Signon-XX.xml

Now delete all the empty files with

rm facebook.Notifications-XX.xml
rm facebook.Signon-XX.xml

Afterwards go to Settings -> Accounts -> Facebook account. You should be able to select a sync schedule now. By doing this, the missing xml files are created new. Now everything should be fine again.

Other accounts

The same instructions should be straightforward for other accounts. In principle you just have to check the folder ~/.cache/msyncd/sync for empty files and delete them. Afterwards go into the settings menu of the corrupted account and readjust the settings.

How to recover an account which lost sync (facebook, email, etc.)

There is an issue with the Jolla accounts system, where accounts aren't able to syncronise with a remote server any more, and it is not possible to activate it again via settings menu. I discovered it with some of my email accounts and my facebook account (the notification system). @Okw reported this issue already here and made a video illustrating this issue here.

This bug occours apparently when the phone crashes while it is syncing. If this happens some mandatory config files get corrupted. For now, there is no automatic solution for this. To fix the problem you can either delete and recreate the broken account (which is awkward), or you can fix the corrupted config files manually. I want to show how in this post.

Edit 5.3.2015: I experimented a little bit and discovered an even easier way to recover broken accounts: Just delete the broken config files. This should work for all sort of accounts. I hope jolla will provide a fix for the underlying bug in the upcoming release.

I want to thank @VDVsx, who originally gave the instructions here.

Prerequisites

You have to enable developer mode to get root privileges. See the instructions here. I recommend to do the following steps via an ssh shell on a PC, that is much easier than in fingerterm :).

Identifying the accounts

When you enabled developer mode and connected to the terminal via ssh, type the following commands:

devel-su -p       # To get permissions to install packages
pkcon install libaccounts-glib-tools    #Install accounts-tools package
ag-tool list-accounts    #list your accounts

From the list printed above locate your broken account and check what's the ID, you will need that number later. Now change to the directory where the broken config files are:

cd ~/.cache/msyncd/sync  #navigates to the folder with the sync configs

Fix broken email account

Check the files handling the email accounts:

[nemo@Jolla sync]$ ls -l syncemail-*

There is a file for every e-mail account you have installed, the output looks like this:

-rw-r--r-- 1 nemo privileged  0 2015-03-05 09:30 syncemail-XX.xml

Instead of the XX in the filename you will see the ID of the e-mail account. Now check the number in the fifth column (after "privileged"). This is the size of the file. For your corrupted e-mail account it will be probably 0, which means that it is empty. Re-check this with

cat syncemail-XX.xml

If there is no output, the file is empty. Delete it with

rm syncemail-XX.xml

Afterwards go on your phone to Settings -> Accounts -> email account. You should be able to select a sync schedule now. By doing this, a new syncemail-XX.xml is created. Now everything should be fine again.

Fix broken facebook account

Check the files handling the facebook account:

[nemo@Jolla sync]$ ls -l facebook.*

There should be five files:

-rw-r--r-- 1 nemo privileged 916 2015-03-05 10:00 facebook.Calendars-XX.xml
-rw-r--r-- 1 nemo privileged 912 2015-03-05 10:00 facebook.Contacts-XX.xml
-rw-r--r-- 1 nemo privileged 904 2015-03-05 10:00 facebook.Images-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Notifications-XX.xml
-rw-r--r-- 1 nemo privileged   0 2015-03-05 10:00 facebook.Signon-XX.xml

XX is the ID of the account. The number in the fifth column (after "privileged") is the size of the file. For some of them, probably facebook.Notifications-XX.xml and facebook.Signon-XX.xml it will be 0, which means that these files are empty. Re-check this with

cat facebook.Notifications-XX.xml
cat facebook.Signon-XX.xml

Now delete all the empty files with

rm facebook.Notifications-XX.xml
rm facebook.Signon-XX.xml

Afterwards go to Settings -> Accounts -> Facebook account. You should be able to select a sync schedule now. By doing this, the missing xml files are created new. Now everything should be fine again.

Other accounts

The same instructions should be straightforward for other accounts. In principle you just have to check the folder ~/.cache/msyncd/sync for empty files and delete them. Afterwards go into the settings menu of the corrupted account and readjust the settings.