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

Tutorial on https://vector.dev/docs/setup/installation/operating-systems/ubuntu/ failed #3531

Closed
tinoadams opened this issue Aug 23, 2020 · 2 comments · Fixed by #4081
Closed
Assignees
Labels
domain: external docs Anything related to Vector's external, public documentation needs: docs Needs documentation updates platform: debian Anything `debian` platform related platform: rpm Anything `rpm` platform related platform: ubuntu Anything `ubuntu` platform related

Comments

@tinoadams
Copy link

The tutorial on:

https://vector.dev/docs/setup/installation/operating-systems/ubuntu/

Here's what went wrong:

sudo dpkg -i vector-amd64.deb installs a new systemd unit which executes /usr/bin/vector as user vector. By default that user has no read access to journald in order to read logs like in the installation example. It also cannot access /var/log/syslog and other logs for the same reason.

$ cat <<-VECTORCFG > /etc/vector/vector.toml
[sources.in]
  type = "journald" # required
...
$ cat /etc/systemd/system/vector.service
[Service]   
User=vector 
Group=vector
$ sudo journalctl -u vector
Aug 23 11:02:13 test-xenial-1 vector[9207]: No journal files were opened due to insufficient permissions.
@jamtur01
Copy link
Contributor

@tinoadams Thanks! We'll take a look at updating the tutorial. Just to confirm so you can make progress - you need to add the vector user to the systemd-journal group:

usermod -aG systemd-journal vector

Let us know if you spot any other issues!

@jamtur01
Copy link
Contributor

@binarylogic There's a couple of options here.

  1. Add
usermod -aG systemd-journal vector

To the Debian/Ubuntu/RPM/other places package installation scripts, c.f. https://github.com/timberio/vector/blob/master/distribution/debian/scripts/preinst.

  1. Add a step to the docs telling folks to do this to set permissions. Given the automated build - we'd probably have an interface_permissions or interface_setup or something set of templates?

@jamtur01 jamtur01 self-assigned this Aug 23, 2020
@jamtur01 jamtur01 added domain: external docs Anything related to Vector's external, public documentation needs: docs Needs documentation updates platform: debian Anything `debian` platform related platform: rpm Anything `rpm` platform related platform: ubuntu Anything `ubuntu` platform related labels Aug 23, 2020
@jamtur01 jamtur01 removed this from the 2020.08.17 - On The Road Again milestone Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: external docs Anything related to Vector's external, public documentation needs: docs Needs documentation updates platform: debian Anything `debian` platform related platform: rpm Anything `rpm` platform related platform: ubuntu Anything `ubuntu` platform related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants