sudo systemctl status ownsona.service sudo systemctl restart ownsona.service # required after any application.ini change sudo systemctl stop ownsona.service sudo systemctl start ownsona.service journalctl -u ownsona.service -f # live application + Tomcat logs
cd /home/ownsona/ownsona ./bld -v build && ./bld war cp work/Kiss.war /home/ownsona/tomcat/webapps/ROOT.war # autoDeploy redeploys in ~10 s; no service restart needed for code changes.
application.ini is read once at servlet load, so editing it requires a fresh build (so the new ini lands in the WAR) followed by redeploy or service restart.
sudo systemctl list-timers ownsona-backup.timer # next run sudo systemctl start ownsona-backup.service # one-shot now sudo tail -f /var/log/ownsona-backup.log # last run + history
| Log path | Rotated by | Retention |
|---|---|---|
| Application stdout (log4j2 console) | journald | journald defaults (~4 GiB) |
| tomcat/logs/catalina.YYYY-MM-DD.log | Tomcat juli | maxDays=90 |
| tomcat/logs/localhost_access_log.YYYY-MM-DD.txt | AccessLogValve | maxDays=90 |
| tomcat/logs/catalina.out | n/a | unused under systemd |
Generate a new token, update OWNSONA_API_TOKEN in
src/main/backend/application.ini, run ./bld -v build
&& ./bld war to rebuild the WAR, redeploy, and distribute the new
token to MCP clients. There is no dual-token grace window; clients
see a 401 until they update.
journalctl -u ownsona.service shows
BindException: Permission denied: the service couldn’t bind
80/443. systemd’s AmbientCapabilities is missing from
ownsona.service, or the service’s User= was changed and
the override no longer applies.
EMBEDDING_ERROR with insufficient_quota:
the OpenAI account is out of credit. Top up; auth, DB, listing, and
text search keep working.
AUTH_FAILED on every request:
OWNSONA_API_TOKEN doesn’t match what the client is sending, or
the WAR wasn’t rebuilt/redeployed after editing the ini.
autoDeploy="true".