Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[CLOSED] syncthing logfile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
usualMortal
n00b
n00b


Joined: 02 Feb 2016
Posts: 18

PostPosted: Sun Dec 06, 2020 9:53 am    Post subject: [CLOSED] syncthing logfile Reply with quote

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
View user's profile Send private message
SlashBeast
Retired Dev
Retired Dev


Joined: 23 May 2006
Posts: 2922

PostPosted: Sun Dec 06, 2020 9:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
usualMortal
n00b
n00b


Joined: 02 Feb 2016
Posts: 18

PostPosted: Mon Dec 07, 2020 1:41 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum