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.

0
5 comments
Hi!

I'm Sergey from the YouTrack team.

Please follow these guidelines to migrate to the ZIP installation: https://www.jetbrains.com/help/youtrack/server/Upgrade-YouTrack-ZIP.html#upgrade-non-zip-to-zip.
1
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:

[Unit]
Description=Youtrack
Requires=network.target
After=syslog.target network.target

[Service]
Type=simple
WorkingDirectory=/youtrack
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
User=youtrack

[Install]
WantedBy=default.target

 

 

0

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 https://www.jetbrains.com/help/youtrack/server/Configure-JVM-Options.html#set-jvm-options. 

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 youtrack.sh 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

1

Hi, Sergey Merzlov.

Thanks for the help, it was very useful.

0

You are welcome, Israel Moncion. Happy to help! 

0

Please sign in to leave a comment.