Jump to content

parse_dfs_path error when trying to connect via SMB


Recommended Posts

brand new array running 6.11.5.  just tried to start it up for the first time.  when a client tries to connect (tried SMB on both a macbook and windows machine), it fails and i see the following error in the unraid logs:

 

 

Jan  7 17:38:25 nas2  smbd[13920]: [2023/01/07 20:38:25.224219,  0] ../../source3/smbd/msdfs.c:170(parse_dfs_path)
Jan  7 17:38:25 nas2  smbd[13920]:   parse_dfs_path: can't parse hostname from path nas2.lan.local
Jan  7 17:38:25 nas2  smbd[13920]: [2023/01/07 20:38:25.224252,  0] ../../source3/smbd/msdfs.c:180(parse_dfs_path)
Jan  7 17:38:25 nas2  smbd[13920]:   parse_dfs_path: trying to convert nas2.lan.local to a local path

 

it almost sounds like DNS but there's a static entry for both the ip and hostname in my router and unraid seems to resolve it properly:

Quote

 

root@nas2:~# dig nas2.lan.local
    
    ; <<>> DiG 9.18.9 <<>> nas2.lan.local
    ;; global options: +cmd
    ;; Got answer:
    ;; WARNING: .local is reserved for Multicast DNS
    ;; You are currently testing what happens when an mDNS query is leaked to DNS
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14305
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 512
    ;; QUESTION SECTION:
    ;nas2.lan.local.                        IN      A
    
    ;; ANSWER SECTION:
    nas2.lan.local.         3600    IN      A       172.16.1.227
    
    ;; Query time: 0 msec
    ;; SERVER: 172.16.1.1#53(172.16.1.1) (UDP)
    ;; WHEN: Sat Jan 07 20:30:56 EST 2023
    ;; MSG SIZE  rcvd: 59

 

 

there doesn't seem to be much in the internet about this other than the C header file itself but i can't figure out what it's doing

Edited by oliver
Link to comment
  • 2 months later...

I'm experiencing the same thing (albeit on a different, newer rc version, 6.12.0-rc2), except it's having trouble with an IP, indicating to me it's likely not any kind of external DNS effects. Logs are constantly filled with this, ~4 lines/min.

Apr  3 10:39:15 Arc-Stor smbd[22085]: [2023/04/03 10:39:15.384658,  0] ../../source3/smbd/msdfs.c:170(parse_dfs_path)
Apr  3 10:39:15 Arc-Stor smbd[22085]:   parse_dfs_path: can't parse hostname from path 10.0.100.150
Apr  3 10:39:15 Arc-Stor smbd[22085]: [2023/04/03 10:39:15.384689,  0] ../../source3/smbd/msdfs.c:180(parse_dfs_path)
Apr  3 10:39:15 Arc-Stor smbd[22085]:   parse_dfs_path: trying to convert 10.0.100.150 to a local path

 

Diags attached.

arc-stor-diagnostics-20230403-1041.zip

Link to comment
  • 2 weeks later...
  • 3 months later...
  • 1 year later...

The same issue occurs on version 7.0.0-beta.2, where macOS is unable to connect to SMB either via domain name or IP.

 

Sep 19 13:46:51 SZC-UnraidNAS smbd[4181202]: [2024/09/19 13:46:51.383649,  0] ../../source3/smbd/msdfs.c:107(parse_dfs_path_strict)
Sep 19 13:46:51 SZC-UnraidNAS smbd[4181202]:   parse_dfs_path_strict: can't parse hostname from path \100.64.0.18

 

Link to comment

I think I’ve found a temporary solution:

I tried setting the server name to my domain in Settings/Identification, such as nas.example.com. After restarting Unraid, I was able to connect to smb://nas.example.com/ through Finder on macOS successfully.

Even so, I still don’t understand why I can’t connect via IP.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...