- Печать
Страницы: [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 ![]() Joined: 30 Aug 2002 |
|
||||||||||||||||||||||
| Back to top |
|
||||||||||||||||||||||
| monkeyman n00b
Joined: 04 Sep 2013 |
|
||||||||||||||||||||||
| Back to top |
|
||||||||||||||||||||||
| jesnow l33t
Joined: 26 Apr 2006 |
|
||||||||||||||||||||||
| Back to top |
|
||||||||||||||||||||||
|
|
You cannot post new topics 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.
