Cannot connect to my Snake OS NAS with Ubuntu 14.04
Have a strange problem with my new install of Ubuntu 14.04, firstly I cannot browse my (wifi) network through the file system, even though it shows the Windows Network and then MSHOME (the correct network designation), MSHOME is empty. I can link to the different servers on the network by means of Gigolo except for one: a little NAS that runs Snake OS (a cut-down Linux variant) which has a hard drive that holds all the update and transfer data for the network and is the hub of my network. Try as I may I cannot connect to this even though two other Windows XP machines and one notebook that runs Salix Linux OS have no such problems; and my previous install on the same machine Ubuntu 13.10 was fine. Any suggestions for a fix or a work-around?
|
You need to post some useful information.
Can you ping the NAS form the failing system? Have you updated the /etc/hosts file on the failing system? Open a command prompt, run the command 'ifconfig wlan0' ( wlan0 I'm guessing that is the name of your wifi card ) put the correct name in if its not waln0. Post the results here. Are you using static IP addresses or are you using DHCP? Are all the devices on the same sub-net? |
Thanks for the response.
Here are what I know or have found. Quote:
Quote:
This is the contents of that file: (are those IP addresses correct?) Code:
127.0.0.1 localhost Quote:
Code:
paul@Hermes-III:~$ ifconfig wlan0 Quote:
Quote:
Paul. |
Most things look normal. Thank-you for your detailed answers.
First of all, you might benefit from updating the 'hosts' file on each system, unless you are running your own DNS server. On a linux system you will find the file in the /etc directory. This file is a simple text file listing host names and IP addresses. It is used by the kernel to route packets if the DNS service does not know where the target IP address is. It saves the user from needing to know IP addresses. Depending how your windoze networking is configured, it may be using names to find targets in your network. The host file. Here are few lines from mine, as an example. Quote:
Quote:
Can you tell us what kind of program 'Gigolo' is? Not at all familiar with it. Since this seems to be a samba problem, can you post the configuration for your server? I have a NAS, I connect to it with ssh, and configure it. The original code was set up for configuration through a web browser. I found ssh to be much more effective at managing the NAS. Can you connect to the NAS with ssh, or telnet? |
IMHO it is a client not server problem.
You can see shares on every computer on the network except for the NAS box? Have you tried any other means besides Gigolo to view shares on the NAS box? Nautilus, or via console utilities? Try the following command. (Just press enter at the password prompt) You should see the NAS shares. smbclient -L NAS-IP-address |
Thanks for all that.
That is correct, I can see and mount all other shares except the Snake OS NAS box. Anyhow, I tried a few things. Included the IP addresses into the "hosts" file as suggested above, although I only entered the host's name once unlike the example, because I could not understand as to why this was entered twice and in that case what the correct format should be. I used the network names that came up on a Windows Network Scanner on my Windows XP machine to ensure I had the syntax and capitalization right. Anyhow, this appear to have changed nothing. I also did an "smbclient -I--192.168.1.3" to see if the little NAS (server gwydion) could be seen by Samba and that seemed happy. No timeouts, nothing. Then I tried to connect and I got this: Code:
Failed to mount Windows share: connection timed out I am still a little baffled by it all. I have provided below my "smb.conf" file with the comments removed to make it a little less unwieldy, in case that harbors the problem and needs changing: Code:
#### Debugging/Accounting #### Paul. |
Quote:
As far as the format, it is a plain text file, up to three columns per entry. The first column, is the IP address of one system. Next is the domain name example duelie.cliffshome.org and the last column is an alias. It can be a shorter name you wish to refer to the machine by, for example 'duelie'. In the case of the domain name, a short name also works just fine. You do not need to provide an alias though. I'm no expert when it comes to samba. That said, it looks like you are trying to implement pam. I have never used it, so I don't know anything about it. There are some things you can try. First of all, here is the way I config my servers. Quote:
Quote:
Possibly others will be able to spot another thing you can try? Hope this helps. |
Quote:
You should see something similar to Quote:
|
Some progress but still no NAS access.
Hello camorri, your suggested additions to my smb.conf did work, I can now see the hosts under the Ubuntu file manager "Browse Network", which I could not before; although the little NAS is also shown there, I cannot open it, it still times out; but I can open all the other hosts and look at and open their shares, copy files, etc. So that is a little progress in this puzzling saga.
I have listed the "hosts" file here, I hope this is now correct; "merlin" is the name of the network. Code:
127.0.0.1 localhost Code:
#======================= Global Settings ======================= |
Hello michaelk
Quote:
Obviously there is a problem. I still wonder whether it is a timing problem (timing set too short) that prevents the shares from being mounted. But of course I am only guessing and at any rate I would not have a clue how to fix this. So any help would be greatly appreciated. As you can see from my other reply, we made some progress but being able to connect to the little NAS remains elusive. Thanking you, Paul. |
Quote:
The use of the /etc/hosts file is to simplify the need to use IP addresses when the DNS ( Domain Name Server ) does not know the IP addresses of your network. Each entry has to be unique. First of all, from a terminal, to determine what hostname you have set, type hostname and press enter. The system will return the value you have set for hostname. The value returned should be in column 2. Right now, you have several set to merlin. If you typed 'ping merlin' your kernel wouldn't know which merlin to ping. The names should be meaningful to you, and who ever uses your network. What would work is something like this: Quote:
The third column is optional. An alias is just another nick name for the system. If the real hostname of a system is GWYDION, and you find that too difficult to remember, adding an alias like 'dion' would work. Then the line would look like: Quote:
|
Corect Hosts file?
Quote:
So here is the - I hope now correct - code: Code:
127.0.0.1 localhost Just realized I missed your previous question: Quote:
Thanks, Paul. |
Just a quick added note:
I have activated the inbuilt FTP server in the little NAS and found that I could mount and access this fine in Ubuntu 14.04 I can also use Firefox to browse the NAS by means of HTTP. But any attempt to browse it from the file manager still comes up with: Code:
Failed to retrieve share list from server; connection timed out |
This is a problem in the samba server config. First thing I would do, is make a very simple config file. Get that working, and then add what else you need.
I see you have pam in there. That the first thing I would get rid of. Do you really need that on a home network? |
Quote:
But as it stands, we have made some progress. 1. I can now browse all servers on my network from the Ubuntu file system, where before they did not show up. The exception of course is the little NAS (gwydion) which I can see but not open; although FTP from the Ubuntu machine works fine and I can see and copy stuff from the FTP directory to my Ubuntu machine on the little NAS. But I cannot access the NAS from my file system, and thus cannot mount any of its directories. I have changed the setup of the shares in the NAS, but that made no difference, so I doubt the NAS setup is the problem, although its tendency to take time to open may be a problem; but I am only guessing here. 2. Directories on other servers (apart from the NAS) will now mount automatically with Gigolo at boot, without error messages. 3. But some problems remain, as can be seen from the errors shown in the output of smbtree -d3: Code:
paul@Hermes-III:~$ smbtree -d3 Quote:
Code:
#======================= Global Settings ======================= |
The posted smb.conf file is just for configuring the samba server/shares on Hermes-III and does not have any bearing on connecting to the NAS. Have you tried to manually mount a NAS share?
I agree with bab1 in your thread on the ubuntu forum it could be a bug in the samba 4 client and whatever version of samba is running on the NAS. |
Quote:
I have just found out the the Ubuntu firewall is also part of the problem. One post suggested that this should be disabled: Code:
sudo ufw disable But when I enable it again Code:
sudo ufw enable Is there a way to register the network with the firewall? Paul. |
Just a follow up, have "excluded" the ports from the Ubuntu Fire Wall (thanks to info in someone else's post) and all appears to be running OK now; I again have access to all my network shares excepting those on the little NAS.
Just as an aside, as I understand it the NAS is running a cut-down version of Samba. I just wonder whether the problem is related to some protocol changes or restrictions from Ubuntu 13.10, which had no problems linking to the shares of the little NAS, and Ubuntu 14.04 which is the version giving me all these problems. Paul. |
Cannot connect to my Snake OS NAS with Ubuntu 14.04
The flow of TCP is processed at a pace slower compared to the accuracy of the net. TCP offload engine solves this issue through getting rid of the burden or offloading from the I/O subsystem as well as the microprocessor.
|
Quote:
|
Just a follow up.
I have set up basic FTP via the "Snake OS" operating system of the little NAS (WLX-652 gwydion). This is mounted at boot by Gigolo on the Ubuntu machine and works to a fashion as it allows me to update files from the network by FTP download. But it is one way only and hardly ideal. I also noted the setup of the little NAS and have listed this below in case the problem lies there. Code:
HTTP Web Admin Port: 80 |
Has anyone figured this out? I have the same device and same problem. Not sure if it is a permissions issue. I am somewhat new to Linux as well. I have done all the above recommended, which did help with getting my other computer to show up in the browse networks. And my NAS device shows up. But I get the same timeout message. And when I do the smbclient -L 192.168.1.106 I get:
Conversion error: Incomplete multibyte sequence() protocol negotiation failed: NT_STATUS_INVALID_PARAMETER It asks me for my system password first. I can connect to my NAS via FTP, but like paul1945 mentioned it does not allow for the update of the files? Any ideas? Thanks. |
anonku,
I recommend you open a new thread. This is an old thread, and is unlikely to draw much attention. It would help if you posted more details about the NAS you have, and how its configured. Quote:
|
No resolution to Samba but FTP works fine.
I have not been able to come up with a resolution to this problem, even though I have tried many different approaches. I had also posted the problem on the Ubuntu Forum, but no-one there seemed to be able to come up with an answer. The suggestion was made that the little NAS has a cut-down version of Samba that is not compatible with the later versions of Samba (probably relates to security features lacking on Samba of the NAS).
I therefore use FTP which works fine and with some help have been able to set it up so it works both ways and therefore fulfills my needs the same way Samba would have done. If you want the details of setting up access via FTP on the NAS, I have kept a copy of the instructions, please let me know. Paul. |
think I will just make due
Thanks Paul for the reply. I have the FTP setup as the work around as well. Thanks for the info, but perhaps will just make due. It is only for home use anyhow. Thanks for all your work and to all others on this issue. Might be time for a NAS upgrade.
|
All times are GMT -5. The time now is 06:40 AM. |