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

Running fail2ban 0.9.: #17

Closed
iain17 opened this issue Nov 13, 2014 · 7 comments
Closed

Running fail2ban 0.9.: #17

iain17 opened this issue Nov 13, 2014 · 7 comments

Comments

@iain17
Copy link

iain17 commented Nov 13, 2014

Dear Sean,
Sorry to have to do this, but it seems that fail2rest doesn't work with the latest fail2ban 0.9.1. I actually went out of my way to get one of the latest versions of fail2ban available on Debian, because fail2rest gave me a message about presistent bans not being available on older version. But afterwards got the following problem:
Unknown opcode 149 (�) at position 2: '\u0095'
http://puu.sh/cP9G4/f17ae54d50.png

Checking the api request it was actually the first request /api/global/status that reported back with an error:
{"Error":"Unknown opcode 149 (�) at position 2: '\u0095'"}

About my version:
:/var/log# fail2ban-client --version
Fail2Ban v0.9.1

Copyright (c) 2004-2008 Cyril Jaquier, 2008- Fail2Ban Contributors
Copyright of modifications held by their respective authors.
Licensed under the GNU General Public License v2 (GPL).

Written by Cyril Jaquier cyril.jaquier@fail2ban.org.
Many contributions by Yaroslav O. Halchenko debian@onerussian.com.

Before I wanted to send in this issue I actually re-built fail2rest fully from this repository, but that sadly didn't fix it.

Would love to hear your ideas

@Sean-Der
Copy link
Owner

Hi @iain17

Heh, no need to be sorry it is my code that is busted :) I actually appreciate the bug report, if people don't report things I would never find out about them!

I am going to look into this now, hopefully have a fix out today!

@Sean-Der Sean-Der reopened this Nov 13, 2014
@Sean-Der
Copy link
Owner

Hi @iain17
I was not able to reproduce the issue :(

Can you give me the output of fail2ban-client status from the command line?

Also, can you point me to the exact version you installed (if you grabbed it from Debian's repos) OR the git SHA1 if you ended up building from source.

thanks!

@Sean-Der
Copy link
Owner

Closing for inactivity, @iain17 if you get a chance I would really love to debug this!

@datiti
Copy link

datiti commented May 12, 2015

Hi,
I get the same problem on Debian Wheezy with:
fail2ban 0.9.2-1
golang 1.3.3-1

Running wget on 127.0.0.1:5000/global/ping, i get:
{"Error":"Unknown opcode 149 (�) at position 2: '\u0095'"}

Running fail2ban-client status, i get:
Status
|- Number of jail: 1
`- Jail list: sshd

Any idea ?

Thanks and regards
Cyrille

@Sean-Der
Copy link
Owner

Hey @datiti !

thanks for reporting this, I will create a VM tonight with the same environment and see if I can reproduce.

If I can't I will get together some scripts to try and get debugging information out of your instance.

thanks!

@Sean-Der Sean-Der reopened this May 13, 2015
@datiti
Copy link

datiti commented May 13, 2015

Hello,

It should be easy to get the environment: the server on which I am is a
fresh one: Debian testing amd64

Do not hesitate if you need any information.
I'm not used to golang so that I'm not able to investigate myself ;)

Regards
Cyrille

Le mercredi 13 mai 2015, Sean DuBois notifications@github.com a écrit :

Hey @datiti https://github.com/datiti !

thanks for reporting this, I will create a VM tonight with the same
environment and see if I can reproduce.

If I can't I will get together some scripts to try and get debugging
information out of your instance.

thanks!


Reply to this email directly or view it on GitHub
#17 (comment).

M. Cyrille Mescam
4, allée van gogh
78160 marly-le-roi
0675266353

@Sean-Der
Copy link
Owner

Hey @datiti @iain17 sorry it took me so long, but this issue should be addressed

I improved the socket handling code in fail2rest, and added the opcodes upstream mentioned in this issue kisielk/og-rek#23

This started showing up reliably in 0.9.3, mind updating everything related to fail2rest and trying again?

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