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

Error in disabled IPv6 system #661

Closed
samarulmeu opened this issue Jul 25, 2024 · 2 comments
Closed

Error in disabled IPv6 system #661

samarulmeu opened this issue Jul 25, 2024 · 2 comments

Comments

@samarulmeu
Copy link

I am running wakapi on Devuan 5 (Debian 12) and I have trouble when trying to run wakapi with IPv6 disabled in the system.

This is the error I get

2024-07-25T10:59:03.700948862+03:00 [INFO ] πŸ‘‰ Listening for HTTP on 127.0.0.1:3000... βœ…
2024-07-25T10:59:03.701442753+03:00 [INFO ] πŸ‘‰ Listening for HTTP on [::1]:3000... βœ…
2024-07-25T10:59:03.701970314+03:00 [ERROR] listen tcp [::1]:3000: bind: cannot assign requested address
panic: listen tcp [::1]:3000: bind: cannot assign requested address

goroutine 54 [running]:
github.com/emvi/logbuch.(*StandardFormatter).Pnc(0x2593400?, {0xc000e60a00?, 0xc000e60a00?}, {0x0?, 0x0?, 0x0?})
        /home/runner/go/pkg/mod/github.com/emvi/logbuch@v1.2.0/standard_formatter.go:57 +0x37
github.com/emvi/logbuch.(*Logger).Fatal(0x2593400, {0xc000e60a00, 0x3c}, {0x0, 0x0, 0x0})
        /home/runner/go/pkg/mod/github.com/emvi/logbuch@v1.2.0/logger.go:132 +0x72
github.com/emvi/logbuch.Fatal(...)
        /home/runner/go/pkg/mod/github.com/emvi/logbuch@v1.2.0/funcs.go:55
main.listen.func5()
        /home/runner/work/wakapi/wakapi/main.go:426 +0x47
created by main.listen in goroutine 1
        /home/runner/work/wakapi/wakapi/main.go:424 +0x866

The line listen_ipv6: #::1 has no effect in disabling the server. The only workaround is to enable again IPv6.

Thank for your help.

P. S. In the config file there is the comment # set to '-' to disable ipv6 but writing something like listen_ipv6: - triggers an error. Maybe the comment is misleading?

@muety
Copy link
Owner

muety commented Jul 25, 2024

Duplicate of #620, #584.

In YAML, set listen_ipv6: '', as explained in the docs.

@muety muety closed this as completed Jul 25, 2024
@samarulmeu
Copy link
Author

Thank you! It is working. The fact is that the documentation is misleading it says set to '-' to disable ipv6 not set to '' as I mentioned above.

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

2 participants