Package: onedrive
Version: 2.4.0-1
Severity: normal

Once a month, my onedrive needs a logout/login, likely due to domain
settings. When this happens, my log is filled with the following:

Apr 25 14:40:14 clws00116 systemd[1514]: Started OneDrive Free Client.
Apr 25 14:40:14 clws00116 onedrive[12374]: ERROR: OneDrive returned an error 
with the following message:
Apr 25 14:40:14 clws00116 onedrive[12374]:   Error Message: HTTP request 
returned status code 400 (Bad Request)
Apr 25 14:40:14 clws00116 onedrive[12374]:   Error Reason:  AADSTS50078: 
Presented multi-factor authentication has expired due to policies configured by 
your administrator, you must refresh your multi-factor authentication to access 
'00000003-0000-0000-c000-000000000000'.
Apr 25 14:40:14 clws00116 onedrive[12374]: Trace ID: [redacted]
Apr 25 14:40:14 clws00116 onedrive[12374]: Correlation ID: [redacted]
Apr 25 14:40:14 clws00116 onedrive[12374]: Timestamp: 2020-04-25 12:40:14Z
Apr 25 14:40:14 clws00116 onedrive[12374]: ERROR: OneDrive returned a 'HTTP 401 
Unauthorized' - Cannot Initialize Sync Engine
Apr 25 14:40:14 clws00116 onedrive[12374]: ERROR: Check your configuration as 
your refresh_token may be empty or invalid. You may need to issue a --logout 
and re-authorise this client.
Apr 25 14:40:15 clws00116 systemd[1514]: onedrive.service: Main process exited, 
code=dumped, status=11/SEGV
Apr 25 14:40:15 clws00116 systemd[1514]: onedrive.service: Failed with result 
'core-dump'.
                                                   #0  0x0000000000000000 n/a 
(n/a + 0x0)
                                                   Stack trace of thread 12374:
                                                   
Apr 25 14:40:15 clws00116 systemd-coredump[12389]: Process 12374 (onedrive) of 
user 1000 dumped core.
Apr 25 14:40:18 clws00116 systemd[1514]: onedrive.service: Scheduled restart 
job, restart counter is at 370.
Apr 25 14:40:18 clws00116 systemd[1514]: Stopped OneDrive Free Client.

This repeats every 3 seconds and fills /var/lib/systemd/coredump/ with a
lot of garbage.

Here's a backtrace from one of those pieces of garbage:

#0  0x0000000000000000 in ?? ()
#1  0x00007f60aeedda97 in std.net.curl.HTTP.Impl.~this() () from 
/lib/x86_64-linux-gnu/libphobos2-ldc-shared.so.90
#2  0x00007f60aee15239 in 
_D6object__T7destroyVbi1TS3std3net4curl4HTTP4ImplZQBmFKQBeZv () from 
/lib/x86_64-linux-gnu/libphobos2-ldc-shared.so.90
#3  0x00007f60aef2b620 in 
_D3std8typecons__T10RefCountedTSQBe3net4curl4HTTP4ImplVEQCcQCb24RefCountedAutoInitializei1ZQCv6__dtorMFZv
 () from /lib/x86_64-linux-gnu/libphobos2-ldc-shared.so.90
#4  0x00007f60aebd2d57 in rt_finalize2 () from 
/lib/x86_64-linux-gnu/libdruntime-ldc-shared.so.90
#5  0x00007f60aebb9e35 in 
_D2gc4impl12conservativeQw15SmallObjectPool13runFinalizersMFNbMxAvZv () from 
/lib/x86_64-linux-gnu/libdruntime-ldc-shared.so.90
#6  0x00007f60aebb813b in 
_D2gc4impl12conservativeQw3Gcx13runFinalizersMFNbMxAvZv () from 
/lib/x86_64-linux-gnu/libdruntime-ldc-shared.so.90
#7  0x00007f60aebb8201 in 
_D2gc4impl12conservativeQw14ConservativeGC__T9runLockedS_DQCeQCeQCcQCnQBs13runFinalizersMFNbMxAvZ2goFNbPSQDzQDzQDxQEi3GcxMxQBdZvS_DQEzQEzQExQFi9otherTimelS_DQFzQFzQFxQGi9numOtherslTQDaTxQDoZQFpMFNbKQDrKxQEfZv
 ()
   from /lib/x86_64-linux-gnu/libdruntime-ldc-shared.so.90
#8  0x00007f60aebb94a3 in 
_DThn16_2gc4impl12conservativeQw14ConservativeGC13runFinalizersMFNbMxAvZv () 
from /lib/x86_64-linux-gnu/libdruntime-ldc-shared.so.90
#9  0x00007f60aebda01c in _d_dso_registry () from 
/lib/x86_64-linux-gnu/libdruntime-ldc-shared.so.90
#10 0x000055cd3335bda5 in ldc.register_dso ()
#11 0x00007f60af31d6f3 in _dl_fini () at dl-fini.c:138
#12 0x00007f60ae802e27 in __run_exit_handlers (status=-1, listp=0x7f60ae981718 
<__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, 
run_dtors=run_dtors@entry=true) at exit.c:108
#13 0x00007f60ae802fda in __GI_exit (status=<optimized out>) at exit.c:139
#14 0x000055cd33364fde in sync.SyncEngine.init() (this=0x7f60ae211600) at 
/build/onedrive-5f2H9c/onedrive-2.4.0/src/sync.d:295
#15 0x000055cd33395138 in main.initSyncEngine(sync.SyncEngine) 
(sync=0x7f60ae211600) at /build/onedrive-5f2H9c/onedrive-2.4.0/src/main.d:828
#16 D main (args=...) at /build/onedrive-5f2H9c/onedrive-2.4.0/src/main.d:548

To at least prevent the piling up of garbage, I've just added the
following systemd unit override, but I haven't tested it yet:

$ cat .config/systemd/user/onedrive.service.d/override.conf 
[Unit]
StartLimitIntervalSec=30s
StartLimitBurst=3

Please consider adjusting the shipped service file in a similar manner.
Endless restarts and coredumps every 3 seconds aren't nice. :-)

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'stable-debug'), (500, 'unstable'), (500, 'stable'), 
(1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-4-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages onedrive depends on:
ii  init-system-helpers      1.57
ii  libc6                    2.30-4
ii  libgcc-s1                10-20200324-1
ii  libglib2.0-0             2.64.1-1
ii  libnotify4               0.7.9-1
ii  libphobos2-ldc-shared90  1:1.20.1-1
ii  libsqlite3-0             3.31.1-4

onedrive recommends no packages.

onedrive suggests no packages.

-- no debconf information

-- 
Tomáš Janoušek, a.k.a. Pivník, a.k.a. Liskni_si, http://work.lisk.in/

Reply via email to