abraunegg / onedrive

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

Bug: ERROR: An internal database error occurred: disk I/O error #2675

Closed BKSVitor closed 4 months ago

BKSVitor commented 4 months ago

Describe the bug

Hello everyone, I have an Ubuntu 22.04 server that I use as a file server and I use OneDrive to synchronize my files in the cloud. However, I am receiving the following error message when starting my Ubuntu server:

Mar 21 15:18:11 fileserver systemd[1594]: onedrive.service: Main process exited, code=exited, status=1/FAILURE
Mar 21 15:18:11 fileserver systemd[1594]: onedrive.service: Failed with result 'exit-code'.
Mar 21 15:18:14 fileserver systemd[1594]: onedrive.service: Scheduled restart job, restart counter is at 237.
Mar 21 15:18:14 fileserver onedrive[5225]: onedrive.service: ProtectHostname=yes is configured, but UTS namespace setup is prohibited (container manager?), ignoring namespace setup.
Mar 21 15:18:14 fileserver onedrive[5225]: Configuration file successfully loaded
Mar 21 15:18:14 fileserver onedrive[5225]: Notification (dbus) server not available, disabling
Mar 21 15:18:15 fileserver onedrive[5225]: Configuring Global Azure AD Endpoints
Mar 21 15:18:15 fileserver onedrive[5225]: ERROR: An internal database error occurred: disk I/O error
Mar 21 15:18:15 fileserver systemd[1594]: onedrive.service: Main process exited, code=exited, status=1/FAILURE
Mar 21 15:18:15 fileserver systemd[1594]: onedrive.service: Failed with result 'exit-code'.

Operating System Details

Linux fileserver 5.15.0-101-generic #111-Ubuntu SMP Tue Mar 5 20:16:58 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Client Installation Method

From Source

OneDrive Account Type

Personal

What is your OneDrive Application Version

onedrive v2.4.25-1+np1

What is your OneDrive Application Configuration

Configuration file successfully loaded
onedrive version                             = v2.4.25-1+np1
Config path                                  = /home/casmed/.config/onedrive
Config file found in config path             = true
Config option 'sync_dir'                     = /home/casmed/casdata/onedrive
Config option 'enable_logging'               = false
Config option 'log_dir'                      = /var/log/onedrive/
Config option 'disable_notifications'        = false
Config option 'min_notify_changes'           = 5
Config option 'skip_dir'                     =
Config option 'skip_dir_strict_match'        = false
Config option 'skip_file'                    = ~*|.~*|*.tmp
Config option 'skip_dotfiles'                = false
Config option 'skip_symlinks'                = false
Config option 'monitor_interval'             = 60
Config option 'monitor_log_frequency'        = 6
Config option 'monitor_fullscan_frequency'   = 12
Config option 'read_only_auth_scope'         = false
Config option 'dry_run'                      = false
Config option 'upload_only'                  = false
Config option 'download_only'                = false
Config option 'local_first'                  = false
Config option 'check_nosync'                 = false
Config option 'check_nomount'                = false
Config option 'resync'                       = false
Config option 'resync_auth'                  = false
Config option 'cleanup_local_files'          = false
Config option 'classify_as_big_delete'       = 1000
Config option 'disable_upload_validation'    = false
Config option 'bypass_data_preservation'     = false
Config option 'no_remote_delete'             = false
Config option 'remove_source_files'          = false
Config option 'sync_dir_permissions'         = 700
Config option 'sync_file_permissions'        = 600
Config option 'space_reservation'            = 52428800
Config option 'application_id'               =
Config option 'azure_ad_endpoint'            =
Config option 'azure_tenant_id'              = common
Config option 'user_agent'                   =
Config option 'force_http_11'                = false
Config option 'debug_https'                  = false
Config option 'rate_limit'                   = 0
Config option 'operation_timeout'            = 3600
Config option 'dns_timeout'                  = 60
Config option 'connect_timeout'              = 10
Config option 'data_timeout'                 = 600
Config option 'ip_protocol_version'          = 0
Config option 'sync_root_files'              = false
Selective sync 'sync_list' configured        = false
Config option 'sync_business_shared_folders' = false
Business Shared Folders configured           = false
Config option 'webhook_enabled'              = false

What is your 'curl' version

curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.17
Release-Date: 2022-01-05
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd

Where is your 'sync_dir' located

Local

What are all your system 'mount points'

sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=8075104k,nr_inodes=2018776,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1626612k,mode=755,inode64)
/dev/sda2 on / type ext4 (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=22180)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
none on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
/var/lib/snapd/snaps/core20_2105.snap on /snap/core20/2105 type squashfs (ro,nodev,relatime,errors=continue,x-gdu.hide)
/var/lib/snapd/snaps/snapd_20671.snap on /snap/snapd/20671 type squashfs (ro,nodev,relatime,errors=continue,x-gdu.hide)
/var/lib/snapd/snaps/lxd_27428.snap on /snap/lxd/27428 type squashfs (ro,nodev,relatime,errors=continue,x-gdu.hide)
/var/lib/snapd/snaps/core20_2182.snap on /snap/core20/2182 type squashfs (ro,nodev,relatime,errors=continue,x-gdu.hide)
/var/lib/snapd/snaps/lxd_27037.snap on /snap/lxd/27037 type squashfs (ro,nodev,relatime,errors=continue,x-gdu.hide)
/var/lib/snapd/snaps/snapd_21184.snap on /snap/snapd/21184 type squashfs (ro,nodev,relatime,errors=continue,x-gdu.hide)
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda3 on /home type ext4 (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/snapd/ns type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1626612k,mode=755,inode64)
nsfs on /run/snapd/ns/lxd.mnt type nsfs (rw)
overlay on /var/lib/docker/overlay2/e07f9828e6f52e6ee28f7997dc918d288cc2c7d2028bab0de476031e59909a1e/merged type overlay (rw,relatime,lowerdir=/var/lib/docker/overlay2/l/CGXY4YAPDLTOU37LJTLA4P753C:/var/lib/docker/overlay2/l/UAZWAL6TYH5QDFFZM7UUP6CAPQ:/var/lib/docker/overlay2/l/FI3AXDQGJYBZJ44A6XZQJ7SWTT:/var/lib/docker/overlay2/l/CYBPADS6BU3AGSELDW3KMEKHEY:/var/lib/docker/overlay2/l/6IERL35LHIVGX47LOKZ3D3TRPF:/var/lib/docker/overlay2/l/U3IOQNZ56SB6NWYIPT2E3RYGKL,upperdir=/var/lib/docker/overlay2/e07f9828e6f52e6ee28f7997dc918d288cc2c7d2028bab0de476031e59909a1e/diff,workdir=/var/lib/docker/overlay2/e07f9828e6f52e6ee28f7997dc918d288cc2c7d2028bab0de476031e59909a1e/work)
nsfs on /run/docker/netns/4519167ec12e type nsfs (rw)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1626608k,nr_inodes=406652,mode=700,uid=1000,gid=1000,inode64)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)

What are all your local file system partition types

NAME   FSTYPE   FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0  squashfs 4.0                                                    0   100% /snap/lxd/27428
loop1  squashfs 4.0                                                    0   100% /snap/snapd/20671
loop2  squashfs 4.0                                                    0   100% /snap/core20/2105
loop3  squashfs 4.0                                                    0   100% /snap/lxd/27037
loop4  squashfs 4.0                                                    0   100% /snap/core20/2182
loop5  squashfs 4.0                                                    0   100% /snap/snapd/21184
sda
├─sda1 vfat     FAT32       4139-E59C                                 1G     1% /boot/efi
├─sda2 ext4     1.0         12f43b83-f732-4659-aa96-db4a91e5d5fc     35G    24% /
├─sda3 ext4     1.0         e4e8d436-e28a-45a8-b982-93da7ce1afd1       0    95% /home
└─sda4 ext4     1.0         9779fab4-4f8f-4876-ba3c-6602dc83eb31

How do you use 'onedrive'

I use Onedrive to synchronize my files in the cloud and locally to share via the local network.

Steps to reproduce the behaviour

When executing the command "onedrive --synchronize" I receive the following error:

Configuration file successfully loaded Configuring Global Azure AD Endpoints

ERROR: An internal database error occurred: disk I/O error

Complete Verbose Log Output

~$ onedrive --synchronize --verbose
Using 'user' Config Dir: /home/casmed/.config/onedrive
Using 'system' Config Dir: /etc/onedrive
Configuration file successfully loaded
Checking Application Version ...
Initializing the OneDrive API ...
Configuring Global Azure AD Endpoints
Using Curl defaults for all HTTP operations
Opening the item database ...

ERROR: An internal database error occurred: disk I/O error

Screenshots

No response

Other Log Information or Details

No response

Additional context

No response

abraunegg commented 4 months ago

@BKSVitor You are essentially running 2 client applications at the same time, the client is exiting because it cannot read the data.

This is not a bug or issue. Please be mindful of what is a bug and what is not a bug in the future.

For further details, please read: https://github.com/abraunegg/onedrive/wiki/Frequently-Asked-Questions#an-internal-database-error-occurred-disk-io-error

Closing this issue as this is not a bug but a local environment problem.

abraunegg commented 3 months 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.