QNAP NAS package (QPKG) available

Sorry, I can’t help here as I don’t own a Synology NAS.

We are running under QNAP’s root account which may be problematic in some future firmware versions, maybe, depending on what strategy QNAP takes.

Same you have now with Synology DSM 7. The package of Safihre from SynoCommunity runs very good in that new environment. The 3rd party installer also can not run longer as root, which was possible up to DSM 6.

Note that Safihre stepped down as maintainer for the SynoCommunity Syncthing SPK package, though he is still around. There are other people (including me) who keep the package alive though, so from my perspective there’s no need to advertise for making a new package for Synology.

1 Like

Thanks @Catfriend1. I was able to download and install that QPKG file on my brand new QNAP TS-1673 NAS (QTS 5.0.0.1891). However while it installed, it doesn’t seem to run. Is this version of NAS unsupported, or am I doing something wrong?

Also, I note there is a Syncthing app download available from the QNAP Club website (qnapclub.eu). Is this the same software? There is a list of available versions on the download page (click the download button to drop down the list), but my NAS model is not on the list.

I’ll post a couple of pictures, the first is the icon in the app store, and the second is what I get when I click ‘open’. Clicking ‘open’ again in the dialog window does nothing.

Hi,

you need to edit /share/CACHEDEVx_DATA/.qpkg/Syncthing/config.xml to activate the Web Gui remote access first and set a port. I didn’t open the web ui to the outside by default as there are still users installing the pkg on their box , wan-exposed, and then complaining the web ui of ST is exposed to everyone outside without a password.

Figured I’d just improve upon this answer regarding support in QNAP devices.

By default, access to the Web GUI is disabled outside of the device itself, so you have to edit the /share/CACHEDEVx_DATA/.qpkg/Syncthing/config.xml file and look for the following:

<gui enabled="true" tls="false" debugging="false">
    <address>127.0.0.1:8384</address>
    <apikey>zz3OPxjCCkgMYHVgpR2saN9dg3HbG2eg</apikey>
    <theme>default</theme>
</gui>

and ensure that the <address> line is changed from 127.0.0.1:8384 to 0.0.0.0:8384

Then, if you want to configure the QNAP Admin Page Web GUI to open the application when clicking the open icon for it, you’ll need to edit the /etc/config/qpkg.cfg file and look for the [syncthing] entry in this file (which will be near the end of the file if you just installed the syncthing qpkg package) and add the following to the end of this entry:

WebUI = /
Web_Port = 8384

Ensure you have restarted syncthing via the QNAP Web GUI or via ssh (by running /share/CACHEDEVx_DATA/.qpkg/Syncthing/syncthing.sh restart) and you should now be able to open Synthing via your QNAP IP address or the “open” link in the Web GUI (reload the page after making edits described above).

Note you can also define whatever port number (provided it is available in your QNAP NAS) by replacing 8384 with whatever you prefer in BOTH the config files described above.

Hope this helps.

2 Likes

@ouija Hi,

I’ve changed the QPKG so that the Syncthing Web UI is listening on 0.0.0.0:8384 and can be accessed from the QNAP app center page by clicking on “Open”.

Kind regards, Catfriend1

Link to QPKG download: Release Syncthing QPKG v1.20.4 · Catfriend1/syncthing-msi · GitHub

and

https://github.com/Catfriend1/syncthing-msi/releases/download/v1.20.4-qpkg/syncthing_1.20.4_x86_64.qpkg

Link to source which shows how to build the QPKG yourself: syncthing-msi/unrelated_stuff/qpkg at master · Catfriend1/syncthing-msi · GitHub

1 Like

I’ve got a ticket that QNAP Firmware 5.0.1+ doesn’t allow to install/run the package. I’ve fixed that in the recent build of the QPKG.

Link: https://github.com/Catfriend1/syncthing-msi/releases/download/v1.23.0/syncthing_1.23.0_x86_64.qpkg

I forked Catfriend1’s repository and built packages for all archs. I can only test arm_64 on my QNAP TS-233 which works. Any feedback is much appreciated. :slight_smile:

2 Likes

Successfully installed ARMx19 package on very old QNAP TS-219P+ (QTS 4.3.3.2211). Syncing some folders worked, CPU and RAM usage is moderate. Thanks!

3 Likes

Thanks for the feedback.

Thank you for this. I’m using x86_64 successfully on my TS-869L.

The web GUI gives me this notice: “Syncthing should not run as a privileged or system user. Please consider using a normal user account.”

Is there a way to run this qpkg as a non-admin user?

Thanks! I’ve tried on my brand new TS-130. I could successfully install the syncthing_1.23.0_arm_64.qpkg package. Unfortunately, I faced the exact same problem as @ben.mcintyre, i.e. clicking ‘open’ on the app does nothing. I can’t make sense of what Catfriend1 and @ouija explained as I can’t find a way to find those directories/files on my QNAP. Looks like a linux path, but I only have Windows installed at home.

Ok, I figure out how to enable Telnet/SSH On QNAP and Windows 10. I had to manualy add the lines in /etc/config/qpkg.conf as explained by @ouija. This then solves the issue and I could successfully open the Syncthing WEB UI. Thank you guys for the tricks !

1 Like

I’m in a similar situation in terms of following @ouija’s advice. Do you have a link to any resources that helped you or an idiots guide to getting the app to work?

Sorry I don’t have a qNAP but can you run docker containers? Synology has a nice package I can install but I prefer to run the docker so I know precisely what’s exposed to the container and can access the internal terminal and internal config files.

Anyway just a thought.

Installed syncthing_1.23.0_x86_64 on QNAP TS451+

After installing the app, only had to carry out these steps to launch the app (which were a challenge for me as required SSH):

Edit the /etc/config/qpkg.cfg file and look for the [syncthing] entry in this file (which will be near the end of the file if you just installed the syncthing qpkg package) and add the following to the end of this entry:

WebUI = /
Web_Port = 8384

Credit @ouija QNAP NAS package (QPKG) available - #54 by ouija

To do this, I enabled SSH on a new port on the NAS and then used Command Prompt to SSH and edit the file using vim.

For an unknown reason, I could not find the .qpkg/Syncthing/ directory anywhere. Had 2x CACHEDEV_x directories and did not find it. @bmachek

Web GUI was already listening on 0.0.0.0:8384 when launched.

Resource I used when working out how to use/edit via SSH: Creating and editing a file via SSH – DreamHost Knowledge Base

Thanks for your help!

@bmachek @Catfriend1 currently get this warning when launching, not sure if you know whether this is expected/required:

Syncthing should not run as a privileged or system user. Please consider using a normal user account.

Is it possible to set the user that runs the app based on the run location, say if you have multiple users who want their own GUI and directories?

I no longer own a qnap. But I remember this to be a single user Linux OS where most qnap services run under root.

For reference, I have a new TX535XeU which is ARM based, and installed the QNAP ARM version from this URL and it worked w/o issues. Updated to latest v1.26.1 Linux 64 bit ARM Syncthing. This URL also have a variety of other QNAP architectures. Good luck!

1 Like