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

Seafile can't connect to Mysql with IPv6 #229

Open
ki2007 opened this issue Aug 14, 2020 · 2 comments · May be fixed by #288
Open

Seafile can't connect to Mysql with IPv6 #229

ki2007 opened this issue Aug 14, 2020 · 2 comments · May be fixed by #288

Comments

@ki2007
Copy link

ki2007 commented Aug 14, 2020

If IPv6 is enabled for the seafile network, seafile can't connect to the database server.

Issue: The initial setup creates an mysql user named seafile with an user_host of '%.%.%.%' which does not allow the user to connect with an IPv6 connection.

Solution: Set user_host of seafile user to '%' or an reasonable alternative to allow connections from IPv6 hosts.

@tohn
Copy link

tohn commented Mar 25, 2021

Hey @ki2007, I just ran into this issue. Could you please explain in more detail how to solve this?

joachimtingvold added a commit to joachimtingvold/seafile-docker that referenced this issue Mar 11, 2022
@joachimtingvold joachimtingvold linked a pull request Mar 11, 2022 that will close this issue
@joachimtingvold
Copy link

PR that fixes this submitted (#288).

As a workaround;

  1. Set the IPv4 address of the MariaDB-container as the value for DB_HOST during setup.
  2. Wait until everything is working.
  3. Edit sql user on the MariaDB-container; rename user 'seafile'@'%.%.%.%' to 'seafile'@'%';
  4. Change DB_HOST to the hostname.
  5. Change host manually in the seafile configs (ccnet.conf, seafile.conf and seahub_settings.py)

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

Successfully merging a pull request may close this issue.

3 participants