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

crush on reuest #2

Open
mamahtehok opened this issue Apr 2, 2021 · 3 comments
Open

crush on reuest #2

mamahtehok opened this issue Apr 2, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@mamahtehok
Copy link

Hi, i have problem with exprter
it crash on second request with this message

[2021-04-02T12:01:48Z INFO openvpn_access_exporter] Using file: /usr/local/openvpn_as/etc/db/log.db
thread 'tokio-runtime-worker-0' panicked at 'called Result::unwrap() on an Err value: Error { code: Some(5), message: Some("database is locked") }', src/libcore/result.rs:999:5
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace.
Aborted (core dumped)

and afeter restart it again crush on requests

@lfdominguez
Copy link
Owner

Maybe a bug on my exporter... that's error is because the file where is the metrics database of OpenVPN exporter was open by another process... yu can check that you dont have any soft opening that file?

@mamahtehok
Copy link
Author

mamahtehok commented Apr 11, 2021

Maybe a bug on my exporter... that's error is because the file where is the metrics database of OpenVPN exporter was open by another process... yu can check that you dont have any soft opening that file?

only ovpn as process

as01:~# lsof  | grep log.db
python2    1702                   root   10ur     REG              253,0 518991872      38524 /usr/local/openvpn_as/etc/db/log.db
python2    1702                   root   11u      REG              253,0     16928       2993 /usr/local/openvpn_as/etc/db/log.db-journal
as01:~# ps aux | grep 1702
root      1702  0.0  0.7 140940 59520 ?        S    Feb01  44:50 /usr/bin/python2 -c from pyovpn.log.logworker import start ; start()
root     23762  0.0  0.0  13136  1004 pts/0    S+   07:49   0:00 grep --color=auto 1702
as01:~#

@lfdominguez
Copy link
Owner

I will add a checker to skip when the file is locked

@lfdominguez lfdominguez self-assigned this Apr 11, 2021
@lfdominguez lfdominguez added the bug Something isn't working label Apr 11, 2021
@lfdominguez lfdominguez reopened this Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants