syncthing on openwrt

Folks I have installed on openwrt 19x and absolutely love syncthing. Recently, when I removed a large folder the software it went into a loop with message:

18:42:14 INFO: Cleaning data for dropped folder fatal error: runtime: out of memory

This resulted in flooding a panic-log files filling up the flash in due course.

I have added swap to fix the running out of memory issue but was wondering how I can take the config.xml and change the log file location to another hard disk for any future problem leading to logs that we have not anticipated as yet.

Any suggestions would be appreciated.


When you say logs you mean panic logs or application logs? Application logs to stdout by default, so if you have a log file, it’s most likely one produced by the service manager.

Yes Audrius, they are panic log, as I said. I am new and so I dont yet know what application logs are. This is one example but imagin 100s of them:

root@NSA310AG:~/.config/syncthing# ls -all
drwx------    3 root     root          1816 May 24 11:51 .
drwx------    4 root     root           296 May 23 14:07 ..
-rw-r--r--    1 root     root           619 May 23 13:53 cert.pem
-rw-------    1 root     root          6563 May 24 11:51 config.xml
-rw-------    1 root     root            99 May 24 11:01 csrftokens.txt
-rw-r--r--    1 root     root           615 May 23 13:53 https-cert.pem
-rw-------    1 root     root           288 May 23 13:53 https-key.pem
drwxr-xr-x    2 root     root          1000 May 24 11:49 index-v0.14.0.db
-rw-------    1 root     root           288 May 23 13:53 key.pem
-rw-r--r--    1 root     root         16671 May 24 11:36 panic-20200524-183603.reported.log
-rw-r--r--    1 root     root         15357 May 24 11:36 panic-20200524-183639.reported.log
-rw-r--r--    1 root     root         14798 May 24 11:37 panic-20200524-183713.reported.log
-rw-r--r--    1 root     root         13768 May 24 11:38 panic-20200524-183835.reported.log
-rw-r--r--    1 root     root         14791 May 24 11:39 panic-20200524-183910.reported.log
-rw-r--r--    1 root     root         15702 May 24 11:39 panic-20200524-183945.reported.log
-rw-r--r--    1 root     root         14798 May 24 11:40 panic-20200524-184021.reported.log
-rw-r--r--    1 root     root         14801 May 24 11:40 panic-20200524-184057.reported.log
-rw-r--r--    1 root     root         15761 May 24 11:41 panic-20200524-184132.reported.log
-rw-r--r--    1 root     root         14801 May 24 11:42 panic-20200524-184208.reported.log
-rw-r--r--    1 root     root         14810 May 24 11:42 panic-20200524-184243.reported.log
-rw-r--r--    1 root     root         13549 May 24 11:43 panic-20200524-184319.reported.log

Yeah I am not sure you can get these placed somewhere else. You can move whole syncthing config/db directory somewhere else, which would move the logs as well.

The logs are not needed, however, so if you are over the crash, you could just remove them.

OK. How do I move the whole syncthing config/db directory somewhere else? Is there a setting in the config.xml?


PS: Appreciate your help.

It’s -home command line parameter.

1 Like

How do I mark this as solved?

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