Repository: ollama
Issue: Report better error on windows on port conflict with winnat
Labels: feature request,windows

Hi DevOps

My Ollama was working fine for me until I tried to use it today not sure what has happened.  The LOGS show this repeated Crash and attempt to reload in the app.log
Time=2024-03-25T12:09:31.329-05:00 level=INFO source=logging.go:45 msg="ollama app started"
time=2024-03-25T12:09:31.389-05:00 level=INFO source=server.go:135 msg="unable to connect to server"
time=2024-03-25T12:09:34.633-05:00 level=INFO source=server.go:91 msg="started ollama server with pid 33376"
time=2024-03-25T12:09:34.633-05:00 level=INFO source=server.go:93 msg="ollama server logs C:\\Users\\David\\AppData\\Local\\Ollama\\server.log"
time=2024-03-25T12:09:35.525-05:00 level=WARN source=server.go:113 msg="server crash 1 - exit code 1 - respawning"
time=2024-03-25T12:09:36.037-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:09:37.038-05:00 level=WARN source=server.go:113 msg="server crash 2 - exit code 1 - respawning"
time=2024-03-25T12:09:37.550-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:09:39.557-05:00 level=WARN source=server.go:113 msg="server crash 3 - exit code 1 - respawning"
time=2024-03-25T12:09:40.071-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:09:43.072-05:00 level=WARN source=server.go:113 msg="server crash 4 - exit code 1 - respawning"
time=2024-03-25T12:09:43.572-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:09:47.587-05:00 level=WARN source=server.go:113 msg="server crash 5 - exit code 1 - respawning"
time=2024-03-25T12:09:48.087-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:09:53.087-05:00 level=WARN source=server.go:113 msg="server crash 6 - exit code 1 - respawning"
time=2024-03-25T12:09:53.599-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:09:59.613-05:00 level=WARN source=server.go:113 msg="server crash 7 - exit code 1 - respawning"
time=2024-03-25T12:10:00.116-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:10:07.123-05:00 level=WARN source=server.go:113 msg="server crash 8 - exit code 1 - respawning"
time=2024-03-25T12:10:07.636-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:10:15.651-05:00 level=WARN source=server.go:113 msg="server crash 9 - exit code 1 - respawning"
time=2024-03-25T12:10:16.166-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:10:25.171-05:00 level=WARN source=server.go:113 msg="server crash 10 - exit code 1 - respawning"
time=2024-03-25T12:10:25.683-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:10:35.698-05:00 level=WARN source=server.go:113 msg="server crash 11 - exit code 1 - respawning"
time=2024-03-25T12:10:36.207-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:10:47.222-05:00 level=WARN source=server.go:113 msg="server crash 12 - exit code 1 - respawning"
time=2024-03-25T12:10:47.734-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:10:59.745-05:00 level=WARN source=server.go:113 msg="server crash 13 - exit code 1 - respawning"
time=2024-03-25T12:11:00.252-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:11:13.267-05:00 level=WARN source=server.go:113 msg="server crash 14 - exit code 1 - respawning"
time=2024-03-25T12:11:13.782-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:11:27.784-05:00 level=WARN source=server.go:113 msg="server crash 15 - exit code 1 - respawning"
time=2024-03-25T12:11:28.293-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:11:43.295-05:00 level=WARN source=server.go:113 msg="server crash 16 - exit code 1 - respawning"
time=2024-03-25T12:11:43.810-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:11:59.814-05:00 level=WARN source=server.go:113 msg="server crash 17 - exit code 1 - respawning"
time=2024-03-25T12:12:00.328-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:12:17.333-05:00 level=WARN source=server.go:113 msg="server crash 18 - exit code 1 - respawning"
time=2024-03-25T12:12:17.845-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:12:35.856-05:00 level=WARN source=server.go:113 msg="server crash 19 - exit code 1 - respawning"
time=2024-03-25T12:12:36.370-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:12:55.374-05:00 level=WARN source=server.go:113 msg="server crash 20 - exit code 1 - respawning"
time=2024-03-25T12:12:55.888-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:13:15.889-05:00 level=WARN source=server.go:113 msg="server crash 21 - exit code 1 - respawning"
time=2024-03-25T12:13:16.403-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:13:37.410-05:00 level=WARN source=server.go:113 msg="server crash 22 - exit code 1 - respawning"
time=2024-03-25T12:13:37.924-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:13:59.930-05:00 level=WARN source=server.go:113 msg="server crash 23 - exit code 1 - respawning"
time=2024-03-25T12:14:00.436-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:14:23.441-05:00 level=WARN source=server.go:113 msg="server crash 24 - exit code 1 - respawning"
time=2024-03-25T12:14:23.954-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:14:47.968-05:00 level=WARN source=server.go:113 msg="server crash 25 - exit code 1 - respawning"
time=2024-03-25T12:14:48.482-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:15:13.490-05:00 level=WARN source=server.go:113 msg="server crash 26 - exit code 1 - respawning"
time=2024-03-25T12:15:14.003-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:15:40.015-05:00 level=WARN source=server.go:113 msg="server crash 27 - exit code 1 - respawning"
time=2024-03-25T12:15:40.529-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:16:07.542-05:00 level=WARN source=server.go:113 msg="server crash 28 - exit code 1 - respawning"
time=2024-03-25T12:16:08.052-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:16:36.055-05:00 level=WARN source=server.go:113 msg="server crash 29 - exit code 1 - respawning"
time=2024-03-25T12:16:36.569-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:17:05.578-05:00 level=WARN source=server.go:113 msg="server crash 30 - exit code 1 - respawning"
time=2024-03-25T12:17:06.089-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:17:36.095-05:00 level=WARN source=server.go:113 msg="server crash 31 - exit code 1 - respawning"
time=2024-03-25T12:17:36.595-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:18:07.599-05:00 level=WARN source=server.go:113 msg="server crash 32 - exit code 1 - respawning"
time=2024-03-25T12:18:08.108-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:18:40.115-05:00 level=WARN source=server.go:113 msg="server crash 33 - exit code 1 - respawning"
time=2024-03-25T12:18:40.628-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:19:13.638-05:00 level=WARN source=server.go:113 msg="server crash 34 - exit code 1 - respawning"
time=2024-03-25T12:19:14.152-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:19:48.153-05:00 level=WARN source=server.go:113 msg="server crash 35 - exit code 1 - respawning"
time=2024-03-25T12:19:48.664-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:20:23.680-05:00 level=WARN source=server.go:113 msg="server crash 36 - exit code 1 - respawning"
time=2024-03-25T12:20:24.181-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:21:00.187-05:00 level=WARN source=server.go:113 msg="server crash 37 - exit code 1 - respawning"
time=2024-03-25T12:21:00.696-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:21:37.709-05:00 level=WARN source=server.go:113 msg="server crash 38 - exit code 1 - respawning"
time=2024-03-25T12:21:38.210-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:22:16.225-05:00 level=WARN source=server.go:113 msg="server crash 39 - exit code 1 - respawning"
time=2024-03-25T12:22:16.728-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:22:55.736-05:00 level=WARN source=server.go:113 msg="server crash 40 - exit code 1 - respawning"
time=2024-03-25T12:22:56.251-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:23:36.259-05:00 level=WARN source=server.go:113 msg="server crash 41 - exit code 1 - respawning"
time=2024-03-25T12:23:36.772-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:24:17.786-05:00 level=WARN source=server.go:113 msg="server crash 42 - exit code 1 - respawning"
time=2024-03-25T12:24:18.297-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:25:00.300-05:00 level=WARN source=server.go:113 msg="server crash 43 - exit code 1 - respawning"
time=2024-03-25T12:25:00.801-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:25:43.807-05:00 level=WARN source=server.go:113 msg="server crash 44 - exit code 1 - respawning"
time=2024-03-25T12:25:44.319-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:26:28.319-05:00 level=WARN source=server.go:113 msg="server crash 45 - exit code 1 - respawning"
time=2024-03-25T12:26:28.834-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:27:13.836-05:00 level=WARN source=server.go:113 msg="server crash 46 - exit code 1 - respawning"
time=2024-03-25T12:27:14.349-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:28:00.358-05:00 level=WARN source=server.go:113 msg="server crash 47 - exit code 1 - respawning"
time=2024-03-25T12:28:00.858-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:28:47.859-05:00 level=WARN source=server.go:113 msg="server crash 48 - exit code 1 - respawning"
time=2024-03-25T12:28:48.370-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:29:36.379-05:00 level=WARN source=server.go:113 msg="server crash 49 - exit code 1 - respawning"
time=2024-03-25T12:29:36.890-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:30:25.903-05:00 level=WARN source=server.go:113 msg="server crash 50 - exit code 1 - respawning"
time=2024-03-25T12:30:26.414-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:31:16.423-05:00 level=WARN source=server.go:113 msg="server crash 51 - exit code 1 - respawning"
time=2024-03-25T12:31:16.928-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:32:07.931-05:00 level=WARN source=server.go:113 msg="server crash 52 - exit code 1 - respawning"
time=2024-03-25T12:32:08.440-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:33:00.453-05:00 level=WARN source=server.go:113 msg="server crash 53 - exit code 1 - respawning"
time=2024-03-25T12:33:00.967-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:33:53.982-05:00 level=WARN source=server.go:113 msg="server crash 54 - exit code 1 - respawning"
time=2024-03-25T12:33:54.492-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:34:48.500-05:00 level=WARN source=server.go:113 msg="server crash 55 - exit code 1 - respawning"
time=2024-03-25T12:34:49.001-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:35:44.010-05:00 level=WARN source=server.go:113 msg="server crash 56 - exit code 1 - respawning"
time=2024-03-25T12:35:44.519-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:36:40.524-05:00 level=WARN source=server.go:113 msg="server crash 57 - exit code 1 - respawning"
time=2024-03-25T12:36:41.036-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:37:38.048-05:00 level=WARN source=server.go:113 msg="server crash 58 - exit code 1 - respawning"
time=2024-03-25T12:37:38.556-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:38:36.560-05:00 level=WARN source=server.go:113 msg="server crash 59 - exit code 1 - respawning"
time=2024-03-25T12:38:37.076-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:39:36.085-05:00 level=WARN source=server.go:113 msg="server crash 60 - exit code 1 - respawning"
time=2024-03-25T12:39:36.597-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:40:36.611-05:00 level=WARN source=server.go:113 msg="server crash 61 - exit code 1 - respawning"
time=2024-03-25T12:40:37.120-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:41:38.134-05:00 level=WARN source=server.go:113 msg="server crash 62 - exit code 1 - respawning"
time=2024-03-25T12:41:38.642-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:42:40.653-05:00 level=WARN source=server.go:113 msg="server crash 63 - exit code 1 - respawning"
time=2024-03-25T12:42:41.167-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:43:44.169-05:00 level=WARN source=server.go:113 msg="server crash 64 - exit code 1 - respawning"
time=2024-03-25T12:43:44.681-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:44:48.683-05:00 level=WARN source=server.go:113 msg="server crash 65 - exit code 1 - respawning"
time=2024-03-25T12:44:49.190-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:45:54.201-05:00 level=WARN source=server.go:113 msg="server crash 66 - exit code 1 - respawning"
time=2024-03-25T12:45:54.714-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:47:00.715-05:00 level=WARN source=server.go:113 msg="server crash 67 - exit code 1 - respawning"
time=2024-03-25T12:47:01.226-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:48:08.233-05:00 level=WARN source=server.go:113 msg="server crash 68 - exit code 1 - respawning"
time=2024-03-25T12:48:08.747-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:49:16.758-05:00 level=WARN source=server.go:113 msg="server crash 69 - exit code 1 - respawning"
time=2024-03-25T12:49:17.269-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:50:26.284-05:00 level=WARN source=server.go:113 msg="server crash 70 - exit code 1 - respawning"
time=2024-03-25T12:50:26.796-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:51:36.803-05:00 level=WARN source=server.go:113 msg="server crash 71 - exit code 1 - respawning"
time=2024-03-25T12:51:37.313-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:52:48.320-05:00 level=WARN source=server.go:113 msg="server crash 72 - exit code 1 - respawning"
time=2024-03-25T12:52:48.830-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:54:00.841-05:00 level=WARN source=server.go:113 msg="server crash 73 - exit code 1 - respawning"
time=2024-03-25T12:54:01.353-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:55:14.366-05:00 level=WARN source=server.go:113 msg="server crash 74 - exit code 1 - respawning"
time=2024-03-25T12:55:14.880-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:56:28.893-05:00 level=WARN source=server.go:113 msg="server crash 75 - exit code 1 - respawning"
time=2024-03-25T12:56:29.394-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:57:44.407-05:00 level=WARN source=server.go:113 msg="server crash 76 - exit code 1 - respawning"
time=2024-03-25T12:57:44.917-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T12:59:00.925-05:00 level=WARN source=server.go:113 msg="server crash 77 - exit code 1 - respawning"
time=2024-03-25T12:59:01.436-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T13:00:18.439-05:00 level=WARN source=server.go:113 msg="server crash 78 - exit code 1 - respawning"
time=2024-03-25T13:00:18.951-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T13:01:36.954-05:00 level=WARN source=server.go:113 msg="server crash 79 - exit code 1 - respawning"
time=2024-03-25T13:01:37.466-05:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-03-25T13:02:24.837-05:00 level=INFO source=logging.go:45 msg="ollama app started"
time=2024-03-25T13:02:24.898-05:00 level=INFO source=server.go:135 msg="unable to connect to server"


In the server log it shows
Error: listen tcp 127.0.0.1:11434: bind: An attempt was made to access a socket in a way forbidden by its access permissions.