Error on pi2

when I run systemctl start syncthing@??? I get these error messages

Feb 27 07:53:08 raspberrypi systemd[1]: /etc/systemd/system/syncthing@.service:102: Failed to parse boolean value, ignoring: disconnected Feb 27 07:53:08 raspberrypi systemd[1]: /etc/systemd/system/syncthing@.service:110: Unknown key name ‘PrivatePIDs’ in section ‘Service’, ignoring.

Any help to sort this out is appreciated.

Those don’t look like errors, they look like warnings about parts of the systemd file systemd doesn’t understand and thus ignores. Is there an actual problem?

Thanks Jakob. The issue I am having is that I can ping the pi from my laptop and ssh into it, but I cannot connect to it via any browser.

The default listener IP is bound to localhost. You need to adjust that if you want to be able to access the web UI from a different system.

Thanks bt90, I’ll google it and see how to do that.

Either via the web UI from your Pi or by editing the config file:

Thank you, I’ll take a look later

You can also use ssh to do a port forward, e.g.

ssh <user>@<pi2> -L 18384:localhost:8384

(from the top of my head, so take it with a grain of salt)

This will basically open a port 18384 on your local machine and all requests will be routed through ssh to the pi’s port 8384

i.e. in your browser on your PC you can reach the GUI on localhost:18384

OK… this is using openssh, I suppose. But you can achieve the same thing with putty under Connection:SSH:Tunnels

In which case

Source Port: 18384 (or whatever you want)

Destination: localhost:8384

I do this all the time, but I rarely need to type this anymore.

Thank you, I will give it a try

Still having an issue. I installed the approriate raspberry pi version for a pi2 and I have tried the version of ubuntu using the pi image maker and still no success. Arneko, I tried that but without any change and bt90 I couldn’t make any sense of that page you posted. Way beyond me, but thanks for trying to help. I am running LM on my laptop and raspberrypi on the pi, installed syncthing on both, but on the pi when I check to see if syncthing is running I get a message ‘failed to start syncthing.service: Unit syncthing.service not found.

How are you trying to start syncthing?

The message you are seeing is the same I get when trying “systemctl start syncthing”

You need to tell systemd what user syncthing is supposed to run as.

I.e.

sudo systemctl start syncthing@charlie (or whatever your username is)

and if you want syncthing to startup automatically after reboot

sudo systemctl enable syncthing@charlie

Thanks, Arneko. That has sorted that but I stll am not able to access the pi on the laptop’s browser. What ports am I meant to have open?

Since you are already able to log in via ssh, I would suggest my method sith the ssh port-forwarding.

I suppose “LM” refers to “Linux Mint”?

In which case, when you access via ssh, you just add the line “-L 18384:localhost:8384" to the ssh command , as I wrote above.

syncthing opens port 8384 on the pi for the webgui, you do not need to do that. But it is set up such that you can only access it from the pi itself.

Use ssh <user>@<pi2> -L 18384:localhost:8384 on the LM machine, then you can access the pi’s GUI from http://localhost:18384 from the LM machine.

Thank you, yes, LM is Linux Mint. I can still ssh but when I run the command you suggested I get this ssh: Could not resolve hostname &&&&&&&: Name or service not known

I should mention that I can access syncthing in the browser on the pi

I have reinstalled ubuntu and can ssh into the pi but have the same issue with the browser and the command you suggested. I had it working well for a number of years and it is now becoming a headache lol

Finally sorted. Ubuntu on the PC and raspian on pi2. Must have done something wrong originally but all is good now. Thanks.