Jakob Borg and GitHub
96350d7600
cmd/stupgrades: Generate appropriate upgrade data ( fixes #5924 ) ( #5960 )
...
This is a tiny tool to grab the GitHub releases info and generate a
more concise version of it. The conciseness comes from two aspects:
- We select only the latest stable and pre. There is no need to offer
upgrades to versions that are older than the latest. (There might be, in
the future, when we hit 2.0. We can revisit this at that time.)
- We use our structs to deserialize and reserialize the data. This means
we remove all attributes that we don't understand and hence don't
require.
All in all the new response is about 10% the size of the previous one and
avoids the issue where we only serve a bunch of release candidates and
no stable.
2019-08-16 10:04:10 +02:00
Simon Frei and Jakob Borg
77a5980747
lib/model: Do free disk space check later on pull ( fixes #5948 ) ( #5949 )
2019-08-16 09:40:53 +02:00
Simon Frei and Jakob Borg
b677464dfa
lib/model: Optimise locking around conn-close and puller states ( #5954 )
2019-08-16 09:35:19 +02:00
Simon Frei and GitHub
b1c74860e8
all: Remove global events.Default (ref #4085 ) ( #5886 )
2019-08-15 16:29:37 +02:00
Simon Frei and Jakob Borg
f6f696c6c5
lib/config: Prevent nil deref in debug logging ( fixes #5955 ) ( #5956 )
v1.2.2
v1.2.2-rc.3
2019-08-15 15:51:09 +02:00
Simon Frei and Jakob Borg
cf40ed6cec
lib/connections: Return exported intf from exported function ( #5947 )
2019-08-13 09:33:33 +02:00
Simon Frei and Jakob Borg
6fa02d5081
lib/model: Fix a few more problematic locks (ref #5929 ) ( #5944 )
v1.2.2-rc.2
2019-08-13 09:04:43 +02:00
Simon Frei and Jakob Borg
86e35f1879
lib/model: Less locking in ClusterConfig ( #5943 )
v1.2.2-rc.1
2019-08-11 19:30:24 +02:00
Jakob Borg and Simon Frei
720a6bf62e
lib/tlsutil: Remove hardcoded curve preferences ( fixes #5940 ) ( #5942 )
...
They are arguable outdated and we are better off trusting the standard
library than trying to keep up with it ourselves.
2019-08-11 19:01:57 +02:00
Simon Frei and Jakob Borg
4a619e74f2
lib/model: Fix incorrect locking ( #5939 )
2019-08-11 16:10:30 +02:00
Audrius Butkevicius and GitHub
58ef5368f8
lib/connections: Validate device id before assuming success ( fixes #5934 ) ( #5935 )
...
* lib/connections: Validate device id before assuming success (fixes #5934 )
* Vet
2019-08-09 12:31:42 +01:00
Cromefire_ and Jakob Borg
7b37d453f9
build, etc: Add systemd units and ufw rules for relay and discovery ( fixes #5115 ) ( #5350 )
2019-08-08 18:04:52 +02:00
Oliver Freyermuth and Audrius Butkevicius
edf2399ce6
Add NATSymmetricUDPFirewall to punchable NATs ( #5931 )
...
NATSymmetricUDPFirewall actually is not NAT at all, but means the machine has a global IP address and an UDP firewall in front (RFC calls it Symmetric UDP Firewall). This is punchable fine, both theoretically and also practically in testing.
2019-08-06 12:26:02 +01:00
dependabot-preview[bot] and Jakob Borg
d43b0a4395
build(deps): bump github.com/urfave/cli from 1.20.0 to 1.21.0 ( #5928 )
...
Bumps [github.com/urfave/cli](https://github.com/urfave/cli ) from 1.20.0 to 1.21.0.
- [Release notes](https://github.com/urfave/cli/releases )
- [Changelog](https://github.com/urfave/cli/blob/master/CHANGELOG.md )
- [Commits](https://github.com/urfave/cli/compare/v1.20.0...v1.21.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-05 12:18:35 +02:00
Jakob Borg
f2efd08e0f
Merge branch 'release'
...
* release:
cmd/syncthing: Print version information early (fixes #5891 ) (#5893 )
2019-08-05 07:16:07 +02:00
Jakob Borg and GitHub
61b9f7bd55
lib/config: Format bytes in insufficient space errors ( fixes #5920 ) ( #5921 )
2019-08-02 14:43:05 +02:00
Simon Frei and Jakob Borg
1475c0344a
gui: Parse strings before copying options object ( fixes #5824 ) ( #5922 )
2019-08-02 12:46:27 +02:00
Simon Frei and Jakob Borg
77cc87dfca
lib/connections: Log errors in relay clients ( #5917 )
2019-08-01 17:37:58 +02:00
Jakob Borg
bc7dd02e2b
authors: Update carstenhag (Moter8) ( fixes #5919 )
2019-08-01 17:35:45 +02:00
Simon Frei and Jakob Borg
8a06cf0973
lib/model: Unflake TestPullInvalidIgnored ( #5918 )
2019-08-01 11:07:41 +02:00
Simon Frei and Jakob Borg
05835ed81f
all: Remove potentially problematic errors from panics ( fixes #5839 ) ( #5912 )
2019-07-31 10:53:35 +02:00
Simon Frei and Jakob Borg
df522576ac
lib/model: Don't call t.Fatal in goroutines ( fixes #5901 ) ( #5903 )
2019-07-30 17:50:51 +02:00
Simon Frei and GitHub
d681ac11fe
lib/config: Handle empty Fstype for mtime-window ( #5906 )
2019-07-30 15:23:00 +02:00
Simon Frei and Jakob Borg
7d5f7d508d
lib/syncthing: Stop only once ( fixes #5908 ) ( #5909 )
2019-07-29 20:07:19 +02:00
Simon Frei and Jakob Borg
1d182e4631
lib/fs: Use gopsutils for disk usage ( #5905 )
2019-07-29 20:06:17 +02:00
Simon Frei and Jakob Borg
710f5c199f
lib/db: Don't use global fileset in benchmarks ( #5902 )
2019-07-28 22:31:24 +02:00
Simon Frei and Jakob Borg
fd847d4efe
lib/model: Fix flakyness of TestRequestRemoteRenameChanged ( #5904 )
2019-07-28 22:29:31 +02:00
Jakob Borg and GitHub
15e51fc045
cmd/stcrashreceiver: Store and serve compressed reports ( #5892 )
...
This changes the on disk format for new raw reports to be gzip
compressed. Also adds the ability to serve these reports in plain text,
to insulate web browsers from the change (previously we just served the
raw reports from disk using Caddy).
2019-07-28 11:13:04 +02:00
Jakob Borg and GitHub
c1c976aa2b
lib/model: Don't panic on failed chmod-back on directory ( fixes #5836 ) ( #5896 )
...
* lib/model: Don't panic on failed chmod-back on directory (fixes #5836 )
This makes the "in writable dir"-wrapper log chmod-back errors instead
of panicking. To do that we need a logger so the function moved into the
model package which is also the only place it's used. The tests came
along.
(The test also exercised osutil.RenameOrCopy like some sort of
piggybacking. I removed that.)
2019-07-28 10:25:05 +02:00
Jakob Borg and Simon Frei
159d1a68e1
lib/api: Don't log random stuff in the HTTP server ( fixes #5738 ) ( #5897 )
2019-07-28 09:49:07 +02:00
Simon Frei and Jakob Borg
dd850f66bb
lib/api: Close server before exiting serve ( fixes #5866 ) ( #5895 )
2019-07-28 08:03:55 +02:00
Jakob Borg
d0c3697152
cmd/syncthing: Print version information early ( fixes #5891 ) ( #5893 )
v1.2.1
v1.2.1-rc.5
2019-07-27 20:36:33 +02:00
Jakob Borg and Audrius Butkevicius
669bcb748f
lib/config, lib/model: Don't save on every pending folder/device update ( fixes #5888 ) ( #5890 )
...
Wrapper methods generally don't save by themselves.
2019-07-27 11:05:00 +01:00
Jakob Borg and Audrius Butkevicius
4e22a96602
cmd/syncthing: Print version information early ( fixes #5891 ) ( #5893 )
2019-07-27 10:58:39 +01:00
Jakob Borg and GitHub
a992559abc
lib/db: Add hacky way to adjust database parameters ( #5889 )
...
This adds a set of magical environment variables that can be used to
tweak the database parameters. It's totally undocumented and not
intended to be a long term or supported thing.
It's ugly, but there is a backstory. I have a couple of large
installations where the database options are inefficient or otherwise
suboptimal (24/7 compaction going on and stuff like that). I don't
*know* the correct database parameters, nor yet the formula or method to
derive them by, so this requires experimentation. Experimentation needs
to happen partly in production, and rolling out new builds for every
tweak isn't practical. This provides override points for all reasonable
values, while not changing anything by default.
Ideally, at the end of such experimentation, we'll know which values are
relevant to change and in what manner, and can provide a more user
friendly knob to do so - or do it automatically based on the database
size.
2019-07-26 22:18:42 +02:00
Simon Frei and GitHub
46e72d76b5
cmd/syncthing, lib/syncthing: Create library utils (ref #4085 ) ( #5871 )
2019-07-23 23:39:20 +02:00
Simon Frei and Jakob Borg
7a4c88d4e4
lib: Add mtime window when comparing files ( #5852 )
2019-07-23 21:48:53 +02:00
Simon Frei and Jakob Borg
35f40e9a58
lib/model: Create new file-set after stopping folder ( fixes #5882 ) ( #5883 )
v1.2.1-rc.4
2019-07-23 20:39:25 +02:00
Simon Frei and GitHub
5de9b677c2
lib/fs: Fix kqueue event list ( fixes #5308 ) ( #5885 )
2019-07-23 14:11:15 +02:00
Simon Frei and GitHub
6f08162376
lib/model: Remove incorrect/useless panics ( #5881 )
2019-07-23 10:51:16 +02:00
Simon Frei and GitHub
7b3d9a8dca
lib/syncthing: Refactor to use util.AsService ( #5858 )
2019-07-23 10:50:37 +02:00
Simon Frei and GitHub
942659fb06
lib/model, lib/nat: More service termination speedup ( #5884 )
2019-07-23 10:49:22 +02:00
dependabot-preview[bot] and Audrius Butkevicius
15c262184b
build(deps): bump github.com/maruel/panicparse from 1.2.1 to 1.3.0 ( #5879 )
...
Bumps [github.com/maruel/panicparse](https://github.com/maruel/panicparse ) from 1.2.1 to 1.3.0.
- [Release notes](https://github.com/maruel/panicparse/releases )
- [Commits](https://github.com/maruel/panicparse/compare/v1.2.1...v1.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-22 19:46:52 +01:00
dependabot-preview[bot] and Audrius Butkevicius
484fa0592e
build(deps): bump github.com/lib/pq from 1.1.1 to 1.2.0 ( #5878 )
...
Bumps [github.com/lib/pq](https://github.com/lib/pq ) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/lib/pq/releases )
- [Commits](https://github.com/lib/pq/compare/v1.1.1...v1.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-22 08:07:21 +01:00
Simon Frei and Jakob Borg
b5b54ff057
lib/model: No watch-error on missing folder ( fixes #5833 ) ( #5876 )
v1.2.1-rc.3
2019-07-19 19:41:16 +02:00
Simon Frei and Jakob Borg
4d3432af3e
lib: Ensure timely service termination ( fixes #5860 ) ( #5863 )
2019-07-19 19:40:40 +02:00
Simon Frei and Jakob Borg
1cb55904bc
lib/model: Prevent panic in NeedFolderFiles ( fixes #5872 ) ( #5875 )
2019-07-19 19:39:52 +02:00
Simon Frei and Jakob Borg
2b622d0774
lib/model: Close conn on dev pause ( fixes #5873 ) ( #5874 )
2019-07-19 19:37:29 +02:00
Simon Frei and Jakob Borg
1894123d3c
lib/syncthing: Modify exit status before stopping ( fixes #5869 ) ( #5870 )
2019-07-18 20:49:00 +02:00
Jakob Borg and Simon Frei
e7e177a6fa
lib/relay: Prevent spurious relay error message ( fixes #5861 ) ( #5864 )
v1.2.1-rc.2
2019-07-17 10:55:28 +02:00