2023-03-23, 04:24
I'm having difficulty getting Kodi on windows to connect to a rasbian based FTP server, vsftpd specifically. I am able to connect to the FTP when the "remote path" field is left empty when adding a network location. Then within Kodi I see the ftp user's home directory on the FTP machine, i.e /home/pi. But what I want to do is connect Kodi to an external hard drive mounted /mnt/PiNAS. If I add /mnt/PiNAS to the remote field I get an error window saying unable to connect. This is what Kodi's debug log looks like when I try to connect to the FTP. HASTEBIN LINK KODI. It seems to be an access denial error.
Here is vsftpd's debug log from the same moment in time. HASTEBIN LINK VSFTPD. There is a lot of similarity in the errors. The same 550 error happens when the directory is changed to /mnt "CWD mnt".
I can connect to the same FTP with WinSCP. I can navigate to any directory on the pi because the ftp user is not chroot jailed. When I look at the vsftpd log when WinSCP connects I see something interesting. Here is the HASTELINK BIN WinSCP. Notice that when it successfully changes the directory it shows "CWD /mnt" in contrast to the "CWD mnt" from the Kodi log. Maybe I'm missing an escape character? Maybe I'm not typing in the remote path correctly into Kodi? I thought maybe it had to do something with directory ownership. So I changed the group and owner of the /mnt directory to the FTP user from the default root:root. That did not fix it. I'm not sure what I'm doing wrong. If anyone has any ideas I would greatly appreciate the help.
Here is vsftpd's debug log from the same moment in time. HASTEBIN LINK VSFTPD. There is a lot of similarity in the errors. The same 550 error happens when the directory is changed to /mnt "CWD mnt".
I can connect to the same FTP with WinSCP. I can navigate to any directory on the pi because the ftp user is not chroot jailed. When I look at the vsftpd log when WinSCP connects I see something interesting. Here is the HASTELINK BIN WinSCP. Notice that when it successfully changes the directory it shows "CWD /mnt" in contrast to the "CWD mnt" from the Kodi log. Maybe I'm missing an escape character? Maybe I'm not typing in the remote path correctly into Kodi? I thought maybe it had to do something with directory ownership. So I changed the group and owner of the /mnt directory to the FTP user from the default root:root. That did not fix it. I'm not sure what I'm doing wrong. If anyone has any ideas I would greatly appreciate the help.