Hello guys,
I have some trouble getting my onedrive sync to work again.
I followed the steps in this guide: OneDrive - NixOS Wiki
Enabling and starting the service previously worked with the following commands:
systemctl --user enable onedrive@onedrive.service
systemctl --user start onedrive@onedrive.service
Also already searched how nix resolves dependencies etc. to see if openssl is available for the package but could not understand how to to figure this out
I currently use onedrive for syncing both my personal files as well as study related files.
For study related files I created a systemd service: see below. This service is still working completely fine.
Package info:
onedrive --version
onedrive v2.5.3
If I use:
nix-shell -p openssl
onedrive --sync
it works perfectly fine
A couple weeks ago there was a fix related to the same error message but for the docker image, maybe it is related to this one?:
opened 09:59AM - 16 Nov 24 UTC
closed 09:30PM - 16 Nov 24 UTC
Bug
Fixed
Docker Issue
### Describe the bug
Hi,
I appreciate your work - very useful for my use-cas… e. Please keep your pace!
I run driveone/onedrive:2.5.2-alpine successfully. No issues so far.
Now I updated to driveone/onedrive:2.5.3-alpine where the docker container stops with "Unable to parse OpenSSL version".
Here is the docker logs output.
```
$ docker logs -f onedrive
usermod: no changes
# Running container as user: onedrive
# Base Args: --monitor
# We are synchronizing in single-directory mode
# Adding --single-directory ARG
# Changing ownership permissions on /onedrive/data and /onedrive/conf to onedrive:onedrive
# Launching 'onedrive' as onedrive via gosu
Reading configuration file: /onedrive/conf/config
Configuration file successfully loaded
Unable to parse OpenSSL version.
```
### Operating System Details
```shell
Docker image: driveone/onedrive:2.5.3-alpine
```
### 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
```shell
Application version = onedrive v2.5.3
Compiled with = LDC 2103
User Application Config path = /root/.config/onedrive
System Application Config path = /etc/onedrive
Applicable Application 'config' location = /root/.config/onedrive/config
Configuration file found in config location = false - using application defaults
Applicable 'sync_list' location = /root/.config/onedrive/sync_list
Applicable 'items.sqlite3' location = /root/.config/onedrive/items.sqlite3
Config option 'drive_id' =
Config option 'sync_dir' = ~/OneDrive
Config option 'enable_logging' = false
Config option 'log_dir' = /var/log/onedrive
Config option 'disable_notifications' = false
Config option 'skip_dir' =
Config option 'skip_dir_strict_match' = false
Config option 'skip_file' = ~*|.~*|*.tmp|*.swp|*.partial
Config option 'skip_dotfiles' = false
Config option 'skip_symlinks' = false
Config option 'monitor_interval' = 300
Config option 'monitor_log_frequency' = 12
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 'disable_download_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' = d50ca740-c83f-4d1b-b616-12c519384f0c
Config option 'azure_ad_endpoint' =
Config option 'azure_tenant_id' =
Config option 'user_agent' = ISV|abraunegg|OneDrive Client for Linux/v2.5.3
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' = 60
Config option 'ip_protocol_version' = 0
Config option 'threads' = 8
Compile time option --enable-notifications = false
Selective sync 'sync_list' configured = false
Config option 'sync_business_shared_items' = false
Config option 'webhook_enabled' = false
```
### What is your 'curl' version
```shell
OCI runtime exec failed: exec failed: unable to start container process: exec: "curl": executable file not found in $PATH: unknown
```
### Where is your 'sync_dir' located
Local
### What are all your system 'mount points'
```shell
overlay on / type overlay (rw,relatime,lowerdir=/var/lib/docker/overlay2/l/I5LMKKZLPBXFJ76OMGWSELRMAN:/var/lib/docker/overlay2/l/RV3XTL4XALMHUWR7Z3JH4AAMS2:/var/lib/docker/overlay2/l/XNQYTZ5OVX3TMMUITQVZNCVLU2:/var/lib/docker/overlay2/l/N7AX6FZZF44XRAU4US7QCC7DBP:/var/lib/docker/overlay2/l/MBTDWKTZ5USKBP4RQEYNXKT736:/var/lib/docker/overlay2/l/ZHR2IJOFU3WJAADY3KOK2JK6XJ:/var/lib/docker/overlay2/l/Q3CLAF5XAD7TL4RXY5SKAPTXJY:/var/lib/docker/overlay2/l/WQDZVSH5OKG4PNFEOWN2JNLMRS,upperdir=/var/lib/docker/overlay2/c00376670ed4332372ddd553a1e10eb1f6ea4710b2d0c29adc50533f3eede8a5/diff,workdir=/var/lib/docker/overlay2/c00376670ed4332372ddd553a1e10eb1f6ea4710b2d0c29adc50533f3eede8a5/work)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev type tmpfs (rw,nosuid,size=65536k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666)
sysfs on /sys type sysfs (ro,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup type cgroup2 (ro,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k)
/dev/sda1 on /onedrive/data type ext4 (rw,sync,nosuid,nodev,noexec,relatime)
/dev/nvme0n1p2 on /onedrive/conf type ext4 (rw,noatime)
/dev/nvme0n1p2 on /etc/resolv.conf type ext4 (rw,noatime)
/dev/nvme0n1p2 on /etc/hostname type ext4 (rw,noatime)
/dev/nvme0n1p2 on /etc/hosts type ext4 (rw,noatime)
proc on /proc/bus type proc (ro,nosuid,nodev,noexec,relatime)
proc on /proc/fs type proc (ro,nosuid,nodev,noexec,relatime)
proc on /proc/irq type proc (ro,nosuid,nodev,noexec,relatime)
proc on /proc/sys type proc (ro,nosuid,nodev,noexec,relatime)
proc on /proc/sysrq-trigger type proc (ro,nosuid,nodev,noexec,relatime)
tmpfs on /proc/asound type tmpfs (ro,relatime)
tmpfs on /proc/keys type tmpfs (rw,nosuid,size=65536k,mode=755)
tmpfs on /proc/latency_stats type tmpfs (rw,nosuid,size=65536k,mode=755)
tmpfs on /proc/timer_list type tmpfs (rw,nosuid,size=65536k,mode=755)
tmpfs on /sys/firmware type tmpfs (ro,relatime)
```
### What are all your local file system partition types
```shell
OCI runtime exec failed: exec failed: unable to start container process: exec: "lsblk": executable file not found in $PATH: unknown
```
### How do you use 'onedrive'
Only one client, running in docker.
### Steps to reproduce the behaviour
Docker container is started. Checked the docker logs why the container doesn't keep running.
### Complete Verbose Log Output
```shell
Docker logs:
usermod: no changes
# Running container as user: onedrive
# Base Args: --monitor
# We are synchronizing in single-directory mode
# Adding --single-directory ARG
# Changing ownership permissions on /onedrive/data and /onedrive/conf to onedrive:onedrive
# Launching 'onedrive' as onedrive via gosu
Reading configuration file: /onedrive/conf/config
Configuration file successfully loaded
Unable to parse OpenSSL version.
```
### Screenshots
_No response_
### Other Log Information or Details
_No response_
### Additional context
_No response_
flake.lock
{
"nodes": {
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1733133928,
"narHash": "sha256-gU40r9AfpIr4eq+0noM8yH1Hxf+EA3dqfIpFtQl8Y1E=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "873e39d5f4437d2f3ab06881fea8e63e45e1d011",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1733015953,
"narHash": "sha256-t4BBVpwG9B4hLgc6GUBuj3cjU7lP/PJfpTHuSqE+crk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "ac35b104800bff9028425fec3b6e8a41de2bbfff",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
Systemd service for syncing university files:
{
config,
pkgs,
lib,
...
}: {
systemd.services.onedrive-htwd = {
after = ["network-online.target"];
description = "OneDrive Client for Linux";
serviceConfig = {
ProtectSystem = "full";
#PrivateDevices = "true"; # Commented out for compatibility
ProtectHostname = "true";
#ProtectClock = "true"; # Commented out for compatibility
ProtectKernelTunables = "true";
#ProtectKernelModules = "true"; # Commented out for compatibility
#ProtectKernelLogs = "true"; # Commented out for compatibility
ProtectControlGroups = "true";
RestrictRealtime = "true";
ExecStartPre = "${pkgs.coreutils}/bin/sleep 15"; # Ensure sleep command is correct
ExecStart = "${pkgs.onedrive}/bin/onedrive --monitor --confdir=/home/<user>/.config/onedrive-university";
Restart = "on-failure";
RestartSec = "3";
RestartPreventExitStatus = "126";
TimeoutStopSec = "90"; # Optional, based on your needs
};
wantedBy = ["default.target"];
};
}
About my system:
Operating System: NixOS 25.05
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.6.63 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-10210U CPU @ 1.60GHz
Memory: 7,5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics
Manufacturer: LENOVO
Product Name: 81TC
System Version: Lenovo Yoga C740-14IML