# Where did upgrade options go?

**URL:** https://forum.syncthing.net/t/where-did-upgrade-options-go/12600
**Category:** Support
**Created:** [December 27, 2018, 5:37am UTC](https://forum.syncthing.net/t/where-did-upgrade-options-go/12600 "2018-12-27T05:37:16Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![increa](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/i/dfb087/32.png) [@increa](https://forum.syncthing.net/u/increa)
#### Post date: [December 27, 2018, 5:37am UTC](https://forum.syncthing.net/t/where-did-upgrade-options-go/12600/1 "2018-12-27T05:37:16Z")

</div>

I maintain two Raspberry Pi computers running Syncthing. One of them is happily running “v0.14.54, Linux (ARM)”. I just noticed today that the other one is stuck at version “v0.14.18-dfsg1, Linux (ARM)”.

How do I get the second one to upgrade? Where is the “Auto upgrades” option on the GUI? Did I accidentally get down some bad fork in the software on the second Pi? I don’t know what the “dfsg1” means, but maybe that was a mistake?

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [December 27, 2018, 6:57am UTC](https://forum.syncthing.net/t/where-did-upgrade-options-go/12600/2 "2018-12-27T06:57:46Z")

</div>

“Dfsg” means it’s packaged by Debian. Hence it is upgraded by apt, not by itself.

You probably want to add our [apt.syncthing.net](http://apt.syncthing.net) or uninstall and use the binaries from GitHub directly.

---

<div class="post-metadata">

### Author: ![increa](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/i/dfb087/32.png) [@increa](https://forum.syncthing.net/u/increa)
#### Post date: [December 29, 2018, 1:42pm UTC](https://forum.syncthing.net/t/where-did-upgrade-options-go/12600/3 "2018-12-29T13:42:30Z")

</div>

Jakob,

Thank you again for an answer that gives a little bit of new understanding that helps scope the answer. I understand 3 choices:

1. install from separate 3rd part repository (raspberry). Upgrades only when the OS distributor chooses to upgrade their version. Upgrade options do not show in the web GUI.

2. install from a [syncthing.net](http://syncthing.net) repository. Upgrades available using apt-get externally whenever syncthing releases a new version. Upgrade options do not show in the web GUI.

3. install from the github compiled binaryies. Auto-pushed upgrades (or not) according to the in-GUI selection.

I decided on Option 2. I visited [apt.syncthing.net](http://apt.syncthing.net) from your link above and followed the instructions for using the stable repository and did and apt-get upgrade. At first the installation appeared broke when it hung without a web GUI interface. Actually, the pi was saturated re-scanning many gigabytes through an encrypted filesystem; the v 0.14.54 upgrade must rebuild indexes or something. After about 1/2 hour, everything settled down and everything appears normal.

For the ~other~ pi installation, I guess I must have used binaries from Github. It’s been almost a year since that system was stood up at a remote location, and it’s been stable enough that I’ve done nothing with it. That speaks well for the pi and for Syncthing.

On the pi I just changed, I bring up Syncthing with an @boot option with cron. I need to look at command line options for Syncthing to bring up the “terminal window” or log to a log file 'cause otherwise I’m kind of blind if something doesn’t work right upon boot.

---

<div class="post-metadata">

### Author: ![wweich](https://forum.syncthing.net/user_avatar/forum.syncthing.net/wweich/32/1063_2.png) [@wweich](https://forum.syncthing.net/u/wweich)
#### Post date: [December 29, 2018, 2:34pm UTC](https://forum.syncthing.net/t/where-did-upgrade-options-go/12600/4 "2018-12-29T14:34:37Z")

</div>

> [@increa](#):
>
> I need to look at command line options for Syncthing to bring up the “terminal window” or log to a log file 'cause otherwise I’m kind of blind if something doesn’t work right upon boot.

This is my crontab entry:

```plaintext
@reboot /path/to/syncthing -logflags=7 2>&1 >> /var/log/syncthing/instance1.log

```

The log lines then look like this:

```plaintext
[XXXXX] 2018/12/29 15:32:22.656607 INFO: Established secure connection ...

```

_while the user which runs syncthing has write access to_ `/var/log/syncthing/` _of course_

---

<div class="post-metadata">

### Author: ![increa](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/i/dfb087/32.png) [@increa](https://forum.syncthing.net/u/increa)
#### Post date: [December 29, 2018, 3:18pm UTC](https://forum.syncthing.net/t/where-did-upgrade-options-go/12600/5 "2018-12-29T15:18:57Z")

</div>

wwelch,

Thanks!

Does the 2\>&1 combine stderr and stout? Can you help me understand exactly what each part of that does? 2? \>&1?

Wouldn’t the \>\> alone append syncthing output to the log file?

Also, how does this compare to just specifying the -logfile option on the syncthing command line? When I try your method, I get permission denied for the log file. Even with sudo. When I try the logfile method, I get no errors (and a log file).

---

<div class="post-metadata">

### Author: ![wweich](https://forum.syncthing.net/user_avatar/forum.syncthing.net/wweich/32/1063_2.png) [@wweich](https://forum.syncthing.net/u/wweich)
#### Post date: [December 29, 2018, 3:26pm UTC](https://forum.syncthing.net/t/where-did-upgrade-options-go/12600/6 "2018-12-29T15:26:37Z")

</div>

> [@increa](#):
>
> Wouldn’t the \>\> alone append syncthing output to the log file?

Yes. So there only needs to be one `>>` to get both into the file.

> [@increa](#):
>
> Does the 2\>&1 combine stderr and stout?

For the snycthing log output, yes. But I also want errors inside the log file.

> [@increa](#):
>
> Also, how does this compare to just specifying the -logfile option on the syncthing command line?

This command predates `-logfile` also working on non Windows OS.

---

<div class="post-metadata">

### Author: ![increa](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/i/dfb087/32.png) [@increa](https://forum.syncthing.net/u/increa)
#### Post date: [December 29, 2018, 5:46pm UTC](https://forum.syncthing.net/t/where-did-upgrade-options-go/12600/8 "2018-12-29T17:46:54Z")

</div>

How did you get your log file to create when operating the pi under the normal user “pi”?

When I run syncthing from an ssh command line with a sudo option, 2\>&1 gives a permission error on the log file, however the -logfile options works.

When I run syncthing from the @reboot cron line, I get no log file. Indeed the /var/log directory is write to only root, and my pi boots up and runs syncthing under the user “pi”, so I imagine it cannot create the file.

I’d like to get a log file after starting with the @reboot method.

---

<div class="post-metadata">

### Author: ![wweich](https://forum.syncthing.net/user_avatar/forum.syncthing.net/wweich/32/1063_2.png) [@wweich](https://forum.syncthing.net/u/wweich)
#### Post date: [December 29, 2018, 7:33pm UTC](https://forum.syncthing.net/t/where-did-upgrade-options-go/12600/9 "2018-12-29T19:33:19Z")

</div>

As I said, the folder where you want your your logfile has to writable by the user running syncthing. pipes don’t preserve sudo, so `sudo some-command > somefile` will write the file with the current user, not root.

---

<div class="post-metadata">

### Author: ![increa](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/i/dfb087/32.png) [@increa](https://forum.syncthing.net/u/increa)
#### Post date: [December 29, 2018, 7:57pm UTC](https://forum.syncthing.net/t/where-did-upgrade-options-go/12600/10 "2018-12-29T19:57:19Z")

</div>

I understand pipes don’t preserve sudo (so the 2\>&1 won’t work), however, that seems to conflict with when I run from a command line and sudo as non root, the -logfile option DOES work. However, when I run syncthing from cron, no logfile is created (and I can’t see why because I don’t have the log available). I’ll keep working on it…

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [January 28, 2019, 8:05pm UTC](https://forum.syncthing.net/t/where-did-upgrade-options-go/12600/11 "2019-01-28T20:05:22Z")

</div>

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