Difference between revisions of "Cloud Sync No longer works, owner changed"

From rbachwiki
Jump to navigation Jump to search
(Created page with "The settings are stored in an SQLite database and can be modified there. I took the following steps. 1*Stop the cloud sync service from the package manager Connect through ssh to your diskstation or open a terminal console window go to the volume where the configure for cloudSync sits. and there into the config folder. for me that was `cd /volume1/@cloudsync/db` before we open the sqlite database to modify it we need to look up what the user id and group id of our new u...")
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
The settings are stored in an SQLite database and can be modified there. I took the following steps.
===The settings are stored in an SQLite database and can be modified there. I took the following steps.===


1*Stop the cloud sync service from the package manager
 
Connect through ssh to your diskstation or open a terminal console window
<p>Stop the cloud sync service from the package manager</p>
go to the volume where the configure for cloudSync sits. and there into the config folder. for me that was `cd /volume1/@cloudsync/db`
<p>Connect through ssh to your diskstation or open a terminal console window</p>
before we open the sqlite database to modify it we need to look up what the user id and group id of our new user will be. You can do this by running `id -u new_user_name` and `id -g new_user_name`. lets assume these return 1033 and 100
<p>go to the volume where the configure for cloudSync sits. and there into the config folder. for me that was `cd /volume1/@cloudsync/db`</p>
now we can run an sqlite shalle for the config database by doing `sqlite3 config.sqlite`
<p>before we open the sqlite database to modify it we need to look up what the user id and group id of our new user will be. </p>
To see all the existing connections you can do a `select * from connection_table;`
<p>You can do this by running <code class="yellowbackground">id -u new_user_name</code> and <code class="yellowbackground">id -g new_user_name</code>. lets assume these return 1033 and 100</p>
Note down the ids of the configurations that need a change. This is the first number in each row.
<p>now we can run an sqlite shalle for the config database by doing <code class="yellowbackground">sqlite3 config.sqlite</code></p>
The actual update is then done similar to this command using the right user id and local user name ` update connection_table set uid=1033, gid=100, local_user_name="new_user_name" where id=3;` the last id will indicate in which row you want to update this
<p>To see all the existing connections you can do a <code class="yellowbackground">select * from connection_table;</code></p>
press Ctrl+C multiple times to exit the sqlite shell
<p>Note down the ids of the configurations that need a change. This is the first number in each row.</p>
start your cloudsynch package again
<p>The actual update is then done similar to this command using the right user id and local user name</p>
<p> <code class="yellowbackground"> update connection_table set uid=1030, gid=100, local_user_name="new_username" where id=1;</code> the last id will indicate in which row you want to update this</p>
<p>.quit to exit</p>
<p>start your cloudsynch package again</p>

Latest revision as of 15:08, 25 April 2024

The settings are stored in an SQLite database and can be modified there. I took the following steps.

Stop the cloud sync service from the package manager

Connect through ssh to your diskstation or open a terminal console window

go to the volume where the configure for cloudSync sits. and there into the config folder. for me that was `cd /volume1/@cloudsync/db`

before we open the sqlite database to modify it we need to look up what the user id and group id of our new user will be.

You can do this by running id -u new_user_name and id -g new_user_name. lets assume these return 1033 and 100

now we can run an sqlite shalle for the config database by doing sqlite3 config.sqlite

To see all the existing connections you can do a select * from connection_table;

Note down the ids of the configurations that need a change. This is the first number in each row.

The actual update is then done similar to this command using the right user id and local user name

update connection_table set uid=1030, gid=100, local_user_name="new_username" where id=1; the last id will indicate in which row you want to update this

.quit to exit

start your cloudsynch package again