[Solved] Server not starting, and no logs

Hi, I have YaCy running locally on macOS and it works perfectly, but when I try to run it on Ubuntu 26 using the full Unix instructions, startYACY.sh exits after a few seconds without logs.

If I look at the systemctl logs it just says:

Oct 24 22:05:46 Ubuntu-2604-resolute-amd64-base systemd[1]: Starting yacy.service - YaCy server...
Oct 24 22:05:48 Ubuntu-2604-resolute-amd64-base startYACY.sh[1551]: ****************** YaCy Web Crawler/Indexer & Search Engine *******************
Oct 24 22:05:48 Ubuntu-2604-resolute-amd64-base startYACY.sh[1551]: **** (C) by Michael Peter Christen, usage granted under the GPL Version 2  ****
Oct 24 22:05:48 Ubuntu-2604-resolute-amd64-base startYACY.sh[1551]: ****   USE AT YOUR OWN RISK! Project home and releases: https://yacy.net/  ****
Oct 24 22:05:48 Ubuntu-2604-resolute-amd64-base startYACY.sh[1551]: **  LOG of       YaCy: DATA/LOG/yacy00.log (and yacy<xx>.log)                **
Oct 24 22:05:48 Ubuntu-2604-resolute-amd64-base startYACY.sh[1551]: **  STOP         YaCy: execute stopYACY.sh and wait some seconds             **
Oct 24 22:05:48 Ubuntu-2604-resolute-amd64-base startYACY.sh[1551]: **  GET HELP for YaCy: join our community at https://community.searchlab.eu  **
Oct 24 22:05:48 Ubuntu-2604-resolute-amd64-base startYACY.sh[1551]: *******************************************************************************
Oct 24 22:05:48 Ubuntu-2604-resolute-amd64-base startYACY.sh[1551]:  >> YaCy started as daemon process. Administration at http://localhost:8090 <<
Oct 24 22:05:48 Ubuntu-2604-resolute-amd64-base systemd[1]: Started yacy.service - YaCy server.
Oct 24 22:05:49 Ubuntu-2604-resolute-amd64-base systemd[1]: yacy.service: Main process exited, code=exited, status=1/FAILURE
Oct 24 22:05:49 Ubuntu-2604-resolute-amd64-base systemd[1]: yacy.service: Failed with result 'exit-code'.
Oct 24 22:05:49 Ubuntu-2604-resolute-amd64-base systemd[1]: yacy.service: Consumed 160ms CPU time over 2.551s wall clock time, 76.9M memory peak.

Could it be to do with the user permissions in the instructions? The DATA directory didn’t even exist so I guess it’s failing to create it, and I have created it manually. All of the files are owned by the yacy admin user except that DATA/LOGS file which I assigned to the regular yacy user.

Any ideas how I can debug it further? Thanks!

It turns out that Git had detected the different user permissions and failed to finish building YaCy. I needed to add:

git config --global --add safe.directory /home/yacy

and rerun the ant command. Now it’s running. Thanks for the project, I’m looking forward to using it