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

Doesn't run in my server #92

Open
akik22 opened this issue Jun 2, 2018 · 0 comments
Open

Doesn't run in my server #92

akik22 opened this issue Jun 2, 2018 · 0 comments

Comments

@akik22
Copy link

akik22 commented Jun 2, 2018

Hi,
I'm encountering below error. Please have a look.

Traceback (most recent call last):
File "/bin/ngxtop", line 11, in
sys.exit(main())
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 385, in main
process(args)
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 367, in process
pattern = build_pattern(log_format)
File "/usr/lib/python2.7/site-packages/ngxtop/config_parser.py", line 137, in build_pattern
return re.compile(pattern)
File "/usr/lib64/python2.7/re.py", line 190, in compile
return _compile(pattern, flags)
File "/usr/lib64/python2.7/re.py", line 242, in _compile
raise error, v # invalid expression
sre_constants.error: redefinition of group name 'request_time' as group 11; was group 7

From my understanding, this error is caused by my nginx.conf file since i've added an extra parameter in my access.log. Is there anyway that i can work with it my server. Please have my server's log format.

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent $request_time - "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" "RT: $request_time"';

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

1 participant