Skip to content

Generate debug log for support

abraunegg edited this page Aug 7, 2020 · 8 revisions

In some cases it may be necessary to generate a debug log to assist further with analysing what is occurring. Before generating a debug log, if you are running the OneDrive init.d or systemd service, you must stop this service first before generating the debug log.

To generate the debug log, use one of the following commands:

Standalone mode

onedrive --synchronize --verbose --verbose > debug_output.log 2>&1

Monitor mode

onedrive --monitor --verbose --verbose > debug_output.log 2>&1

Docker container example

docker container run -e ONEDRIVE_DEBUG=1 -v onedrive_conf:/onedrive/conf -v "${onedriveDir}:/onedrive/data" driveone/onedrive:latest

Once complete, archive and email debug_output.log or applicable debug log from Docker container to [email protected]

If the resulting log archive file is >4Mb please can you provide a link to download the archive file.