CIFS error 22

d_G

Member
May 17, 2024
35
2
8
Hello,
trying in proxmox 8.2.2 to add a folder on another server <IP> (Samba)
user and password with simple chars,
no issue to show scan : pvesm scan cifs <IP>
The folder is seen from other pc without issue.

but if try to mount I got error -22:

pvesm add cifs ID_name --server IP --share folder_on_IP --username=User --password=password --path /mnt/path_on_pve
CIFS: Attempting to mount //IP/folder_on_IP
CIFS: VFS: cifs_mount failed w/return code = -22

using the gui :
error.jpg


maybe I need to update samba ? really 1GB ?
ANY IDEA ?

Code:
apt upgrade samba
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  libcups2 libdpkg-perl libfile-fcntllock-perl libgpgme11 libpve-network-api-perl libpython3.11
  proxmox-kernel-6.8.12-14-pve-signed pve-nvidia-vgpu-helper python3-anyio python3-cffi-backend python3-click
  python3-colorama python3-cryptography python3-dnspython python3-gpg python3-h11 python3-h2 python3-hpack
  python3-httpcore python3-httpx python3-hyperframe python3-ldb python3-markdown python3-markdown-it python3-mdurl
  python3-pygments python3-requests-toolbelt python3-rfc3986 python3-rich python3-samba python3-sniffio python3-talloc
  python3-tdb samba samba-ad-provision samba-common-bin samba-dsdb-modules samba-vfs-modules tdb-tools virtiofsd
The following packages will be upgraded:
  base-files bash bind9-dnsutils bind9-host bind9-libs bsdextrautils bsdutils btrfs-progs busybox ca-certificates
  corosync criu curl debian-archive-keyring dirmngr distro-info-data e2fsprogs eject fdisk fonts-glyphicons-halflings
  gcc-12-base gnupg gnupg-l10n gnupg-utils gnutls-bin gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv
  grub-common grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed grub-pc-bin grub2-common ifupdown2 init
  init-system-helpers initramfs-tools initramfs-tools-core iputils-ping krb5-locales libarchive13 libavahi-client3
  libavahi-common-data libavahi-common3 libblkid1 libbpf1 libc-bin libc-l10n libc6 libcap2 libcap2-bin libcfg7
  libcmap4 libcom-err2 libcorosync-common4 libcpg4 libcurl3-gnutls libcurl4 libexpat1 libext2fs2 libfdisk1
  libfile-find-rule-perl libfreetype6 libgcc-s1 libglib2.0-0 libgnutls-dane0 libgnutls30 libgnutlsxx30
  libgssapi-krb5-2 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libicu72 libjs-bootstrap libjs-extjs libk5crypto3
  libknet1 libkrb5-3 libkrb5support0 libldb2 liblzma5 libmount1 libmpg123-0 libnfsidmap1 libnghttp2-14 libnozzle1
  libnss-systemd libnss3 libnvpair3linux liboath0 libpam-systemd libperl5.36 libproxmox-acme-perl
  libproxmox-acme-plugins libproxmox-backup-qemu0 libproxmox-rs-perl libpve-access-control libpve-cluster-api-perl
  libpve-cluster-perl libpve-common-perl libpve-guest-common-perl libpve-http-server-perl libpve-network-perl
  libpve-notify-perl libpve-rs-perl libpve-storage-perl libpython3.11-minimal libpython3.11-stdlib libqt5core5a
  libqt5dbus5 libqt5network5 libquorum5 librabbitmq4 libseccomp2 libsmartcols1 libsmbclient libsndfile1 libsqlite3-0
  libss2 libssl3 libstdc++6 libsubid4 libsystemd-shared libsystemd0 libtasn1-6 libtpms0 libudev1 libunbound8 libuuid1
  libuutil3linux libvotequorum8 libwbclient0 libxml2 libxslt1.1 libyaml-libyaml-perl libzfs4linux libzpool5linux
  locales login logsave mount nano nfs-common novnc-pve openssh-client openssh-server openssh-sftp-server openssl
  passwd perl perl-base perl-modules-5.36 postfix proxmox-archive-keyring proxmox-backup-client
  proxmox-backup-file-restore proxmox-backup-restore-image proxmox-firewall proxmox-grub proxmox-kernel-6.8
  proxmox-kernel-helper proxmox-mail-forward proxmox-mini-journalreader proxmox-offline-mirror-docs
  proxmox-offline-mirror-helper proxmox-termproxy proxmox-ve proxmox-widget-toolkit pve-cluster pve-container pve-docs
  pve-edk2-firmware pve-edk2-firmware-legacy pve-edk2-firmware-ovmf pve-esxi-import-tools pve-firewall pve-firmware
  pve-ha-manager pve-i18n pve-manager pve-qemu-kvm pve-xtermjs python3-idna python3-pkg-resources python3-setuptools
  python3-urllib3 python3.11 python3.11-minimal qemu-server rsync samba-common samba-libs shim-signed
  shim-signed-common smbclient spl sqlite3 ssh systemd systemd-boot systemd-boot-efi systemd-sysv tzdata ucf udev
  uidmap util-linux util-linux-extra vim-common vim-tiny wget xsltproc xz-utils zfs-initramfs zfs-zed zfsutils-linux
220 upgraded, 40 newly installed, 0 to remove and 0 not upgraded.
Need to get 486 MB of archives.
After this operation, 922 MB of additional disk space will be used.

thank you !

P.S. Do I need to increase timeout ? ... sometimes this unit is bit slow...
 
Last edited:
maybe I need to update samba ? really 1GB ?
No! "samba" is a meta package - it also includes the server part.

Try to install the package "cifs-utils", it should deliver the command "mount.cifs"...
 
No! "samba" is a meta package - it also includes the server part.

Try to install the package "cifs-utils", it should deliver the command "mount.cifs"...
Thank you for your reply : trying to upgrade but:
Code:
cifs-utils is already the newest version (2:7.0-2).
0 upgraded, 0 newly installed, 0 to remove and 220 not upgraded.

But if I use
:~# pvesm scan cifs <IP>
#proxmox shows the folders!
one_folder HD's
two_folder HD's

:~# pvesm add cifs <ID> --server <IP> --share_one_folder --user=user --password=password
create storage failed: storage '<ID>' is not online
:oops:
 
Last edited:
using this:
mount -t cifs //<IP>/<share_on_folder> /mnt/<folder_on this_server> -o username=user,password=password,vers=2.0
finally I can see files in cd /mnt/<folder_on this_server> !
:rolleyes: