How to enable verbose logging to console output in insync-headless?


#1

After some time of normal working on my Linux system (Ubuntu 18.04), now I can’t start insync-headless without any output in console or in logs database:

$ insync-headless start
$ insync-headless get_status
Insync doesn't seem to be running. Start it first.

$ insync-headless get_errors
Insync doesn't seem to be running. Start it first.

Even if I delete all config files (whole ~/.config/Insync directory) - I have the same problem:

$ insync-headless start
To add accounts in headless mode, use the "insync-headless add_account" command. Run "insync-headless help add_account" for more details.

$ insync-headless add_account -a [code]
Insync doesn't seem to be running. Start it first.

After this commands it creates new Insync directory, but file ~/.config/Insync/out.txt is empty, ~/.config/Insync/logs.db is missing.

How can I enable verbose mode to see what happens and why it can’t start?


#2

I have found the way to view source of the problem - here is the key:

$ insync-headless start --no-daemon 
Your disk is low on space. Please free some space first then retry.

My home folder have 95Mb free out of 2,0Gb (95% full), but InSync must sync folder in another drive, that have a lot of space. Strange that it check the size of my homefolder drive.

So the bug is that insync-headless don’t show the error text by default (without --no-daemon argument) Your disk is low on space. Please free some space first then retry. when this situation is happens.

Please show this error in console output by default!


#3

Tagging our engineer @Kurt_Ko for assistance. :slight_smile: