[GH-ISSUE #6725] Incorrect AppDir when creating banner script (Preview) #66274

Closed
opened 2026-05-04 01:51:09 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @DJStompZone on GitHub (Sep 10, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6725

Originally assigned to: @dhiltgen on GitHub.

Upon installing Ollama (Preview, 0.3.10.0) on Windows*, I noticed an error in the log file:

time=2024-09-10T05:45:41.543-05:00 level=INFO source=logging.go:50 msg="ollama app started"
time=2024-09-10T05:45:41.564-05:00 level=INFO source=store.go:96 msg="wrote store: C:\\Users\\desco\\AppData\\Local\\Ollama\\config.json"
time=2024-09-10T05:45:41.581-05:00 level=INFO source=store.go:96 msg="wrote store: C:\\Users\\desco\\AppData\\Local\\Ollama\\config.json"
time=2024-09-10T05:45:41.582-05:00 level=INFO source=server.go:176 msg="unable to connect to server"
time=2024-09-10T05:45:41.583-05:00 level=INFO source=server.go:135 msg="starting server..."
time=2024-09-10T05:45:41.963-05:00 level=INFO source=server.go:121 msg="started ollama server with pid 7604"
time=2024-09-10T05:45:41.963-05:00 level=INFO source=server.go:123 msg="ollama server logs C:\\Users\\desco\\AppData\\Local\\Ollama\\server.log"
time=2024-09-10T05:45:43.695-05:00 level=WARN source=lifecycle.go:51 msg="Failed to launch getting started shell: getting started banner script error CreateFile C:\\Users\\desco\\AppData\\Local\\Programs\\Ollama\\ollama_welcome.ps1: The system cannot find the path specified."
  • Note: Installer launched via ollamasetup.exe /DIR="H:/ollama"

The app.log file is located in %LOCALAPPDATA%\Ollama, but the error message indicates the AppDir is erroneously set %LOCALAPPDATA%\Programs\Ollama. It's worth noting that ollama_welcome.ps1 was successfully installed to H:\ollama\ollama_welcome.ps1, which correctly follows the user-specified install directory.

Unfortunately, I have little to no proficiency in Go, but I figured I should point it out regardless.

83a9b5271a/app/lifecycle/getstarted_windows.go (L15)


Environment Info

  • OS: Windows 11 Pro, build 22631

  • CPU: Ryzen 5 3600

  • GPU: RTX 4060

  • Installer version: Preview/0.3.10.0
    SHA256: 3BE19A085685324066762F33C46C4A1121F27E7A1EA9B441D0BECF57DBB34375

Originally created by @DJStompZone on GitHub (Sep 10, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6725 Originally assigned to: @dhiltgen on GitHub. Upon installing Ollama (Preview, 0.3.10.0) on Windows*, I noticed an error in the log file: ``` time=2024-09-10T05:45:41.543-05:00 level=INFO source=logging.go:50 msg="ollama app started" time=2024-09-10T05:45:41.564-05:00 level=INFO source=store.go:96 msg="wrote store: C:\\Users\\desco\\AppData\\Local\\Ollama\\config.json" time=2024-09-10T05:45:41.581-05:00 level=INFO source=store.go:96 msg="wrote store: C:\\Users\\desco\\AppData\\Local\\Ollama\\config.json" time=2024-09-10T05:45:41.582-05:00 level=INFO source=server.go:176 msg="unable to connect to server" time=2024-09-10T05:45:41.583-05:00 level=INFO source=server.go:135 msg="starting server..." time=2024-09-10T05:45:41.963-05:00 level=INFO source=server.go:121 msg="started ollama server with pid 7604" time=2024-09-10T05:45:41.963-05:00 level=INFO source=server.go:123 msg="ollama server logs C:\\Users\\desco\\AppData\\Local\\Ollama\\server.log" time=2024-09-10T05:45:43.695-05:00 level=WARN source=lifecycle.go:51 msg="Failed to launch getting started shell: getting started banner script error CreateFile C:\\Users\\desco\\AppData\\Local\\Programs\\Ollama\\ollama_welcome.ps1: The system cannot find the path specified." ``` * Note: Installer launched via `ollamasetup.exe /DIR="H:/ollama"` The app.log file is located in `%LOCALAPPDATA%\Ollama`, but the error message indicates the AppDir is erroneously set `%LOCALAPPDATA%\Programs\Ollama`. It's worth noting that `ollama_welcome.ps1` **was** successfully installed to `H:\ollama\ollama_welcome.ps1`, which correctly follows the user-specified install directory. Unfortunately, I have little to no proficiency in Go, but I figured I should point it out regardless. https://github.com/ollama/ollama/blob/83a9b5271a68c7d1f8443f91c8d8b7d24ab581a9/app/lifecycle/getstarted_windows.go#L15 <hr> ### Environment Info - **OS**: Windows 11 Pro, build 22631 - **CPU**: Ryzen 5 3600 - **GPU**: RTX 4060 - **Installer version**: Preview/0.3.10.0 SHA256: 3BE19A085685324066762F33C46C4A1121F27E7A1EA9B441D0BECF57DBB34375
GiteaMirror added the windows label 2026-05-04 01:51:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#66274