Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D Documentation
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Core
  • Documentation
  • Issues
  • #1

Closed
Open
Created Jan 11, 2022 by miketwenty1@miketwenty1

Install bridge relay instructions for Ubuntu 20.04, Don't seem to be correct.

I've gone through the guide here: https://community.torproject.org/relay/setup/bridge/debian-ubuntu/

When I hit this step: systemctl enable --now tor@default

I'll get this:

The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled using systemctl.
 
Possible reasons for having this kind of units are:
• A unit may be statically enabled by being symlinked from another unit's
  .wants/ or .requires/ directory.
• A unit's purpose may be to act as a helper for some other unit which has
  a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
  D-Bus, udev, scripted systemctl call, ...).
• In case of template units, the unit is meant to be enabled with some
  instance name specified.

Job for tor@default.service failed because the control process exited with error code.
See "systemctl status tor@default.service" and "journalctl -xe" for details.

I'm using a generic Ubuntu 20.04 instance on EC2/AWS. Indeed the error message seems correct. It seems I need to manually edit: /lib/systemd/system/tor@default.service which is missing the [Install] section at the bottom.

After adding:

[Install]
WantedBy=multi-user.target

To the bottom of tor@default.service unit file, it fixes the issue of me running, systemctl enable --now tor@default.

But my main question is, should this unit file be manually updated? or is the install doc missing a step? or is something else going wrong?

Thanks!

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking