Cannot access share in Windows 10

Status
Not open for further replies.

AlexNAS

Dabbler
Joined
Apr 29, 2016
Messages
13
Hi guys

I've spent the last 3 hours googling and fiddling to try get this sorted.

My problem is, this morning when I went to add media to my share I couldn't access it on my Windows 10 PC. WebUI works fine. Plex plugin works fine. I can access the share on my Windows 10 Media PC fine. So it is definitely PC side.

I am running FreeNAS a Dell PowerEdge T320
CPU: Intel(R) Xeon(R) CPU E5-2407 v2 @ 2.40GHz
RAM: 32gb ECC
HDD: 6 x 8 TB Seagate Enterprise

So the hardware is definitely not the problem!

This is the error I receive

FreeNAS Error.jpg


I have tried with the IP and also no luck.

I have also disabled all avast shields so that's not interfering.

Please let me know if I should post any other information.
 

Jacopx

Patron
Joined
Feb 19, 2016
Messages
367
Hi guys

I've spent the last 3 hours googling and fiddling to try get this sorted.

My problem is, this morning when I went to add media to my share I couldn't access it on my Windows 10 PC. WebUI works fine. Plex plugin works fine. I can access the share on my Windows 10 Media PC fine. So it is definitely PC side.

I am running FreeNAS a Dell PowerEdge T320
CPU: Intel(R) Xeon(R) CPU E5-2407 v2 @ 2.40GHz
RAM: 32gb ECC
HDD: 6 x 8 TB Seagate Enterprise

So the hardware is definitely not the problem!

This is the error I receive

View attachment 11593

I have tried with the IP and also no luck.

I have also disabled all avast shields so that's not interfering.

Please let me know if I should post any other information.

You can try to delete and recreate the sharing!
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Hi guys

I've spent the last 3 hours googling and fiddling to try get this sorted.

My problem is, this morning when I went to add media to my share I couldn't access it on my Windows 10 PC. WebUI works fine. Plex plugin works fine. I can access the share on my Windows 10 Media PC fine. So it is definitely PC side.

I am running FreeNAS a Dell PowerEdge T320
CPU: Intel(R) Xeon(R) CPU E5-2407 v2 @ 2.40GHz
RAM: 32gb ECC
HDD: 6 x 8 TB Seagate Enterprise

So the hardware is definitely not the problem!

This is the error I receive

View attachment 11593

I have tried with the IP and also no luck.

I have also disabled all avast shields so that's not interfering.

Please let me know if I should post any other information.

Temporarily disable the windows firewall on your client computer and see if it fixes the problem.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
If you can access it from one client but not another, it's either connectivity or credentials. Can you ping "AlexNAS" and the corresponding IP address from both clients? Are you running a domain controller? Have you saved the credentials on one of the clients? Is the time correct on your clients?
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
The windows client might need to allow traffic on 137-139, 445.
Good point. I lumped it into connectivity in my mind, but didn't figure out a test. Just curious, have you seen a client firewall block outbound 137-139 and 445?
 

AlexNAS

Dabbler
Joined
Apr 29, 2016
Messages
13
Windows firewall was being managed by avast internet security. I uninstalled avast and disabled windows firewall. That didn't work. :(

At whits end right now.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Open "powershell ise" on your windows client. Enter
Code:
net view
. Do you see your freenas server?
If you see it, enter
Code:
net view \\alexnas
. Are your shares properly enumerated?
If you don't see it, enter
Code:
net view \\<ip address>
. Are your shares properly enumerated?
 

AlexNAS

Dabbler
Joined
Apr 29, 2016
Messages
13
PS C:\WINDOWS\system32> net view
net view \\AlexNAS
net view \\192.168.0.98
net : System error 1240 has occurred.
At line:1 char:1
+ net view
+ ~~~~~~~~
+ CategoryInfo : NotSpecified: (System error 1240 has occurred.:String) [], R
emoteException
+ FullyQualifiedErrorId : NativeCommandError
The account is not authorized to log in from this station.
net : System error 5 has occurred.
At line:2 char:1
+ net view \\AlexNAS
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (System error 5 has occurred.:String) [], Remo
teException
+ FullyQualifiedErrorId : NativeCommandError
Access is denied.
net : System error 5 has occurred.
At line:3 char:1
+ net view \\192.168.0.98
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (System error 5 has occurred.:String) [], Remo
teException
+ FullyQualifiedErrorId : NativeCommandError
Access is denied.
 

AlexNAS

Dabbler
Joined
Apr 29, 2016
Messages
13
What do you mean by properly enumerated.

Everything has been working fine for months. And was working last night. My PC was on the whole night and then I woke up and it wasnt working :/

I tried reinstalling windows without wiping the drive and that didnt work either.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Try running the command prompt as administrator.

I experienced the same access errors when running as a user (but it worked as an admin):

Code:
Microsoft Windows [Version 10.0.14295]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\Users\me>net view
Server Name            Remark

-------------------------------------------------------------------------------
\\AD1
\\AD2
\\FREENAS1             FREENAS SERVER
\\M4700
\\TABLET-ME
\\TESTNAS1             FREENAS SERVER
The command completed successfully.


C:\Users\me>net view \\freenas1
System error 5 has occurred.

Access is denied.


C:\Users\me>net view \\FREENAS1
System error 5 has occurred.

Access is denied.


C:\Users\me>net view \\172.16.1.81
Shared resources at \\172.16.1.81

FreeNAS Server

Share name  Type  Used as  Comment

-------------------------------------------------------------------------------
backup      Disk
media       Disk
Stuff       Disk
The command completed successfully.


C:\Users\me>
 

AlexNAS

Dabbler
Joined
Apr 29, 2016
Messages
13
Try running the command prompt as administrator.

I experienced the same access errors when running as a user (but it worked as an admin):

Code:
Microsoft Windows [Version 10.0.14295]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\Users\me>net view
Server Name            Remark

-------------------------------------------------------------------------------
\\AD1
\\AD2
\\FREENAS1             FREENAS SERVER
\\M4700
\\TABLET-ME
\\TESTNAS1             FREENAS SERVER
The command completed successfully.


C:\Users\me>net view \\freenas1
System error 5 has occurred.

Access is denied.


C:\Users\me>net view \\FREENAS1
System error 5 has occurred.

Access is denied.


C:\Users\me>net view \\172.16.1.81
Shared resources at \\172.16.1.81

FreeNAS Server

Share name  Type  Used as  Comment

-------------------------------------------------------------------------------
backup      Disk
media       Disk
Stuff       Disk
The command completed successfully.


C:\Users\me>


Thank you for the help I eventually fixed it with a registry edit. You didnt see my post as it was flagged as spam and was unapproved awaiting moderator approval. Any idea on why that happened ?



"Ok, so I've done this to fix it: https://support.microsoft.com/en-us/kb/224287

If anyone can tell me what the implications of this are that would be great and why this would suddenly happen? Windows update?

Thanks for the help everyone. Anodos got me on the right track!"
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Post contents of /usr/local/etc/smb4.conf.
Here's mine for comparison (I don't want to hijack the OP).
Code:
[root@freenas1] ~# cat /usr/local/etc/smb4.conf
[global]
    server max protocol = SMB2
    interfaces = 127.0.0.1 172.16.1.81
    bind interfaces only = yes
    encrypt passwords = yes
    dns proxy = no
    strict locking = no
    oplocks = yes
    deadtime = 15
    max log size = 51200
    max open files = 3771029
    logging = syslog:1
    load printers = no
    printing = bsd
    printcap name = /dev/null
    disable spoolss = yes
    getwd cache = yes
    guest account = nobody
    map to guest = Bad User
    obey pam restrictions = yes
    directory name cache size = 0
    kernel change notify = no
    panic action = /usr/local/libexec/samba/samba-backtrace
    nsupdate command = /usr/local/bin/samba-nsupdate -g
    server string = FreeNAS Server
    ea support = yes
    store dos attributes = yes
    lm announce = yes
    acl allow execute always = true
    dos filemode = yes
    multicast dns register = yes
    domain logons = no
    idmap config *: backend = tdb
    idmap config *: range = 90000001-100000000
    server role = member server
    netbios name = FREENAS1
    workgroup = DEPASSE
    realm = DEPASSE.NET
    security = ADS
    client use spnego = yes
    cache directory = /var/tmp/.cache/.samba
    local master = no
    domain master = no
    preferred master = no
    ads dns update = yes
    winbind cache time = 7200
    winbind offline logon = yes
    winbind enum users = yes
    winbind enum groups = yes
    winbind nested groups = yes
    winbind use default domain = no
    winbind refresh tickets = yes
    idmap config DEPASSE: backend = rid
    idmap config DEPASSE: range = 10000-90000000
    allow trusted domains = no
    client ldap sasl wrapping = plain
    template shell = /bin/sh
    template homedir = /home/%D/%U
    pid directory = /var/run/samba
    create mask = 0666
    directory mask = 0777
    client ntlmv2 auth = yes
    dos charset = CP437
    unix charset = UTF-8
    log level = 1
   

[Stuff]
    path = /mnt/tank/stuff
    printable = no
    veto files = /.snapshot/.windows/.mac/.zfs/
    writeable = yes
    browseable = yes
    vfs objects = zfs_space zfsacl aio_pthread streams_xattr
    hide dot files = yes
    guest ok = no
    nfs4:mode = special
    nfs4:acedup = merge
    nfs4:chown = true
    zfsacl:acesort = dontcare
   

[backup]
    path = /mnt/tank/backup
    printable = no
    veto files = /.snapshot/.windows/.mac/.zfs/
    writeable = yes
    browseable = yes
    vfs objects = zfs_space zfsacl aio_pthread streams_xattr
    hide dot files = yes
    guest ok = no
    nfs4:mode = special
    nfs4:acedup = merge
    nfs4:chown = true
    zfsacl:acesort = dontcare
   

[homes]
    valid users = %D\%U
    path = /mnt/tank/home/%D/%U
    comment = Home Directories
    printable = no
    veto files = /.snapshot/.windows/.mac/.zfs/
    writeable = yes
    browseable = no
    vfs objects = zfs_space zfsacl
    hide dot files = yes
    guest ok = no
    nfs4:mode = special
    nfs4:acedup = merge
    nfs4:chown = true
    zfsacl:acesort = dontcare
   

[media]
    path = /mnt/tank/media
    printable = no
    veto files = /.snapshot/.windows/.mac/.zfs/
    writeable = yes
    browseable = yes
    vfs objects = zfs_space zfsacl aio_pthread streams_xattr
    hide dot files = yes
    guest ok = yes
    nfs4:mode = special
    nfs4:acedup = merge
    nfs4:chown = true
    zfsacl:acesort = dontcare
[root@freenas1] ~# 
 

AlexNAS

Dabbler
Joined
Apr 29, 2016
Messages
13
Are my posts still coming up as unapproved? Could a mod fix this for me please.

This one seemed to have worked. If you go up you will see I found a fix.

Sent from my SM-G900F using Tapatalk
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Are my posts still coming up as unapproved? Could a mod fix this for me please.

This one seemed to have worked. If you go up you will see I found a fix.

Sent from my SM-G900F using Tapatalk
Got this one, and now I see your one up above as well.
 

AlexNAS

Dabbler
Joined
Apr 29, 2016
Messages
13
So does anyone know why that issue occurred and is that a permanent fix? Or just a work around?

Sent from my SM-G900F using Tapatalk
 
Status
Not open for further replies.
Top