abraunegg / onedrive

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

Bug: Container won't sync files #2951

Open DevDorrejo opened 1 day ago

DevDorrejo commented 1 day ago

Describe the bug

Execute container for first run, after a time fail:

DEBUG: ******************* SYNC LIST RULES EVALUATION START *******************
DEBUG: Evaluation against 'sync_list' rules for this input path: /Workspaces
DEBUG: [S]exludeExactMatch       = false
DEBUG: [S]excludeParentMatched   = false
DEBUG: [S]excludeAnywhereMatched = false
DEBUG: [S]excludeWildcardMatched = false
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: /Workspaces/scripts
DEBUG: Running exactMatchRuleSegmentsToPathSegments()
DEBUG: Rule Segments: ["Workspaces", "scripts"]
DEBUG: Input Segments: ["Workspaces"]
DEBUG: Running matchFirstSegmentToPathFirstSegment()
DEBUG: Rule Segments: ["Workspaces", "scripts"]
DEBUG: Input Segments: ["Workspaces"]
DEBUG: Parent root path match with 'sync_list' rule entry
DEBUG: Evaluation against 'sync_list' rule result: parent root path match to rule
DEBUG: ------------------------------------------------------------------------
DEBUG: [F]exludeExactMatch       = false
DEBUG: [F]excludeParentMatched   = false
DEBUG: [F]excludeAnywhereMatched = false
DEBUG: [F]excludeWildcardMatched = false
DEBUG: Evaluation against 'sync_list' final result: included for sync
DEBUG: ******************* SYNC LIST RULES EVALUATION END *********************
DEBUG: Flagging object as a directory
DEBUG: OneDrive change is an update to an existing local item
DEBUG: Attempting to calculate local filesystem path for 77e390d002eb0b84 and 77E390D002EB0B84!103
DEBUG: existingItemPath calculated full path is: ./Workspaces
DEBUG: Batched JSON item processing time: 639 μs and 9 hnsecs
DEBUG: ------------------------------------------------------------------
DEBUG: Number of JSON items to process is: 4977
DEBUG: Number of JSON items processed was: 4977
DEBUG: Number of items to download from Microsoft OneDrive: 2720
DEBUG: Attempting to calculate local filesystem path for 77e390d002eb0b84 and 77E390D002EB0B84!18442
DEBUG: Attempting to calculate local filesystem path for 77e390d002eb0b84 and 77E390D002EB0B84!169159
DEBUG: Attempting to calculate local filesystem path for 77e390d002eb0b84 and 77E390D002EB0B84!63859
DEBUG: Attempting to calculate local filesystem path for 77e390d002eb0b84 and 77E390D002EB0B84!163645
DEBUG: Attempting to calculate local filesystem path for 77e390d002eb0b84 and 77E390D002EB0B84!162926
DEBUG: Attempting to calculate local filesystem path for 77e390d002eb0b84 and 77E390D002EB0B84!162926
DEBUG: Attempting to calculate local filesystem path for 77e390d002eb0b84 and 77E390D002EB0B84!162926
DEBUG: Attempting to calculate local filesystem path for 77e390d002eb0b84 and 77E390D002EB0B84!63859
DEBUG: JSON Item calculated full path for download is: Workspaces/scripts/Personal/OneDrive.sh
Due to a termination signal, internal processing stopped abruptly. The application will now exit in a unclean manner.
DEBUG: JSON Item calculated full path for download is: Workspaces/scripts/Containers/Devs/Dev-PG.sh
Due to a termination signal, internal processing stopped abruptly. The application will now exit in a unclean manner.
/entrypoint.sh: line 172:    10 Segmentation fault      (core dumped) /usr/local/bin/onedrive "${ARGS[@]}"

Operating System Details

uname -a: `Linux devs 6.11.5-2-default #1 SMP PREEMPT_DYNAMIC Wed Oct 23 04:27:11 UTC 2024 (b4e3aa9) x86_64 x86_64 x86_64 GNU/Linux`

cat /etc/*-re*

NAME="openSUSE Tumbleweed"
# VERSION="20241103"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20241103"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
# CPE 2.3 format, boo#1217921
CPE_NAME="cpe:2.3:o:opensuse:tumbleweed:20241103:*:*:*:*:*:*:*"
#CPE 2.2 format
#CPE_NAME="cpe:/o:opensuse:tumbleweed:20241103"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"

Client Installation Method

From 3rd Party Source (PPA, OpenSuSE Build Service etc)

OneDrive Account Type

Personal

What is your OneDrive Application Version

Latest

What is your OneDrive Application Configuration

Default is a container.

What is your 'curl' version

From the container one

Where is your 'sync_dir' located

Local

What are all your system 'mount points'

user mount point, not external

What are all your local file system partition types

NAME   FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1 vfat   FAT32       C3A8-1BF8                             505.1M     1% /boot/efi
└─sda2 btrfs              6a952f3d-d3f4-473c-90f5-3e04d3fcb119  926.4G     0% /var
                                                                              /boot/grub2/x86_64-efi
                                                                              /root
                                                                              /boot/grub2/i386-pc
                                                                              /srv
                                                                              /opt
                                                                              /usr/local
                                                                              /home
                                                                              /.snapshots
                                                                              /

How do you use 'onedrive'

use the next script to execute the container

#!/usr/bin/env bash

## =================== ##
## Container variables ##
## =================== ##
ONEDRIVE_UID=$(id -u)
ONEDRIVE_GID=$(id -g)

## ================= ##
## Volume Management ##
## ================= ##
folders=(
    "conf"
    "data"
)
paths="${PWD}/.onedrive"
for d in "${folders[@]}"; do
    if [ ! -d "${paths}/${d}" ]; then
        mkdir -p "${paths}/${d}"
    fi
    podman volume create \
        -o type=none \
        -o device="${paths}/${d}" \
        -o=o=bind \
        "${d}"
done

cat >"${paths}"/conf/sync_list <<EOF
/Workspaces/scripts/
EOF

podman run -dt \
    --replace \
    --label "io.containers.autoupdate=image" \
    --name onedrive \
    --user "${ONEDRIVE_UID}:${ONEDRIVE_GID}" \
    --userns=keep-id \
    -v conf:/onedrive/conf:U \
    -v data:/onedrive/data:U \
    docker.io/driveone/onedrive:alpine

for first run use:

podman run --rm -it \
    --replace \
    --label "io.containers.autoupdate=image" \
    --name onedrive \
    --user "${ONEDRIVE_UID}:${ONEDRIVE_GID}" \
    --userns=keep-id \
    -v conf:/onedrive/conf:U \
    -v data:/onedrive/data:U \
    -e ONEDRIVE_DEBUG=1 \
    docker.io/driveone/onedrive:alpine

Steps to reproduce the behaviour

Setup onedrive podman container using alpine images.

Complete Verbose Log Output

This is the relevant information fo the logs:

Number of items to download from Microsoft OneDrive: 2720
Due to a termination signal, internal processing stopped abruptly. The application will now exit in a unclean manner.
Due to a termination signal, internal processing stopped abruptly. The application will now exit in a unclean manner.
/entrypoint.sh: line 172:    10 Segmentation fault      (core dumped) /usr/local/bin/onedrive "${ARGS[@]}"

others line only said:

- creating local directory
- Processing OneDrive JSON item batch [x/10] to ensure consistent local state
- Processing API Response Bundle: x - Quantity of 'changes|items' in this bundle to process: x
- Processing 4977 applicable changes and items received from Microsoft OneDrive
- Finished processing /delta JSON response from the OneDrive API

Screenshots

No response

Other Log Information or Details

No response

Additional context

No response

abraunegg commented 1 day ago

@DevDorrejo A couple of points:

Please perform the above steps, specifically updating / changing what container you are using.

abraunegg commented 10 hours ago

@DevDorrejo Please can you respond

DevDorrejo commented 10 hours ago

Hello,

Right now I am at work, like in four hours I will be at home and test with the edge version.

DevDorrejo commented 4 hours ago

@abraunegg tried with edge and still failed, I sent the email.

Anything I will be attentive to.