Skip to main content

SAMBA/CIFS

Malformed Interfaces Issue

image.png

This issue was originally introduced to Ubuntu via a kernel update as such it is related to a kernel issue.

Solutions I found for this issue involve kernel patching/updating or changing the cifs settings. I recommend the latter, as changing the kernel is a more invasive solution that may result in new issues (see below).

KernelInstall Patchinga hwe kernel (not currently recommended):

Warning: using this solution broke nvidia-smi in a host with most of its workload being GPU accelerated docker/docker-compose. Updating the kernel may cause other issues but it did resolve this issue without changing the cifs settings and I am certain that the issue can be resolved with a kernel patch but I don't remember what method I used previously.

apt-get install linux-generic-hwe-22.04

Replace the (22.04) with your distro. I do not anticipate you should be here if you are running 24.04. My testing is with Ubuntu 22.04.

CIFS Settings (Recommended):

Without changinginstalling thea different kernel or patch, the issue is also resolved by adding the ,vers=2.1 option in the fstab mount or docker-compose cifs mount. We are not going to investigate the differences between cifs 3 vs 2.1 for the scope of this issue. Do research further if this will be a concern or experiment with different kernels or the solution above.concern.

Examples:

volumes:
  plex_config:
    driver: local
    driver_opts:
      type: cifs
      o: "iocharset=utf8,username=<username>,password=<somepass>,vers=2.1,rw,uid=<changethistotheproperuid>,file_mode=0777,dir_mode=0777"
      device: "//192.168.1.1/<sharename>"

//192.168.1.1/<sharename> /mnt/path cifs username=<username>,password=<password>,uid=1000,gid=www-data,file_mode=0777,dir_mode=0777,noperm,vers=2.1 0 0

If you discover a more viable solution please feel free to reach out by any method available and I will update this information.