Problem with the Syncthing addon

Hi, I’m new to CoreElec. I have it installed on an SD card in a Minix U8K. Everything is fine, but I can’t get the Syncthing addon to work (it seems to be running, but it doesn’t allow web access).

Following the post “Syncthing 2.x plugin broken” ( Syncthing 2.x plugin broken ), I modified the syncthing-service file, which now looks like this:

#!/bin/sh

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)

. /etc/profile
oe_setup_addon service.system.syncthing

export TZ="Europe/Madrid"

sleep 60

STNODEFAULTFOLDER="1" syncthing --home=$ADDON_HOME
--gui-address="0.0.0.0:8384"
--logflags=0
--logfile=$ADDON_HOME/syncthing.log
--no-browser
--no-restart
&

But web access still isn’t working. What could be wrong?

systemctl status service.system.syncthing.service -l
1 Like
● service.system.syncthing.service - Syncthing - Open Source Continuous File Synchronization
     Loaded: loaded (/storage/.config/system.d/service.system.syncthing.service; enabled; preset: disabled)
     Active: activating (start) since Sun 2025-12-07 18:46:32 CET; 21s ago
       Docs: http://docs.syncthing.net/
  Cntrl PID: 3280 (sh)
      Tasks: 2 (limit: 7135)
     Memory: 996.0K ()
     CGroup: /system.slice/service.system.syncthing.service
             ├─3280 /bin/sh /storage/.kodi/addons/service.system.syncthing/bin/syncthing-service
             └─3291 sleep 60

Dec 07 18:46:32 CoreELEC systemd[1]: Failed to start service.system.syncthing.service.
Dec 07 18:46:32 CoreELEC systemd[1]: service.system.syncthing.service: Scheduled restart job, restart counter is at 44.
Dec 07 18:46:32 CoreELEC systemd[1]: Starting service.system.syncthing.service...

In your start file above you are missing \ at the end of the lines for command. Check the original file.

1 Like

Solved, thank you so much for your help.
I’ve attached the file that worked in case it’s useful to anyone:

#!/bin/sh

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)

. /etc/profile
oe_setup_addon service.system.syncthing

export TZ="Europe/Madrid"

sleep 60

STNODEFAULTFOLDER="1" syncthing --home=$ADDON_HOME           \
                                --gui-address="0.0.0.0:8384" \
                                --logflags=0                 \
                                --no-browser                 \
                                --no-restart                 \
                                &

You could probably just set timezone in service file directly with

Environment="TZ=Europe/Madrid"

The question is also why do you need to set this manually?

Thanks, but I’m a rookie and don’t know how to do that.

But your help solved the problem, thank you.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.