Having Issues with my NAS. Shares missing, WebUI broken.

Re: Having Issues with my NAS. Shares missing, WebUI broken.

Postby fvdw » Wed Dec 09, 2020 10:23 pm

lets check if samba server is running
Code: Select all
ps -ef | grep smbd
ps -ef | greo nmbd


You should get output like this
Code: Select all
 # ps -ef | grep smbd
root      1954     1  0 Sep17 ?        00:00:22 /usr/sbin/smbd -D -l /var/log/samba
root      1969  1954  0 Sep17 ?        00:00:19 /usr/sbin/smbd -D -l /var/log/samba
root      1971  1954  0 Sep17 ?        00:00:07 /usr/sbin/smbd -D -l /var/log/samba
root     14461 14450  0 23:21 pts/0    00:00:00 grep smbd

root@2bignas:/ # ps -ef | grep nmbd
root      1949     1  0 Sep17 ?        00:04:54 /usr/sbin/nmbd -D -l /var/log/samba
root     14469 14450  0 23:22 pts/0    00:00:00 grep nmbd
root@2bignas:/ #


If samba is running then your files should be possible to access via windows 10 unless the samba configuration file is not correctly configured. Could happen if the the nas main database is corrupt (not likely)
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Having Issues with my NAS. Shares missing, WebUI broken.

Postby fvdw » Wed Dec 09, 2020 10:28 pm

to connect to the nas via windows 10 file explorer you could try to give the ip address like this
Code: Select all
\\192.168.1.185

Sometimes windows 10 cannot access the server using system name of the nas
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Having Issues with my NAS. Shares missing, WebUI broken.

Postby Woodani » Thu Dec 10, 2020 12:43 am

Here is the output of those commands.
Code: Select all
root@fvdwsl-base:/ # ps -ef | grep smbd
root      2051     1  0 Apr23 ?        00:00:00 /usr/sbin/smbd -D -l /var/log/samba
root      2060  2051  0 Apr23 ?        00:00:00 /usr/sbin/smbd -D -l /var/log/samba
root      2061  2051  0 Apr23 ?        00:00:00 /usr/sbin/smbd -D -l /var/log/samba
root      3766  2051  0 08:01 ?        00:00:00 /usr/sbin/smbd -D -l /var/log/samba
root      3768  3385  0 08:02 pts/0    00:00:00 grep smbd
root@fvdwsl-base:/ # ps -ef | greo nmbd
-sh: greo: not found
root@fvdwsl-base:/ # ps -ef | grep nmbd
root      2049     1  0 Apr23 ?        00:00:04 /usr/sbin/nmbd -D -l /var/log/samba
root      3779  3385  0 08:03 pts/0    00:00:00 grep nmbd

This looks pretty similar to yours except I more or less have all 0s for the time stamps.

Connecting to \\192.168.1.185 is just like what I said in my original post, Windows connects to it but it is a totally empty directory. Trying to go to \\192.168.1.185\NAS_Storage or \\192.168.1.185\Plex_Media gives me an "Windows cannot access..." error.
Woodani
Donator VIP
Donator VIP
 
Posts: 50
Joined: Wed Aug 12, 2020 9:25 pm
Location: TN, USA

Re: Having Issues with my NAS. Shares missing, WebUI broken.

Postby fvdw » Thu Dec 10, 2020 10:05 am

so samba is up and running, lets have a look at the nas main database
First list content of the the folder /rw_fs/etc and post it here
Code: Select all
ls -al /rw_fs/etc


There should be a file with name nas_conf_db.xml and nas_con_db.xml.bak
List content of the first one and post it here
Code: Select all
cat /rw_fs/etc/nas_conf_db.xml

Is the size of the .bak file equal to the other file ?
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Having Issues with my NAS. Shares missing, WebUI broken.

Postby LittleRed » Thu Dec 10, 2020 1:16 pm

I was having a similar problem with my WebUI, although on a 2Big vs2 running 18-2. Turns out that it was Firefox. I tried accessing it from Chrome and it worked fine. I suspect it's as a result of a JavaScript error which I noticed, which does not appear on Chrome. May need remedial activities. Error is as follows:

Uncaught TypeError: this.dataSource is undefined
loadSclrData http://192.168.69.251/js/objects.js?v=182-1410:118
createScalar http://192.168.69.251/js/objects.js?v=182-1410:116
scalarHidden http://192.168.69.251/js/objects.js?v=182-1410:188
<anonymous> http://192.168.69.251/.home/home_m.htm?v=182-1410:54
objects.js:118:99
loadSclrData http://192.168.69.251/js/objects.js?v=182-1410:118
createScalar http://192.168.69.251/js/objects.js?v=182-1410:116
scalarHidden http://192.168.69.251/js/objects.js?v=182-1410:188
<anonymous> http://192.168.69.251/.home/home_m.htm?v=182-1410:54
LittleRed
Donator VIP
Donator VIP
 
Posts: 1
Joined: Tue Jun 18, 2019 10:19 pm

Re: Having Issues with my NAS. Shares missing, WebUI broken.

Postby Woodani » Thu Dec 10, 2020 1:39 pm

Ok. Here is the list of those files
Code: Select all
root@fvdwsl-base:/ # ls -al /rw_fs/etc
total 68
drwxrwxr-x  4 root   sys    4096 2018-04-23 09:05 .
drwxrwxr-x  9 root   sys    4096 2018-04-23 09:04 ..
drwxr-xr-x  2 root   root   4096 2018-01-01 06:00 dropbear
-rw-r--r--  1 nobody nobody 1701 2018-01-06 03:05 install-firmware.log
-rw-------  1 root   root    116 2018-01-06 02:52 .loginplugout
-rw-r--r--  1 root   root    223 2018-04-23 09:05 mdadm.conf
-rw-r--r--  1 root   root    223 2018-04-23 08:01 mdadm.confe
-rw-rw-rw-  1 nobody nobody 7002 2018-04-23 09:05 nas_conf_db.xml
-rw-rw-rw-  1 nobody nobody 7002 2018-04-23 09:05 nas_conf_db.xml.bak
-rw-rw-rw-  1 nobody nobody 8947 2018-01-06 03:07 nas_conf_db.xmle
-rw-rw-rw-  1 nobody nobody  104 2009-03-15 13:16 nas_ext_hdd_db.xml
-rw-r--r--  1 root   root     40 2009-10-03 16:21 ntp.conf
drwxrwxrwx  2 root   root   4096 2018-01-01 07:00 ssl

Looks like the nas_conf_db.xml and nas_conf_db.xml are the same size.

Here is what that nas_conf_db.xml looks like
Code: Select all
root@fvdwsl-base:/ # cat /rw_fs/etc/nas_conf_db.xml
<?xml version="1.0"?>
<nas_conf_db>
        <version>1</version>
        <system>
                <datetime_format>US</datetime_format>
                <hostname>fvdwsl-base</hostname>
                <domain>local</domain>
                <language>en</language>
                <dhcpenabled>false</dhcpenabled>
                <printenabled>false</printenabled>
                <database>true</database>
                <newfirmware>0</newfirmware>
                <preconfig>true</preconfig>
                <usbmountmode>external</usbmountmode>
                <webgui>
                        <adminpasswd>$2y$07$H.zKzDA0PJ7Kp3MidlEsDO/JRmj9yVudVjuhBYj/w3dHJ1a7BpmCy</adminpasswd>
                        <protocol>http</protocol>
                        <admin>admin-nas</admin>
                        <phpmem>24</phpmem>
                </webgui>
                <hdparams>
                        <disk>
                                <device>/dev/sda</device>
                                <inactivityperiod>15</inactivityperiod>
                                <lastselftest>0</lastselftest>
                        </disk>
                </hdparams>
                <notify>
                        <eventbmp>3</eventbmp>
                        <email>
                                <enable>false</enable>
                                <address/>
                                <smtpip/>
                        </email>
                        <icq>
                                <enable>false</enable>
                                <idnum/>
                                <passwd/>
                                <dest_idnum/>
                        </icq>
                        <sms>
                                <enable>false</enable>
                                <idnum/>
                                <passwd/>
                                <cellnum/>
                        </sms>
                </notify>
                <timezone>/America/New_York</timezone>
                <ntp>
                        <enable>true</enable>
                        <ip1>ntp-d.nist.gov</ip1>
                        <ip2>ntp-b.nist.gov</ip2>
                </ntp>
                <ftp>
                        <enable>false</enable>
                </ftp>
                <platform>5big2</platform>
                <drives>MultiDrive</drives>
                <storagemode>single</storagemode>
                <afp>
                        <enable>false</enable>
                        <smbstop>0</smbstop>
                        <vetofiles>false</vetofiles>
                </afp>
                <family>kirkwood</family>
                <zeroconf>
                        <enable>false</enable>
                </zeroconf>
                <addonsvolume>1100</addonsvolume>
                <dnsserver>192.168.1.160</dnsserver>
                <dnsserver>9.9.9.9</dnsserver>
                <addons>
                        <smb4>3cea067b7b5b0741a46d528fdd0d3aa9</smb4>
                </addons>
        </system>
        <ddns>
                <enable>false</enable>
                <service/>
                <username/>
                <password/>
                <hostname/>
                <server/>
                <period>5</period>
                <success>false</success>
        </ddns>
        <interfaces>
                <lan>
                        <bonding>1</bonding>
                        <if>bond0</if>
                        <ipaddr>192.168.1.185</ipaddr>
                        <netmask>255.255.255.0</netmask>
                        <subnet/>
                        <gateway>192.168.1.1</gateway>
                        <mtu>1500</mtu>
                        <media/>
                        <mediaopt/>
                        <hwaddr>00:D0:4B:8E:2E:FD</hwaddr>
                        <rand_ip>169.254.143.154</rand_ip>
                </lan>
        </interfaces>
        <samba>
                <netbiosname>fvdwsl-base</netbiosname>
                <workgroup>mshome</workgroup>
                <serverdesc>fvdw-sl NAS</serverdesc>
                <security>user</security>
                <localmaster>yes</localmaster>
                <reloadtype>reload</reloadtype>
                <windmediadisable>yes</windmediadisable>
                <version>1</version>
                <smb4name>4.9.4</smb4name>
                <ntlmv1>0</ntlmv1>
                <smb1>0</smb1>
        </samba>
        <shares/>
        <access>
                <users>
                        <user>
                                <username>dummy</username>
                                <uid>502</uid>
                                <description>dummy_user</description>
                                <admin>0</admin>
                                <webshare>0</webshare>
                                <remoteaccess>1</remoteaccess>
                                <hidden>0</hidden>
                                <password>dummy</password>
                                <userhome>/share/1000/unvalidfolder</userhome>
                        </user>
                        <user>
                                <username>woodani</username>
                                <uid>1000</uid>
                                <description>woodani</description>
                                <admin>0</admin>
                                <webshare>1</webshare>
                                <remoteaccess>1</remoteaccess>
                                <hidden>0</hidden>
                                <password>xxxxxxxxxxxxxx</password>
                                <iscrypted>0</iscrypted>
                                <userhome>/share/1000/unvalidfolder</userhome>
                                <email/>
                        </user>
                        <user>
                                <username>plexsvr</username>
                                <uid>1001</uid>
                                <description>Plex-Server</description>
                                <admin>0</admin>
                                <webshare>0</webshare>
                                <remoteaccess>1</remoteaccess>
                                <hidden>0</hidden>
                                <password>xxxxxxxxxxxxxxxx</password>
                                <iscrypted>0</iscrypted>
                                <userhome>/share/1000/unvalidfolder</userhome>
                                <email/>
                        </user>
                        <user>
                                <username>jennelda</username>
                                <uid>1002</uid>
                                <description>Jennelda</description>
                                <admin>0</admin>
                                <webshare>0</webshare>
                                <remoteaccess>1</remoteaccess>
                                <hidden>0</hidden>
                                <password>xxxxxxxxxxxxxxxxx</password>
                                <iscrypted>0</iscrypted>
                                <userhome>/share/1000/unvalidfolder</userhome>
                                <email/>
                        </user>
                </users>
        </access>
        <mediaserver>
                <activedms>none</activedms>
        </mediaserver>
        <disks>
                <disk>
                        <size>3723.25568342</size>
                        <internal>true</internal>
                        <name>Disk-A</name>
                        <system>true</system>
                        <blockdev>/dev/sda</blockdev>
                        <diskid>N8H30HPZ</diskid>
                        <model> HGST HUS726040ALE610</model>
                        <usb>false</usb>
                        <freesize>0</freesize>
                        <init>true</init>
                        <partitions>
                                <partition>
                                        <lvname>/dev/sda8</lvname>
                                        <color>#ba49ba</color>
                                        <volid>1100</volid>
                                        <index>0</index>
                                        <size>3723.25568342</size>
                                </partition>
                        </partitions>
                </disk>
                <disk>
                        <size>3723.25568342</size>
                        <internal>true</internal>
                        <name>Disk-B</name>
                        <system>false</system>
                        <blockdev>/dev/sdb</blockdev>
                        <diskid>N8H2UZSZ</diskid>
                        <model> HGST HUS726040ALE610</model>
                        <usb>false</usb>
                        <freesize>0</freesize>
                        <init>true</init>
                        <partitions>
                                <partition>
                                        <lvname>/dev/sdb8</lvname>
                                        <color>#bdf39b</color>
                                        <volid>1100</volid>
                                        <index>0</index>
                                        <size>3723.25568342</size>
                                </partition>
                        </partitions>
                </disk>
                <disk>
                        <size>3723.25568342</size>
                        <internal>true</internal>
                        <name>Disk-C</name>
                        <system>false</system>
                        <blockdev>/dev/sdc</blockdev>
                        <diskid>N8H2SAKZ</diskid>
                        <model> HGST HUS726040ALE610</model>
                        <usb>false</usb>
                        <freesize>0</freesize>
                        <init>true</init>
                        <partitions>
                                <partition>
                                        <lvname>/dev/sdc8</lvname>
                                        <color>#daa7ba</color>
                                        <volid>1100</volid>
                                        <index>0</index>
                                        <size>3723.25568342</size>
                                </partition>
                        </partitions>
                </disk>
                <disk>
                        <size>3723.25568342</size>
                        <internal>true</internal>
                        <name>Disk-D</name>
                        <system>false</system>
                        <blockdev>/dev/sdd</blockdev>
                        <diskid>N8H2Z54Z</diskid>
                        <model> HGST HUS726040ALE610</model>
                        <usb>false</usb>
                        <freesize>0</freesize>
                        <init>true</init>
                        <partitions>
                                <partition>
                                        <lvname>/dev/sdd8</lvname>
                                        <color>#9bfc7f</color>
                                        <volid>1100</volid>
                                        <index>0</index>
                                        <size>3723.25568342</size>
                                </partition>
                        </partitions>
                </disk>
                <disk>
                        <size>3723.25568342</size>
                        <internal>true</internal>
                        <name>Disk-E</name>
                        <system>false</system>
                        <blockdev>/dev/sde</blockdev>
                        <diskid>N8H2XB2Z</diskid>
                        <model> HGST HUS726040ALE610</model>
                        <usb>false</usb>
                        <freesize>0</freesize>
                        <init>true</init>
                        <partitions>
                                <partition>
                                        <lvname>/dev/sde8</lvname>
                                        <color>#a9a263</color>
                                        <volid>1100</volid>
                                        <index>0</index>
                                        <size>3723.25568342</size>
                                </partition>
                        </partitions>
                </disk>
        </disks>
        <vols>
                <vol>
                        <volid>1100</volid>
                        <md>/dev/md0</md>
                        <fs>1100</fs>
                        <lastindex>1</lastindex>
                        <name>5-Disk-Raid-5</name>
                        <devices>/dev/sda8 /dev/sdb8 /dev/sdc8 /dev/sdd8 /dev/sde8 </devices>
                        <raidtype>raid5</raidtype>
                        <color>#e63b64</color>
                        <formatting>0</formatting>
                        <size>14893.0214844</size>
                </vol>
        </vols>
        <isofiles/>
        <rsyncd>
                <enable>false</enable>
        </rsyncd>
        <vnstat>
                <enable>true</enable>
        </vnstat>
</nas_conf_db>

I think LittleRed might be on to something. I tested with Firefox (my primary browser) Chrome, Edge (new chrome based edge), and IE. Edge and IE seamed to load the WebUI correctly wile Firefox and Chrome gave the same broken UI that I showed before.
Woodani
Donator VIP
Donator VIP
 
Posts: 50
Joined: Wed Aug 12, 2020 9:25 pm
Location: TN, USA

Re: Having Issues with my NAS. Shares missing, WebUI broken.

Postby fvdw » Thu Dec 10, 2020 4:01 pm

Two remarks, the date of the files have a timestamo from 2018.
Probably you did set time on the 5big2 or did not ebled synchronization with internet time. Is that correct?

Second there are no shared folders defined. As result samba server will not list them. Need to check if just recreating them using the webinterfaces will bring them back without affecting content. Please wait with recreating.

About webgui and firefox. I use latest firefox and have no issur. I will ask Jocko to comment this. It is more has atea of competence. You could try to update firefox to latest versiin if not already done.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Having Issues with my NAS. Shares missing, WebUI broken.

Postby Woodani » Thu Dec 10, 2020 4:52 pm

I think I tried to set internet time synchronization and could not get it to work so that is probably why the time is incorrect.

I will check firefox for updates and wait for your reply about the share folders.

Thanks again.
Woodani
Donator VIP
Donator VIP
 
Posts: 50
Joined: Wed Aug 12, 2020 9:25 pm
Location: TN, USA

Re: Having Issues with my NAS. Shares missing, WebUI broken.

Postby Jocko » Thu Dec 10, 2020 5:25 pm

Hi

I think you got some issues previously. What did you notice on the last days?
You lost the share settings on the nas database when the fw failed to assemble the raid on nas booting and then the fw removes them because it believes they are orphan shares. I think you got this event and I also noticed this line on your mdstat output
Code: Select all
bitmap: 0/30 pages [0KB], 65536KB chunk
which is not an expected line !

To restore your shares you just have to recreate them from the web-interface ( you won't lose your data).

About browser issue, it is strange because last week I checked the web-interface on these browser and I noticed no issue.

What is their current version and for what OS ?

Other point did you clean their cache ? You can try with a private session
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Having Issues with my NAS. Shares missing, WebUI broken.

Postby Woodani » Thu Dec 10, 2020 5:40 pm

Hey,

I hadn't used the NAS much in the last few weeks (I was out of town and such), but a few days ago I was in the room where my NAS is located and I noticed the red hdd led. After that is when I logged into the webgui and saw that it was broken looking and decided to restart the nas. After that restart is when I realized my shares are missing. After that when when I posted on here.

Do you have any guess as to why the firmware failed to assemble the raid?

When I recreate my shares I'm assuming I need to match the naming exactly is there anything else I need to be careful of to ensure they are recreated properly?

About the browsers, I am on firefox 83.0 and chrome 87.0.4280.88 this is on windows 10. I haven't tried cleaning their cache yet but I did try private sessions in both browsers and it did not help.

Thanks.
Woodani
Donator VIP
Donator VIP
 
Posts: 50
Joined: Wed Aug 12, 2020 9:25 pm
Location: TN, USA

PreviousNext

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: nos96 and 13 guests