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

Grafana Reporter command is not found #61

Closed
vanajavamsi opened this issue May 24, 2018 · 9 comments
Closed

Grafana Reporter command is not found #61

vanajavamsi opened this issue May 24, 2018 · 9 comments

Comments

@vanajavamsi
Copy link

I have installed grafana reporter in clients prod cluster but i am facing the issue , after installing the grafana reporter i triggered grafana-reporter command its showing command not found.
Could you please provide me the solution on this issue ASAP.

@IzakMarais
Copy link
Owner

As mentioned in the readme, after running go install to install, the reporter binary will be in $GOPATH/bin. You should have received some error from the go compiler if it is not there.

@4rCh3r
Copy link

4rCh3r commented May 30, 2018

I have the same issue and I suppose its caused by pdflatex?, Im using Centos 7, how I can install pdflatex? I only find pdftex.

@IzakMarais
Copy link
Owner

I don't think a missing reporter command is necessarily related to pdflatex. In that case you will get an error message like the one from #60.

Please comment on that issue of you manage to get pdflatex working on centos what steps you had to follow.

@4rCh3r
Copy link

4rCh3r commented May 30, 2018

My problem with Centos was the version of "tex live" I update manually from 2013 to 2016 do the following (download size 4.5GB aprox)
$ yum erase texlive texlive*
Download the package from: https://www.systutorials.com/go/texlive-download/
Install with:
$ ./install-tl
And set the path in "~/.bashrc"
export PATH=/usr/local/texlive/2018/bin/x86_64-linux:$PATH

@4rCh3r
Copy link

4rCh3r commented Jun 8, 2018

@vanajavamsi If you still without see the application, you can do the next:
Run directly from:

/root/go/bin/grafana-reporter

Assign the permissions:

chmod 4755 /root/go/bin/grafana-reporter

I create a service on systemd (Im using Centos 7).

/usr/lib/systemd/system/grafana-reporter.service

[Unit]
Description=grafana-reporter
Wants=network-online.target
After=network-online.target

[Service]
User=root
Type=notify
Restart=on-failure
ExecStart=/root/go/bin/grafana-reporter
TimeoutStartSec=0

[Install]
WantedBy=multi-user.target

Enable on startup:

systemctl enable grafana-reporter
systemctl start grafana-reporter

@IzakMarais
Copy link
Owner

Thanks for the extra help, @4rCh3r .
No more feedback from original poster, closing issue.

@JoshHilliker
Copy link

very helpful. Thank you.

@Daly123456
Copy link

Hi thanks for you solution @4rCh3r ! but the file out.pdf generated was empty
So how can i mention which Server i want to display on my generated report ?
image

@korimeab
Copy link

Trying to get this running on windows, any idea how can I get pdflatex?

2021/04/21 14:12:59 Calling LaTeX - preprocessing
2021/04/21 14:12:59 Error generating report: error calling LaTeX preprocessing: "exec: "pdflatex": executable file not found in %PATH%". Latex preprocessing failed with output:

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

6 participants