47 lines
2.5 KiB
Batchfile
47 lines
2.5 KiB
Batchfile
@echo off
|
|
REM Full diagnosis: code version on disk, components, processes, ports, live API checks.
|
|
cd /d %~dp0
|
|
title DIAG-dump
|
|
|
|
echo === 1. kit root layout (C:\docchecker expected):
|
|
dir /b "%~dp0..\.." 2>nul | findstr /i "setup_online exceptions app repo.zip"
|
|
echo --- exceptions file(s):
|
|
if exist "%~dp0..\..\exceptions.txt" echo C:\docchecker\exceptions.txt PRESENT
|
|
if exist "%~dp0exceptions.txt" echo delivery\exceptions.txt PRESENT
|
|
if exist "%~dp0..\exceptions.txt" echo parent\exceptions.txt PRESENT
|
|
|
|
echo === 2. code version on disk:
|
|
findstr /c:"exceptions" "%~dp0..\app.py" >nul 2>nul && echo app.py: NEW (has exceptions) || echo app.py: OLD - code not updated
|
|
findstr /c:"dlw" "%~dp0..\static\index.html" >nul 2>nul && echo index.html: NEW (docx + word list buttons) || echo index.html: OLD - html report only
|
|
|
|
echo === 3. delivery components:
|
|
if exist "%~dp0OllamaSetup.exe" echo OllamaSetup.exe: PRESENT || echo OllamaSetup.exe: MISSING
|
|
if exist "%~dp0jre17\jre\bin\java.exe" echo jre17: PRESENT || echo jre17: MISSING
|
|
if exist "%~dp0languagetool\languagetool-server.jar" echo languagetool: PRESENT || echo languagetool: MISSING
|
|
if exist "%~dp0venv\Scripts\python.exe" echo venv: PRESENT || echo venv: MISSING
|
|
if exist "%~dp0..\app.py" echo parent app.py: PRESENT || echo parent app.py: MISSING
|
|
|
|
echo === 3b. shared kit (shift mode):
|
|
if exist "%~dp0..\..\kit\Ollama\ollama.exe" echo kit\Ollama\ollama.exe: PRESENT || echo kit\Ollama\ollama.exe: MISSING
|
|
if exist "%~dp0..\..\kit\models\manifests" echo kit\models (manifests): PRESENT || echo kit\models: MISSING
|
|
if exist "%~dp0..\..\kit\Python312\python.exe" echo kit\Python312: PRESENT || echo kit\Python312: MISSING
|
|
if exist "%~dp0..\..\kit\site\fastapi" echo kit\site (fastapi): PRESENT || echo kit\site: MISSING - pip step not done
|
|
|
|
echo === 4. running processes (java / python / ollama):
|
|
tasklist 2>nul | findstr /i "java.exe python.exe ollama.exe"
|
|
|
|
echo === 5. listening ports 8010/8011:
|
|
netstat -ano 2>nul | findstr ":8010 :8011" | findstr "LISTENING"
|
|
|
|
echo === 6. live checks:
|
|
curl -s --max-time 8 http://127.0.0.1:8011/api/health
|
|
echo.
|
|
curl -s --max-time 8 -o nul -w "LT 8010: HTTP %%{http_code}" http://127.0.0.1:8010/v2/languages
|
|
echo.
|
|
curl -s --max-time 8 -o nul -w "LLM 11434: HTTP %%{http_code}" http://127.0.0.1:11434/api/tags
|
|
echo.
|
|
ollama list 2>nul
|
|
|
|
echo ============================================================
|
|
echo Send a photo of this whole window.
|
|
pause |