abraunegg / onedrive

OneDrive Client for Linux
https://abraunegg.github.io
GNU General Public License v3.0
10.17k stars 865 forks source link

A database statement execution error occurred: disk I/O error #1732

Closed sramaram-rythmos closed 2 years ago

sramaram-rythmos commented 2 years ago

Note: Before submitting a bug report, please ensure you are running the latest 'onedrive' client as built from 'master' and by using the latest available DMD compiler. Refer to the readme on building the client for your system.

Database error when trying to run synchronize/monitor

After building from source and trying to sync files, seeing error: A database statement execution error occurred: disk I/O error when trying monitor/synchronize

Application and Operating System Details:

Note: Please generate a full debug log whilst reproducing the issue as per https://github.com/abraunegg/onedrive/wiki/Generate-debug-log-for-support and email to support@mynas.com.au

To Reproduce Steps to reproduce the behavior if not causing an application crash:

  1. Follow the instructions for setup in: https://github.com/abraunegg/onedrive/blob/master/docs/INSTALL.md#dependencies-ubuntu-18x-ubuntu-19x-ubuntu-20x--debian-9-debian-10---x86_64 and https://github.com/abraunegg/onedrive/blob/master/docs/INSTALL.md#compilation--installation

  2. Inside dmd environment,onedrive --synchronize --resync

If issue is replicated by a specific 'file' or 'path' please archive the file and path tree & email to support@mynas.com.au

Complete Verbose Log Output

Configuration file successfully loaded
Deleting the saved application sync status ...
Configuring Global Azure AD Endpoints

A database statement execution error occurred: disk I/O error

Please retry your command with --resync to fix any local database corruption issues.

(dmd-2.098.0)sramaram@sramaram-ThinkPad-L470:.../onedrive$

Run the application in a separate terminal window or SSH session and provide the entire application output including the error & crash. When posing the logs, Please format log output to make it easier to read. See https://guides.github.com/features/mastering-markdown/ for more details.

Application Log Output:

Verbose console log output goes here

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Bug Report Checklist

abraunegg commented 2 years ago

@sramaram-rythmos This is not a bug.

You probably have installed via a 'package' - and, not fully understood this: https://github.com/abraunegg/onedrive/blob/master/docs/ubuntu-package-install.md#known-issues-with-installing-from-the-above-packages

What is happening is that you most like have 2 instances running at the same time - one because of the Ubuntu package bug, the other is your manual run using the compiled version.

To resolve:

  1. Uninstall the Ubuntu package version
  2. Ensure you remove the badly created symbolic systemd link
  3. Reboot
  4. Compile and build from source
  5. Retest
  6. Install from source
sramaram-rythmos commented 2 years ago

@abraunegg thank you for the quick response. i think i have two installations like you said, but I couldn't figure out a way to purge 'package' version - apt remove and purge won't work.

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.