Меню

Ошибка mount error 115

  • Печать

Страницы: [1] 2  Все   Вниз

Тема: Ошибка при монтировании — mount error(115)  (Прочитано 3656 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
luckos

Всем привет! Есть такая вот задача. На рабочем ПК стоит Win 7. Там у нас через Kerio VPN прикручены сетевые диски.
Поставил рядом Ubuntu и хочу эти самые диски запустить и здесь.
Но не получается!
Наш сисадмин на аутсорсе не соображает по Linux вообще (либо прикидывается — что маловероятно).

В общем, с Kerio VPN я с горем пополам разобрался.
Дошло дело непосредственно до монтирования диска. Указываю все данные

sudo mount -t cifs //адрес/папка /media/папка -o user=user,password=pass,iocharset=utf8

 — и получаю ошибку

Похожих тем на форуме не нашел…есть одна, но там решение так и не найдено и ошибка несколького другого плана.

Вопрос: кто сталкивался? Что делать?

« Последнее редактирование: 21 Февраля 2019, 05:38:55 от luckos »

Месье, женеманшпа сись жур


Оффлайн
ALiEN175

ping -c4 addressНаймите грамотного админа.

« Последнее редактирование: 21 Февраля 2019, 05:58:46 от ALiEN175 »

ASUS P5K-C :: Intel Xeon E5450 @ 3.00GHz :: 8 GB DDR2 :: Radeon R7 260X :: XFCE
ACER 5750G :: Intel Core i5-2450M @ 2.50GHz :: 6 GB DDR3 :: GeForce GT 630M :: XFCE


Оффлайн
luckos

Нашел весьма рациональную мысль — посмотреть логи (http://www.shinli.com/?p=53)
/var/log/syslog
И что было?

Далее указываю при монтировании дополнительно «….vers=1.0» — все равно подключения нет. Проверил логи:

ALiEN175, сделал

« Последнее редактирование: 22 Февраля 2019, 07:47:05 от luckos »

Месье, женеманшпа сись жур


Оффлайн
SergeyIT

luckos, сделай
ping -c4 127.0.0.1
и посмотри разницу

Извините, я все еще учусь


Оффлайн
luckos

SergeyIT, сделал, а о чем это говорит? у меня недостаток квалификации, чтобы понять.
Сначала сделал то, что ты сказал, потом пинг нашего адреса.

Месье, женеманшпа сись жур


Оффлайн
Morisson


Оффлайн
luckos

Morisson, спасибо спасибо

Месье, женеманшпа сись жур


Оффлайн
DimanBG

Дошло дело непосредственно до монтирования диска.

А ты не пробовал просто взять в Наулилусе и подключится.


Оффлайн
Morisson

Я так и делаю) Ну мож у человека гуя нет.


Оффлайн
SergeyIT

Так у него не пингуется даже  :-

Извините, я все еще учусь


Оффлайн
ALiEN175

у меня недостаток квалификации

Найдите того, у кого квалификация повыше. Изучить информатику парой постов на форуме — нереально.

« Последнее редактирование: 23 Февраля 2019, 18:03:41 от ALiEN175 »

ASUS P5K-C :: Intel Xeon E5450 @ 3.00GHz :: 8 GB DDR2 :: Radeon R7 260X :: XFCE
ACER 5750G :: Intel Core i5-2450M @ 2.50GHz :: 6 GB DDR3 :: GeForce GT 630M :: XFCE


Оффлайн
DimanBG

Так у него не пингуется даже  :-

Да х.з что он там пингует. 


Оффлайн
ALiEN175

Может сервер блочит ICMP. Без внятного объяснения ситуации — это разговор глухого с немым. 


Пользователь добавил сообщение 22 Февраля 2019, 22:11:52:


В общем, с Kerio VPN я с горем пополам разобрался.

А может Kerio VPN что-то блочит.  Вариантов — масса.

« Последнее редактирование: 22 Февраля 2019, 22:11:52 от ALiEN175 »

ASUS P5K-C :: Intel Xeon E5450 @ 3.00GHz :: 8 GB DDR2 :: Radeon R7 260X :: XFCE
ACER 5750G :: Intel Core i5-2450M @ 2.50GHz :: 6 GB DDR3 :: GeForce GT 630M :: XFCE


Оффлайн
luckos

А ты не пробовал

пробовал


Пользователь добавил сообщение 24 Февраля 2019, 09:26:27:


Ну мож у человека гуя нет.

остроумно


Пользователь добавил сообщение 24 Февраля 2019, 09:27:53:


ALiEN175, ок

P.S. Всем спасибо, особенно хохмачам. Вам такой же помощи только могу пожелать. Вопрос не решен.

« Последнее редактирование: 24 Февраля 2019, 09:30:47 от luckos »

Месье, женеманшпа сись жур


Оффлайн
ALiEN175

nmblookup -A IP

smbclient -L IP?

« Последнее редактирование: 24 Февраля 2019, 10:01:39 от ALiEN175 »

ASUS P5K-C :: Intel Xeon E5450 @ 3.00GHz :: 8 GB DDR2 :: Radeon R7 260X :: XFCE
ACER 5750G :: Intel Core i5-2450M @ 2.50GHz :: 6 GB DDR3 :: GeForce GT 630M :: XFCE


  • Печать

Страницы: [1] 2  Все   Вверх

Mount error 115 on some shares — the LEM upgrade process where you are ask to specify a network share location containing

PROBLEM:

Mount error 115 on some shares? (LINUX)

SOLUTION 1:

  • Running debian wheezy on a virtual machine and trying to mount some shares from the win8.1 host.

bash code

//192.168.0.10/dir1 /home/user/dir1 cifs credentials=/root/.secret.pwd,uid=1000,gid=1000,file_mode=0777,dir_mode=0777,iocharset=utf8,sec=ntlm 0 0
//192.160.0.10/dir2 /home/user/dir2 cifs credentials=/root/.secret.pwd,uid=1000,gid=1000,file_mode=0777,dir_mode=0777,iocharset=utf8,sec=ntlm 0 0
//192.160.0.10/dir3 /home/user/dir3 cifs credentials=/root/.secret.pwd,uid=1000,gid=1000,file_mode=0777,dir_mode=0777,iocharset=utf8,sec=ntlm 0 0

  • The first share gets mounted correctly, but not the other two.
  • This is the output we get when sudo-ing a mount -a:

Code:

bash code

mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

and this is what /var/log/syslog shows:

Code:

bash code

Mar 24 12:56:12 hostname kernel: [ 1887.029043] CIFS VFS: Error connecting to socket. Aborting operation
Mar 24 12:56:12 hostname kernel: [ 1887.030013] CIFS VFS: cifs_mount failed w/return code = -115
Mar 24 12:56:22 hostname kernel: [ 1897.052130] CIFS VFS: Error connecting to socket. Aborting operation
Mar 24 12:56:22 hostname kernel: [ 1897.053885] CIFS VFS: cifs_mount failed w/return code = -115

  • The same happens at boot time.

Now, we run manually :

Code:

bash code

sudo mount //192.168.0.10/dir2 /home/user/dir2 -t cifs -o credentials=/root/.secret.pwd,uid=1000,gid=1000

SOLUTION 2:

mount error(115): Operation now in progress … CIFS VFS: cifs_mount failed w/return code = -115

  • Trying to mount a CIFS path in Ubuntu and getting:
  • mount error(115): Operation now in progress
  • Try to look this /var/log/syslog:

bash code

Feb  9 14:08:29 ldap kernel: [143452.140157] CIFS VFS: Error connecting to socket. Aborting operation
Feb  9 14:08:29 ldap kernel: [143452.140492] CIFS VFS: cifs_mount failed w/return code = -115

  • Socket error, we know what this is right? IP or port. Ping for domain/IP or Telnet to test port:

bash code

ping IP
telnet IP 445

  • Telnet was timing out, port closed for IP in firewall.

SOLUTION 3:

LEM mount error(115): Operation now in progress

Overview

  • This article describes an error during the LEM upgrade process where you are asked to specify a network share location containing upgrade files.
  • After entering the network share as \hostnamesharename and the username and password, LEM throws this error and will fail the upgrade process:

Mount error(115): Operation now in progress

Cause

  • A network name resolution failing on the smb client in LEM.

Resolution

  • Check ICMP connectivity (ping) between the hosts.
  • Attempt to mount a share on the same subnet as LEM.
  • Attempt to use the IP address and a simple share name when mounting the share.

e.g. \10.1.1.1lem rather than \some_host_some_place_on_the_networkthis_share.name_desktop_special_unique_and_long

What happened:
A pod unable to attach or mount volumes

The error:
Warning FailedMount 15s kubelet, aks-nodepool1-* (combined from similar events): MountVolume.SetUp failed for volume «pvc-» : mount failed: exit status 32
Mounting command: systemd-run
Mounting arguments: —description=Kubernetes transient mount for /var/lib/kubelet/pods/
—scope — mount -t cifs -o cache=none,dir_mode=0777,file_mode=0777,gid=1000,mfsymlinks,nobrl,uid=1000,username=,password=,vers=3.0 //.file.core.windows.net/kubernetes-dynamic-pvc- /var/lib/kubelet/pods/1*/volumes/kubernetes.io~azure-file/pvc-*
Output: Running scope as unit run-*.scope.
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

How to reproduce it (as minimally and precisely as possible):

StorageClass:

kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: azurefile
provisioner: kubernetes.io/azure-file
mountOptions:
  - dir_mode=0777
  - file_mode=0777
  - uid=1000
  - gid=1000
  - mfsymlinks
  - nobrl
  - cache=none
parameters:
  skuName: Standard_LRS

PVC

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: azure-managed-disk-upload
  namespace: lego
spec:
  accessModes:
  - ReadWriteMany
  storageClassName: azurefile
  resources:
    requests:
      storage: 500Mi

PV:

NAME                                       CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM                              STORAGECLASS   REASON   AGE
pvc-4641a509-ccfa-4e2a-95b6-a43f6cbeed14   1Gi        RWX            Delete           Bound    lego/azure-managed-disk-upload     azurefile               13d

Anything else we need to know?:
Storage and Nodes are in the same region.
The nodes are in a Virtual Network
We haven’t enabled TCP 445 in our firewall, it is not clear from the documentation if is required.
The documentation we followed:
https://docs.microsoft.com/en-us/azure/aks/limit-egress-traffic#required-ports-and-addresses-for-aks-clusters
The troubleshoot documentation:
https://docs.microsoft.com/en-us/azure/storage/files/storage-troubleshoot-linux-file-connection-problems

Environment:

  • Kubernetes version:
    Client Version: version.Info{Major:»1″, Minor:»16″, GitVersion:»v1.16.0″, GitCommit:»2bd9643cee5b3b3a5ecbd3af49d09018f0773c77″, GitTreeState:»clean», BuildDate:»2019-09-18T14:36:53Z», GoVersion:»go1.12.9″, Compiler:»gc», Platform:»linux/amd64″}
    Server Version: version.Info{Major:»1″, Minor:»16″, GitVersion:»v1.16.7″, GitCommit:»1fc58d90cc4bc569394d9a882522adcb99fbaa57″, GitTreeState:»clean», BuildDate:»2020-04-03T15:20:08Z», GoVersion:»go1.13.6″, Compiler:»gc», Platform:»linux/amd64″}
  • Size of cluster: 3
  • General description of workloads in the cluster: Python Flask
  • Others: Node OS Ubuntu 16.04

I’m having an issue mounting a shared NAS drive that is hosted on a Windows 2000 server. This is a drive that I’m certain I have access to, and I frequently access it from a Windows 7 machine and a Windows Server 2008 machine. Now, I’m attempting to mount this drive from a RHEL7 machine, but I’m having some issues.

What I’ve done:

mkdir /mnt/neededFolder
mount -t cifs //DNS.forMyDrive.stuff/neededFolder /mnt/neededFolder -o username=myUserId,password=myPassword,domain=myDomain

What I expected:
I expected to be able to access the folder at /mnt/neededFolder

What actually happened:
The error I’m receiving (partially shown in the subject line here) is

mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

What the log says:

dmesg output:

[1712257.661259] CIFS VFS: Error connecting to socket. Aborting operation.
[1712257.662098] CIFS VFS: cifs_mount failed w/return code = -115

We can all see that there is a connection issue, that is obvious. I know both machines are connected to the network. What can I try next to get this drive mounted?

EDIT: It may be worth noting that I am able to ping the DNS name and the raw IP of the remote location that I am trying to mount.

I have a Windows 10 share that I need to access from a Ubuntu 16.04.3 machine. I created /media/sharefolder on the ubuntu box, and shared //WINDOWSMACHINE/sharename (with «Everyone» full access permissions, «Everyone» full access security settings).

My /etc/fstab line is this

//WINDOWSMACHINE/sharename /media/sharefolder cifs uid=me,credentials=/home/me/.smbcredentials,iocharset=utf8 0 0

However, the share does not work:

  • sudo mount -a returns «mount error(115): Operation now in progress»
  • syslog errors:
    CIFS VFS: Error connecting to socket. Aborting operation.
    CIFS VFS: cifs_mount failed w/return code = -115

Here’s what I’ve tried

  • Why is my machine unable to mount my SMB drives («CIFS VFS: Error connecting to socket. Aborting operation», return code -115)? — disabled windows machine firewall, checked iptables and hosts.deny (default versions)
  • smbclient -L 1.2.3.4: Connection to 1.2.3.4 failed (Error NT_STATUS_IO_TIMEOUT)
  • https://forums.gentoo.org/viewtopic-t-926114-start-0.html — smbtree -b -N: lists all machines on network except the WINDOWSMACHINE
  • ping WINDOWSMACHINE: successful pings with correct IPs (1.2.3.4)

Any help is much appreciated!

Update: This configuration used to work fine, until I upgraded from kernel 4.4.0-92 to 4.4.0-93. Not sure if this is incidental or something related to the upgrade.

  • I have a sinalogy diskstation
  • I try to mount a share in debian
  • Throw error (problem is same if vers=1.0, and without vers)
$ mount -t cifs -o username=m.somogyi,vers=2.0 //192.168.0.200/Kozos /mnt/ds1-common/
Password for m.somogyi@//192.168.0.200/Kozos:  ***************
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
  • dmesg
[67709.365595] CIFS VFS: Error connecting to socket. Aborting operation.
[67709.366507] CIFS VFS: cifs_mount failed w/return code = -115
  • list of share is working
# smbclient -L FILESERVER -U m.somogyi
Enter WORKGROUPm.somogyi's password:

        Sharename       Type      Comment
        ---------       ----      -------
...
        Kozos           Disk
...
  • direct IP not working
smbclient -L 192.168.0.200 -U m.somogyi
do_connect: Connection to 192.168.0.200 failed (Error NT_STATUS_IO_TIMEOUT)
  • If I add FILESERVER to /etc/hosts the problem is same
  • Connect to share in windows (7,8,10 etc.) is working correctly
  • system version
$ uname -a
Linux msdebian 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64 GNU/Linux

View previous topic :: View next topic  
Author Message
dufeu
l33t
l33t

Joined: 30 Aug 2002
Posts: 918
Location: US-FL-EST

PostPosted: Thu Jun 07, 2012 11:18 pm    Post subject: cifs: Dealing w/mount error(115): Operation now in progress Reply with quote

I post this tip and its associated observations in the spirit that people trying to solve this problem will find it both helpful and enlightening.

Here is the background scenario:

  • You have a Windows based file share you want to access. This particular example uses WinXP Home as the server.
  • You have a Linux based PC with Samba installed which is your client.
  • You want to use cifs to attach the Windows based file share to your Linux based client.

The message: «mount error(115): Operation now in progress» indicates a failure to attach a Windows based file share using Samba. The following example is typical:

Code:
# mount -t cifs //192.168.0.102/Software /mnt/sweet.softare

Password:

mount error(115): Operation now in progress

Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)



First, let’s make some things clear. If you’ve received this message, then the following is probably true:

  • Samba is properly installed on your client PC.
  • Your Samba configuration settings are probably correct.
  • Your Windows host network settings are probably correct.
  • The Windows based file share is visible and reachable from your client PC.
  • You cannot connect to the shared printer you know is out there.

As far as I can tell, you only get this message if Samba ‘sees’ the share you want but cannot connect to it.

Edit: Point of clarification — In the examples below, you’ll notice I use a domain name of ‘lamasondufeu’. I always make use of a domain name on mixed networks in order to enforce Windows Workgroup naming consistency. By default, Samba will use the domain name of the computer it’s running on as the ‘Windows Workgroup’ unless you explicitly provide one in smb.conf. Also by default, WinXP always uses ‘workgroup’ as it’s value for ‘Windows Workgroup’.

All computers which expect to talk to each other using Windows {cifs based} networking need to either be in the same Workgroup or you need to explicitly which workgroups they are allowed to talk to. Selecting a specific domain name for your network and using that as your Windows Workgroup name makes mixed networks much easier to adminster. Also, it’s considered bad security practice to leave the Windows Workgroup name at it’s default value so this is something you want to change anyway.

It’s always good policy on multi-computer local networks to pick your own domain name and stick with it for that local network. End Edit

Before we run any diagnostics, we can see one immediate problem. Note the prompt for ‘Password:’.

First tip: WinXP Home has no support for password based file shares. Password based file shares are optional for WinXP Professional. In the Windows world, all simple file shares assume there are no username/password pairs. Therefore, the above command was incorrect.

When trying to attach any simple Windows based file shares, you need to add ‘-o guest’ to the mount command. Simple in this case means no password restricted file shares which means no user authentication of any kind. Repeat: All WinXP Home based file share are simple. Most home users of WinXP Professional will also be using simple file shares as will Win 7 users whose file shares are set in WinXP compatibility mode.

The above command should look more like this:

Code:
# mount.cifs —verbose -o «guest,domain=lamasondufu» //192.168.0.100/Software /mnt/sweet.softare

mount.cifs kernel mount options: ip=192.168.0.100,unc=\192.168.0.100Software,guest,ver=1,user=,domain=lamasondufu,pass=********

mount error(115): Operation now in progress

Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)



This command also failed but we were no longer prompted for ‘Password’. Yeah! First problem resolved.

To head off a possible point of confusion, please note that mount -t cifs and mount.cifs are the exactly equivalent. All these examples are cut and pasted from real life.

The first diagnostic we need to run is smbtree. This will confirm everything that’s actually visible on the network from Samba’s point of view. The results should prove:

  • You have Samba correctly installed.
  • What file shares/printers are available for you to attach.

Do not run this diagnostic tool on a network with a lot of PCs. The options you should use are:

Code:
  -b, —broadcast                    Use broadcast instead of using the master browser

  -N, —no-pass                      Don’t ask for a password

These options will run smbtree without the need or confusion to determine who the ‘master browser’ is and restrict the output to simple shares (no password) only.

The following is a typical example from my home network:

Code:
# smbtree -b -N

LAMASONDUFEU

        \SWEET                         Mumzie MS

                \SWEETSoftware       

                \SWEETCanonMX3        Canon MX360 series Printer

                \SWEETSharedDocs     

                \SWEETprint$          Printer Drivers

                \SWEETIPC$            Remote IPC

        \SLIZARD                       Samba 3.6.5

                \SLIZARDHP_PhotoSmart_P1000   HP PhotoSmart P1000

                \SLIZARDPHOTOSMART-P1000      HEWLETT-PACKARD PHOTOSMART P1000

                \SLIZARDIPC$                  IPC Service (Samba 3.6.5)

                \SLIZARDprint$                Printer Drivers

                \SLIZARDPUBROOT       

                \SLIZARDPUB04         

                \SLIZARDPUB03         

                \SLIZARDPUB02         

                \SLIZARDPUB01         

                \SLIZARDLIBRARY       

        \PYROTEKK                      Samba 3.6.5

                \PYROTEKKIPC$                 IPC Service (Samba 3.6.5)

                \PYROTEKKPUBROOT       

                \PYROTEKKPUBLIC         

        \PYRODYNO                      Samba 3.6.5

                \PYRODYNOIPC$                 IPC Service (Samba 3.6.5)

                \PYRODYNOPUBU06         

                \PYRODYNOPUBU05         

                \PYRODYNOPUBU04         

                \PYRODYNOPUBU03         

                \PYRODYNOPUBU02         

                \PYRODYNOPUBU01         

                \PYRODYNOPUBROOT       

                \PYRODYNOPUB02         

                \PYRODYNOPUB01         

                \PYRODYNOPUB00



If you’re on a network with more than a handful of computers, this listing can be quite long. Instead of running smbtree, you can run nmblookup. To run this command, you need an additional bit of information. That information is the IP address of the computer which hosts the file share you want to attach. As you can see from the above mount command, I have this information. There are one option you’ll want to use:

Code:
  -A, —lookup-by-ip                     Do a node status on <name> as an IP Address



This option reduces all the actions needed to perform the query to the barest minimum possible. This is an important point with implications I’ll address further down.

Here is a typical example of the query:

Code:
# nmblookup -A 192.168.1.100

Looking up status of 192.168.1.100

        SWEET           <00> —         M <ACTIVE>

        LAMASONDUFEU    <00> — <GROUP> M <ACTIVE>

        SWEET           <20> —         M <ACTIVE>

        LAMASONDUFEU    <1e> — <GROUP> M <ACTIVE>

        MAC Address = 00-16-76-78-E4-4F



The results show us two things:

  • We have Samba properly installed.
  • The file share host is visible on our network.

Now that we’ve verified Samba is working and that the host is visible, we’re ready to take the next diagnostic step. From both the smbtree and nmblookup commands, we know the Windows name of the host computer is SWEET. We therefore try our mount command using SWEET instead of 192.168.1.100:

Code:
# mount.cifs —verbose -o «guest,domain=lamasondufu» //SWEET/Software /mnt/sweet.softare

mount error: could not resolve address for SWEET: Unknown error



Second Tip: When one computer can’t find another computer by name, then we always punt. In this case, punting means to explicitly set up an entry in our local client’s /etc/hosts file for the target share server:

Code:
# echo «192.168.1.100   SWEET           sweet           sweet.lamasondufeu» >> /etc/hosts



We do this so that we rely upon only our local client and the target share host to establish a connection. It’s part of the bog standard diagnostic process to reduce number of possible failed components to the minimum needed.

Now, we try our mount command again:

Code:
# mount.cifs —verbose -o guest //SWEET/Software /mnt/sweet.softare

mount.cifs kernel mount options: ip=192.168.1.100,unc=\SWEETSoftware,guest,ver=1,user=,pass=********

# df -h

Filesystem                Size  Used Avail Use% Mounted on

rootfs                    369G  299G   52G  86% /

/dev/root                 369G  299G   52G  86% /

devtmpfs                  3.7G     0  3.7G   0% /dev

tmpfs                     3.7G  436K  3.7G   1% /run

shm                       3.7G  724K  3.7G   1% /dev/shm

/dev/sda1                  31M  6.5M   23M  23% /boot

/dev/sdb1                 931G  910G   21G  98% /home

/dev/sda4                 559G  553G  4.2G 100% /pub00

/dev/sdc1                 1.9T  1.8T   39G  98% /pub01

/dev/sdd1                 1.9T  1.8T   34G  99% /pub02

/dev/loop0                9.4G  9.4G     0 100% /mnt/newsf

/dev/sde1                 931G  899G   32G  97% /pubu01

/dev/sdf1                 1.9T  1.8T   20G  99% /pubu02

/dev/sdi1                 1.4T  1.4T   21G  99% /pubu03

/dev/sdj1                 1.9T  1.8T   20G  99% /pubu04

/dev/sdg1                 1.9T  1.8T   40G  98% /pubu05

/dev/sdh1                 1.4T  1.4T   16G  99% /pubu06

192.168.1.199:/home       234G  231G  2.9G  99% /mnt/slizard/home

192.168.1.199:/library    234G   85G  149G  37% /mnt/slizard/library

192.168.1.199:/pub01      931G  913G   17G  99% /mnt/slizard/pub01

192.168.1.199:/pub02      931G  896G   36G  97% /mnt/slizard/pub02

192.168.1.199:/pub03      931G  894G   38G  96% /mnt/slizard/pub03

192.168.1.199:/pub04      931G  909G   23G  98% /mnt/slizard/pub04

192.168.1.199:/pubroot    230G  177G   42G  81% /mnt/slizard/pubroot

192.168.1.197:/home       179G  101G   69G  60% /mnt/pyrotekk/home

192.168.1.197:/pub01      931G  860G   71G  93% /mnt/pyrotekk/pub01

192.168.1.197:/public     1.2T  1.1T   73G  94% /mnt/pyrotekk/public

192.168.1.197:/pubroot    179G  101G   69G  60% /mnt/pyrotekk/pubroot

192.168.1.197:/mnt/temp1  1.4T  1.4T   63G  96% /mnt/pyrotekk/temp1

192.168.1.197:/mnt/temp2  1.4T  1.4T   39G  98% /mnt/pyrotekk/temp2

//SWEET/Software           53G   18G   36G  34% /mnt/sweet.softare



Success!! We can now access file shares and printer shares on the target host computer.

This is not the ideal solution. Rather the ‘name’ of the target share host and its associated IP address is supposed to be already available on our network. Moreover, this is supposed to happen automatically.

Observations:

  • In this case SWEET (as can be seen from the nmblookup results) is the wins master browser on my local network. Yet no name/address association was available. I have had problems in the past with the wins master browser service in mixed environments. Crap happens. I should probably force configure the samba daemon on my internal network’s server (SLIZARD) to be wins master browser.
  • In home networks which use an off the shelf router to connect to the internet, it is my personal observation that local name resolution may not happen. The default configuration of the OTS router is to support DNS service pass through for queries outside of the local lan.
  • As far as I’ve experienced, all distributions perform minimalist configuration installations. This means that these minimal configuration settings may assume working services that are not actually working such as a working wins or dns service.
  • Because of things like local caching (share name and IP being retained across reboots over time), it is possible for one client PC to have no problem with making a share connection while another either loses that ability or is never able to attach the share. Don’t make the mistake of saying one PC is broken because another PC is still works.
  • In fact, said cached information can be lost due to simply performing an upgrade. It’s not that the updated programs are broken. Instead, all the cached values are cleared during the upgrade. If your wins master browser is not working properly, then your wins resolution will never happen.
  • Depending on which machine on your network is the wins master browser and the version of Windows it’s running, the strategy employed to refresh the wins master browser cache can range from stupid to really, really stupid. It is my understanding that after a wins master browser first initializes it’s cache, it won’t walk the local network again looking for new additions. Rather, it expects new additions to the local network to essentially add themselves.
  • Name resolution goes through a descending hierarchy of protocols. The last resort bottom name resolution protocol simply checks the /etc/hosts file. In theory however, explicitly specifying an IP address is supposed to always work too. I’m still surprised that my original mount command did not work. On the other hand, the added entry to the /etc/hosts file did work.
  • In my research for my issue, I encountered another known class of problems which can cause a mount error(115): Operation now in progress message. This is when the same nic (on the target share host) might be using more than one IP address. There are numerous valid circumstances for this including setting up virtual networks and the ability to add USB drives to routers for direct availability of said drives over a local network. In essence, the wins resolver associates the desired name with the wrong IP address.

The bottom line is that if you see a mount error(115): Operation now in progress message when trying to mount any cifs based network share, you most likely have a name resolution problem. Your equipment, software and physical connections are probably all fine. I re-iterate: Don’t simply assume your equipment is broken or an upgrade was faulty or even that your configuration may be incorrect. Things may actually be working as designed.

In my example, lack of an internally available DNS combined with a stupid wins master browser are the root cause.

This episode has enhanced my motivation to build (re-purpose) a custom router again with a proper DNS as well as forcing it to be th wins master browser.

Further Readings

Threads which may be of interest in terms of the above discussion and hindsight perspective:

Samba Oddities

cifs-utils: Windows share cannot be mounted anymore after dist-upgrade

Mount Error

Error -115 when mounting share (cifs)

Mounting a Windows computer with two IP addresses
_________________
People whom think M$ is mediocre, don’t know the half of it.

Back to top

View user's profile Send private message

monkeyman
n00b
n00b

Joined: 04 Sep 2013
Posts: 1

PostPosted: Wed Sep 04, 2013 10:45 pm    Post subject: Thanks! Reply with quote

I just wanted to add a brief note to firstly say thanks for the awesome tutorial

I was stumped by this issue for a while, but it turned out in my case that the issue was that there was no return route from the remote server (with the network share) back to the box I was trying to map it from. Adding a static route by running a single command on the server fixed the issue. Check out http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_tcpip_pro_addstaticroute.mspx?mfr=true for an example of how to do this on windows.

Back to top

View user's profile Send private message

jesnow
l33t
l33t

Joined: 26 Apr 2006
Posts: 775

PostPosted: Mon Jan 17, 2022 8:43 pm    Post subject: Reply with quote

In linux (both on client and server), I got this because I hadn’t set the address of my server in /etc/hosts.
Back to top

View user's profile Send private message

Display posts from previous:   

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

I also posted this to Ubuntu forums, but might as well try this too.

My Samba suddenly stopped working.

I have a samba server, called mjolnir, at 192.168.1.22, running ubuntu 14.04, and a client, running Mint 17.1.

Fstab is as follows:

Code: Select all

#SAMBA
//192.168.1.22/ptahome    /home/pekka/pta_mjolnir        cifs    credentials=/home/pekka/.smbcredentials,noexec 0 0
//192.168.1.22/mjolnir-rw    /home/pekka/mjolnir        cifs    credentials=/home/pekka/.smbcredentials,_netdev 0 0
//192.168.1.22/htahome    /home/heli/hta_mjolnir        cifs    credentials=/home/heli/.smbcredentials,_netdev 0 0
//192.168.1.22/music    /media/Music        cifs    guest,_netdev 0 0
//192.168.1.22/pics    /media/Pics        cifs    guest,_netdev 0 0

The samba shares are not mounted at boot. When I try to mount them with «sudo mount -a», I get this:

Code: Select all

pekka@Gungnirmint ~ $ sudo mount -a
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.c

ifs)

Mounting with smbclient also fails:

Code: Select all

pekka@Gungnirmint ~ $ sudo smbclient -L 192.168.1.22 -U pta
Enter pta's password: 
Connection to 192.168.1.22 failed (Error NT_STATUS_IO_TIMEO

UT)

I can ping the server:

Code: Select all

pekka@Gungnirmint ~ $ ping 192.168.1.22
PING 192.168.1.22 (192.168.1.22) 56(84) bytes of data.
64 bytes from 192.168.1.22: icmp_seq=1 ttl=64 time=0.484 ms
64 bytes from 192.168.1.22: icmp_seq=2 ttl=64 time=0.436 ms
64 bytes from 192.168.1.22: icmp_seq=3 ttl=64 time=0.446 ms
^C
--- 192.168.1.22 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.436/0.455/0.484/0.027 m

On the server, testparm gives this:

Code: Select all

Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[music]"
Processing section "[pics]"
Processing section "[mjolnir]"
Processing section "[ptahome]"
Processing section "[pinjahome]"
Processing section "[htahome]"
Processing section "[mjolnir-rw]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions


[global]
    server string = Oxbacka-samba
    map to guest = Bad User
    obey pam restrictions = Yes
    pam password change = Yes
    passwd program = /usr/bin/passwd %u
    passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
    username map = /etc/samba/smbusers
    unix password sync = Yes
    syslog = 0
    log file = /var/log/samba/log.%m
    max log size = 1000
    name resolve order = lmhosts, host, wins, bcast
    dns proxy = No
    idmap config * : backend = tdb
    hosts allow = all

[music]
    path = /home/pta/public/Musaa
    guest ok = Yes

[pics]
    path = /home/pta/public/Kuvia
    guest ok = Yes

[mjolnir]
    path = /mjolnir
    guest ok = Yes

[ptahome]
    comment = Pta-home
    path = /home/pta
    valid users = pta
    read only = No

[pinjahome]
    comment = Pinja-home
    path = /home/pinja
    valid users = pinja
    read only = No

[htahome]
    comment = hta-home
    path = /home/hta
    valid users = hta
    read only = No

[mjolnir-rw]
    comment = Mjolnirw
    path = /mjolnir
    valid users = pta
    read only = No

I recently changed my router, this changed the ip addresses, but I think Samba has worked even after the switch.
Not sure what to try next?

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.

Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Ошибка mount and blade unable to open file
  • Ошибка motorstorg werkstatt volkswagen