Open GaleHuang opened 1 year ago
Based on the information provided, it is difficult to determine the root cause of the issue. However, here are some steps you can try to troubleshoot the problem:
Check if the network connection is stable and the IP address of the NFS server is correct.
Check the NFS server configuration and make sure that the exported directory is configured correctly.
Check the Kodi Android settings and make sure that the correct NFS version is selected.
Try to access the NFS server from another device, such as a computer or another mobile device, to see if the issue is specific to Kodi Android.
Try to access the NFS server using a different protocol, such as SMB or FTP, to see if the issue is specific to NFS.
Check the Kodi Android log files for any error messages that might provide more information about the issue.
If none of the above steps resolve the issue, try posting a detailed bug report on the Kodi Android GitHub page or forum, including any relevant log files or error messages.
It seems that the issue is related to the NFS server configuration on MacOS. Here are a few things you could try:
Check that the NFS server is running properly on the MacOS system. You can do this by running the following command in the terminal:
sudo nfsd checkexports
This should output a list of exported directories. If you don't see your exported directory listed, then there might be an issue with the export configuration.
Check the NFS export configuration. Make sure that you have specified the correct IP address range in the /etc/exports file. Also, make sure that the exported directory has the correct permissions and ownership.
Check the firewall settings on the MacOS system. Make sure that the NFS port (port 2049) is open in the firewall.
Check the Kodi settings on Android. Make sure that the NFS protocol is selected in the file manager settings. Also, make sure that the correct IP address is entered for the NFS server.
If none of these steps work, you could try using a different protocol (such as SMB or FTP) to access the files on the MacOS system.
I think the problem you are facing is that Android assigns a UID to Kodi during installation that is not "predictable" for end users. I encountered the same problem between Android and Debian, I was able to know this UID with a debug connection via adb. As it was not possible to find a solution that works in all cases, I decided to propose an enhancement (#23302) that is still under review. With this evolution, it is possible to set the UID and GID used by Kodi for NFS connections as well as the permissions on files created by Kodi. Previously, I used the options all_squash, anonuid and anongid on exports. However, I guess the -mapall=user:group option does the same thing
This issue is now marked stale because it has been open over a year without activity. Remove the stale label or add a comment to reset the stale state.
Bug report
Describe the bug
Here is a clear and concise description of what the problem is:
start nfsd on MacOS, and use Kodi Android to visit the nfs server, kodi is able to recognize the source and list the root directory, but when entering the root directory in Kodi Android, it throw error "Couldn't connect to network server".
In addition, Kodi cannot connect to the webdav server in MacOS either, but the phone browser can do it.
Expected Behavior
Here is a clear and concise description of what was expected to happen:
Kodi can enter the root directory successfully.
Actual Behavior
when entering the root directory in Kodi Android, it throw error "Couldn't connect to network server".
Possible Fix
To Reproduce
Steps to reproduce the behavior:
Debuglog
The debuglog can be found here:
Screenshots
Here are some links or screenshots to help explain the problem:
Additional context or screenshots (if appropriate)
Here is some additional context or explanation that might help:
Your Environment
Used Operating system:
[x] Android
[ ] iOS
[ ] tvOS
[ ] Linux
[x] macOS
[ ] Windows
[ ] Windows UWP
Operating system version/name: Android 12.0.0
Kodi version: 20.1.0
note: Once the issue is made we require you to update it with new information or Kodi versions should that be required. Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.