5/16/2023 0 Comments Syncthing disconnectedSep 12 18:28:31 XPS15 start-stop-daemon: Will stop /usr/bin/syncthing Sep 12 18:28:31 XPS15 vnstatd: SIGTERM received, exiting. Sep 12 18:28:31 XPS15 start-stop-daemon: Sending signal 15 to PID 2170 Sep 12 18:28:31 XPS15 start-stop-daemon: Will stop /usr/bin/vnstatd Sep 12 18:28:30 XPS15 NetworkManager: device (eth0): state change: disconnected -> unavailable (reason 'carrier-changed', sys-iface-state: 'managed') Sep 12 18:28:30 XPS15 NetworkManager: manager: NetworkManager state is now DISCONNECTED Sep 12 18:28:30 XPS15 NetworkManager: dhcp4 (eth0): state changed bound -> terminated Sep 12 18:28:30 XPS15 NetworkManager: dhcp4 (eth0): canceled DHCP transaction Sep 12 18:28:30 XPS15 NetworkManager: device (eth0): state change: deactivating -> disconnected (reason 'connection-removed', sys-iface-state: 'managed') Sep 12 18:28:30 XPS15 init: Trying to re-exec init Sep 12 18:28:30 XPS15 root: Unmounted NFS shares successfully. Sep 12 18:28:30 XPS15 root: Unmounting NFS shares gracefully before the network goes down. Sep 12 18:28:30 XPS15 dbus-daemon: Successfully activated service '_dispatcher' Sep 12 18:28:30 XPS15 dbus-daemon: Activating service name='_dispatcher' requested by ':1.1' (uid=0 pid=1761 comm="/usr/sbin/NetworkManager -pid-file /run/NetworkMa" label="kernel") (using servicehelper) Sep 12 18:28:30 XPS15 NetworkManager: manager: NetworkManager state is now DISCONNECTING Sep 12 18:28:30 XPS15 NetworkManager: device (eth0): state change: activated -> deactivating (reason 'connection-removed', sys-iface-state: 'managed') Sep 12 18:28:30 XPS15 init: Switching to runlevel: 6 Sep 12 18:28:30 XPS15 shutdown: shutting down for system reboot Or in more general wording: how can I change the shutdown sequence of services? Question: how can I change the init.d/conf/OpenRC in such a way that Syncthing stops before NetworkManager? If I manually shutdown Syncthing before I shutdown the system the 'flock' error is not present. I would expect that when I shutdown the system, syncthing would stop before NetworkManager. This is a good thing since Syncthing relies on network/internet connectivity. Syncthing will wait untill NetworkManager is running. Synchting has a 'depend' section in its init.d file: More specifically these two services play a role: But after some digging and trial&error on my system I track the issue down to one of the services. There is not much that I could find online regarding this error. During each shutdown/restart I get this error (often 2 times):Ĭall to flock failed: Resource temporarily unavailable There is however one annoyance that I cannot seem to fix. I really love OpenRC, especially it's simplicity over systemd. Posted: Sun 4:43 pm Post subject: OpenRC shutdown sequence Gentoo Forums Forum Index Other Things Gentoo I suppose the actual syncthing process died or something.Gentoo Forums :: View topic - OpenRC shutdown sequence I killed the app and opened it again, and it started accepting connections. nc to port 22000 indicated "Connection refused". Once, I had the Android app stop accepting connections, and the FreeBSD side indicated "Disconnected" and "Out of sync".Select Oldest First for File Pull Order, and I suspect it'll keep up better if the most recent files have a lot of churn.Tell it to exclude Android/** to avoid syncing unnecessary junk like the Google Maps cache.Turn off Global Discover and NAT Traversal and Relay Service for security, unless you need them.It's bidirectional, so besides backing up your SD card, you can load and load things like pictures, podcasts, audiobooks, music, etc by just manipulating the files on the server.Now it'll sync when you're sleeping and it's on the fast local network. I suggest setting the Android side to sync only when on wifi and charging. Install the Syncthing app from Play Store, and share your SD card. Now (if needed) ssh -L 8384:localhost:8384 so you can use a browser to log in to Set a password, set it to listen on your network instead of only localhost, and Bob's your uncle. $ chown syncthing:syncthing /project/syncthing Syncthing_home="/project/syncthing/.config" Most of this is pretty obvious for the looking, so I'll be terse: Why? So you can drop it on a stable machine where you've already been maintaining proper periodic backups. It's particularly handy for backing up your Android's SD card to FreeBSD.
0 Comments
Leave a Reply. |