There are no further checks if the ports are duplicates which was happening in my case.
Sinceynh_find_port cannot prevent this on its own I would suggest temporarily binding the found port via nc or any other way and releasing it again after all ports are found.
Otherwise at least increase the range between fileserver_port and webdav_port.
Hello,
While installing seafile on yunohost after installing multiple other applications I encountered the problem that WebDAV always failed with
I could figure out that both
/seafhttp
and/seafdav
where bound to port 8083 in my case. The issue was fixed with changing one of those ports.Investigating the issue I found the following lines in the install script:
https://github.com/YunoHost-Apps/seafile_ynh/blob/16d5f0588f93fe2be5a33929390dc044c54bada2/scripts/install#L44-L48
There are no further checks if the ports are duplicates which was happening in my case.
Since
ynh_find_port
cannot prevent this on its own I would suggest temporarily binding the found port vianc
or any other way and releasing it again after all ports are found. Otherwise at least increase the range betweenfileserver_port
andwebdav_port
.Thanks for your work!