abraunegg / onedrive

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

Bug: "Unable to parse OpenSSL version" on Nixos (introduced in 2.5.3) #3006

Closed nadrog closed 3 hours ago

nadrog commented 4 hours ago

Describe the bug

Starting onedrive causes error "Unable to parse OpenSSL version." which used to run ok. Seems the only change was upgrade from 2.5.2 to 2.5.3

Operating System Details

uname -a
Linux nuc 6.6.60 #1-NixOS SMP PREEMPT_DYNAMIC Fri Nov  8 15:28:28 UTC 2024 x86_64 GNU/Linux

No LSB modules are available.
Distributor ID: NixOS
Description:    NixOS 24.05 (Uakari)
Release:        24.05
Codename:       uakari

Client Installation Method

From Distribution Package

OneDrive Account Type

Personal

What is your OneDrive Application Version

onedrive v2.5.3

What is your OneDrive Application Configuration

Reading configuration file: /home/mornar/.config/onedrive/config
Configuration file successfully loaded
Unable to parse OpenSSL version.

cat /home/mornar/.config/onedrive/config | grep -v \#
sync_dir = "/mnt/external/OneDrive"
skip_file = "~*|.~*|*.tmp"
monitor_interval = "300"
monitor_fullscan_frequency = "60"
download_only = "true"
 sync_dir_permissions = "777"
 sync_file_permissions = "666"

What is your 'curl' version

curl 8.7.1 (x86_64-pc-linux-gnu) libcurl/8.7.1 OpenSSL/3.0.14 zlib/1.3.1 brotli/1.1.0 zstd/1.5.6 libidn2/2.3.7 libpsl/0.21.5 libssh2/1.11.0 nghttp2/1.61.0
Release-Date: 2024-03-27
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt pop3 pop3s 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 PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd

Where is your 'sync_dir' located

Local

What are all your system 'mount points'

devtmpfs on /dev type devtmpfs (rw,nosuid,size=796284k,nr_inodes=1987473,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=3,mode=620,ptmxmode=666)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,size=7962824k)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,size=3981412k,mode=755)
ramfs on /run/keys type ramfs (rw,nosuid,nodev,relatime,mode=750)
tmpfs on /run/wrappers type tmpfs (rw,nodev,relatime,size=7962824k,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
/dev/nvme0n1p2 on / type ext4 (rw,relatime)
/dev/nvme0n1p2 on /nix/store type ext4 (ro,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
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)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,nosuid,nodev,relatime,pagesize=2M)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
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)
systemd-1 on /mnt/backup-nixos type autofs (rw,relatime,fd=161,pgrp=1,timeout=60,minproto=5,maxproto=5,direct,pipe_ino=8351)
systemd-1 on /mnt/book type autofs (rw,relatime,fd=166,pgrp=1,timeout=60,minproto=5,maxproto=5,direct,pipe_ino=8354)
systemd-1 on /mnt/gordan type autofs (rw,relatime,fd=167,pgrp=1,timeout=60,minproto=5,maxproto=5,direct,pipe_ino=8357)
/dev/nvme0n1p1 on /boot type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1592564k,nr_inodes=398141,mode=700,uid=1000,gid=100)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
//192.168.1.20/book on /mnt/book type cifs (rw,relatime,vers=3.1.1,cache=strict,username=gordan,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.1.20,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,reparse=nfs,rsize=4194304,wsize=4194304,bsize=1048576,retrans=1,echo_interval=60,actimeo=1,closetimeo=1,x-systemd.automount,x-systemd.idle-timeout=60,x-systemd.mount-timeout=5s)
//192.168.1.20/homes/gordan on /mnt/gordan type cifs (rw,relatime,vers=3.1.1,cache=strict,username=gordan,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.1.20,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,reparse=nfs,rsize=4194304,wsize=4194304,bsize=1048576,retrans=1,echo_interval=60,actimeo=1,closetimeo=1,x-systemd.automount,x-systemd.idle-timeout=60,x-systemd.mount-timeout=5s)
//192.168.1.20/backup/nixos on /mnt/backup-nixos type cifs (rw,relatime,vers=3.1.1,cache=strict,username=gordan,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.1.20,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,reparse=nfs,rsize=4194304,wsize=4194304,bsize=1048576,retrans=1,echo_interval=60,actimeo=1,closetimeo=1,x-systemd.automount,x-systemd.idle-timeout=60,x-systemd.mount-timeout=5s)

What are all your local file system partition types

NAME        FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
nvme0n1
├─nvme0n1p1 vfat   FAT32       0B14-8418                             413,7M    19% /boot
├─nvme0n1p2 ext4   1.0         76108004-244f-4314-ad88-68e81fb99fa3    366G    12% /nix/store
│                                                                                  /
└─nvme0n1p3 swap   1     swap  f04ed919-6d17-4f3d-8680-9a69ccd63819                [SWAP]

How do you use 'onedrive'

First: this worked, but stopped after some or all of the following changes:

  1. removed ipv6
  2. sudo nixos-rebuild switch
  3. restart

is the OneDrive folder shared with any other system: No shared with any other platform at the same time: Windows, Apple devices, another Nixos system, Synology is the OneDrive account you use shared across multiple systems / platforms / Operating Systems and in use at the same time: Yes (see above

Steps to reproduce the behaviour

/run/current-system/sw/bin/onedrive --confdir /home/mornar/.config/onedrive

Complete Verbose Log Output

onedrive --synchronize -vv --confdir /home/mornar/.config/onedrive

DEBUG: Application started
DEBUG: Process ID: 7FC5B85C33A0
DEBUG: User UID:   1000
DEBUG: User GID:   100
DEBUG: User Name:  mornar
DEBUG: Application Version: onedrive v2.5.3
DEBUG: Application Compiled With: LDC 2109
DEBUG: Passed in 'cliArgs': ["onedrive", "--synchronize"]
DEBUG: Note: --confdir and --verbose are not listed in 'cliArgs' array
DEBUG: Passed in --confdir if present: /home/mornar/.config/onedrive
DEBUG: Passed in --verbose count if present: 2
DEBUG: runtime_environment: HOME environment variable detected, expansion of '~' should be possible
DEBUG: runtime_environment: Calculated defaultHomePath: /home/mornar
DEBUG: configDirName: CLI override to set configDirName to: /home/mornar/.config/onedrive
DEBUG: refreshTokenFilePath =   /home/mornar/.config/onedrive/refresh_token
DEBUG: deltaLinkFilePath =      /home/mornar/.config/onedrive/delta_link
DEBUG: databaseFilePath =       /home/mornar/.config/onedrive/items.sqlite3
DEBUG: databaseFilePathDryRun = /home/mornar/.config/onedrive/items-dryrun.sqlite3
DEBUG: uploadSessionFilePath =  /home/mornar/.config/onedrive/session_upload
DEBUG: userConfigFilePath =     /home/mornar/.config/onedrive/config
DEBUG: syncListFilePath =       /home/mornar/.config/onedrive/sync_list
DEBUG: systemConfigFilePath =   /etc/onedrive/config
DEBUG: configBackupFile =       /home/mornar/.config/onedrive/.config.backup
DEBUG: configHashFile =         /home/mornar/.config/onedrive/.config.hash
DEBUG: syncListHashFile =       /home/mornar/.config/onedrive/.sync_list.hash
DEBUG: Reading configuration file: /home/mornar/.config/onedrive/config
DEBUG: Configuration file successfully loaded
DEBUG: runtime_environment: XDG_RUNTIME_DIR exists with value: /run/user/1000
DEBUG: runtime_environment: DBUS_SESSION_BUS_ADDRESS exists with value: unix:path=/run/user/1000/bus
DEBUG: D-Bus message bus daemon is available; GUI notifications are now enabled
DEBUG: D-Bus message bus daemon server details: ServerInfo("gnome-shell", "GNOME", "46.2", "1.2")
DEBUG: Unable to parse OpenSSL version.

onedrive --monitor -vv --confdir /home/mornar/.config/onedrive

DEBUG: Application started
DEBUG: Process ID: 7FD1E40AA3A0
DEBUG: User UID:   1000
DEBUG: User GID:   100
DEBUG: User Name:  mornar
DEBUG: Application Version: onedrive v2.5.3
DEBUG: Application Compiled With: LDC 2109
DEBUG: Passed in 'cliArgs': ["onedrive", "--monitor"]
DEBUG: Note: --confdir and --verbose are not listed in 'cliArgs' array
DEBUG: Passed in --confdir if present: /home/mornar/.config/onedrive
DEBUG: Passed in --verbose count if present: 2
DEBUG: runtime_environment: HOME environment variable detected, expansion of '~' should be possible
DEBUG: runtime_environment: Calculated defaultHomePath: /home/mornar
DEBUG: configDirName: CLI override to set configDirName to: /home/mornar/.config/onedrive
DEBUG: refreshTokenFilePath =   /home/mornar/.config/onedrive/refresh_token
DEBUG: deltaLinkFilePath =      /home/mornar/.config/onedrive/delta_link
DEBUG: databaseFilePath =       /home/mornar/.config/onedrive/items.sqlite3
DEBUG: databaseFilePathDryRun = /home/mornar/.config/onedrive/items-dryrun.sqlite3
DEBUG: uploadSessionFilePath =  /home/mornar/.config/onedrive/session_upload
DEBUG: userConfigFilePath =     /home/mornar/.config/onedrive/config
DEBUG: syncListFilePath =       /home/mornar/.config/onedrive/sync_list
DEBUG: systemConfigFilePath =   /etc/onedrive/config
DEBUG: configBackupFile =       /home/mornar/.config/onedrive/.config.backup
DEBUG: configHashFile =         /home/mornar/.config/onedrive/.config.hash
DEBUG: syncListHashFile =       /home/mornar/.config/onedrive/.sync_list.hash
DEBUG: Reading configuration file: /home/mornar/.config/onedrive/config
DEBUG: Configuration file successfully loaded
DEBUG: runtime_environment: XDG_RUNTIME_DIR exists with value: /run/user/1000
DEBUG: runtime_environment: DBUS_SESSION_BUS_ADDRESS exists with value: unix:path=/run/user/1000/bus
DEBUG: D-Bus message bus daemon is available; GUI notifications are now enabled
DEBUG: D-Bus message bus daemon server details: ServerInfo("gnome-shell", "GNOME", "46.2", "1.2")
DEBUG: Unable to parse OpenSSL version.

Screenshots

No response

Other Log Information or Details

No response

Additional context

No response

abraunegg commented 3 hours ago

@nadrog This is a bug that has been fixed post v2.5.3 release:

Your options to solve are:

  1. build from source
  2. wait until v2.5.4 is released in the next few weeks
nadrog commented 3 hours ago

Thanks, there's the option to go back to 2.5.2 as well, right?

abraunegg commented 3 hours ago

Thanks, there's the option to go back to 2.5.2 as well, right?

You can downgrade to v2.5.2 if you choose - your choice ..