Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to sync seafile database #49

Closed
jonneymendoza opened this issue Oct 22, 2019 · 9 comments
Closed

Failed to sync seafile database #49

jonneymendoza opened this issue Oct 22, 2019 · 9 comments

Comments

@jonneymendoza
Copy link

Hi i keep get this error whenever i try and setup the latest seafile-rpi server which is 7.0.5

When i specify the data location path to my exfat ext hdd connected to my pi4 and then continue on to installing sea file. i get this error

Now let's setup seahub configuration. Press [ENTER] to continue
-----------------------------------------------------------------


Creating database now, it may take one minute, please wait...

/home/me/temp/seafile-server-7.0.5
Failed to sync seafile database.


Error occured during setup.
Please fix possible issues and run the script again.
@schellenberg
Copy link

Same error. In my case, a cifs mounted drive.

@jonneymendoza
Copy link
Author

anyone can help?

@shoeper
Copy link
Contributor

shoeper commented Nov 26, 2019

Use ext{3,4}, btrfs, zfs or xfs - at least for the install dir. The data can still be in another location.

@zen42
Copy link

zen42 commented Jan 15, 2020

Just ran into this as well. On a hunch I moved the install folder (so seafile-server-xxx) onto the filesystem i was installing to and accepted the scripts path suggestion. Everything worked file after that.

As to why this happening i spent 5 mins looking into it and found nothing. Maybe something with the sqllite3 .read going across filesystems?

@jonneymendoza
Copy link
Author

ive given up on seafile. the support is none existant and the software itself is very buggy

@thrynir
Copy link
Contributor

thrynir commented Feb 14, 2020

Hi,

As @shoeper said, you should not use exfat. It's a Microsoft proprietary filesystem. Linux don't handle it well.
Microsoft recently allow the community to use exfat by set it open source. But it haven't been merged into linux kernel yet.

You should use ext4 for less bug and best performance.

@JojOatXGME
Copy link

JojOatXGME commented Mar 7, 2020

It looks like there is a bug in the setup-seafile.sh. Maybe the following change would fix the issue.

- seafile_db=${TOPDIR}/seafile-data/seafile.db
+ seafile_db=${seafile_data_dir}/seafile.db
  seafile_sql=${INSTALLPATH}/sql/sqlite/seafile.sql
  if ! sqlite3 ${seafile_db} ".read ${seafile_sql}" 2>/dev/null 1>&2; then
    echo "Failed to sync seafile database."
    err_and_quit;
  fi

Otherwise, you might need to create a seafile-data directory next to the seafile installation.

@Tommy-LXDAO
Copy link

It looks like there is a bug in the setup-seafile.sh. Maybe the following change would fix the issue.

- seafile_db=${TOPDIR}/seafile-data/seafile.db
+ seafile_db=${seafile_data_dir}/seafile.db
  seafile_sql=${INSTALLPATH}/sql/sqlite/seafile.sql
  if ! sqlite3 ${seafile_db} ".read ${seafile_sql}" 2>/dev/null 1>&2; then
    echo "Failed to sync seafile database."
    err_and_quit;
  fi

Otherwise, you might need to create a seafile-data directory next to the seafile installation.

nice idea! I have solved my problem! Thank you very much!

@jobenvil jobenvil pinned this issue Jul 1, 2020
@jobenvil
Copy link
Member

jobenvil commented Jul 1, 2020

@JojOatXGME and @ll I will close and pin this issue, since this is still not amended on upstream code.

@jobenvil jobenvil closed this as completed Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants