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

Unable to package telegraf due to missing logrotate -- cp: cannot stat ‘etc/logrotate.d/telegraf’: No such file or directory #95

Closed
ajohnstone opened this issue Aug 6, 2015 · 4 comments

Comments

@ajohnstone
Copy link

$ go get -u github.com/influxdb/telegraf/...
$ cd $GOPATH/src/github.com/influxdb/telegraf
$ ./package.sh 1

Starting package process...

/home/andrew/.gvm/bin/gvm
Now using version go1.4.2
GOPATH (/home/andrew/.gvm/pkgsets/go1.4.2/global) looks sane, using /home/andrew/.gvm/pkgsets/go1.4.2/global for installation.
Git tree is clean.
From https://github.com/influxdb/telegraf
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Git tree updated successfully.
Build completed successfully.
telegraf copied to /tmp/tmp.MgYgIBqRvH//opt/telegraf/versions/1
scripts/init.sh copied to /tmp/tmp.MgYgIBqRvH//opt/telegraf/versions/1/scripts
cp: cannot stat ‘etc/logrotate.d/telegraf’: No such file or directory
Failed to copy etc/logrotate.d/telegraf to packaging directory -- aborting.
@sparrc
Copy link
Contributor

sparrc commented Aug 6, 2015

@srfraser can you comment on this? I believe it might be related to PR #87

@sparrc
Copy link
Contributor

sparrc commented Aug 6, 2015

looks like PR #87 wasn't complete, we shouldn't have merged that, I'm going to create a new PR to revert it

@srfraser
Copy link
Contributor

srfraser commented Aug 6, 2015

Apologies, I must have missed the actual logrotate config file - it's in my own copy. A simple option would be to add etc/logrotate.d/telegraf, containing something like

/var/log/telegraf/telegraf.log
{
rotate 6
daily
missingok
notifempty
compress
}

@sparrc
Copy link
Contributor

sparrc commented Aug 6, 2015

no problem @srfraser, my fault for merging it, if you want to send up another PR with the necessary file I'd be happy to re-merge it!

@sparrc sparrc closed this as completed Aug 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants