Summary
I get ÔÜá Ollama error 400 when trying to chat with the llm.
It also show "Connecting to Engine"
Steps to reproduce
cloned the repo and ran Linux/install.sh, then selected Qwen 3.5 9B Uncensored Aggressive. After that I ran Linux/start.sh.
I went over the repo Issues incase I missed anything, Based on the conversation in #28, I tried replacing the files with the versions from pratham-jaiswal's fix branch:
Log Files
chat_server.log
install.log
Any help is appreciated.
Expected behavior
Model should respond back to hi
Actual behavior
I get ÔÜá Ollama error 400 when trying to chat with the llm.
Platform
Linux
OS version / device details
Arch
Server mode / launch args
No response
Relevant logs (snippet only)
================================================================================================
timestamp : 2026-06-03T00:53:49.671066-04:00
timezone : EDT
level : ERROR
event : Upstream HTTP error from Ollama: 400
Traceback (most recent call last):
File "/run/media/gordonoboh/YUMI/USB-Uncensored-LLM/Shared/chat_server.py", line 722, in _proxy_ollama
response = urllib.request.urlopen(req, timeout=600)
File "/usr/lib/python3.14/urllib/request.py", line 187, in urlopen
return opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/urllib/request.py", line 493, in open
response = meth(req, response)
File "/usr/lib/python3.14/urllib/request.py", line 602, in http_response
response = self.parent.error(
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.14/urllib/request.py", line 531, in error
return self._call_chain(*args)
~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/lib/python3.14/urllib/request.py", line 464, in _call_chain
result = func(*args)
File "/usr/lib/python3.14/urllib/request.py", line 611, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request
request_context
request_id : 79537091-bd01-4fd6-9923-0d2b5fddc461
method : POST
path : /ollama/api/chat
api_source : /ollama
client_ip : 127.0.0.1
user_agent : Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36
model_name :
model_temp : 0.7
model_stream : True
code_context
logger : chat_server
module : chat_server
function : _log_event
line : 374
thread : Thread-239 (_handle)
hardware_specs
platform : Linux
release : 7.0.5-arch1-1-g14
machine : x86_64
processor : unknown
cpu_logical : 20
ram_total_gb : 15.31
python : 3.14.5
================================================================================================
timestamp : 2026-06-03T00:53:50.476440-04:00
timezone : EDT
level : INFO
event : Chats saved successfully
request_context
request_id : b132884c-9813-4faf-8280-462437402b14
method : POST
path : /api/chats
api_source : /api/chats
client_ip : 127.0.0.1
user_agent : Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36
model_name : -
model_temp : -
model_stream : -
code_context
logger : chat_server
module : chat_server
function : _log_event
line : 374
thread : Thread-240 (_handle)
hardware_specs
platform : Linux
release : 7.0.5-arch1-1-g14
machine : x86_64
processor : unknown
cpu_logical : 20
ram_total_gb : 15.31
python : 3.14.5
Screenshots or screen recording (if possible)
Additional context
I tried using deepseek to debug and it suggested that llama.cpp might be missing from my system.
I got a different laptop
I tried building with this script and copied llama-server to Shared/bin/
git clone --depth=1 https://github.com/ggerganov/llama.cpp
cd llama.cpp
mkdir build && cd build
cmake .. -DBUILD_SHARED_LIBS=OFF -DLLAMA_STATIC=ON 2>&1 | tee cmake.log
cmake --build . --config Release -j $(nproc) 2>&1 | tee make.log
and copied llama-server from /llama.cpp/build/bin/ to Shared/bin/
chat_server.log
================================================================================================
timestamp : 2026-06-03T03:09:15.692909-04:00
timezone : EDT
level : ERROR
event : Upstream HTTP error from Ollama: 400
Traceback (most recent call last):
File "/home/gordon/Downloads/USB-Uncensored-LLM/Shared/chat_server.py", line 722, in _proxy_ollama
response = urllib.request.urlopen(req, timeout=600)
File "/usr/lib/python3.14/urllib/request.py", line 187, in urlopen
return opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/urllib/request.py", line 493, in open
response = meth(req, response)
File "/usr/lib/python3.14/urllib/request.py", line 602, in http_response
response = self.parent.error(
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.14/urllib/request.py", line 531, in error
return self._call_chain(*args)
~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/lib/python3.14/urllib/request.py", line 464, in _call_chain
result = func(*args)
File "/usr/lib/python3.14/urllib/request.py", line 611, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request
request_context
request_id : 61f545cd-34d3-4fca-b5fd-869145661eaa
method : POST
path : /ollama/api/chat
api_source : /ollama
client_ip : 192.168.1.126
user_agent : Mozilla/5.0 (X11; Linux x86_64; rv:151.0) Gecko/20100101 Firefox/151.0
model_name :
model_temp : 0.7
model_stream : True
code_context
logger : chat_server
module : chat_server
function : _log_event
line : 374
thread : Thread-1319 (_handle)
hardware_specs
platform : Linux
release : 7.0.10-arch1-1
machine : x86_64
processor : unknown
cpu_logical : 8
ram_total_gb : 15.49
python : 3.14.5
================================================================================================
timestamp : 2026-06-03T03:09:16.703595-04:00
timezone : EDT
level : INFO
event : Chats saved successfully
request_context
request_id : 07b7fcb6-3f2b-4f4e-ab90-4194cbaafebc
method : POST
path : /api/chats
api_source : /api/chats
client_ip : 192.168.1.126
user_agent : Mozilla/5.0 (X11; Linux x86_64; rv:151.0) Gecko/20100101 Firefox/151.0
model_name : -
model_temp : -
model_stream : -
code_context
logger : chat_server
module : chat_server
function : _log_event
line : 374
thread : Thread-1321 (_handle)
hardware_specs
platform : Linux
release : 7.0.10-arch1-1
machine : x86_64
processor : unknown
cpu_logical : 8
ram_total_gb : 15.49
python : 3.14.5
Summary
I get
ÔÜá Ollama error 400when trying to chat with the llm.It also show "Connecting to Engine"
Steps to reproduce
cloned the repo and ran
Linux/install.sh, then selected Qwen 3.5 9B Uncensored Aggressive. After that I ranLinux/start.sh.I went over the repo Issues incase I missed anything, Based on the conversation in #28, I tried replacing the files with the versions from pratham-jaiswal's fix branch:
Log Files
chat_server.log
install.log
Any help is appreciated.
Expected behavior
Model should respond back to
hiActual behavior
I get
ÔÜá Ollama error 400when trying to chat with the llm.Platform
Linux
OS version / device details
Arch
Server mode / launch args
No response
Relevant logs (snippet only)
================================================================================================
timestamp : 2026-06-03T00:53:49.671066-04:00
timezone : EDT
level : ERROR
event : Upstream HTTP error from Ollama: 400
Traceback (most recent call last):
File "/run/media/gordonoboh/YUMI/USB-Uncensored-LLM/Shared/chat_server.py", line 722, in _proxy_ollama
response = urllib.request.urlopen(req, timeout=600)
File "/usr/lib/python3.14/urllib/request.py", line 187, in urlopen
return opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/urllib/request.py", line 493, in open
response = meth(req, response)
File "/usr/lib/python3.14/urllib/request.py", line 602, in http_response
response = self.parent.error(
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.14/urllib/request.py", line 531, in error
return self._call_chain(*args)
~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/lib/python3.14/urllib/request.py", line 464, in _call_chain
result = func(*args)
File "/usr/lib/python3.14/urllib/request.py", line 611, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request
request_context
request_id : 79537091-bd01-4fd6-9923-0d2b5fddc461
method : POST
path : /ollama/api/chat
api_source : /ollama
client_ip : 127.0.0.1
user_agent : Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36
model_name :
model_temp : 0.7
model_stream : True
code_context
logger : chat_server
module : chat_server
function : _log_event
line : 374
thread : Thread-239 (_handle)
hardware_specs
platform : Linux
release : 7.0.5-arch1-1-g14
machine : x86_64
processor : unknown
cpu_logical : 20
ram_total_gb : 15.31
python : 3.14.5
================================================================================================
timestamp : 2026-06-03T00:53:50.476440-04:00
timezone : EDT
level : INFO
event : Chats saved successfully
request_context
request_id : b132884c-9813-4faf-8280-462437402b14
method : POST
path : /api/chats
api_source : /api/chats
client_ip : 127.0.0.1
user_agent : Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36
model_name : -
model_temp : -
model_stream : -
code_context
logger : chat_server
module : chat_server
function : _log_event
line : 374
thread : Thread-240 (_handle)
hardware_specs
platform : Linux
release : 7.0.5-arch1-1-g14
machine : x86_64
processor : unknown
cpu_logical : 20
ram_total_gb : 15.31
python : 3.14.5
Screenshots or screen recording (if possible)
Additional context
I tried using deepseek to debug and it suggested that llama.cpp might be missing from my system.
I got a different laptop
I tried building with this script and copied llama-server to Shared/bin/
and copied llama-server from /llama.cpp/build/bin/ to Shared/bin/
chat_server.log
================================================================================================
timestamp : 2026-06-03T03:09:15.692909-04:00
timezone : EDT
level : ERROR
event : Upstream HTTP error from Ollama: 400
Traceback (most recent call last):
File "/home/gordon/Downloads/USB-Uncensored-LLM/Shared/chat_server.py", line 722, in _proxy_ollama
response = urllib.request.urlopen(req, timeout=600)
File "/usr/lib/python3.14/urllib/request.py", line 187, in urlopen
return opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/urllib/request.py", line 493, in open
response = meth(req, response)
File "/usr/lib/python3.14/urllib/request.py", line 602, in http_response
response = self.parent.error(
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.14/urllib/request.py", line 531, in error
return self._call_chain(*args)
~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/lib/python3.14/urllib/request.py", line 464, in _call_chain
result = func(*args)
File "/usr/lib/python3.14/urllib/request.py", line 611, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request
request_context
request_id : 61f545cd-34d3-4fca-b5fd-869145661eaa
method : POST
path : /ollama/api/chat
api_source : /ollama
client_ip : 192.168.1.126
user_agent : Mozilla/5.0 (X11; Linux x86_64; rv:151.0) Gecko/20100101 Firefox/151.0
model_name :
model_temp : 0.7
model_stream : True
code_context
logger : chat_server
module : chat_server
function : _log_event
line : 374
thread : Thread-1319 (_handle)
hardware_specs
platform : Linux
release : 7.0.10-arch1-1
machine : x86_64
processor : unknown
cpu_logical : 8
ram_total_gb : 15.49
python : 3.14.5
================================================================================================
timestamp : 2026-06-03T03:09:16.703595-04:00
timezone : EDT
level : INFO
event : Chats saved successfully
request_context
request_id : 07b7fcb6-3f2b-4f4e-ab90-4194cbaafebc
method : POST
path : /api/chats
api_source : /api/chats
client_ip : 192.168.1.126
user_agent : Mozilla/5.0 (X11; Linux x86_64; rv:151.0) Gecko/20100101 Firefox/151.0
model_name : -
model_temp : -
model_stream : -
code_context
logger : chat_server
module : chat_server
function : _log_event
line : 374
thread : Thread-1321 (_handle)
hardware_specs
platform : Linux
release : 7.0.10-arch1-1
machine : x86_64
processor : unknown
cpu_logical : 8
ram_total_gb : 15.49
python : 3.14.5