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

Can't install as service: Failed to enable unit: Unit file onedrive.service does not exist. #250

Closed
zell-mbc opened this issue Nov 28, 2018 · 2 comments

Comments

@zell-mbc
Copy link

zell-mbc commented Nov 28, 2018

Bug Report Details

Compilation works fine, sudo make install does look ok as well, but when running 'sudo systemctl enable onedrive' as per the documentation I get an error.

Application and Operating System Details:

To Reproduce
Steps to reproduce the behavior if not causing an application crash:

  1. sudo make install
  2. sudo systemctl enable onedrive
  3. See error

Verbose console log output goes here

(dmd-2.083.0)thomas@hermes:~/onedrive$ sudo make install
mkdir -p /var/log/onedrive
chown root.users /var/log/onedrive
chmod 0775 /var/log/onedrive
install -D onedrive /usr/local/bin/onedrive
install -D -m 644 logrotate/onedrive.logrotate /etc/logrotate.d/onedrive
mkdir -p /usr/lib/systemd/user/
chown root.root /usr/lib/systemd/user/
chmod 0755 /usr/lib/systemd/user/
install -D -m 644 onedrive.service /usr/lib/systemd/user/
mkdir -p /usr/lib/systemd/system/
chown root.root /usr/lib/systemd/system/
chmod 0755 /usr/lib/systemd/system/
install -D -m 644 onedrive@.service /usr/lib/systemd/system/
(dmd-2.083.0)thomas@hermes:~/onedrive$ sudo systemctl enable onedrive
Failed to enable unit: Unit file onedrive.service does not exist.
(dmd-2.083.0)thomas@hermes:~/onedrive$ sudo systemctl enable onedrive@
(dmd-2.083.0)thomas@hermes:~/onedrive$ sudo systemctl start onedrive@
Failed to start onedrive@.service: Unit name onedrive@.service is missing the instance name.
See system logs and 'systemctl status onedrive@.service' for details.
(dmd-2.083.0)thomas@hermes:~/onedrive$ systemctl status onedrive@.service
Failed to get properties: Unit name onedrive@.service is neither a valid invocation ID nor unit name.
(dmd-2.083.0)thomas@hermes:~/onedrive$ sudo systemctl --user enable onedrive
Failed to connect to bus: Datei oder Verzeichnis nicht gefunden
(dmd-2.083.0)thomas@hermes:~/onedrive$ sudo systemctl --user enable onedrive@
Failed to connect to bus: Datei oder Verzeichnis nicht gefunden
(dmd-2.083.0)thomas@hermes:~/onedrive$ ./onedrive --version
onedrive v2.2.0
(dmd-2.083.0)thomas@hermes:~/onedrive$ ./onedrive --monitor
Initializing the Synchronization Engine ...
Initializing monitor ...
OneDrive monitor interval (seconds): 60
@lock
Copy link

lock bot commented Jan 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Jan 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants