Skip to content

Appliance Troubleshooting flowchart

The following flowchart will assist you in troubleshooting:

  • You can't ping the device
  • You can't map a drive to the appliance
  • The machine tools can't connect

It's broken down into the following three stages:


flowchart LR

    classDef stage1 fill:#e3f2fd,stroke:#1e88e5,color:#0d47a1;
    classDef stage2 fill:#e8f5e9,stroke:#43a047,color:#1b5e20;
    classDef stage3 fill:#fce4ec,stroke:#d81b60,color:#880e4f;

    A([🟢 Start: SMB Issue Reported]) --> B([1. Port Reachability & Firewall])
    B --> C([2. SMB Listing & Authentication])
    C --> D([3. User Authentication & Permissions])
    D --> E([🟦 End: SMB Functioning Correctly])

    class B stage1
    class C stage2
    class D stage3

⭐ Stage 1 — Port Reachability & Firewall Checks

flowchart LR

    %% Styles
    classDef stage1 fill:#e3f2fd,stroke:#1e88e5,stroke-width:1px,color:#0d47a1;
    classDef terminal fill:#eeeeee,stroke:#424242,color:#212121,stroke-width:1px;

    %% Stage 1 Entry
    A([🟢 0. Start: SMB Issue Reported]) --> B{1. Port 445 reachable?}
    class A,B stage1

    %% Stage 1
    subgraph Stage1 [▼ Stage 1: Port Reachability & Firewall]
        direction LR

        %% No path → firewall troubleshooting
        B -->|No| B1[1.1 Firewall or network path issue]
        B1 --> B1a[1.1.1 Confirm correct IP]
        B1 --> B1b[1.1.2 Verify VLANs / switches]
        B1 --> B1c[1.1.3 Check appliance firewall]
        B1 --> B1d[1.1.4 Check workstation firewall]
    end

    class B1,B1a,B1b,B1c,B1d stage1

    %% End if unreachable
    B1d --> Z([🔚 End])
    class Z terminal

    %% Yes path → Stage 2
    B -->|Yes| NextStage2([➡ Proceed to Stage 2])
    class NextStage2 stage1

  • Confirm correct IP - Make sure you are using the correct IP address for the appliance.
  • Verify VLANS/Switches - Use `ping to verify network connectivity to the appliance
  • Port 445 reachable - use nmap -Pn -p 22,445,9090 <appliance_ip> to verify
  • Check Appliance firewall - Use sudo ufw status numbered | sort -k5 on the applinace to list the appliance firewall rules
  • Check W/S Firewall - This is a low probability. By default Windows, Mac, Linux allow outbound traffic

Reachability Commands

Common Issues and Fixes
ping 192.168.10.127
PING 192.168.10.127 (192.168.10.127) from 192.168.10.143 wlp61s0: 56(84) bytes of data.
64 bytes from 192.168.10.127: icmp_seq=1 ttl=64 time=86.9 ms
64 bytes from 192.168.10.127: icmp_seq=2 ttl=64 time=7.80 ms
64 bytes from 192.168.10.127: icmp_seq=3 ttl=64 time=6.28 ms
nmap -Pn -p 22,445,9090 192.168.10.127
Starting Nmap 7.95 ( https://nmap.org ) at 2026-04-02 12:27 PDT
Nmap scan report for haas.pu.pri (192.168.10.127)
Host is up (0.0061s latency).

PORT     STATE SERVICE
22/tcp   open  ssh
445/tcp  open  microsoft-ds
9090/tcp open  zeus-admin

⭐ Stage 2 — SMB Share Listing & Authentication

flowchart LR

    %% Styles
    classDef stage2 fill:#e8f5e9,stroke:#43a047,stroke-width:1px,color:#1b5e20;
    classDef terminal fill:#eeeeee,stroke:#424242,color:#212121,stroke-width:1px;

    %% Stage 2 Entry
    A([➡ From Stage 1]) --> C{2. Can workstation list SMB shares?}
    class A,C stage2

    %% Stage 2
    subgraph Stage2 [▼ Stage 2: SMB Listing & Authentication]
        direction LR

        C -->|No| C1[2.1 Authentication or DNS issue]

        C1 --> C1a[2.1.1 Check credentials]
        C1 --> C1b[2.1.2 Is domain WORKGROUP?]
        C1 --> C1c[2.1.3 Check DNS resolution]
        C1 --> C1d[2.1.4 Check time sync]
        C1 --> C1e[2.1.5 Check Samba logs]
    end

    class C1,C1a,C1b,C1c,C1d,C1e stage2

    %% End if listing fails
    C1e --> Z([🔚 End])
    class Z terminal

    %% Success path → Stage 3
    C -->|Yes| NextStage3([➡ Proceed to Stage 3])
    class NextStage3 stage2

  • List SMB Shares - On the appliance, cd to Haas_Data_collect and run ./lshares.sh
  • Check Credentials - Run manager_users.sh <username> --set-password to reset the password
  • Domain name - The domain name is WORKGROUP by default
  • Check DNS - I you are using a FQDN instead of an ip use dig or nslookup to verify the appliance is registered in DNS
  • Check Time Sync - On the appliance run date to see the current date/time on the appliance
  • Check Samba logs on the appliance - Use sudo tail -f /var/log/samba/log.smbd. This keeps the logger running. Use ctrl+c to cancel it.

SMB Commands

Common Issues and Fixes
cd Haas_Data_collect
┌─[haas@haas] - [~/Haas_Data_collect] - [2358]
└─[$] ./lshares.sh
Haas         /home/haas/Haas_Data_collect
minimill     /home/haas/Haas_Data_collect/machines/minimill
st40         /home/haas/Haas_Data_collect/machines/st40
st30         /home/haas/Haas_Data_collect/machines/st30
st30l        /home/haas/Haas_Data_collect/machines/st30l

sudo ./manage_users.sh mspadmin
[sudo] password for haas:
==== Thu Apr  2 12:44:43 PDT 2026 ====
Log file: /var/log/user_mgmt_20260402_124443.log
Processing user: mspadmin
User exists
Update passwords? (y/N): y
Updating system password
New password:
Retype new password:
passwd: password updated successfully
Samba user exists
Updating Samba password
New SMB password:
Retype new SMB password:Forcing Primary Group to 'Domain Users' for mspadmin

Forcing Primary Group to 'Domain Users' for mspadmin
Forcing Primary Group to 'Domain Users' for mspadmin
Enabled user mspadmin.
Final user info:
uid=1007(mspadmin) gid=1011(mspadmin) groups=1011(mspadmin),27(sudo),1004(HaasGroup)
Done.

Appliance
┌─[haas@haas] - [~/Haas_Data_collect] - [2361]
└─[$] date
Thu Apr  2 12:47:58 PDT 2026

Laptop
┌─[mhubbard@1S1K-G5] - [~/Insync/GD/04_Tools/Haas/Haas_Data_collect] - [9005]
└─[$] date
Thu Apr  2 12:48:43 PM PDT 2026

⭐ Stage 3 — User Authentication & Permissions


flowchart LR

    %% Styles
    classDef stage3 fill:#fce4ec,stroke:#d81b60,stroke-width:1px,color:#880e4f;
    classDef terminal fill:#eeeeee,stroke:#424242,color:#212121,stroke-width:1px;

    %% Stage 3 Entry
    A([➡ From Stage 2]) --> D{3. Drive mapping fails?}
    class A,D stage3

    %% Stage 3
    subgraph Stage3 [▼ Stage 3: User Authentication & Permissions]
        direction LR

        %% Tier 1 — Authentication
        D -->|Yes| E{3.1 User authentication working?}

        %% Only meaningful workstation-side checks remain
        E -->|No| E1[3.1.1 Check for cached credentials on workstation]
        E1 --> E2[3.1.2 Check Samba logs for NTLMv2 handshake]

        %% Tier 2 — Permissions
        E -->|Yes| F{3.2 Permissions correct?}

        F -->|No| F1[3.2.1 Check filesystem permissions]
        F1 --> F2["3.2.2 Validate share-level access rules\n(path exists, correct owner/group/mode)"]
        F2 --> F3[3.2.3 Validate group membership]
        F3 --> F4[3.2.4 Use smbstatus to inspect active sessions]

        %% Success
        F -->|Yes| G([🟦 3.3 SMB functioning correctly])
    end

    class E,E1,E2,F,F1,F2,F3,F4,G stage3

    %% Endpoints
    E2 --> Z([🔚 End])
    F4 --> Z
    G --> Z
    class Z terminal

🖥️ Common Workstation Issues

Common Workstation Issues

SMB failures often originate on the workstation rather than the appliance. The following issues are frequently encountered during testing and real-world deployments:

1. Cached Credentials - Workstations (Ubuntu, macOS, Windows) may silently reuse old credentials. - Symptoms: drive mapping fails, NTLM handshake errors, wrong user shown in smbstatus. - Fix: clear credential cache or reboot the workstation.

2. GVFS / Nautilus SMB Caching (Ubuntu) - GNOME’s GVFS layer caches SMB sessions aggressively. - Symptoms: incorrect permissions, stale directory listings, “permission denied” after config changes. - Fix: kill GVFS processes or reboot; avoid mixing Nautilus and mount.cifs.

3. Multiple SMB Clients on the Same System - Linux systems may mix: - gio mount - nautilus - mount.cifs - smbclient - Each uses different credential paths and caching behavior. - Fix: use one method consistently during troubleshooting.

4. Time Skew - Even small time differences break NTLMv2 authentication. - Symptoms: authentication failures despite correct credentials. - Fix: ensure workstation and appliance sync to the same NTP source.

5. DNS Resolution Issues - Workstations may resolve the appliance hostname incorrectly. - Symptoms: intermittent failures, wrong IP in logs, slow connections. - Fix: verify /etc/resolv.conf, DNS search domains, and dig results.

6. SMB Client Minimum Protocol Settings - The appliance only supports SMB2/3. - Symptoms: connection refused if the workstation doesn't support SMB2/3. - Fix: ensure the workstation supports SMB2/3 (default on modern systems).

7. Firewall or Local Security Policies - Local workstation firewalls may block outbound SMB. - Symptoms: cannot reach port 445 despite correct server configuration. - Fix: check UFW, firewalld, Windows Defender Firewall, or corporate policies. This is low probability unless on a highly locked down network. In such an environment, AD policies will block port 445 to unauthorized ip addresses.

8. Credential Manager / Keychain Conflicts - Windows Credential Manager, macOS/Linux Keychain may store stale SMB passwords. - Symptoms: repeated authentication failures with correct credentials. - Fix: remove stored SMB entries and reconnect.


🧩 Troubleshooting Quick‑Reference Table

Symptom / Observation Likely Cause Quick Checks / Next Steps
🛜 Cannot reach server on port 445 Stage 1 — Firewall or network path issue 1.1.1 Confirm correct IP1.1.2 Verify VLANs/switches1.1.3 Appliance firewall
📁 Shares not listed Stage 2 — Authentication or DNS issue 2.1.1 Check credentials2.1.3 DNS resolution2.1.4 Time sync
👤 Wrong username appears in logs Stage 2 — Cached credentials 2.1.1 Verify credentials • Clear credential cache • Reboot workstation
🔐 Drive mapping fails Stage 3 — Authentication failure 3.1.1 Verify username/password3.1.2 Clear cached credentials3.1.3 Check NTLMv2 handshake
🚫 Access denied after mapping Stage 3 — Permissions issue 3.2.1 Filesystem permissions3.2.2 Samba share ACLs3.2.3 Group membership
⏱️ Intermittent failures Stage 2 — DNS or time skew 2.1.3 DNS resolution2.1.4 Time sync
🔄 Behavior inconsistent across attempts Stage 3 — Stale Samba session 3.2.4 Use smbstatus • Kill stale session • Reconnect
🧩 Works on one device but not another Stage 2 — Local firewall or endpoint policy Check UFW/Windows Firewall • Corporate endpoint policies
🐌 Slow browsing or delayed auth Stage 2 — DNS search domain issues Verify /etc/resolv.conf • Ensure correct search domain
📂 User appears logged in but cannot access files Stage 3 — Stale or conflicting session 3.2.4 smbstatus • Kill session • Reconnect

End of the troubleshooting guide

test

test