Syncthing works but reports the following failures upon every start. In this case, net-p2p/syncthing-0.14.40 is started as a systemd user service. emerge --info is posted to https://gist.github.com/anonymous/4e82507d796b6b40627e2e704d94fe3 Feb 12 16:43:25 bigmac syncthing[2203]: [*****] INFO: Completed initial scan of readwrite folder "****" (*****-*****) Feb 12 16:43:25 bigmac syncthing[2203]: [*****] INFO: connections.Service: Failed service '(connections.serviceFunc)(0x8e51d0)' (1.000000 failures of 5.000000), restarting: true, error: runtime error: invalid memory address or nil pointer dereference, stacktrace: gorout> Feb 12 16:43:25 bigmac syncthing[2203]: github.com/syncthing/syncthing/vendor/github.com/thejerf/suture.(*Supervisor).runService.func1.1(0xc42014e540, 0x1) Feb 12 16:43:25 bigmac syncthing[2203]: /var/tmp/portage/net-p2p/syncthing-0.14.40/work/syncthing-0.14.40/src/github.com/syncthing/syncthing/vendor/github.com/thejerf/suture/supervisor.go:448 +0xbc Feb 12 16:43:25 bigmac syncthing[2203]: panic(0xab7560, 0x110fa20) Feb 12 16:43:25 bigmac syncthing[2203]: /usr/lib64/go/src/runtime/panic.go:491 +0x283 Feb 12 16:43:25 bigmac syncthing[2203]: github.com/syncthing/syncthing/vendor/github.com/AudriusButkevicius/kcp-go.(*updateHeap).removeSession(0x1121b60, 0x0) Feb 12 16:43:25 bigmac syncthing[2203]: /var/tmp/portage/net-p2p/syncthing-0.14.40/work/syncthing-0.14.40/src/github.com/syncthing/syncthing/vendor/github.com/AudriusButkevicius/kcp-go/updater.go:65 +0x3b Feb 12 16:43:25 bigmac syncthing[2203]: github.com/syncthing/syncthing/vendor/github.com/AudriusButkevicius/kcp-go.(*UDPSession).Close(0x0, 0x0, 0x0) Feb 12 16:43:25 bigmac syncthing[2203]: /var/tmp/portage/net-p2p/syncthing-0.14.40/work/syncthing-0.14.40/src/github.com/syncthing/syncthing/vendor/github.com/AudriusButkevicius/kcp-go/sess.go:307 +0x4d Feb 12 16:43:25 bigmac syncthing[2203]: github.com/syncthing/syncthing/lib/connections.(*kcpDialer).Dial(0xc420e70000, 0xcd0fe6e8ac44841a, 0xde462139c25a175b, 0x3841c14258ebeaf8, 0x83308d667561a49e, 0xc4203de100, 0x11222c0, 0x5, 0x1, 0xc420471ee0, ...) Feb 12 16:43:25 bigmac syncthing[2203]: /var/tmp/portage/net-p2p/syncthing-0.14.40/work/syncthing-0.14.40/src/github.com/syncthing/syncthing/lib/connections/kcp_dial.go:48 +0x330 Feb 12 16:43:25 bigmac syncthing[2203]: github.com/syncthing/syncthing/lib/connections.(*Service).connect(0xc420c651d0) Feb 12 16:43:25 bigmac syncthing[2203]: /var/tmp/portage/net-p2p/syncthing-0.14.40/work/syncthing-0.14.40/src/github.com/syncthing/syncthing/lib/connections/service.go:403 +0x1200 Feb 12 16:43:25 bigmac syncthing[2203]: github.com/syncthing/syncthing/lib/connections.(*Service).(github.com/syncthing/syncthing/lib/connections.connect)-fm() Feb 12 16:43:25 bigmac syncthing[2203]: /var/tmp/portage/net-p2p/syncthing-0.14.40/work/syncthing-0.14.40/src/github.com/syncthing/syncthing/lib/connections/service.go:150 +0x2a Feb 12 16:43:25 bigmac syncthing[2203]: github.com/syncthing/syncthing/lib/connections.serviceFunc.Serve(0xc42030d0d0) Feb 12 16:43:25 bigmac syncthing[2203]: /var/tmp/portage/net-p2p/syncthing-0.14.40/work/syncthing-0.14.40/src/github.com/syncthing/syncthing/lib/connections/structs.go:152 +0x25 Feb 12 16:43:25 bigmac syncthing[2203]: github.com/syncthing/syncthing/vendor/github.com/thejerf/suture.(*Supervisor).runService.func1(0xc42014e540, 0xc400000001, 0x10bbe80, 0xc42030d0d0) Feb 12 16:43:25 bigmac syncthing[2203]: /var/tmp/portage/net-p2p/syncthing-0.14.40/work/syncthing-0.14.40/src/github.com/syncthing/syncthing/vendor/github.com/thejerf/suture/supervisor.go:454 +0x63 Feb 12 16:43:25 bigmac syncthing[2203]: created by github.com/syncthing/syncthing/vendor/github.com/thejerf/suture.(*Supervisor).runService Feb 12 16:43:25 bigmac syncthing[2203]: /var/tmp/portage/net-p2p/syncthing-0.14.40/work/syncthing-0.14.40/src/github.com/syncthing/syncthing/vendor/github.com/thejerf/suture/supervisor.go:444 +0x5b
correction to URL: emerge --info is posted to https://gist.github.com/anonymous/4e82507d796b6b40627e2e704d94fe3f
(In reply to Peter Bleszynski from comment #1) > correction to URL: emerge --info is posted to > https://gist.github.com/anonymous/4e82507d796b6b40627e2e704d94fe3f Please post that right here!
$ emerge --info Portage 2.3.19 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-6.4.0, glibc-2.25-r10, 4.9.34-gentoo x86_64) ================================================================= System uname: Linux-4.9.34-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.4.1 KiB Mem: 32880404 total, 2002656 free KiB Swap: 33554428 total, 33554428 free Timestamp of repository gentoo: Tue, 13 Feb 2018 12:45:01 +0000 Head commit of repository gentoo: 476d068b2500d138dc2596f6101339928572270f sh bash 4.4_p12 ld GNU ld (Gentoo 2.29.1 p3) 2.29.1 app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.3::gentoo dev-lang/python: 2.7.14-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo dev-util/cmake: 3.9.6::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/sandbox: 2.12::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.15.1-r1::gentoo sys-devel/binutils: 2.29.1-r1::gentoo sys-devel/gcc: 5.4.0-r4::gentoo, 6.4.0-r1::dlang sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.25-r10::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: x-portage location: /usr/local/portage masters: gentoo priority: 0 brother-overlay location: /var/lib/layman/brother-overlay masters: gentoo priority: 50 dlang location: /var/lib/layman/dlang masters: gentoo priority: 50 raiagent location: /var/lib/layman/raiagent masters: gentoo priority: 50 toaster location: /var/lib/layman/toaster masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=corei7-avx -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=corei7-avx -O2 -pipe" DISTDIR="/usr/portage-distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa amd64 avahi berkdb bluetooth bzip2 cairo cdda cdr cli colord crypt cups cxx dbus device-mapper dri dri3 dts dvd dvdr eds emboss encode evo exif fam flac fortran fortran95 gcj gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 java jpeg kpathsea latex lcms ldap libnotify libsecret lm_sensors mad mdnsresponder-compat mng modules mono mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds preview-latex pulseaudio python qt3support qt5 readline samba sdl seccomp spell ssl startup-notification svg synctex systemd tcl tcpd tiff tk tracker truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xinerama xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics v4l" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I solved it by copying the ebuild to my custom repository (usr/local/portage) and renaming the ebuild file to match the current stable upstream version (0.14.44). No other changes were necessary. The messages no longer appear.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=885a369b69b31c1ea5f23142394772c86758b5ef commit 885a369b69b31c1ea5f23142394772c86758b5ef Author: Marek Szuba <marecki@gentoo.org> AuthorDate: 2018-02-16 09:46:32 +0000 Commit: Marek Szuba <marecki@gentoo.org> CommitDate: 2018-02-16 09:47:13 +0000 net-p2p/syncthing: bump to 0.14.44 Among other things, this version seems to fix Bug #647558. Closes: https://bugs.gentoo.org/644704 Closes: https://bugs.gentoo.org/647558 Package-Manager: Portage-2.3.19, Repoman-2.3.6 net-p2p/syncthing/Manifest | 1 + net-p2p/syncthing/syncthing-0.14.44.ebuild | 123 +++++++++++++++++++++++++++++ 2 files changed, 124 insertions(+)