Closed PPaques closed 10 years ago
freeplant commented
You can rename the directory when the seafile client is running. The seafile client will detect that the local folder is removed and unsync the library. Then you can rename the local folder back and create a library from its sub-folder.
Not so user-friendly but it worked for me.
Thanks Pierre
That does not necessarily work. I've had to access the sqlite db files in the Seafile/.seafile-data directory (notably, repo.db), get the repo_id of the offending repository from the RepoProperty table, and then delete from all those tables that contain that repo_id. Restarting the client, I could then resynchronize the repository.
Hi @mnott. I am a total noob in database. Could you please give me the command to delete some specific repo_id values in ALL tables (in a row)? Thanks!
I'd suggest you configure sea file to use mysql:
In ccnet.conf, you set something like
[Database] ENGINE = mysql HOST = 127.0.0.1 PORT = 3306 USER = seafile PASSWD = whatever DB = ccnet-db CONNECTION_CHARSET = utf8
If I recall correctly there was even some function to migrate to mysql cleanly. You'd have to setup mysql and create the database, the user, and give him access. Then you use mysql -u seafile -p -D ccnet-db and then can do show tables; also, you can for given table use desc tablename; and then select statements to look at the content.
Why was this closed? Because there is a hacky workaround that works for some? Well it didn't work for me, and this is an absurd amount of time for this bug to still exist. Can't understand why any responsible person would close this.
That does not necessarily work. I've had to access the sqlite db files in the Seafile/.seafile-data directory (notably, repo.db), get the repo_id of the offending repository from the RepoProperty table, and then delete from all those tables that contain that repo_id. Restarting the client, I could then resynchronize the repository.
Thanks! I stopped the seafile client and used https://sqlitebrowser.org/dl/ to open repo.db (in seafile-data), in the table "RepoProperty" I found the problematic folder and changed its path in the table to something non extisting (just adding "-") to it. Then, I closed the sqlite browser saving the edit. Now starting seafile client allows syncing the existing folder.
That does not necessarily work. I've had to access the sqlite db files in the Seafile/.seafile-data directory (notably, repo.db), get the repo_id of the offending repository from the RepoProperty table, and then delete from all those tables that contain that repo_id. Restarting the client, I could then resynchronize the repository.
Thanks! I stopped the seafile client and used https://sqlitebrowser.org/dl/ to open repo.db (in seafile-data), in the table "RepoProperty" I found the problematic folder and changed its path in the table to something non extisting (just adding "-") to it. Then, I closed the sqlite browser saving the edit. Now starting seafile client allows syncing the existing folder.
Thank you very much, this worked flawlessly! People like you, posting the solution which worked for them are a blessing!
Hi, Thank for your work on Seafile. I use it every day and this is my first bug in 6 months.
The problem
When you delete a library before the upload (first commit) is done, you cannot create a new library in a subfolder.
If i try to create a new library from the client :
If i create the library directly on the server and try to sync with an existing directory :
I've tried to restart the client but it isn't working. I'll look further soon.
Log file
Seafile.log
ccnet.log
applet.log
Thanks Pierre