Cifs vfs send error in close 512

Arch Linux You are not logged in. #1 2011-11-08 10:45:23 Please help resolve ‘CIFS VFS: Send error in read = -512’ I have a NAS box that exports a smb share via samba 3.0.25 I mount the share with: mount -t cifs -o user=my_user,password=my_pass,rw //nas_box/my_user /media/nas_box/my_user Which seems to be ok, but copy operations […]

Содержание

  1. Arch Linux
  2. #1 2011-11-08 10:45:23
  3. Please help resolve ‘CIFS VFS: Send error in read = -512’
  4. mount.cifs и ошибки CIFS VFS: cifs_mount failed w/return code = -5 / -12 и Cannot allocate memory
  5. unixforum.org
  6. Решено: smbmount (permission denied)
  7. Решено: smbmount
  8. Re: Решено: smbmount
  9. Re: Решено: smbmount
  10. Re: Решено: smbmount
  11. Re: Решено: smbmount
  12. Re: Решено: smbmount
  13. Unable to mount CIFS share from /etc/fstab
  14. 4 Answers 4
  15. Сбой монтирования общего ресурса cifs (с использованием пароля или билета kerberos krb5)

Arch Linux

You are not logged in.

#1 2011-11-08 10:45:23

Please help resolve ‘CIFS VFS: Send error in read = -512’

I have a NAS box that exports a smb share via samba 3.0.25

I mount the share with:

mount -t cifs -o user=my_user,password=my_pass,rw //nas_box/my_user /media/nas_box/my_user

Which seems to be ok, but copy operations stall at the 32kB mark.

dmesg | grep -i error

gives ‘CIFS VFS: Send error in read = -512’

Display Internal CIFS Data Structures for Debugging
—————————————————
CIFS Version 1.74
Features: dfs fscache posix spnego xattr acl
Active VFS Requests: 0
Servers:
1) Name: nas_box Domain: my_workgroup Uses: 1 OS: Unix
NOS: Samba 3.0.25a Capability: 0xf3fd
SMB session status: 1 TCP status: 4
Local Users To Server: 1 SecMode: 0x3 Req On Wire: 0
Shares:
1) \nas_boxmy_user Mounts: 1 Type: NTFS DevInfo: 0x0 Attributes: 0x2b
PathComponentMax: 255 Status: 0x1 type: 0 DISCONNECTED

I’m running a 3.0.0 liquorix kernel, but the same error is reported for the stock AL kernel

Now here’s the annoying bit.. When I mount the share — using the same options — under Ubuntu 11.04 I have no issues
I also have no problems under Windows (2000)

Also worth mentioning.. I have no issues accessing SMB shares exported from the Windows box.

Last edited by culyun (2011-11-08 10:47:25)

Источник

mount.cifs и ошибки CIFS VFS: cifs_mount failed w/return code = -5 / -12 и Cannot allocate memory

Недавно поставил ещё одну винду (к сожалению, приходится пользоваться в своём домашнем хозяйстве), вспомнил о проблеме.

Собственно, как сделать всё без правки реестра? Возможно ли пропатчить самбу или указать ей какой-то флаг? Когда я раньше работал на ubuntu 10.04 и использовал smbmount, то проблем не было.

Монтирую так:
mount.cifs //192.168.x.x/share /mnt/share -o iocharset=utf8,username=admin

При копировании сначала отваливается после копирования нескольких файлов с ошибкой CIFS VFS: cifs_mount failed w/return code = -5 , потом не могу подключиться
mount error(12): Cannot allocate memory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
с ошибкой CIFS VFS: cifs_mount failed w/return code = -12
в общем, всё как по ссылке выше.

eix samba:
net-fs/samba
Available versions: (

)3.5.2[2] 3.5.15^t 3.5.21^t 3.6.9^t 3.6.12^t (

А виндовс какой? Не семерка или 2008 ?

С вистой тоже глючило.

UAC конечно отключили? Что в логах виндовса в этот момент? В системных и в секурити

Хм. Видимо, да. Я сборочкой пользуюсь.

Что в логах виндовса в этот момент? В системных и в секурити

В безопасности — ничего. В системных ошибка:
Сервер не смог выделить память из невыгружаемого пула памяти, так как достигнут указанный в конфигурации верхний предел.

Тогда только правка реестра, увы. Похожая проблема описана как в многочисленных блогах, так и на support.microsoft.com. Других вариантов нет — это утечка памяти в Windows при сетевом доступе к папке.

А почему винда с виндой нормально работают, а также ubuntu 10.10 с виндой? Тут явно проёб самбы, а никак не винды. Я, конечно, понимаю, что в винде всё через жопу, но под это подстраиваться надо, а заставлять в реестр каждого компа с виндой лезть.

Исходя из того, что ошибка происходит при выделении буфера, а также из того, что размер твикаем в реестре мы тоже его, я прочел манул к mount.cifs и нашел там опции rsize и wsize, которые определяют размеры буферов. Мало того, там было написано, в старых ядрах размер буфера был статичен (без автоопределения) и равнялся 57344 (для чтения чуть больше). Я сделал так:
mount.cifs //192.168.x.x/share /mnt/share -o iocharset=utf8,username=admin,rsize=16000,wsize=16000

Причём нужно (не знаю почему, возможно именно это и позволяет избежать переполнения), чтобы значение было меньше кратного 4096.

И скопировал 20Гб по сети на :))

Мало того, копирование мелких файлов почему-то было быстрее, чем на твикнутой семерке, где нормально работали большие буферы. Прошу проверить и распространить вышеуказанную инфу про буферы, т.к. я не нашел с полпинка в гугле такого (простого и удобного) решения.

C wifi вообще жопа: 500кбайт в сек. Но я им не пользуюсь, так что пофиг.

Источник

unixforum.org

Форум для пользователей UNIX-подобных систем

  • Темы без ответов
  • Активные темы
  • Поиск
  • Статус форума

Решено: smbmount (permission denied)

Модератор: SLEDopit

Решено: smbmount

Сообщение pelmen » 12.05.2010 13:10

Re: Решено: smbmount

Сообщение eddy » 12.05.2010 13:13

Re: Решено: smbmount

Сообщение pelmen » 12.05.2010 13:21

Re: Решено: smbmount

Сообщение pelmen » 12.05.2010 13:32

Вот оно
http://sexdebian.livejournal.com/964.html
Но мне это не помогло, ведь у меня anonymous-доступ

/sbin/mount.cifs //192.168.0.1/test /mnt/test -o user=domain/user,password=pass
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

tail /var/log/messages
May 12 13:55:40 comp16-desktop kernel: [ 1971.283389] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE

tail /var/log/syslog
May 12 13:58:44 comp16-desktop kernel: [ 2155.297425] CIFS VFS: Send error in SessSetup = -13
May 12 13:58:44 comp16-desktop kernel: [ 2155.297441] CIFS VFS: cifs_mount failed w/return code = -13
May 12 13:58:59 comp16-desktop kernel: [ 2170.061108] CIFS VFS: Unexpected SMB signature
May 12 13:58:59 comp16-desktop kernel: [ 2170.061118] Status code returned 0xc0000234 NT_STATUS_ACCOUNT_LOCKED_OUT
May 12 13:58:59 comp16-desktop kernel: [ 2170.061126] CIFS VFS: Send error in SessSetup = -13
May 12 13:58:59 comp16-desktop kernel: [ 2170.061138] CIFS VFS: cifs_mount failed w/return code = -13
May 12 14:02:58 comp16-desktop kernel: [ 2409.387024] CIFS VFS: Unexpected SMB signature
May 12 14:02:58 comp16-desktop kernel: [ 2409.387032] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
May 12 14:02:58 comp16-desktop kernel: [ 2409.387039] CIFS VFS: Send error in SessSetup = -13
May 12 14:02:58 comp16-desktop kernel: [ 2409.387050] CIFS VFS: cifs_mount failed w/return code = -13

Через fstab сработало ))

Re: Решено: smbmount

попробуйте
/sbin/mount.cifs //192.168.0.1/test /mnt/test -o domain=xxx,username=yyy,password=zzz
хотя вроде должно быть одно и то же

п.с. извиняюсь, не дочитал тему до конца, что сработало 🙂

Re: Решено: smbmount

Сообщение pelmen » 12.05.2010 23:49

Источник

I have a line in my /etc/fstab for ages that stopped working since 13.04:

and it gives me:

dmesg is as helpful as sunshine in the desert:

I know the user/pass combo is correct, as this works fine:

How can I permanently mount a CIFS/Samba share on Ubuntu 13.04 ?

4 Answers 4

Try to look what you are doing wrong. Make it simple, remove the file_mode, user and gid, maybe the iocharset and sec variables as well. If this will work, add always one.

doesn’t solve the problem on my desktop (Ubuntu 13.10). It seems the parameter format changed a bit about the domain. Used to work this before but does not now:

I’ve changed to this format:

and it works well now.

sec=ntlm worked for me too.

I had load of problems with this from the CLI and fstab but it worked fine from the GUI (on Fedora 20) to a home NAS and to rule out things like complex passwords I created a user with a simple username and password and then used the CLI command mount.cifs to test with. I kept getting permission denied (13) all the time so did a Wireshark of the GUI and CLI attempts.

If you do this then you want the Protocol Response message back from the server and expand all of the fields to check for the version/dialect (in my case the server wanted version 1.0) and more importantly the security requirements, a 1 means that the server requires something and my server required password encryption so setting sec=ntlm fixed it for me :-D.

Many thanks to Dee above!

I have had this problem on various networks which needed samba filesharing services from an Ubuntu or LinuxMint-based file server.

In every case, while the user’s samba account had a password and allowed browsing (and manipulating files) of a share through a file manager, fstab mounts did not work.

This is regardless of having set sec=ntlm or sec=ntlmv2 or sec=ntlmssp or any of the various other options typically offered as a «solution» (i.e. such as setting the file_mode or user or gid)

In every case the solution for our installations has ended up being the same: reset the samba user’s password and the mount works, regardless of setting options!

I’m not sure what happens when the password is «inherited/converted» from the user’s Linux account, but there seems to be a significant problem there, notwithstanding the ability to browse (not mount) a samba share.

I am now going to cross post this reply to a couple similar AskUbuntu posts which promote the same «answers» which often do not seem to help those with problems.

Perhaps this approach will help you with your fstab samba mounting challenge. I hope so and good luck.

Источник

Сбой монтирования общего ресурса cifs (с использованием пароля или билета kerberos krb5)

ВЕДУЩИЙ: Kubuntu 16.04.3 LTS

ЛОКАЛЬНОСТЬ: Kubuntu 17.10

Я больше не могу смонтировать общий ресурс cifs на терминале:

В системном журнале я нашел сообщения об ошибках при попытке:

Я уверен, что это рабочий ресурс с достаточными разрешениями для этого пользователя. Я могу запустить дельфина и открыть smb://HOST/ поделиться без проблем!

Моя система находится в среде Active Directory (realm, sssd), и я также попытался смонтировать, используя билет Kerberos, но не смог:

В системном журнале я нашел это сообщение об ошибке при попытке:

SSO через Kerberos работает! Используя smb://HOST/share на dolphin, я могу открыть общий ресурс без пароля.

Также я могу войти в общий доступ, используя

и я могу перечислить файлы там, используя ‘ls’.

Я нашел кого-то с той же ошибкой в ​​интернете, но он мог решить ее, удалив winbind. К сожалению, у меня не установлено winbind на обеих машинах, и для меня это не исправлено. Кто-то еще должен был добавить имя рабочей группы, что тоже не работает для меня. Также я обнаружил, что для монтирования использую другую версию smb. К сожалению, всегда происходит сбой с «cifs_mount faild w/return code = -5» (версии =1.0, версии =2.0, версии =2.1, версии =3.0, версии = 3.1.1).

Я мог воспроизвести эту ошибку между двумя клиентами с LTS или последней версией 16.04 16.04 и 17.10 17.10.

Интересно: монтирование работает, если я подключаю общий ресурс Windows, а не общий ресурс linux samba!

В чем причина ошибки cifs_mount -5?

Источник

I have a NAS box that exports a smb share via samba 3.0.25

I mount the share with:

  mount -t cifs -o user=my_user,password=my_pass,rw //nas_box/my_user /media/nas_box/my_user

Which seems to be ok, but copy operations stall at the 32kB mark.

—-

dmesg | grep -i error

gives ‘CIFS VFS: Send error in read = -512’

—-

/proc/fs/cifs/DebugData contains

Display Internal CIFS Data Structures for Debugging
—————————————————
CIFS Version 1.74
Features: dfs fscache posix spnego xattr acl
Active VFS Requests: 0
Servers:
1) Name: nas_box  Domain: my_workgroup Uses: 1 OS: Unix
        NOS: Samba 3.0.25a      Capability: 0xf3fd
        SMB session status: 1   TCP status: 4
        Local Users To Server: 1 SecMode: 0x3 Req On Wire: 0
        Shares:
        1) \nas_boxmy_user Mounts: 1 Type: NTFS DevInfo: 0x0 Attributes: 0x2b
PathComponentMax: 255 Status: 0x1 type: 0       DISCONNECTED

        MIDs:

I’m running a 3.0.0 liquorix kernel, but the same error is reported for the stock AL kernel

—-

Now here’s the annoying bit..  When I mount the share — using the same options — under Ubuntu 11.04 I have no issues
I also have no problems under Windows (2000)

Also worth mentioning.. I have no issues accessing SMB shares exported from the Windows box.

Last edited by culyun (2011-11-08 10:47:25)

So we have Alfresco running at work and I like to have our repository mounted via CIFS:

mount /mnt/alfresco/ -v
mount.cifs kernel mount options: ip=192.168.8.91,unc=\alfresco.example.comalfresco,dir_mode=0755,nounix,sec=ntlm,uid=1001,gid=1000,user=me,pass=********

The first time this runs, it works fine. I can use it for a few hours, but then it completely locks up. If I try to ls /mnt/alfresco, it just hangs for several minutes. The only thing I can do is umount -lf /mnt/alfresco But then, if I try to mount it again, it just hangs. When I do a Ctrl+C, I see the following:

[86897.151480] CIFS VFS: cifs_mount failed w/return code = -512
[86897.155297] CIFS VFS: No task to wake, unknown frame received! NumMids 6
[86897.155302] Received Data is: : dump of 37 bytes of data at 0xffff88023366fb80
[86897.155307]  23000000 424d53ff 00000da4 c00188c0 . . . # xffffffff S M B xffffffa4 . . . xffffffc0 . . xffffffc0
[86897.155311]  00000000 00000000 00000000 31c60001 . . . . . . . . . . . . . . xffffffc6 1
[86897.155313]  02260001 08000000 . . & . .

My /etc/fstab line looks like the following:

//example.com/alfresco /mnt/alfresco cifs user=me,uid=me,gid=me,credentials=/home/me/.smbcredentials,dir_mode=0755,nounix,auto,sec=ntlm 0 0

I’m on kernel Linux-3.10.25-gentoo, but I had the same problem with 3.10.8-gentoo. If I reboot my computer, I can remount the share and use it for a couple of hours again. Is there anyway I can get more debugging information on what’s going on here?

I notice that problem since update to Kernel 4.18.

CIFS Mounts hang sporadically.

[15417.600077] CIFS VFS: Send error in Close = -512
[15448.008414] CIFS VFS: Server xxx.xxx.xxx.xxx has not responded in 120 seconds. Reconnecting...
[15545.139675] CIFS VFS: Send error in Close = -5

Mount options are: vers=1.0,user=[smbuser],password=[password],uid=[uid],gid=[gid],serverino,nobrl,mapchars

The server is reachable. From the same machine from Windows in Virtualbox the shares are reachable on the server at the same time.


Comment 1


Steve French



2019-03-18 15:14:29 UTC

What is server type?  Samba? Mac? Windows? NetApp or EMC filer? Azure Cloud?


Comment 3


Ferry Toth



2019-05-12 14:49:27 UTC

Me too. Problem started after updating client to Ubuntu 19.03 (kernel 5.0.0), host is on Ubuntu 18.04 (kernel 4.15).

I have mount options: rw,relatime,vers=1.0,cache=strict,username=ferry,uid=1001,forceuid,gid=1001,forcegid,addr=192.168.1.19,soft,unix,posixpaths,mapchars,nobrl,cifsacl,acl,rsize=1048576,wsize=65536,bsize=1048576,echo_interval=60,actimeo=1

notably vers=1.0, same as reporter. I get send error -5 and -9.

It seems to be triggered when saving a file from Libreoffice, which then hangs, and so does my file manager Dolphin (which is active on the share). After a while (some minutes) saving the file completes.


Comment 4


Ferry Toth



2019-05-13 12:55:00 UTC

Today I found that opening a 2nd Dolphin stopped the hang. But now the only error messages were:

[ 2579.253316] CIFS VFS: Server ATHINA has not responded in 120 seconds. Reconnecting...
[ 2588.792276] Leaked POSIX lock on dev=0x0:0x3c ino=0x14fd  fl_owner=00000000ca8b4012 fl_flags=0x1 fl_type=0x1 fl_pid=5348


Comment 5


Ferry Toth



2019-07-05 14:42:12 UTC

The hang is most often triggered by Libreoffice, I don't know what that application does exactly.

But I can confirm that when using Ubuntu's kernel 5.0.0-19 the problem occurs and that falling back to Ubuntu's 4.15.0-1043-oem the problem goes away (so this is a workaround that does not require user to build kernels), just install the package).

Also it may be that this bug is a duplicate of 202611. If so, 202611 may have a patch available.


Comment 6


Randall Rodriguez



2019-10-28 16:02:26 UTC

Hi

I have the exact same problem, this is a backup server with minimal centos 8 fully updated at October 28th, 2019

kernel 4.18
samba 

kernel: CIFS VFS: Server 192.168.13.15 has not responded in 120 seconds. Reconnecting...

the server stops answering network requests, not even ping 

not LibreOffice, not even GUI

samba packages installed:

samba-common-libs-4.9.1-8.el8.x86_64
samba-client-4.9.1-8.el8.x86_64
samba-common-4.9.1-8.el8.noarch
samba-client-libs-4.9.1-8.el8.x86_64

for what i read it happens on ubuntu, opensuse, centos 8

thanks


Comment 7


Agroni



2022-08-24 14:48:18 UTC

I am getting the same error as well.

First of all, browsing windows shared folders with KDE Dolphin is very slow and then when you edit a document on a mounted windows shared folder with LibreOffice and save it, it hangs at about 15% of of saving the file.

JournalCTL showed these errors:
Aug 24 10:17:01 DevBox kernel: CIFS: VFS: \10.xxx.xxx.xxx has not responded in 180 seconds. Reconnecting...
Aug 24 10:17:02 DevBox kernel: CIFS: Status code returned 0xc00000d0 STATUS_REQUEST_NOT_ACCEPTED
Aug 24 10:17:02 DevBox kernel: CIFS: VFS: \10.xxx.xxx.xxx Send error in SessSetup = -5
Aug 24 10:18:02 DevBox kernel: INFO: task soffice.bin:445274 blocked for more than 1105 seconds.
Aug 24 10:18:02 DevBox kernel:       Not tainted 5.18.17-1-MANJARO #1
Aug 24 10:18:02 DevBox kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Aug 24 10:18:02 DevBox kernel: task:soffice.bin     state:D stack:    0 pid:445274 ppid:445273 flags:0x0000>

**Please escalate this bug to CRITICAL since data is being lost. You can't even kill LibreOffice or shutdown the PC. Hard reset by holding down the power button for more than 4 seconds is the only way to recover from the situation.

Оффлайн
Sam Stone

Ночью загнулась Ubuntu 8.04 32bit, на которой крутится сквид. Система почти не откликалась (даже top не запускался >_<), поэтому пришлось пристрелить )
После разбирал логи. Нашел следующее:

May 28 18:02:09 ubuntu-squid2 kernel: [623246.015765] Status code returned 0xc0000008 NT_STATUS_INVALID_HANDLE
May 28 18:02:09 ubuntu-squid2 kernel: [623246.015806]  CIFS VFS: Send error in read = -9
May 28 18:03:08 ubuntu-squid2 kernel: [623304.695599]  CIFS VFS: server not responding
May 28 18:03:08 ubuntu-squid2 kernel: [623304.695634]  CIFS VFS: No response to cmd 47 mid 55300
May 28 18:03:08 ubuntu-squid2 kernel: [623304.695653]  CIFS VFS: Write2 ret -11, wrote 0
May 28 18:03:08 ubuntu-squid2 kernel: [623304.696709]  CIFS VFS: No response to cmd 47 mid 55301
May 28 18:03:08 ubuntu-squid2 kernel: [623304.696715]  CIFS VFS: Write2 ret -11, wrote 0
May 28 18:03:10 ubuntu-squid2 kernel: [623306.677723]  CIFS VFS: Write2 ret -11, wrote 0
May 28 18:03:10 ubuntu-squid2 kernel: [623306.691224]  CIFS VFS: Write2 ret -9, wrote 0
May 28 18:03:10 ubuntu-squid2 kernel: [623306.808990]  CIFS VFS: Send error in Close = -9
May 28 18:03:10 ubuntu-squid2 kernel: [623306.809774]  CIFS VFS: Send error in Close = -9
May 28 18:03:10 ubuntu-squid2 kernel: [623306.810450]  CIFS VFS: Send error in Close = -9
May 28 18:03:10 ubuntu-squid2 kernel: [623306.811258]  CIFS VFS: Send error in Close = -9
May 28 18:03:10 ubuntu-squid2 kernel: [623306.811942]  CIFS VFS: Send error in Close = -9
May 28 18:03:10 ubuntu-squid2 kernel: [623306.812609]  CIFS VFS: Send error in Close = -9
May 28 18:03:10 ubuntu-squid2 kernel: [623306.816633]  CIFS VFS: Send error in Close = -9
May 28 18:03:10 ubuntu-squid2 kernel: [623306.817829]  CIFS VFS: Send error in Close = -9
May 28 18:03:10 ubuntu-squid2 kernel: [623306.998759]  CIFS VFS: Send error in Close = -9
May 28 18:03:12 ubuntu-squid2 kernel: [623308.800953]  CIFS VFS: Send error in Close = -9
May 28 18:03:12 ubuntu-squid2 kernel: [623308.801858]  CIFS VFS: Send error in Close = -9
May 28 18:03:12 ubuntu-squid2 kernel: [623308.803931]  CIFS VFS: Send error in Close = -9
May 28 20:06:37 ubuntu-squid2 kernel: [630702.744998]  CIFS VFS: server not responding
May 28 20:06:37 ubuntu-squid2 kernel: [630702.745019]  CIFS VFS: No response to cmd 46 mid 25601
May 28 20:06:37 ubuntu-squid2 kernel: [630702.745027]  CIFS VFS: Send error in read = -11
May 28 20:06:43 ubuntu-squid2 kernel: [630708.938589]  CIFS VFS: No response to cmd 47 mid 25600
May 28 20:06:43 ubuntu-squid2 kernel: [630708.938613]  CIFS VFS: Write2 ret -11, wrote 0
May 28 20:06:43 ubuntu-squid2 kernel: [630709.016277]  CIFS VFS: Write2 ret -11, wrote 0
May 28 20:06:47 ubuntu-squid2 kernel: [630712.665185]  CIFS VFS: Send error in Close = -9
May 28 20:06:47 ubuntu-squid2 kernel: [630712.666851]  CIFS VFS: Send error in Close = -9
May 28 20:06:47 ubuntu-squid2 kernel: [630712.668491]  CIFS VFS: Send error in Close = -9
May 28 20:06:47 ubuntu-squid2 kernel: [630712.669432]  CIFS VFS: Send error in Close = -9
May 28 20:06:47 ubuntu-squid2 kernel: [630712.670158]  CIFS VFS: Send error in Close = -9
May 28 20:06:47 ubuntu-squid2 kernel: [630712.670952]  CIFS VFS: Send error in Close = -9
May 28 20:06:47 ubuntu-squid2 kernel: [630712.671666]  CIFS VFS: Send error in Close = -9
May 28 20:06:57 ubuntu-squid2 kernel: [630722.990778]  CIFS VFS: Send error in Close = -9
May 28 20:06:57 ubuntu-squid2 kernel: [630723.021206]  CIFS VFS: Send error in Close = -9
May 28 20:06:57 ubuntu-squid2 kernel: [630723.030701]  CIFS VFS: Send error in Close = -9
May 28 20:06:57 ubuntu-squid2 kernel: [630723.032759]  CIFS VFS: Send error in Close = -9
May 28 20:06:57 ubuntu-squid2 kernel: [630723.088765]  CIFS VFS: Send error in Close = -9
May 28 20:06:57 ubuntu-squid2 kernel: [630723.104688]  CIFS VFS: Send error in Close = -9
May 28 20:06:58 ubuntu-squid2 kernel: [630723.767114] Status code returned 0xc0000008 NT_STATUS_INVALID_HANDLE
May 28 20:06:58 ubuntu-squid2 kernel: [630723.767129]  CIFS VFS: Send error in read = -9
May 28 20:06:58 ubuntu-squid2 kernel: [630724.069174]  CIFS VFS: Send error in Close = -9
May 28 20:06:59 ubuntu-squid2 kernel: [630725.242832] Status code returned 0xc0000008 NT_STATUS_INVALID_HANDLE
May 28 20:06:59 ubuntu-squid2 kernel: [630725.242848]  CIFS VFS: Send error in read = -9
May 28 20:06:59 ubuntu-squid2 kernel: [630725.244136] Status code returned 0xc0000008 NT_STATUS_INVALID_HANDLE
May 28 20:06:59 ubuntu-squid2 kernel: [630725.244142]  CIFS VFS: Send error in read = -9
May 28 20:06:59 ubuntu-squid2 kernel: [630725.246802]  CIFS VFS: Send error in Close = -9
May 28 21:15:36 ubuntu-squid2 kernel: [634836.103254]  CIFS VFS: server not responding
May 28 21:15:36 ubuntu-squid2 kernel: [634836.103283]  CIFS VFS: No response for cmd 50 mid 54018
May 28 21:15:41 ubuntu-squid2 kernel: [634840.709225]  CIFS VFS: No response to cmd 47 mid 54017
May 28 21:15:41 ubuntu-squid2 kernel: [634840.709249]  CIFS VFS: Write2 ret -11, wrote 0
May 28 21:15:41 ubuntu-squid2 kernel: [634840.933319]  CIFS VFS: Write2 ret -11, wrote 0
May 28 21:15:42 ubuntu-squid2 kernel: [634842.438332]  CIFS VFS: Send error in Close = -9
May 28 21:15:42 ubuntu-squid2 kernel: [634842.439220]  CIFS VFS: Send error in Close = -9
May 28 21:15:42 ubuntu-squid2 kernel: [634842.440525]  CIFS VFS: Send error in Close = -9
May 28 21:15:42 ubuntu-squid2 kernel: [634842.441542]  CIFS VFS: Send error in Close = -9
May 28 21:15:43 ubuntu-squid2 kernel: [634842.984735]  CIFS VFS: Send error in Close = -9
May 28 21:15:43 ubuntu-squid2 kernel: [634842.985963]  CIFS VFS: Send error in Close = -9
May 28 21:15:43 ubuntu-squid2 kernel: [634842.986713]  CIFS VFS: Send error in Close = -9
May 28 21:15:43 ubuntu-squid2 kernel: [634842.987439]  CIFS VFS: Send error in Close = -9
Примонтированы 2 шары с win2k сервера, на которые качаются торренты

sudo mount -o smbfs //1.2.3.4/pub/ /media/pub/ -o user=user,password=password,uid=linuxuser,gid=linuxuser,dir_mode=0770,file_mode=0660,iocharset=utf8
В чем причина?.. CIFS смертельно подавился?.. Если да, как можно этого избежать в будущем? Физически ubuntu и w2k находятся в одной серверной стойке, на виртуальных машинах, т.е. с сетью вроде как проблем быть не должно.

16.04.1 4.4.0-59-generic x86_64 GNU/Linux

Having issues getting my persistent network shares to mount in Ubuntu, here is what ive added to /etc/fstab

//192.168.2.10/AlphaData_GlobalShare  /media/AlphaData  cifs  credentials=/root/.smbcredentials,iocharset=utf8,uid=1001,gid=1001,vers=3.0,sec=ntlm  0  0
//192.168.2.10/AlphaMedia_GlobalShare  /media/AlphaMedia  cifs  credentials=/root/.smbcredentials,iocharset=utf8,uid=1001,gid=1001,vers=3.0,sec=ntlm  0  0
//192.168.2.10/VMRoot_GlobalShare  /media/VMRoot  cifs 
credentials=/root/.smbcredentials,iocharset=utf8,uid=1001,gid=1001,vers=3.0,sec=ntlm  0  0

Here is the error i get for sudo mount -a

mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

And here are the logs

Oct 20 09:49:20 ubuntudocker kernel: [ 2150.545771] CIFS VFS: cifs_mount failed w/return code = -22
Oct 20 09:52:55 ubuntudocker kernel: [ 2365.006778] CIFS VFS: Unable to select appropriate authentication method!
Oct 20 09:52:55 ubuntudocker kernel: [ 2365.006780] CIFS VFS: Send error in SessSetup = -22
Oct 20 09:52:55 ubuntudocker kernel: [ 2365.007569] CIFS VFS: cifs_mount failed w/return code = -22
Oct 20 09:53:00 ubuntudocker kernel: [ 2370.037292] CIFS VFS: Unable to select appropriate authentication method!
Oct 20 09:53:00 ubuntudocker kernel: [ 2370.037294] CIFS VFS: Send error in SessSetup = -22
Oct 20 09:53:00 ubuntudocker kernel: [ 2370.038419] CIFS VFS: cifs_mount failed w/return code = -22
Oct 20 09:53:05 ubuntudocker kernel: [ 2375.077100] CIFS VFS: Unable to select appropriate authentication method!
Oct 20 09:53:05 ubuntudocker kernel: [ 2375.077102] CIFS VFS: Send error in SessSetup = -22
Oct 20 09:53:05 ubuntudocker kernel: [ 2375.078377] CIFS VFS: cifs_mount failed w/return code = -22

Not sure whats causing the issues here, the shares are hosted on a FreeNAS 11.2-RC1 server, same with the Ubuntu Server VM. Any idea whats causing the issue here?

Thanks

pi@pi:~ $ sudo strace mount //192.168.1.2/data /media/data -o credentials=/home/user/file,dir_mode=0777,file_mode=0777
execve("/bin/mount", ["mount", "//192.168.1.2/data", "/media/data", "-o", "credentials=/root/.smbcredential"...], [/* 14 vars */]) = 0
brk(0)                                  = 0x1c84000
uname({sys="Linux", node="pi", ...})    = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76fb1000
access("/etc/ld.so.preload", R_OK)      = 0
open("/etc/ld.so.preload", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=42, ...}) = 0
mmap2(NULL, 42, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0x76fb0000
close(3)                                = 0
open("/usr/lib/arm-linux-gnueabihf/libarmmem.so", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF1113(1h5004"..., 512) = 512
lseek(3, 17960, SEEK_SET)               = 17960
read(3, ""..., 960) = 960
lseek(3, 17696, SEEK_SET)               = 17696
read(3, "A.aeabi1$05666101t1n3f122424"..., 47) = 47
fstat64(3, {st_mode=S_IFREG|0644, st_size=18920, ...}) = 0
mmap2(NULL, 83236, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76f6f000
mprotect(0x76f74000, 61440, PROT_NONE)  = 0
mmap2(0x76f83000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x76f83000
mprotect(0x7ea3b000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0
close(3)                                = 0
munmap(0x76fb0000, 42)                  = 0
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=74899, ...}) = 0
mmap2(NULL, 74899, PROT_READ, MAP_PRIVATE, 3, 0) = 0x76f5c000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/arm-linux-gnueabihf/libmount.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF1113(1340q004"..., 512) = 512
lseek(3, 243772, SEEK_SET)              = 243772
read(3, ""..., 1120) = 1120
lseek(3, 243468, SEEK_SET)              = 243468
read(3, "A0aeabi1&05666101t1n222423124"..., 49) = 49
fstat64(3, {st_mode=S_IFREG|0644, st_size=244892, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76fb0000
mmap2(NULL, 313192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76f0f000
mprotect(0x76f4a000, 61440, PROT_NONE)  = 0
mmap2(0x76f59000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3a000) = 0x76f59000
mmap2(0x76f5b000, 1896, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x76f5b000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/arm-linux-gnueabihf/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF1113(1364G004"..., 512) = 512
lseek(3, 111680, SEEK_SET)              = 111680
read(3, ""..., 1080) = 1080
lseek(3, 111396, SEEK_SET)              = 111396
read(3, "A.aeabi1$05666101t1n222424125"..., 47) = 47
fstat64(3, {st_mode=S_IFREG|0644, st_size=112760, ...}) = 0
mmap2(NULL, 183460, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76ee2000
mprotect(0x76efd000, 61440, PROT_NONE)  = 0
mmap2(0x76f0c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x76f0c000
mmap2(0x76f0e000, 3236, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x76f0e000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/arm-linux-gnueabihf/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF1113(1L2041004"..., 512) = 512
lseek(3, 1239936, SEEK_SET)             = 1239936
read(3, ""..., 2840) = 2840
lseek(3, 1236500, SEEK_SET)             = 1236500
read(3, "A.aeabi1$05666101t1n222423124"..., 47) = 47
fstat64(3, {st_mode=S_IFREG|0755, st_size=1242776, ...}) = 0
mmap2(NULL, 1312152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76da1000
mprotect(0x76ecc000, 65536, PROT_NONE)  = 0
mmap2(0x76edc000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12b000) = 0x76edc000
mmap2(0x76edf000, 9624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x76edf000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/arm-linux-gnueabihf/libblkid.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF1113(1pM004"..., 512) = 512
lseek(3, 218756, SEEK_SET)              = 218756
read(3, ""..., 1120) = 1120
lseek(3, 218452, SEEK_SET)              = 218452
read(3, "A0aeabi1&05666101t1n222423124"..., 49) = 49
fstat64(3, {st_mode=S_IFREG|0644, st_size=219876, ...}) = 0
mmap2(NULL, 288188, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76d5a000
mprotect(0x76d8e000, 61440, PROT_NONE)  = 0
mmap2(0x76d9d000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x33000) = 0x76d9d000
mmap2(0x76da0000, 1468, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x76da0000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/arm-linux-gnueabihf/libpcre.so.3", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF1113(100420004"..., 512) = 512
lseek(3, 401744, SEEK_SET)              = 401744
read(3, ""..., 1040) = 1040
lseek(3, 401436, SEEK_SET)              = 401436
read(3, "A.aeabi1$05666101t1n222424125"..., 47) = 47
fstat64(3, {st_mode=S_IFREG|0644, st_size=402784, ...}) = 0
mmap2(NULL, 467028, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76ce7000
mprotect(0x76d49000, 61440, PROT_NONE)  = 0
mmap2(0x76d58000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x61000) = 0x76d58000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/arm-linux-gnueabihf/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF1113(1220t004"..., 512) = 512
lseek(3, 8660, SEEK_SET)                = 8660
read(3, ""..., 1160) = 1160
lseek(3, 8328, SEEK_SET)                = 8328
read(3, "A0aeabi1&05666101t1n222423124"..., 49) = 49
fstat64(3, {st_mode=S_IFREG|0644, st_size=9820, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76faf000
mmap2(NULL, 73912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76cd4000
mprotect(0x76cd6000, 61440, PROT_NONE)  = 0
mmap2(0x76ce5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x76ce5000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/arm-linux-gnueabihf/libuuid.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF1113(1417004"..., 512) = 512
lseek(3, 12836, SEEK_SET)               = 12836
read(3, ""..., 1160) = 1160
lseek(3, 12528, SEEK_SET)               = 12528
read(3, "A.aeabi1$05666101t1n222424125"..., 47) = 47
fstat64(3, {st_mode=S_IFREG|0644, st_size=13996, ...}) = 0
mmap2(NULL, 78080, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76cc0000
mprotect(0x76cc3000, 61440, PROT_NONE)  = 0
mmap2(0x76cd2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x76cd2000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/arm-linux-gnueabihf/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF1113(1lY004"..., 512) = 512
lseek(3, 120788, SEEK_SET)              = 120788
read(3, ""..., 1520) = 1520
lseek(3, 86420, SEEK_SET)               = 86420
read(3, "A0aeabi1&05666101t1n222423124"..., 49) = 49
fstat64(3, {st_mode=S_IFREG|0755, st_size=122308, ...}) = 0
mmap2(NULL, 160316, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76c98000
mprotect(0x76cac000, 65536, PROT_NONE)  = 0
mmap2(0x76cbc000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x76cbc000
mmap2(0x76cbe000, 4668, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x76cbe000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76fae000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76fad000
set_tls(0x76fae810, 0x76fad008, 0x76fb4050, 0x76fae810, 0x76fb4050) = 0
mprotect(0x76edc000, 8192, PROT_READ)   = 0
mprotect(0x76cbc000, 4096, PROT_READ)   = 0
mprotect(0x76cd2000, 4096, PROT_READ)   = 0
mprotect(0x76ce5000, 4096, PROT_READ)   = 0
mprotect(0x76d58000, 4096, PROT_READ)   = 0
mprotect(0x76d9d000, 8192, PROT_READ)   = 0
mprotect(0x76f0c000, 4096, PROT_READ)   = 0
mprotect(0x76f59000, 4096, PROT_READ)   = 0
mprotect(0x76f6f000, 20480, PROT_READ|PROT_WRITE) = 0
mprotect(0x76f6f000, 20480, PROT_READ|PROT_EXEC) = 0
cacheflush(0x76f6f000, 0x76f74000, 0, 0x15, 0x7ea3b2f0) = 0
mprotect(0x27000, 4096, PROT_READ)      = 0
mprotect(0x76fb3000, 4096, PROT_READ)   = 0
munmap(0x76f5c000, 74899)               = 0
set_tid_address(0x76fae3b8)             = 1089
set_robust_list(0x76fae3c0, 12)         = 0
rt_sigaction(SIGRTMIN, {0x76c9d434, [], SA_RESTORER|SA_SIGINFO, 0x76dd01a0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x76c9d2d8, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x76dd01a0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
statfs64("/sys/fs/selinux", 88, 0x7ea3b650) = -1 ENOENT (No such file or directory)
statfs64("/selinux", 88, 0x7ea3b650)    = -1 ENOENT (No such file or directory)
brk(0)                                  = 0x1c84000
brk(0x1ca5000)                          = 0x1ca5000
open("/proc/filesystems", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76fac000
read(3, "nodevtsysfsnnodevtrootfsnnodevtr"..., 1024) = 340
read(3, "", 1024)                       = 0
close(3)                                = 0
munmap(0x76fac000, 4096)                = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1607744, ...}) = 0
mmap2(NULL, 1607744, PROT_READ, MAP_PRIVATE, 3, 0) = 0x76b0f000
close(3)                                = 0
getuid32()                              = 0
geteuid32()                             = 0
lstat64("/192.168.1.2", 0x7ea3b3c0)     = -1 ENOENT (No such file or directory)
stat64("//192.168.1.2/data", 0x7ea3b3f0) = -1 ENOENT (No such file or directory)
lstat64("/media", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/media/data", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("//192.168.1.2/data", F_OK)      = -1 ENOENT (No such file or directory)
stat64("/sbin/mount.cifs", {st_mode=S_IFREG|S_ISUID|0755, st_size=34536, ...}) = 0
getuid32()                              = 0
geteuid32()                             = 0
getgid32()                              = 0
getegid32()                             = 0
prctl(PR_GET_DUMPABLE)                  = 1
getuid32()                              = 0
geteuid32()                             = 0
getgid32()                              = 0
getegid32()                             = 0
prctl(PR_GET_DUMPABLE)                  = 1
stat64("/run", {st_mode=S_IFDIR|0755, st_size=760, ...}) = 0
lstat64("/etc/mtab", {st_mode=S_IFLNK|0777, st_size=12, ...}) = 0
lstat64("/run/mount/utab", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
open("/run/mount/utab", O_RDWR|O_CREAT|O_LARGEFILE|O_CLOEXEC, 0644) = 3
close(3)                                = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x76fae3b8) = 1091
wait4(-1, mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[{WIFEXITED(s) && WEXITSTATUS(s) == 32}], 0, NULL) = 1091
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1091, si_uid=0, si_status=32, si_utime=0, si_stime=1} ---
close(1)                                = 0
close(2)                                = 0
exit_group(32)                          = ?
+++ exited with 32 +++

[свернуть]

Понравилась статья? Поделить с друзьями:
  • Cifs mount error 112 host is down
  • Cid font dictionary error
  • Ciblockelement add error
  • Ci модуль ошибка нет доступа
  • Cisco anyconnect secure gateway internal error