Quantcast
Channel: Syncthing Community Forum - Latest topics
Viewing all 6325 articles
Browse latest View live

Remote Device sporadically connecting

$
0
0

@samuelmartinucci wrote:

I have a private infrastructure with Relay / Discovery where I am trying to setup a connection between two remote peers, although connection most of the time fails. Right now I have no clue what can be wrong aside from these logs:

From one of the peers:

[5BIAI] 2020/02/20 13:25:41.222801 service.go:325: DEBUG: Reconnect loop
[5BIAI] 2020/02/20 13:25:41.222801 cache.go:83: DEBUG: cached discovery entry for PASWHCC-B7AI776-W7VZ5V7-IHO4NJK-7QAG6AF-H3GHCU5-N5ABZGS-NDZ3VAJ at global@https://10.22.66.39:8443/
[5BIAI] 2020/02/20 13:25:41.222801 cache.go:84: DEBUG:   cache: {[relay://10.22.66.39:22067?id=ONNSXHC-I5GNATG-XMFZJVO-JO6X6J5-MXNCFJ3-AI7WZ3X-5R2SXZR-XT7DXQD] {13802348182749212580 2111062101 0x14734a0} true {0 0 <nil>} 0}
[5BIAI] 2020/02/20 13:25:41.222801 cache.go:124: DEBUG: lookup results for PASWHCC-B7AI776-W7VZ5V7-IHO4NJK-7QAG6AF-H3GHCU5-N5ABZGS-NDZ3VAJ
[5BIAI] 2020/02/20 13:25:41.222801 cache.go:125: DEBUG:   addresses:  [relay://10.22.66.39:22067?id=ONNSXHC-I5GNATG-XMFZJVO-JO6X6J5-MXNCFJ3-AI7WZ3X-5R2SXZR-XT7DXQD]
[5BIAI] 2020/02/20 13:25:41.222801 service.go:362: DEBUG: Reconnect loop for PASWHCC-B7AI776-W7VZ5V7-IHO4NJK-7QAG6AF-H3GHCU5-N5ABZGS-NDZ3VAJ [relay://10.22.66.39:22067?id=ONNSXHC-I5GNATG-XMFZJVO-JO6X6J5-MXNCFJ3-AI7WZ3X-5R2SXZR-XT7DXQD]
[5BIAI] 2020/02/20 13:25:41.222801 service.go:372: DEBUG: Not dialing PASWHCC-B7AI776-W7VZ5V7-IHO4NJK-7QAG6AF-H3GHCU5-N5ABZGS-NDZ3VAJ via relay://10.22.66.39:22067?id=ONNSXHC-I5GNATG-XMFZJVO-JO6X6J5-MXNCFJ3-AI7WZ3X-5R2SXZR-XT7DXQD as sleep is 1m0s, next dial is at 2020-02-20 13:34:58.3046201 -0300 -03 m=+647.096493301 and current time is 2020-02-20 13:25:41.2228017 -0300 -03 m=+90.014674901
[5BIAI] 2020/02/20 13:25:41.222801 service.go:447: DEBUG: sleep until next dial 1m0s

From the relay server:

2020/02/20 16:39:51 listener.go:164: 5BIAI3P-DCPC7VP-TC47OIK-ZJMHS5J-NCWNCHT-EJYR6WW-HKJ6YAL-444EDQU is looking for PASWHCC-B7AI776-W7VZ5V7-IHO4NJK-7QAG6AF-H3GHCU5-N5ABZGS-NDZ3VAJ which does not exist
2020/02/20 16:39:51 listener.go:221: Closing connection 5BIAI3P-DCPC7VP-TC47OIK-ZJMHS5J-NCWNCHT-EJYR6WW-HKJ6YAL-444EDQU: read tcp 10.22.123.183:22067->10.22.67.175:63706: use of closed network connection

Any idea?

Posts: 7

Participants: 2

Read full topic


All files and directories reported as Local Additions with 0 Bytes

$
0
0

@agilmor wrote:

Hi,

I’ve created a “Send Only” folder in a Windows 10 machine. I’ve shared it as a “Receive Only” folder in an Ubuntu 18.04 machine. Both folders are in external USB drives both formatted in NTFS.

Files have been copied correctly and Global and Local States are the same. But in the Receive Only folder in Ubuntu I see all the files and folders listed as “Locally Changed Items” (119.334 files + 3.697 folders = 123.031 items), but with 0 Bytes of changes. I guess that it is related to some kind of different permissions, ownership or some limitation using ntfs in ubuntu with syncthing.

Using “Revert Local Changes” starts a scan, but it ends on the same place. Any ideas?

Thanks!

image

PS: I’m gonna donate to the project for sure. I’ve been using it for a week and besides this (small) issue, it worked so great so far!

Posts: 3

Participants: 3

Read full topic

Auto Start Syncthing on Raspberry Pi

$
0
0

@peteb wrote:

Hi, I have just installed Syncthing to sync files between a Raspberry PI 3b+ and a Windows PC and it works brilliantly.

But once I reboot the Raspberry Pi I’m struggling to restart Syncthing without double clicking the executable each time before opening the GUI.

Is there a command that I can use in terminal?

What I would really like to do is add it to /home/pi/.config/lxsession/LXDE-pi/autostart

Sorry if this is covered elsewhere but I couldn’t find anything.

Thanks for your help,

Pete

Posts: 6

Participants: 2

Read full topic

Just installed on debian 10 - no gui

$
0
0

@andrewbyrd70 wrote:

I just installed Syncthing on Debian 10 and in ssh command line typed syncthing

It looked like it was about to start up but stopped after joining a relay. The Gui never launched.

This is a remote VPS on Vultr.

[OUUOG] 02:04:24 INFO: GUI and API listening on 127.0.0.1:8384
[OUUOG] 02:04:24 INFO: Access the GUI via the following URL: http://127.0.0.1:8384/
[OUUOG] 02:04:24 INFO: My name is "backupserver"
[OUUOG] 02:04:24 WARNING: Syncthing should not run as a privileged or system user. Please consider using a normal user account.
[OUUOG] 02:04:34 INFO: Detected 0 NAT services
[OUUOG] 02:05:02 INFO: Joined relay relay://70.19.79.244:443

Posts: 2

Participants: 2

Read full topic

Rotating logfiles on every start

$
0
0

@imsodin wrote:

Reading this

I noticed that we rotate logfiles on every startup, not just if the file grows too large. Is that intentional? To me that behaviour is unexpected.

Posts: 2

Participants: 2

Read full topic

How to view/restore previous versions from remote server?

$
0
0

@SyncMeToo wrote:

Hi,

I’m using Syncthing to save files from my family’s PCs and smartphones to my NAS, with staggered file versioning (which works very well!!). So if somebody makes a mistake (deletes a file, changes it by mistake…), previous versions are saved apart in .stversions folder on the NAS. People in my family today don’t have a direct access into the NAS (debian-based, actually OpenMediaVault).

I wonder how I can give easy access to the .stversions subfolder on the NAS so that they can restore some previous files or folders, either at home from the LAN or outside on internet. Can Syncthing do it (I guess not, but asking never hurts)? Should I setup something line Nextcloud for this? Do you have suggestion for this? Thank you!

Posts: 2

Participants: 2

Read full topic

Using Syncthing to backup mobile photos (and unexpected file deletions)

$
0
0

@codedmon wrote:

I have an Android phone with 64GB of storage and I take a lot of pictures and video (parent young kids). Whenever my phone storage space starts getting full, I transfer the files to my NAS server (also backup on Google Photos). Rather than manually transferring the files to my NAS, I figure I give ST a try. I setup Syncthing on my Android phone and selected my Camera folder. It was set to “Send Only”. I then shared the folder to my desktop computer and starting syncing to my NAS. ST then started deleting all of my photos and videos that were not on my phone! Luckily, I have another backup of this data on an external drive. I disabled ST and restored my data to the NAS.

I did not expect ST to delete data on my NAS, since the Android folder share was setup as “Send Only”. Is it possible to use ST as a backup solution in my situation?

Posts: 3

Participants: 3

Read full topic

Panic on upgrade to 1.4.0-rc.6

$
0
0

@Andy wrote:

On my Windows Devices the update to v1.4.0-rc.6 was okay. On my 1 Synology server the update is still running because of database upgrade.

It means there is a further modification at database?

Posts: 19

Participants: 3

Read full topic


Initial sync flagging 'local changes'

$
0
0

@fritterman wrote:

Damn … I wish i knew how to use this thing! Situation is that an ‘initial’ sync, not yet paired with anything, flagged up well over a 1000 ‘local changes’?? Not yet understanding why or how this could happen as the folder in question is receive only and i had no other systems attached as shares, I elected to ‘revert local changes’ expecting the situation to revert to as it was prior to any sync, ie just undo anything you havent yet done. Oh no … was i wrong. The ‘reverted changes’ proceeded to wipe my disk contents, verifiable from the log. Now then … just which bit of all this, what i consider to be a very dangerous package, have i not understoodand just what were the ‘local changes’ which were identified. Nothing had changed my files which were an imported disk from the host system after it had copied off its files to a larger disk. I am loathe to make any further use until i understand a bit more.

Posts: 6

Participants: 4

Read full topic

alpha, beta and release candidate stages

$
0
0

@Andy wrote:

Due to the current activities and RC upgrades to v1.4.0-rc.1-x, I ask to discuss the usual handling of version stages.

I am not a software developer and you are much bigger and better experts than me. I myself come more from the mechanical engineering, so it’s simple. Nevertheless, I know about the differences between the software development phases alpha, beta and release candidate.

I have been using Syncthing for a long time now and it seems to me that v1.4.0 contains some major changes compared to v1.3.4 and compared to previous versions less of v1.3.4. Since RC.1 there have been some major problems, so the term “release candidate” means in my opinion is not justified. Also what happened today with the RC.6 shows again that I think we are more in a beta since in a RC phase.

I like to test such software and I am aware of the risks, even if the software is no longer alpha or beta, but already an RC. I don’t have to tell you what “release candidate” means, maybe I’m wrong, but at this stage software is mostly finished and bugs like those in RC.1-6 have been fixed in a beta. So there are only “cosmetic” changes to achieve the final release, here to v1.4.0.

What is your opinion about this?

Posts: 2

Participants: 2

Read full topic

syncthing (synctrazor) not syncing 100%

$
0
0

@boris431 wrote:

question running syncthing with Synctrayzor installed on sync machine windows 10 , keep getting same issue on synctrayzor remote devices ( my OMV server ) says syncing 99% 350 MIB it never gets to 100 % please advise what is going on and how to fix . on server side remote device my PC says up to date

Posts: 1

Participants: 1

Read full topic

UI problems - changes are ignored / dropped

$
0
0

@Finomosec wrote:

Continuation of UI is not updating nor saving settings

I’m still having these problems. This time on a different PC though.

I tried to enable config logging:

How can i activate config logging, when no config-post is processed by the server?

My guess is that the large number of requests creates I/O activity, which is the bottleneck on a slow computer like this one. Thus the requests don’t get processed as they should. Maybe some mechanism schedules (usually short) read actions higher than write actions like the “config” post. But since there are so many gets constantly fired at the server it won’t ever process the other requests.

A solution could be to throttle the requests fired at the server, if the client detects, that the server is answering slowly. One idea could be to not requests new events or status updates if another request is still pending and only retry after 1 or 2 minutes or so or if the request officially failed.

A fix for this would really be appreciated, as i can not manage my systems with this problem. It’s config hell right now…

Greetings Fred;

Posts: 4

Participants: 2

Read full topic

Upload status API events?

$
0
0

@iliyan wrote:

I’m experimenting with the REST API, and I managed to successfully subscribe to notifications about the sync local status, specifically when the local machine is syncing files from the network.

However, I can’t find events that notify about remote machines downloading files from the local machine. This is useful not only for reassurance that locally modified files are being synced remotely, but also to know when it’s not a good time to turn off / sleep / disconnect the local machine. The UI does show that remote machines are being synced but doesn’t show whether they’re pulling stuff from the local one or just syncing between each other.

Any ideas? Thanks!

Posts: 2

Participants: 2

Read full topic

Project Naming

$
0
0

@microwavesafe wrote:

In the not to distant future I plan to release some code open source. They are private projects for now, but I realised it may not be appropriate to use the Syncthing name as they are not official projects?

The code is client only, so only connects to a single Syncthing instance. so I was going to call the projects SyncthingClientCore for the library and SyncthingClientDrive for the first project that uses the library to mount the shared folders as a FUSE mount. I will put a clear message that these are not official (and at the moment they are very alpha) in the README, but I didn’t want to cause any confusion or annoy anyone.

Posts: 1

Participants: 1

Read full topic

Sync Huge Directory with occasional changes

$
0
0

@walteweiss wrote:

I see this question is asked pretty often and is in FAQ, but I would like to make it a little bit more specific, so to understand whether I should use it for my use-case, or it’s not advisable to.

I have a huge directory which I would like to mirror (The Backup further in the text) to two or three remote servers, one of which I have on my LAN and others on the other locations I have access to. The backup process happens not very often, once a week. With data being just added up. Basically that’s some sort of archive for our team’s work projects, which are also synchronized either via git or Syncthing, or both (more on that later). Those projects contain such file-types as html, css, js, psd, sketch, images and other office type files. The weekly additions is expected to be within 10 GiB in size, and The Backup is cleaned up annually, moving about half of its size to a non-synchronized server with an SSH access (The Archive further in the text), so that we keep only this and last year projects.

The size of The Backup directory is expected to be less than 100 GB, but the number of files is unpredicted. With all that said, I have these questions:

  1. Is this design encouraged with Syncthing’s architecture, or is it just a specific use-case I have to test on my own? There’s a Is Syncthing my ideal backup application? section in FAQ, but it barely answers this question. And it looks like a really useful scenario to me, since I want the directory to be synced as I change it, preferably automatically. That looks especially useful with remote hosts, which are less easier to manage.
  2. Does the frequency of files changes make any difference to the performance? I would like to use my old home-server (Pi-like performance, Arch Linux with Intel Atom 230 on the board 2 @ 1.6 GHz with 1 GB of RAM, just 150 MB is used right now). As I tested, 1 GB directory with frequent changes works very well. Will it work similarly well while being 100 GB in size and less frequent changes being made, with just 1 GB being added once in a while, in a root of the directory?
  3. Will the number of writes to the disk be significant in that case? Having The Backup directory synced is very useful, but if the number of writes is significant (which I assume wears disks a bit quicker, am I correct?), then I should redesign the architecture to move directories from The Backup to The Archive more often, since the latter just lives on a remote server.
  4. And for the syncing git thing is a bit of off-topic to my general question, but I put it here as well. I have some projects with git and some are not. If git is strongly discouraged to use with Syncthing, I have to redesign my directories architecture the way Syncthing will do the job only for sans-git projects, which would complicate my system significantly. I tested Syncthing and git with basic markdown notes and haven’t found any issues so far, but that’s not a proper test of this system. In case it’s only me who works with those git-directories, would it still be discouraged to use git? Will it be discouraged, if I work only from one machine and backup the directories with git the aforementioned way, with Folder Type setting set to Receive Only, and push changes from the original machine? If I understand the algorithm correctly, then there’s no difference for my original machine a remote Syncthing directory will mess my current working git directory. I found a thread with very similar question: Sync Large Directory with Raspberry Pi3 (Deadlock?), but it’s almost 3 years, so things could change a little.

I believe that should be of no difference, but for this use-case with The Backup we use macOS and Linux machines only, and Linux machine for The Archive, which may later be switched to FreeBSD.

Thanks.

P.S. The forum forced me to remove the links due to me being a new user, so I left just two, with no links to the documentation that I mentioned in the post.

Posts: 14

Participants: 6

Read full topic


Backup over the internet

$
0
0

@Brucek2839 wrote:

Hello all, New to Syncthing. I am trying to figure out how to backup to a remote computer over the internet. I seem to not be able to find any info on this topic.
Any assistance would be appreciated. Thank you, Bruce

Posts: 4

Participants: 2

Read full topic

Database to upgrade to v1.4.0-rc.7

Disconnected status for 1 PC

$
0
0

@JohnnyMac wrote:

Hello, all. First time post. LOVE this awesome little bit of coding brilliance. Anyway, I have SyncThing successfully deployed, replicating folders among 4 other different, unrelated PCs back to my server. But I’m stumped on this new one.

The only major difference here is that at the site in question, there are “nested routers,” in other words the ISP’s router (Arris, with a firewall port-forward on the SyncThing configured port to the internal router’s WAN port) connects to the router that feeds the corporate LAN (SonicWall, cross-checked against other working setups), and as such the PC with the folder I need to sync. I’ve triple-checked settings, the “Connections” tab, etc., but the status still shows as “Disconnected.” Are nested routers problematic, or should I look elsewhere?

Thanks for any ideas!

Posts: 3

Participants: 3

Read full topic

Per folder network sync settings

$
0
0

@clSync wrote:

I currently sync between Windows, Linux, MacOS and three android devices. At a high level, I have a folder for syncing Music and another folder for text files (to-dos, shopping lists, contacts, calendars, etc).

I would like to disable syncing on mobile network for Music folder as the files are large but I need the text based files folder to be synced always even on mobile network.

I could not find an easy way to do this and here are couple of approaches I am thinking of, none ideal.

  1. Change behavior such that Music folder is updated only when all the phones are on Wifi (it’s getting difficult to manage this)
  2. Move Music folder syncing outside of Syncthing but I didn’t find a suitable solution and enable “Wifi only syncing” on that app
  3. Manually update the content on devices. Ugh !!

Not sure if this is possible with the current design of Syncthing so I thought I would check.

Posts: 4

Participants: 3

Read full topic

Locally changed items appearing constantly in Receive only folder

$
0
0

@AndreaPro wrote:

Hello, I’m running Syncthing from a Docker container by linuxserver on my Pi4. I’ve created on my desktop computer with send only settings and a receive only folder on the Raspberry. After the complete syncronization of the folders on the raspberry I have a lot of Locally changed items appearing. If I press on the red button nothing happens and in the logs I have this error: “Revert: directory is not empty; files within are probably ignored on connected devices only” It’s strange because I haven’t added or modified anything, out of ideas I’ve tried deleting everything on the receive side and after the complete sync happens the same. The issue appears only on folders and not on single files. Any ideas?

Posts: 5

Participants: 2

Read full topic

Viewing all 6325 articles
Browse latest View live