-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Cannot use ipv6 for DB_HOST value #5464
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
Comments
Having the same issue. No matter what I do, laravel wont connect via ipv6. Did you find a solution? |
@enkrypt3d The underlying Laravel code might work fine, but it won't work right now for BookStack due to how we're splitting out the port from the host if set: BookStack/app/Config/database.php Lines 44 to 49 in 13dae24
This needs reworking in a considerate way. |
I did not find solution since it's a bookstack problem as @ssddanbrown said but maybe you can use an hostname resolving to an ipv6 (did not try, I instead fell back to using ipv4) |
Can be set via the square bracket format. For #5464
This has now been addressed within 4f5ad17, to be part of the next patch release. DB_HOST=[::1]
DB_HOST=[::1]:3307 Thanks @rosalina-ha for raising. |
So is DB_PORT= not used anymore? |
@enkrypt3d BookStack will use the port in the |
Describe the Bug
When trying to set DB_HOST to use an IPv6, you can't run
php artisan migrate
Steps to Reproduce
php artisan migrate
Expected Behaviour
Work with an IPv6 for the DB_HOST value
Screenshots or Additional Context
Error message :
DB_HOST value use:
[2a00:XXXX:XXXX:XXX::dba2]
Browser Details
No response
Exact BookStack Version
v24.12.1
The text was updated successfully, but these errors were encountered: