Dataforth DOS: - TestDataDB: singleton DB connection fix (crash prevention), WAL mode, WinSW service config, backup script, uncaught exception handlers - Sync-FromNAS.ps1: Get-NASFileList temp file approach to avoid SSH stdout deadlock, *> $null output suppression, 8.3 filename filter for PUSH phase, backslash-escaped SCP paths, rename-to-.synced - import.js: INSERT OR REPLACE for re-tested devices - Full import run: 1,028,275 -> 1,632,793 records, indexes added - Deploy script for sync fixes to AD2 Client scripts (temp/): - BG Builders: Lesley account check, MFA phone update - Lonestar Electrical: Kyla/Russ Google Workspace setup, 2FA bypass - AD2 diagnostics and NAS connectivity tests PENDING: Investigate why newest test_date is Jan 19 despite daily tests Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
1.2 KiB
PowerShell
29 lines
1.2 KiB
PowerShell
# Diagnostic script for TestDataDB on AD2
|
|
Write-Output "=== Node Process ==="
|
|
Get-CimInstance Win32_Process -Filter "Name='node.exe'" | Select-Object ProcessId, CommandLine | Format-List
|
|
|
|
Write-Output "=== HTTP Test ==="
|
|
try {
|
|
$r = Invoke-WebRequest -Uri "http://localhost:3000/" -UseBasicParsing -TimeoutSec 10
|
|
Write-Output "Root page status: $($r.StatusCode)"
|
|
Write-Output "Content length: $($r.Content.Length)"
|
|
Write-Output "First 200 chars: $($r.Content.Substring(0, [Math]::Min(200, $r.Content.Length)))"
|
|
} catch {
|
|
Write-Output "Root page ERROR: $($_.Exception.Message)"
|
|
}
|
|
|
|
Write-Output "`n=== API Test ==="
|
|
try {
|
|
$r = Invoke-WebRequest -Uri "http://localhost:3000/api/stats" -UseBasicParsing -TimeoutSec 10
|
|
Write-Output "API status: $($r.StatusCode)"
|
|
Write-Output "First 200 chars: $($r.Content.Substring(0, [Math]::Min(200, $r.Content.Length)))"
|
|
} catch {
|
|
Write-Output "API ERROR: $($_.Exception.Message)"
|
|
}
|
|
|
|
Write-Output "`n=== Service Log Files ==="
|
|
Get-ChildItem "C:\Shares\testdatadb\logs\" -ErrorAction SilentlyContinue | Format-Table Name, Length, LastWriteTime
|
|
|
|
Write-Output "`n=== Recent Event Log ==="
|
|
Get-EventLog -LogName Application -Newest 5 -Source "*node*" -ErrorAction SilentlyContinue | Format-List
|