Greyhole icon indicating copy to clipboard operation
Greyhole copied to clipboard

Where to find debug-level details for event_code = file_copy_failed?

Open UNIVAC-Colonel-Panic opened this issue 5 years ago • 2 comments

v0.15.3

I'm aware of issue #81 (email notification) but my question is about what is written to the greyhole log file. I have log_level = DEBUG and see the following two lines in the log file:

Received hook with event_type = warning, event_code = file_copy_failed Tokenize'd log: EVENT_DATE=Mar 16 17:15:00 ; LOG_LEVEL=WARN ; ACTION=fsck ; MESSAGE=Failed file copy (failed check: target filesize 0 != source filesize 174). Will mark this metadata file 'Gone'.

How do I find out what file -- or metadata file -- this is referring to?

I've tried to figure it out by the context of surrounding log file entries, but nothing seems to make sense except for other errors appearing for a drive I know is failing. I'd just like more details about the file itself.

UNIVAC-Colonel-Panic avatar Mar 17 '21 02:03 UNIVAC-Colonel-Panic

Those lines were created by a hook, in /tmp/gh_log.txt (by default) which is unrelated to the log_level config option.

Look at the greyhole_log_file or greyhole_error_log_file options in your config. This is the daemon log that will contain the information you are looking for.

gboudreau avatar Mar 17 '21 14:03 gboudreau

My bad, I forgot there are two different logs. Thank you for your prompt reply. I haven't found the related lines in greyhole_log_file yet and it's a lower priority at the moment, however I will investigate this when I'm dealing with fewer crises :D and report back.

UNIVAC-Colonel-Panic avatar Mar 23 '21 18:03 UNIVAC-Colonel-Panic