-
Notifications
You must be signed in to change notification settings - Fork 23
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 bind socket #606
Comments
-98 is EADDRINUSE. this address is already used. If samba is running on your system, Please try to start ksmbd after stopping smbd(samba). |
smbd was uninstalled automatically when i installed ksmbd. bookworm. Address do you mean ports? |
Yes. tcp port 445. |
no result |
Please find the root-cause after getting information from googling. Problem is caused by EADDRINUSE error. |
Already tried to google. Nothing except string in sources. Also i didnt find any possibility to activate debug log in ksmdb. Also i tested performance with crystalmark and i see absolutely no difference between samba 4 and ksmbd |
Have the same issue. Cant bind to ipv4 adresses |
@oleksandrl5 Okay, Can you check the code and debug(create_socket() in transport_tcp.c) ? |
@oleksandrl5 Can you show me print log after applying this change ? When I have tested it after turning IPV6 off, ksmbd work fine.
|
In my case, after all Docker containers are started. there is a virtual bridge can't bind the port. root@home:~# ss -tuln | grep :445 There are many failue logs in dmesg, KSMBD seems to have always wanted to bind to the network bridge, but failed many times: how to fix it, or i can ignore the failue? can ksmbd only to bind one bridge? |
@ItsFated Can you share how to reproduce it on ubuntu ? |
My system is proxmox. name: all_containers
services:
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
environment:
- PUID=1000
- PGID=1000
- WEBUI_PORT=8080
- TORRENTING_PORT=6881
volumes:
- /home/jason/Downloads:/downloads
ports:
- 8080:8080
- 6881:6881
- 6881:6881/udp
networks:
- all
restart: unless-stopped
networks:
all:
ipam:
driver: default
config:
- subnet: 172.28.0.0/24
ip_range: 172.28.0.0/24
gateway: 172.28.0.1 |
can you try binding to specific interfaces only and check if the issue is still present ?
|
Linux 6.2.16-19-pve #1 SMP PREEMPT_DYNAMIC PMX 6.2.16-19 (2023-10-24T12:07Z) x86_64 GNU/Linux
im getting multiply strings
kernel: ksmbd: Failed to bind socket: -98 kernel: ksmbd: Failed to shutdown socket: -107
default config. No additional info in logs. Also unable to bind interfaces, daemon dosnt start if i set it active
The text was updated successfully, but these errors were encountered: