View previous topic :: View next topic |
Author |
Message |
usualMortal n00b
Joined: 02 Feb 2016 Posts: 18
|
Posted: Sun Dec 06, 2020 9:53 am Post subject: [CLOSED] syncthing logfile |
|
|
Good day, everyone.
I have some issues with recent syncthing upgrade so I asked the syncthing maintainer a few questions about it (check the link if you're interested https://forum.syncthing.net/t/migrating-database-to-schema-version-10-failed/15928/10 ).
Thing is, I need to locate it's logfile and I have no luck finding it. Thins are getting complicated because I don't launch syncthing in a gentoo-way (see https://wiki.gentoo.org/wiki/Syncthing ), I just run it from the console as a user once in a few days when I need it, so basically the only thing I get is console output and it's not enough.
logrotate.d is configured in this way
Code: | /var/log/syncthing/syncthing.log {
missingok
notifempty
sharedscripts
copytruncate
} |
but obiously I get no /var/log/syncthing/syncthing.log since I'm not running the application properly.
Any advice on the matter would be very welcome.
Much obliged.
UPD: seems there is nothing that can be done to solve my syncthing database migration issue so I don't need to locate logfile anymore. Doubt that it exists.
Last edited by usualMortal on Mon Dec 07, 2020 5:50 pm; edited 1 time in total |
|
Back to top |
|
|
SlashBeast Retired Dev
Joined: 23 May 2006 Posts: 2922
|
Posted: Sun Dec 06, 2020 9:36 pm Post subject: |
|
|
From init script
Code: | SYNCTHING_LOGFILE=${SYNCTHING_LOGFILE:-/var/log/syncthing/syncthing.log}
|
So your log file should be under /var/log/syncthing/syncthing.log
This said, however, I wouldn't run syncthing as root. I run it as my local user on all hosts. What made you choose running it as root? |
|
Back to top |
|
|
usualMortal n00b
Joined: 02 Feb 2016 Posts: 18
|
Posted: Mon Dec 07, 2020 1:41 am Post subject: |
|
|
I'm not running it as a root, I'm doing it as a user. Gentoo wiki suggests adding it to default boot level but I'm not doing it.
And /var/log/syncthing/ is empty except for .keep_net-p2p_syncthing-0 |
|
Back to top |
|
|
|