Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: A libcurl function was given a bad argument on handle null #2209

Closed
eperry opened this issue Nov 8, 2022 · 7 comments · Fixed by #2211
Closed

Bug: A libcurl function was given a bad argument on handle null #2209

eperry opened this issue Nov 8, 2022 · 7 comments · Fixed by #2211
Labels
Bug Something isn't working Fixed

Comments

@eperry
Copy link

eperry commented Nov 8, 2022

Describe the bug

I am having problems with the docker build of Onedrive. I have tried a few different images you have publish

I have purged the sqlite and other files a couple of times. Based on troubleshooting from other tickets I have read of older issues. Since I am using the stock image provided for docker I wanted to see your thoughts before doing anything drastic.

Here is the error, Followed by:

  • Header to the logs
  • then followed by my Docker run command,
  • ls -l on the file from inside
  • ls -l on the host system
  • Onedrive showing the file is in the cloud
Skipping item - excluded by skip_file config: ./ubuntu-eperry-home/.java/fonts/11.0.8/fcinfo16613646209804735604.tmp
Skipping item - excluded by skip_file config: ./ubuntu-eperry-home/.java/fonts/11.0.8/fcinfo9186903285084231357.tmp
Skipping item - excluded by skip_dir config: ./Pictures
Skipping item - excluded by skip_dir config: ./Desktop
Skipping item - excluded by skip_dir config: ./OLDVMs
Skipping item - excluded by skip_dir config: ./Documents
Applying changes of Path ID: A4C01DFAA081AA4D!168
Updated Remaining Free Space: 745933182757
Processing 206 OneDrive items to ensure consistent local state
Processing 205 OneDrive items to ensure consistent local state
Giving up on sync after three attempts: ubuntu-eperry-home/ColdStorage/EtherApe/config.sub: No such file or directory
std.file.FileException@/usr/lib/ldc/x86_64-redhat-linux-gnu/include/d/std/file.d(2055): ubuntu-eperry-home/ColdStorage/EtherApe/config.sub: No such file or directory
----------------
/usr/lib/ldc/x86_64-redhat-linux-gnu/include/d/std/file.d:283 @trusted bool std.file.cenforce!(bool).cenforce(bool, scope const(char)[], scope const(char)*, immutable(char)[], ulong) [0x543766]
src/config.d:2055 @safe uint std.file.getAttributes!(immutable(char)[]).getAttributes(immutable(char)[]) [0x5437e2]
/usr/lib/ldc/x86_64-redhat-linux-gnu/include/d/std/file.d:2531 [0x4b546d]
src/sync.d:2562 [0x4b5fc1]
src/sync.d:2512 [0x4adb53]
src/sync.d:2018 [0x4a4732]
src/sync.d:635 [0x49ef46]
src/main.d:1673 [0x4f0ff1]
src/main.d:1245 [0x4e718d]
??:? void rt.dmain2._d_run_main2(char[][], ulong, extern (C) int function(char[][])*).runAll() [0x7fddfe9e118b]
??:? _d_run_main2 [0x7fddfe9e0fa4]
??:? _d_run_main [0x7fddfe9e0dfd]
??:? [0x7fddfe62e58f]
??:? __libc_start_main [0x7fddfe62e648]
??:? [0x47a034]
std.net.curl.CurlException@std/net/curl.d(4402): A libcurl function was given a bad argument on handle null
----------------
/usr/lib/ldc/x86_64-redhat-linux-gnu/include/d/std/exception.d:517 _D3std9exception__T7bailOutHTCQBc3net4curl13CurlExceptionZQBnFNaNfAyamMAxaZNn [0x5e6537]
??:? void std.net.curl.Curl.clear(etc.c.curl.CurlOption) [0x7fddfece368a]
src/onedrive.d:490 [0x4ea0aa]
??:? void rt.dmain2._d_run_main2(char[][], ulong, extern (C) int function(char[][])*).runAll() [0x7fddfe9e118b]
??:? _d_run_main2 [0x7fddfe9e0fa4]
??:? _d_run_main [0x7fddfe9e0dfd]
??:? [0x7fddfe62e58f]
??:? __libc_start_main [0x7fddfe62e648]
??:? [0x47a034]
eperry@thorn:~/OneDrive/ubuntu-eperry-home/onedrive-docker$ sh ./run.sh 
edge-alpine: Pulling from driveone/onedrive
Digest: sha256:2c077a689c09dbd092dac7277f7e19999d471497e69379a976a3619a0f3466c5
Status: Image is up to date for driveone/onedrive:edge-alpine
docker.io/driveone/onedrive:edge-alpine
useradd: warning: the home directory /home/onedrive already exists.
useradd: Not copying any file from skel directory into it.
Base Args: --monitor
# Launching onedrive
Using 'user' Config Dir: /home/onedrive/.config/onedrive
Using 'system' Config Dir: /etc/onedrive
Using config option for Global Azure AD Endpoints
Configuration file successfully loaded
Checking Application Version ...

WARNING: Your onedrive client version is obsolete and unsupported. Please upgrade your client version.
Application version: 2.4.20
Version available:   2.4.21

Initializing the OneDrive API ...
Configuring Global Azure AD Endpoints
Using Curl defaults for all HTTP operations
User Configured Rate Limit: 125000000
Opening the item database ...
All operations will be performed in: /home/onedrive/OneDrive
Application version: v2.4.20
Account Type: personal
Default Drive ID: XXXXXXXXXXXXXXXXXX
Default Root ID: XXXXXXXXXXXXXXXXXXX
Remaining Free Space: 743835428581
Fetching details for OneDrive Root
OneDrive Root exists in the database
Initializing the Synchronization Engine ...
Syncing changes from local path first before downloading changes from OneDrive ...
Uploading differences of ~/OneDrive
docker pull driveone/onedrive:edge-alpine
#docker pull driveone/onedrive:latest
export ONEDRIVE_DATA_DIR="${HOME}/OneDrive"
#mkdir -p ${ONEDRIVE_DATA_DIR}
export ONEDRIVE_UID=`id -u`
export ONEDRIVE_GID=`id -g`
#export SSL_CERTS_DIR=$(openssl version -d | cut -f2 -d \")/certs
export SSL_CERTS_DIR=/etc/ssl/certs
docker run -it --name onedrive \
    --rm \
    -v "${ONEDRIVE_DATA_DIR}:/home/onedrive/OneDrive" \
    -v `pwd`/config-onedrive:/home/onedrive/.config/onedrive \
    -v $SSL_CERTS_DIR:/etc/ssl/certs:ro \
    -e "ONEDRIVE_UID=${ONEDRIVE_UID}" \
    -e "ONEDRIVE_GID=${ONEDRIVE_GID}" \
    driveone/onedrive:latest -v  --download-only --synchronize --force --resync

ls -altr inside the docker container
image

ls -altr on the physical system
image

OneDrive online showing the file is there.

image

Operating System Details

eperry@thorn:~/$ uname -a
Linux thorn 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

eperry@thorn:~/$ docker --version
Docker version 20.10.12, build 20.10.12-0ubuntu4

eperry@thorn:~/$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy

Client Installation Method

From Distribution Package

OneDrive Account Type

Personal

What is your OneDrive Application Version

Application version: 2.4.20

What is your OneDrive Application Configuration

onedrive version                             = v2.4.20
Config path                                  = /root/.config/onedrive
Config file found in config path             = false
Config option 'sync_dir'                     = /root/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'             = 300
Config option 'monitor_log_frequency'        = 5
Config option 'monitor_fullscan_frequency'   = 12
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 '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 '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.82.0 (x86_64-redhat-linux-gnu) libcurl/7.82.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 libidn2/2.3.2 libpsl/0.21.1 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.46.0 OpenLDAP/2.6.1
Release-Date: 2022-03-05
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps 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 NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets

Where is your 'sync_dir' located

Local

What are all your system 'mount points'

[root@a303d2c4b536 /]# mount
rpool/var/lib/docker/9084b654f486756b6f3f38f5c2d723a79e80d95bce001151aba120a193a4a1f6 on / type zfs (rw,relatime,xattr,posixacl)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev type tmpfs (rw,nosuid,size=65536k,mode=755,inode64)
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,inode64)
rpool/var/lib/docker on /etc/resolv.conf type zfs (rw,relatime,xattr,posixacl)
rpool/var/lib/docker on /etc/hostname type zfs (rw,relatime,xattr,posixacl)
rpool/var/lib/docker on /etc/hosts type zfs (rw,relatime,xattr,posixacl)
rpool/ROOT/ubuntu_h08h4e on /etc/pki/ca-trust/extracted/pem/directory-hash type zfs (ro,relatime,xattr,posixacl)
rpool/USERDATA/eperry_sbizcz on /home/onedrive/OneDrive type zfs (rw,relatime,xattr,posixacl)
rpool/USERDATA/eperry_sbizcz on /home/onedrive/.config/onedrive type zfs (rw,relatime,xattr,posixacl)
devpts on /dev/console type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666)
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/acpi type tmpfs (ro,relatime,inode64)
tmpfs on /proc/kcore type tmpfs (rw,nosuid,size=65536k,mode=755,inode64)
tmpfs on /proc/keys type tmpfs (rw,nosuid,size=65536k,mode=755,inode64)
tmpfs on /proc/timer_list type tmpfs (rw,nosuid,size=65536k,mode=755,inode64)
tmpfs on /proc/scsi type tmpfs (ro,relatime,inode64)
tmpfs on /sys/firmware type tmpfs (ro,relatime,inode64)
[root@a303d2c4b536 /]#

What are all your local file system partition types

[root@a303d2c4b536 /]# lsblk -f
bash: lsblk: command not found

not installed on the docker image

How do you use 'onedrive'

use it as I expect normal usage is, which is to backup files to onedrive

Steps to reproduce the behaviour

provided it above

Complete Verbose Log Output

Will email it

Screenshots

No response

Other Log Information or Details

No response

Additional context

No response

@eperry eperry added the Bug Something isn't working label Nov 8, 2022
@abraunegg
Copy link
Owner

@eperry

ubuntu-eperry-home/ColdStorage/EtherApe/config.sub: No such file or directory

This is the issue - the file cannot be read or accessed and is causing an access issue.

Either the path truly does not exist, but the application thinks it does, or there is a bug lurking which will require verbose debug logs for analysis.

WARNING: Your onedrive client version is obsolete and unsupported. Please upgrade your client version.
Application version: 2.4.20
Version available:   2.4.21

You are running an obsolete Docker container ... which is due to the build process when v2.4.21 was released being broken, see #2163 for details.

Please can you run the Docker container 'edge' rather than 'latest' and see how this goes in the first instance.

@eperry
Copy link
Author

eperry commented Nov 8, 2022

Ah I have been pulling the Edge but running latest.

docker run -it --name onedrive \
    --rm \
    -v "${ONEDRIVE_DATA_DIR}:/home/onedrive/OneDrive" \
    -v `pwd`/config-onedrive:/home/onedrive/.config/onedrive \
    -v $SSL_CERTS_DIR:/etc/ssl/certs:ro \
    -e "ONEDRIVE_UID=${ONEDRIVE_UID}" \
    -e "ONEDRIVE_GID=${ONEDRIVE_GID}" \
    driveone/onedrive:edge -v -v ......

ok now running with edge and have turned on debugging, piped to a log file.

Application version: v2.4.21-13-ge3ce0ef
Account Type: personal
Default Drive ID: XXXXXXXXXXXXXXXXXX
Default Root ID: XXXXXXXXXXXXXXXXXXX
Remaining Free Space: 745933076859
Fetching details for OneDrive Root
[DEBUG] Request URL = https://graph.microsoft.com/v1.0/me/drive/root

Will provide the full log if it fails again. It usually takes a day. I got a lot of files

@eperry
Copy link
Author

eperry commented Nov 8, 2022

Still the same error, I will email you the full log file but here is the error message

[DEBUG] ------------------------------------------------------------------
[DEBUG] Processing change 15 of 205
[DEBUG] OneDrive Change: {"@odata.type":"#microsoft.graph.driveItem","cTag":"XXXXXXXXXXXXXXXXXXX","eTag":"XXXXXXXXXXXXXXXXXXX","file":{"hashes":{"quickXorHash":"XXXXXXXXXXX","sha1Hash":"XXXXXXXXXXXXXXXXXXXXX","sha256Hash":"XXXXXXXXXXXXXXXXXXXX"},"mimeType":"application\/octet-stream"},"fileSystemInfo":{"createdDateTime":"2022-09-04T18:08:47.863Z","lastModifiedDateTime":"2018-02-24T16:00:57Z"},"id":"XXXXXXXXXXXXXXXXX","name":"config.sub","parentReference":{"driveId":"a4c01dfaa081aa4d","driveType":"personal","id":"XXXXXXXXXXXXXXXXXXXXX","name":"EtherApe","path":"\/drive\/root:\/ubuntu-eperry-home\/ColdStorage\/EtherApe"},"size":36136}
[DEBUG] Not a OneDrive deleted item change
[DEBUG] defaultRootId                                        = XXXXXXXXXXXXXXXXX
[DEBUG] 'search id'                                          = XXXXXXXXXXXXXXXXXXXXXXX
[DEBUG] id == defaultRootId                                  = true
[DEBUG] isItemRoot(item)                                     = false
[DEBUG] item['name'].str == 'root'                           = false
[DEBUG] singleDirectoryScope                                 = false
[DEBUG] 'parentReference id'                                 = XXXXXXXXXXXXXXXXXXXX
[DEBUG] search criteria: syncFolderName                      = root
[DEBUG] search criteria: syncFolderPath                      = 
[DEBUG] search criteria: syncFolderChildPath                 = 
[DEBUG] thisItemId                                           = XXXXXXXXXXXXX
[DEBUG] thisItemParentPath                                   = /drive/root:/ubuntu-eperry-home/ColdStorage/EtherApe
[DEBUG] thisItemFullPath                                     = /drive/root:/ubuntu-eperry-home/ColdStorage/EtherApe/config.sub
[DEBUG] 'item id' matches search 'id'                        = false
[DEBUG] 'parentReference id' matches search 'id'             = false
[DEBUG] 'thisItemParentPath' contains 'syncFolderChildPath'  = true
[DEBUG] 'thisItemParentPath' contains search 'id'            = false
[DEBUG] Change matches search criteria to apply
[DEBUG] Attempting to calculate local filesystem path for XXXXXXXXXXXXXX and XXXXXXXXXXXXX
[DEBUG] skip_file item to check: /ubuntu-eperry-home/ColdStorage/EtherApe/config.sub
[DEBUG] skip_file evaluation for: /ubuntu-eperry-home/ColdStorage/EtherApe/config.sub
[DEBUG] Result: false
[DEBUG] The item we are syncing is a file
[DEBUG] Attempting to calculate local filesystem path for XXXXXXXXX and XXXXXXXXXXXXXXXXXX
[DEBUG] OneDrive change is a new local item
Giving up on sync after three attempts: ubuntu-eperry-home/ColdStorage/EtherApe/config.sub: No such file or directory
[DEBUG] Running cleanupDryRunDatabase
std.file.FileException@/usr/lib/ldc/x86_64-linux-gnu/include/d/std/file.d(2051): ubuntu-eperry-home/ColdStorage/EtherApe/config.sub: No such file or directory
----------------
/usr/lib/ldc/x86_64-linux-gnu/include/d/std/file.d:283 @trusted bool std.file.cenforce!(bool).cenforce(bool, scope const(char)[], scope const(char)*, immutable(char)[], ulong) [0x564b38d9a216]
/usr/src/onedrive/src/config.d:2051 @safe uint std.file.getAttributes!(immutable(char)[]).getAttributes(immutable(char)[]) [0x564b38d9a292]
/usr/lib/ldc/x86_64-linux-gnu/include/d/std/file.d:2527 [0x564b38d1025d]
/usr/src/onedrive/src/sync.d:2628 [0x564b38d10dd1]
/usr/src/onedrive/src/sync.d:2578 [0x564b38d083c6]
/usr/src/onedrive/src/sync.d:0 [0x564b38cfd869]
/usr/src/onedrive/src/sync.d:658 [0x564b38cf8d56]
/usr/src/onedrive/src/main.d:1792 [0x564b38d4e5f4]
/usr/src/onedrive/src/main.d:1339 [0x564b38d43d5a]
??:? void rt.dmain2._d_run_main2(char[][], ulong, extern (C) int function(char[][])*).runAll() [0x7f088c80907b]
??:? _d_run_main2 [0x7f088c808e97]
??:? _d_run_main [0x7f088c808ced]
??:? __libc_start_main [0x7f088c3fed09]
??:? [0x564b38cd2339]
std.net.curl.CurlException@std/net/curl.d(4402): A libcurl function was given a bad argument on handle null
----------------
/usr/lib/ldc/x86_64-linux-gnu/include/d/std/exception.d:517 pure @safe bool std.exception.enforce!(std.net.curl.CurlException).enforce!(bool).enforce(bool, lazy const(char)[], immutable(char)[], ulong) [0x564b38cf1345]
??:? void std.net.curl.HTTP.clearRequestHeaders() [0x7f088cb22d6f]
/usr/src/onedrive/src/onedrive.d:490 [0x564b38d4203a]
??:? void rt.dmain2._d_run_main2(char[][], ulong, extern (C) int function(char[][])*).runAll() [0x7f088c80907b]
??:? _d_run_main2 [0x7f088c808e97]
??:? _d_run_main [0x7f088c808ced]
??:? __libc_start_main [0x7f088c3fed09]
??:? [0x564b38cd2339]

@abraunegg
Copy link
Owner

abraunegg commented Nov 9, 2022

Please can you test the following PR to further investigate your issue:

git clone https://github.com/abraunegg/onedrive.git
cd onedrive
git fetch origin pull/2211/head:pr2211
git checkout pr2211

As you are also using Docker, you will need to follow the instructions to build a custom Docker image as listed here: https://github.com/abraunegg/onedrive/blob/master/docs/Docker.md#build-instructions

When running the PR, your version should be: onedrive v2.4.21-16-g18a3717 or greater.

@abraunegg abraunegg linked a pull request Nov 9, 2022 that will close this issue
@eperry
Copy link
Author

eperry commented Nov 9, 2022

It appears the PR has fixed the issue. Here are the details and build

Showing that I am on the right branch

git status
On branch fix-issue-2209
Your branch is up to date with 'origin/fix-issue-2209'.

nothing to commit, working tree clean

Build

docker build -t onedrive-alpine-fix-2209 -f contrib/docker/Dockerfile-alpine .
Sending build context to Docker daemon  7.365MB
Step 1/18 : ARG ALPINE_VERSION=3.16
Step 2/18 : ARG GO_VERSION=1.17
Step 3/18 : ARG GOSU_VERSION=1.14
Step 4/18 : FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS builder-gosu
 ---> 270c4f58750f
Step 5/18 : ARG GOSU_VERSION
 ---> Using cache
 ---> 5b08d1546e35
Step 6/18 : RUN go install -ldflags "-s -w" github.com/tianon/gosu@${GOSU_VERSION}
 ---> Using cache
 ---> 886caad02af1
Step 7/18 : FROM alpine:${ALPINE_VERSION} AS builder-onedrive
 ---> 9c6f07244728
Step 8/18 : RUN apk add --update --no-cache alpine-sdk gnupg xz curl-dev sqlite-dev binutils-gold autoconf automake ldc
 ---> Using cache
 ---> b5ae09f196c5
Step 9/18 : COPY . /usr/src/onedrive
 ---> Using cache
 ---> f56da7d111c3
Step 10/18 : WORKDIR /usr/src/onedrive
 ---> Using cache
 ---> 0ef4dcfd52d3
Step 11/18 : RUN autoreconf -fiv  && ./configure  && make clean  && make  && make install
 ---> Using cache
 ---> 127f8f8924b3
Step 12/18 : FROM alpine:${ALPINE_VERSION}
 ---> 9c6f07244728
Step 13/18 : RUN apk add --update --no-cache bash libcurl libgcc shadow sqlite-libs ldc-runtime   && mkdir -p /onedrive/conf /onedrive/data
 ---> Running in 01f9754cbd6a
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
(1/16) Installing ncurses-terminfo-base (6.3_p20220521-r0)
(2/16) Installing ncurses-libs (6.3_p20220521-r0)
(3/16) Installing readline (8.1.2-r0)
(4/16) Installing bash (5.1.16-r2)
Executing bash-5.1.16-r2.post-install
(5/16) Installing libexecinfo (1.1-r1)
(6/16) Installing libexecinfo-dev (1.1-r1)
(7/16) Installing llvm-libunwind (13.0.1-r0)
(8/16) Installing ldc-runtime (1.28.1-r0)
(9/16) Installing ca-certificates (20220614-r0)
(10/16) Installing brotli-libs (1.0.9-r6)
(11/16) Installing nghttp2-libs (1.47.0-r0)
(12/16) Installing libcurl (7.83.1-r4)
(13/16) Installing libgcc (11.2.1_git20220219-r2)
(14/16) Installing linux-pam (1.5.2-r0)
(15/16) Installing shadow (4.10-r3)
(16/16) Installing sqlite-libs (3.38.5-r0)
Executing busybox-1.35.0-r17.trigger
Executing ca-certificates-20220614-r0.trigger
OK: 27 MiB in 30 packages
Removing intermediate container 01f9754cbd6a
 ---> 5764c8ea35da
Step 14/18 : COPY --from=builder-gosu /go/bin/gosu /usr/local/bin/
 ---> 498940f21c35
Step 15/18 : COPY --from=builder-onedrive /usr/local/bin/onedrive /usr/local/bin/
 ---> 7f6843f780cc
Step 16/18 : COPY contrib/docker/entrypoint.sh /
 ---> 807a100125fb
Step 17/18 : RUN chmod +x /entrypoint.sh
 ---> Running in 59a7e78b84a5
Removing intermediate container 59a7e78b84a5
 ---> 6d7463fa333f
Step 18/18 : ENTRYPOINT ["/entrypoint.sh"]
 ---> Running in c6497811f9e3
Removing intermediate container c6497811f9e3
 ---> 14d1253fae84
Successfully built 14d1253fae84
Successfully tagged onedrive-alpine-fix-2209:latest

Running that specific tagged docker container

docker run -it --name onedrive \
    --rm \
    -v "${ONEDRIVE_DATA_DIR}:/home/onedrive/OneDrive" \
    -v `pwd`/config-onedrive:/home/onedrive/.config/onedrive \
    -v $SSL_CERTS_DIR:/etc/ssl/certs:ro \
    -e "ONEDRIVE_UID=${ONEDRIVE_UID}" \
    -e "ONEDRIVE_GID=${ONEDRIVE_GID}" \
    onedrive-alpine-fix-2209:latest -v -v --synchronize

Onedrive has continued working after passing this point which was failing on the edge version

[DEBUG] ------------------------------------------------------------------^M
[DEBUG] Processing change 15 of 205^M
[DEBUG] OneDrive Change: {"@odata.type":"#microsoft.graph.driveItem","cTag":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","eTag":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","file":{"hashes":{"quickXorHash":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","sha1Hash":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","sha256Hash":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"},"mimeType":"application\/octet-stream"},"fileSystemInfo":{"createdDateTime":"2022-09-04T18:08:47.863Z","lastModifiedDateTime":"2018-02-24T16:00:57Z"},"id":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","name":"config.sub","parentReference":{"driveId":"a4c01dfaa081aa4d","driveType":"personal","id":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","name":"EtherApe","path":"\/drive\/root:\/ubuntu-eperry-home\/ColdStorage\/EtherApe"},"size":36136}^M
[DEBUG] Not a OneDrive deleted item change^M
[DEBUG] defaultRootId                                        = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^M
[DEBUG] id == defaultRootId                                  = true^M
[DEBUG] isItemRoot(item)                                     = false^M
[DEBUG] item['name'].str == 'root'                           = false^M
[DEBUG] singleDirectoryScope                                 = false^M
[DEBUG] 'parentReference id'                                 = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^M
[DEBUG] search criteria: syncFolderName                      = root^M
[DEBUG] search criteria: syncFolderPath                      = ^M
[DEBUG] search criteria: syncFolderChildPath                 = ^M
[DEBUG] thisItemId                                           = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^M
[DEBUG] thisItemParentPath                                   = /drive/root:/ubuntu-eperry-home/ColdStorage/EtherApe^M
[DEBUG] thisItemFullPath                                     = /drive/root:/ubuntu-eperry-home/ColdStorage/EtherApe/config.sub^M
[DEBUG] 'item id' matches search 'id'                        = false^M
[DEBUG] 'parentReference id' matches search 'id'             = false^M
[DEBUG] 'thisItemParentPath' contains 'syncFolderChildPath'  = true^M
[DEBUG] 'thisItemParentPath' contains search 'id'            = false^M
[DEBUG] Change matches search criteria to apply^M
[DEBUG] Attempting to calculate local filesystem path for xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx and xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^M
[DEBUG] skip_file item to check: /ubuntu-eperry-home/ColdStorage/EtherApe/config.sub^M
[DEBUG] skip_file evaluation for: /ubuntu-eperry-home/ColdStorage/EtherApe/config.sub^M
[DEBUG] Result: false^M
[DEBUG] The item we are syncing is a file^M
[DEBUG] Attempting to calculate local filesystem path for xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx and xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^M
[DEBUG] OneDrive change is potentially a new local item^M
[DEBUG] Path on local disk is a symbolic link ........^M
[DEBUG] Reading the symbolic link target failed ........ ^M
Skipping item - invalid local symbolic link: ubuntu-eperry-home/ColdStorage/EtherApe/config.sub^M
[DEBUG] Inserting new item details to local database^M
[DEBUG] item details: Item("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "config.sub", file, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", 2018-Feb-24 16:00:57Z, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "", "", "", "Y")^M
[DEBUG] ------------------------------------------------------------------^M


@abraunegg
Copy link
Owner

@eperry
Thanks for the confirmation. Will mark this as fixed and merge into 'master'.

You should be able to use then the updated 'edge' Docker container in a few hours.

@abraunegg
Copy link
Owner

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.

Repository owner locked as resolved and limited conversation to collaborators Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working Fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants