youtrack service

I upgrade youtrack from 2022.3(jar) to 2023.1(zip), i have an issue with the service.

The old service were based on jar and i need a new service based on zip.

I need your help please.


I'm Sergey from the YouTrack team.

Please follow these guidelines to migrate to the ZIP installation:
Hi Sergey Merzlov

Below is youtrack service status and service definition in 2022.3.
When the upgrade is finished, I don't have to make changes to the current configuration
of the service or I have to change any parameters.
● youtrack.service - Youtrack
   Loaded: loaded (/etc/systemd/system/youtrack.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2023-05-17 22:53:06 AST; 6 days ago
  Process: 7139 ExecStop=/usr/bin/java -jar /youtrack/youtrack.jar stop (code=exited, status=0/SUCCESS)
 Main PID: 8154 (java)
    Tasks: 132 (limit: 126248)
   Memory: 15.3G
   CGroup: /system.slice/youtrack.service
           ├─8154 /usr/bin/java -jar /youtrack/youtrack.jar --J-Xms4G --J-Xmx6G --J-Dlog4j2.formatMsgNoLookups=true 8080
         └─8197 /youtrack/.youtrack/app/internal/java/linux-x64/bin/java -Djl.service=YouTrack -Djl.home=/youtrack/.youtrack/app -XX:+HeapDumpOnOutOfMem>


The systemd service:


ExecStart=/usr/bin/java -jar /youtrack/youtrack.jar --J-Xms4G --J-Xmx6G --J-Dlog4j2.formatMsgNoLookups=true 8080
ExecStop=/usr/bin/java -jar /youtrack/youtrack.jar stop





Thanks for your response.

The way you pass the parameters, they are only applied with the service start and do not persist in the configuration files. Please pass them on the persistent basis as described in 

Also, '-Dlog4j2.formatMsgNoLookups=true' has been obsolete for quite a few versions, so you can safely remove it. 

Additionally, you need to update the service to execute the script to start YouTrack instead of running the jar file. The exact command examples can be found in the doc I linked previously. 

Another point is that beside ZIP, you can use Docker, which we have related instructions for: Run Docker Container as a Service


Hi, Sergey Merzlov.

Thanks for the help, it was very useful.


You are welcome, Israel Moncion. Happy to help! 


Please sign in to leave a comment.