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

Ubuntu PPA | Ubuntu | Debian Packages: onedrive --monitor runs automatically on startup after install #1274

Closed
salaivv opened this issue Feb 14, 2021 · 5 comments
Labels
Bug Something isn't working Fixed Packaging
Milestone

Comments

@salaivv
Copy link

salaivv commented Feb 14, 2021

Bug Report Details

The onedrive client runs automatically on startup in --monitor mode and writes around a gigabyte of data (~1.3 GB). This happens at every startup. I didn't configure any systemd service for the client; this happens out of the box.

Application and Operating System Details:

  • PopOS 20.10 | uname output Linux pop-os 5.8.0-7642-generic #47~1612288990~20.10~b8113e7-Ubuntu SMP Wed Feb 3 02:27:26 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
  • Running with a GUI
  • OneDrive Account Type -- Personal
  • Installed from the Ubuntu PPA mentioned in the INSTALL.md document.
  • DMD -- 2.095.0
  • OneDrive Application Version: 2.4.9-22-g42b7945
  • Config file:
Configuration file successfully loaded
onedrive version                       = v2.4.9-22-g42b7945
Config path                            = /home/salaivv/.config/onedrive
Config file found in config path       = true
Config option 'check_nosync'           = false
Config option 'sync_dir'               = /media/salaivv/Treazure/OneDrive
Config option 'skip_dir'               = 
Config option 'skip_file'              = ~*|.~*|*.tmp
Config option 'skip_dotfiles'          = false
Config option 'skip_symlinks'          = fals
Config option 'monitor_interval'       = 300
Config option 'min_notify_changes'     = 5
Config option 'log_dir'                = /var/log/onedrive/
Config option 'classify_as_big_delete' = 1000
Config option 'upload_only'            = false
Config option 'no_remote_delete'       = false
Config option 'remove_source_files'    = false
Config option 'sync_root_files'        = false
Selective sync 'sync_list' configured  = false
Business Shared Folders configured     = false
  • curl version -- 7.68.0
  • 'sync_dir' is on a local NTFS volume to share data between Linux and Windows (dual boot).
  • My OneDrive account is only used on my PC and mobile. Accessed from both Linux and Windows as mentioned above, but have stopped syncing from Windows. I only sync from Linux using this client.

To Reproduce
Steps to reproduce:

  1. Install onedrive from Ubuntu PPA mentioned in the INSTALL.md document.
  2. Authenticate and configure onedrive.
  3. Restart the PC and login.
  4. OneDrive should start automatically in --monitor mode even without any manual configuration of systemd services.
@abraunegg
Copy link
Owner

abraunegg commented Feb 14, 2021

@yann1cks
This issue keeps coming up as issues here, via support email and on the askubuntu forum.

Please can you fix the Ubuntu PPA package so that, after package installation absolutely zero systemd or automatic startup of the application is done.

Other references:

@abraunegg abraunegg added Bug Something isn't working Packaging labels Feb 14, 2021
@abraunegg abraunegg changed the title onedrive --monitor runs automatically on startup after install Ubuntu PPA: onedrive --monitor runs automatically on startup after install Feb 15, 2021
@nabriis

This comment has been minimized.

@abraunegg
Copy link
Owner

abraunegg commented Apr 6, 2021

When the PPA | Ubuntu | Debian package installs the application, it creates a symbolic link as follows:

Created symlink /etc/systemd/user/default.target.wants/onedrive.service → /usr/lib/systemd/user/onedrive.service.

To resolve this, so that the client is not automatically started, without 'enabling' the client yourself, you need to remove this symbolic link:

sudo rm /etc/systemd/user/default.target.wants/onedrive.service

The OpenSuSE Build Service packages are not impacted by this issue. Refer to https://github.com/abraunegg/onedrive/blob/master/docs/ubuntu-package-install.md to install the client from the OpenSuSE Build Service.

@abraunegg abraunegg added the Workaround Available A work around for the specific issue is available label Apr 6, 2021
@abraunegg abraunegg changed the title Ubuntu PPA: onedrive --monitor runs automatically on startup after install Ubuntu PPA | OpenSuSE Build Service: onedrive --monitor runs automatically on startup after install Jul 26, 2021
@abraunegg
Copy link
Owner

abraunegg commented Apr 20, 2022

Closing this issue as this is a packaging issue due to Debian & Ubuntu processes, unrelated to 'onedrive'.

Update: OpenSuSE Build Service packages updated and fixed this issue from v2.4.17-1~np2

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 28, 2022
@abraunegg abraunegg added Fixed and removed Workaround Available A work around for the specific issue is available Packaging labels May 30, 2022
@abraunegg abraunegg added this to the v2.4.18 milestone May 30, 2022
@abraunegg abraunegg modified the milestones: v2.4.18, v2.4.17 Dec 10, 2022
@abraunegg abraunegg changed the title Ubuntu PPA | OpenSuSE Build Service: onedrive --monitor runs automatically on startup after install Ubuntu PPA | Ubuntu | Debian Packages: onedrive --monitor runs automatically on startup after install Mar 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working Fixed Packaging
Projects
None yet
Development

No branches or pull requests

3 participants