I am trying to configure fail2ban for Freeswithc.
Freeswithc logs also some entries without timestamp, like this:
639eacf2-908f-11ec-96f0-f19b85175ba0 2022-02-18 09:50:06.799659 [DEBUG] sofia.c:7084 Channel sofia/LanSideProfile/27124760025#192.16
8.253.99 entering state [received][100]
639eacf2-908f-11ec-96f0-f19b85175ba0 2022-02-18 09:50:06.799659 [DEBUG] sofia.c:7094 Remote SDP:
639eacf2-908f-11ec-96f0-f19b85175ba0 v=0
639eacf2-908f-11ec-96f0-f19b85175ba0 o=FreeSWITCH 1645143180 1645143181 IN IP4 192.168.253.99
639eacf2-908f-11ec-96f0-f19b85175ba0 s=FreeSWITCH
639eacf2-908f-11ec-96f0-f19b85175ba0 c=IN IP4 192.168.253.99
639eacf2-908f-11ec-96f0-f19b85175ba0 t=0 0
639eacf2-908f-11ec-96f0-f19b85175ba0 m=audio 27426 RTP/AVP 0 18 8 101
639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:0 PCMU/8000
639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:18 G729/8000
639eacf2-908f-11ec-96f0-f19b85175ba0 a=fmtp:18 annexb=no
639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:8 PCMA/8000
639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:101 telephone-event/8000
639eacf2-908f-11ec-96f0-f19b85175ba0 a=fmtp:101 0-15
639eacf2-908f-11ec-96f0-f19b85175ba0 a=silenceSupp:off - - - -
639eacf2-908f-11ec-96f0-f19b85175ba0 a=ptime:20
639eacf2-908f-11ec-96f0-f19b85175ba0
639eacf2-908f-11ec-96f0-f19b85175ba0 2022-02-18 09:50:06.799659 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
Fail2Ban encounters errors on these:
2022-02-18 11:19:51,678 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 v=0', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:51,679 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 v=0', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:53,681 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 s=FreeSWITCH', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:53,682 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 s=FreeSWITCH', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:55,685 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 c=IN IP4 192.168.253.98', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:55,685 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 c=IN IP4 192.168.253.98', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:57,688 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 t=0 0', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:57,688 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 t=0 0', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:59,692 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:0 PCMU/8000', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:59,693 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:0 PCMU/8000', caught exception: IndexError('string index out of range',)
2022-02-18 11:20:01,698 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=fmtp:101 0-16', caught exception: IndexError('string index out of range',)
2022-02-18 11:20:01,697 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=fmtp:101 0-16', caught exception: IndexError('string index out of range',)
2022-02-18 11:20:03,701 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=ptime:20', caught exception: IndexError('string index out of range',)
2022-02-18 11:20:03,702 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=ptime:20', caught exception: IndexError('string index out of range',)
This is most likely because the logs don't have a date.
How can I get rid of these errors?
Stackoverflow is a inappropriate place for that issue, next time please use https://serverfault.com/, https://superuser.com/ etc instead.
see https://github.com/fail2ban/fail2ban/issues/3020
Shortly it is fixed in newer versions, but you can workaround it using precise datepattern (like '^\S+ {DATE}), if the message you're searching for contain the timestamp, otherwise...
see https://github.com/fail2ban/fail2ban/pull/2814 (released with 0.11.2/0.10.6), for instance set datepattern = {NONE} would allow to find failures totally without date-time in log messages.
1645143180 is also timestamp (posix unix time since epoch), fail2ban has also a special datepattern for such format (EPOCH or as part of RE {EPOCH}), but you may need also use more precise pattern.
Anyway I don't see any failure in log, thus don't really know which lines may be interesting here.
Related
I'm trying to create a simple document in my Firestore database when a user presses submit. It works when the app is run on iOS but this is what I see when I run it on macOS:
2022-03-20 19:39:47.333823-0700 globe_artist[62624:775059] Connection 12: received failure notification
2022-03-20 19:39:47.333872-0700 globe_artist[62624:775059] Connection 12: failed to connect 1:1, reason -1
2022-03-20 19:39:47.333901-0700 globe_artist[62624:775059] Connection 12: encountered error(1:1)
2022-03-20 19:39:47.337548-0700 globe_artist[62624:775059] Task <3286828D-3FE8-44EB-9E85-C164E1B00836>.<1> HTTP load failed, 0/0 bytes (error code: 1 [1:1])
2022-03-20 19:39:47.338184-0700 globe_artist[62624:775059] Task <3286828D-3FE8-44EB-9E85-C164E1B00836>.<1> finished with error [1] Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <3286828D-3FE8-44EB-9E85-C164E1B00836>.<1>, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=1, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <3286828D-3FE8-44EB-9E85-C164E1B00836>.<1>"
), _NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, dns}
2022-03-20 19:40:19.959305-0700 globe_artist[62624:775842] [] nw_path_evaluator_create_flow_inner NECP_CLIENT_ACTION_ADD_FLOW A50B5D10-DA1B-457F-9F74-3EAC1A8BA7A6 [1: Operation not permitted]
2022-03-20 19:40:19.959890-0700 globe_artist[62624:775842] [connection] nw_endpoint_flow_setup_channel [C13.1 142.250.217.106:443 in_progress channel-flow (satisfied (Path is satisfied), interface: en0, ipv4, dns)] failed to request add nexus flow
I write some code and install gem, cocoa pod and ruby on terminal for another app location file but seems like these installations installed on Xcode : my commands on terminal that run was this :
sudo gem install cocoapods
curl -L https://get.rvm.io | bash -s stable
rvm install ruby-[version]
export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH
gem install cocoapods --user-install
Dear guys ,
Actually I want to return on first state before I install these line because my another Xcode project that is really important , not working , how could I do to solve this problem?
for your attention thanks alot.
following line is some error that i facing with in debug area :
2021-08-30 13:41:48.774954+0430 offerNews[3999:146045] Connection 1: received failure notification
2021-08-30 13:41:48.775252+0430 offerNews[3999:146045] Connection 1: failed to connect 12:8, reason -1
2021-08-30 13:41:48.775473+0430 offerNews[3999:146045] Connection 1: encountered error(12:8)
2021-08-30 13:41:48.822838+0430 offerNews[3999:146037] Task <D97DE843-5D1D-4970-B7FA-D11F64800BE3>.<0> HTTP load failed, 0/0 bytes (error code: -1003 [12:8])
2021-08-30 13:41:48.823608+0430 offerNews[3999:146037] NSURLConnection finished with error - code -1003
2021-08-30 13:41:48.865862+0430 offerNews[3999:145966] [LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x6000028efa70 UIView:0x7fe90cf28e60.height == 50 (active)>",
"<NSLayoutConstraint:0x6000028e38e0 V:|-(10)-[UIStackView:0x7fe90cf28cd0] (active, names: '|':UIView:0x7fe90cf28b60 )>",
"<NSLayoutConstraint:0x6000028d0050 V:[UIStackView:0x7fe90cf28cd0]-(10)-| (active, names: '|':UIView:0x7fe90cf28b60 )>",
"<NSLayoutConstraint:0x6000028d0550 UIStackView:0x7fe90cc19a60.top == UILayoutGuide:0x6000032f7560'UIViewSafeAreaLayoutGuide'.top (active)>",
"<NSLayoutConstraint:0x6000028d0780 UILayoutGuide:0x6000032f7560'UIViewSafeAreaLayoutGuide'.bottom == UIStackView:0x7fe90cc19a60.bottom (active)>",
"<NSLayoutConstraint:0x6000028d1b30 'UISV-canvas-connection' UIStackView:0x7fe90cf28cd0.top == UIView:0x7fe90cf28e60.top (active)>",
"<NSLayoutConstraint:0x6000028d1b80 'UISV-canvas-connection' V:[UIStackView:0x7fe90cf08340]-(0)-| (active, names: '|':UIStackView:0x7fe90cf28cd0 )>",
"<NSLayoutConstraint:0x6000028d1f90 'UISV-canvas-connection' UIStackView:0x7fe90cc19a60.top == UIView:0x7fe90cc19ff0.top (active)>",
"<NSLayoutConstraint:0x6000028d1fe0 'UISV-canvas-connection' V:[UIView:0x7fe90cf29150]-(0)-| (active, names: '|':UIStackView:0x7fe90cc19a60 )>",
"<NSLayoutConstraint:0x6000028d1c20 'UISV-fill-equally' UIStackView:0x7fe90cf08340.height == UIView:0x7fe90cf28e60.height (active)>",
"<NSLayoutConstraint:0x6000028d2080 'UISV-fill-equally' UIView:0x7fe90cf28b60.height == UIView:0x7fe90cc19ff0.height (active)>",
"<NSLayoutConstraint:0x6000028d2120 'UISV-fill-equally' UIView:0x7fe90cf29150.height == UIView:0x7fe90cc19ff0.height (active)>",
"<NSLayoutConstraint:0x6000028d1bd0 'UISV-spacing' V:[UIView:0x7fe90cf28e60]-(15)-[UIStackView:0x7fe90cf08340] (active)>",
"<NSLayoutConstraint:0x6000028d2030 'UISV-spacing' V:[UIView:0x7fe90cc19ff0]-(0)-[UIView:0x7fe90cf28b60] (active)>",
"<NSLayoutConstraint:0x6000028d20d0 'UISV-spacing' V:[UIView:0x7fe90cf28b60]-(0)-[UIView:0x7fe90cf29150] (active)>",
"<NSLayoutConstraint:0x6000028d23a0 'UIView-Encapsulated-Layout-Height' UIView:0x7fe90cc198f0.height == 667 (active)>",
"<NSLayoutConstraint:0x6000028d0640 'UIViewSafeAreaLayoutGuide-bottom' V:[UILayoutGuide:0x6000032f7560'UIViewSafeAreaLayoutGuide']-(0)-| (active, names: '|':UIView:0x7fe90cc198f0 )>",
"<NSLayoutConstraint:0x6000028d05a0 'UIViewSafeAreaLayoutGuide-top' V:|-(20)-[UILayoutGuide:0x6000032f7560'UIViewSafeAreaLayoutGuide'] (active, names: '|':UIView:0x7fe90cc198f0 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x6000028efa70 UIView:0x7fe90cf28e60.height == 50 (active)>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
2021-08-30 13:41:53.100353+0430 offerNews[3999:146037] Connection 2: received failure notification
2021-08-30 13:41:53.100586+0430 offerNews[3999:146037] Connection 2: failed to connect 12:8, reason -1
2021-08-30 13:41:53.100962+0430 offerNews[3999:146037] Connection 2: encountered error(12:8)
2021-08-30 13:41:53.106221+0430 offerNews[3999:146045] Task <74E4D6A1-E3AC-4CF0-B3C1-5DA6424C9DDA>.<0> HTTP load failed, 0/0 bytes (error code: -1003 [12:8])
2021-08-30 13:41:53.106746+0430 offerNews[3999:146045] NSURLConnection finished with error - code -1003
Error Domain=NSCocoaErrorDomain Code=256 "The file “citys” couldn’t be opened." UserInfo={NSURL=https://api.offernews.co/api/citys}
2021-08-30 13:41:53.121206+0430 offerNews[3999:146045] Connection 3: received failure notification
2021-08-30 13:41:53.121414+0430 offerNews[3999:146045] Connection 3: failed to connect 12:8, reason -1
2021-08-30 13:41:53.121819+0430 offerNews[3999:146045] Connection 3: encountered error(12:8)
2021-08-30 13:41:53.126050+0430 offerNews[3999:146037] Task <066F3763-D89D-4B24-9767-CFC7AA1DE87A>.<0> HTTP load failed, 0/0 bytes (error code: -1003 [12:8])
2021-08-30 13:41:53.126349+0430 offerNews[3999:146037] NSURLConnection finished with error - code -1003
Error Domain=NSCocoaErrorDomain Code=256 "The file “citys” couldn’t be opened." UserInfo={NSURL=https://api.offernews.co/api/citys}
2021-08-30 13:41:55.916065+0430 offerNews[3999:146045] Connection 4: received failure notification
2021-08-30 13:41:55.916257+0430 offerNews[3999:146045] Connection 4: failed to connect 12:8, reason -1
2021-08-30 13:41:55.916600+0430 offerNews[3999:146045] Connection 4: encountered error(12:8)
2021-08-30 13:41:55.922064+0430 offerNews[3999:146042] Task <B3949210-9E23-42CF-9935-5AA704844E30>.<0> HTTP load failed, 0/0 bytes (error code: -1003 [12:8])
2021-08-30 13:41:55.922544+0430 offerNews[3999:146045] NSURLConnection finished with error - code -1003
Error Domain=NSCocoaErrorDomain Code=256 "The file “citys” couldn’t be opened." UserInfo={NSURL=https://api.offernews.co/api/citys}
2021-08-30 13:41:55.929545+0430 offerNews[3999:146042] Connection 5: received failure notification
2021-08-30 13:41:55.929733+0430 offerNews[3999:146042] Connection 5: failed to connect 12:8, reason -1
2021-08-30 13:41:55.930229+0430 offerNews[3999:146042] Connection 5: encountered error(12:8)
2021-08-30 13:41:55.934136+0430 offerNews[3999:146037] Task <3150191D-0192-4A7E-9643-5F5D4342159D>.<0> HTTP load failed, 0/0 bytes (error code: -1003 [12:8])
2021-08-30 13:41:55.934535+0430 offerNews[3999:146037] NSURLConnection finished with error - code -1003
Error Domain=NSCocoaErrorDomain Code=256 "The file “citys” couldn’t be opened." UserInfo={NSURL=https://api.offernews.co/api/citys}
i have the following problem with jboss log and my application log. Some errors are write in server log in this way
15:46:16,834 ERROR [io.undertow.request] (default task-41) UT005023: Exception handling request to /fnsuap/cmd/home: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.conversation.impl.LockTimeoutException: Unable to acquire conversation lock after 30 seconds
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
....
And then are write in my application log in this way:
[09/06/20 03:46:15:015 CEST] ERROR stderr: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.conversation.impl.LockTimeoutException: Unable to acquire conversation lock after 30 seconds
[09/06/20 03:46:15:015 CEST] ERROR stderr: at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
...
So is like every line of stacktrace is a new error.
Why this happens? How can i solve this?
Use log4j1.2
I tried rhn_register command to register for Red Hat(RHEL5).
Later I got the screen saying...
But after few minutes I got the screen saying can't connect the Red hat.
When I checked the /var/log/up2date file , below is the tail output
[root#mdw ~]# tail -f /var/log/up2date
[Mon Oct 24 23:54:36 2016] rhn_register A socket error occurred: (-3, 'Temporary failure in name resolution'), attempt #1
[Mon Oct 24 23:56:01 2016] rhn_register A socket error occurred: (-3, 'Temporary failure in name resolution'), attempt #2
[Mon Oct 24 23:57:26 2016] rhn_register A socket error occurred: (-3, 'Temporary failure in name resolution'), attempt #3
[Mon Oct 24 23:58:51 2016] rhn_register A socket error occurred: (-3, 'Temporary failure in name resolution'), attempt #4
[Tue Oct 25 00:00:16 2016] rhn_register A socket error occurred: (-3, 'Temporary failure in name resolution'), attempt #5
[Tue Oct 25 00:25:25 2016] rhn_register A socket error occurred: (-3, 'Temporary failure in name resolution'), attempt #1
[Tue Oct 25 00:26:50 2016] rhn_register A socket error occurred: (-3, 'Temporary failure in name resolution'), attempt #2
[Tue Oct 25 00:28:15 2016] rhn_register A socket error occurred: (-3, 'Temporary failure in name resolution'), attempt #3
[Tue Oct 25 00:29:40 2016] rhn_register A socket error occurred: (-3, 'Temporary failure in name resolution'), attempt #4
[Tue Oct 25 00:31:05 2016] rhn_register A socket error occurred: (-3, 'Temporary failure in name resolution'), attempt #5
By looking at the /var/log/up2date file, it seems some problem with name resolution (not sure). Can someone please help me on this.
Thanks in advance.
while i am using push notification in my application shows an error like below :
APNCRON: Started at 2012-02-08 00:32:42
3904
Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages:
error:14094415:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate expired in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 75
Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 75
Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.push.apple.com:2195 (Unknown error) in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 75
[1] Initiating push for UDID:a7fa910aef49a17bbd59ccf5c4487d9856b5b36e DevToken:20e05c55435094c84d27b2f5b9c217b5924fcb91e582388cc5fe9c9231d15c11 MSG:{"aps":{"badge":6,"sound":"default"}}
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 118
[2] Initiating push for UDID:828ee672c35c99fe8c106ddd2439495aed2fff00 DevToken:b6eb618c8bee91f19561be8b3554823822036d121faac2f7a0d5cc1362c31e96 MSG:{"aps":{"badge":6,"sound":"default"}}
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 118
close and reconnect the Apple server with 5 sec delay at 100
Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages:
error:14094415:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate expired in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 91
Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 91
Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.push.apple.com:2195 (Unknown error) in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 91
Error with SSL. Please help...
APNS ssl://gateway.sandbox.push.apple.com:2195 connection fails
Chances are you don't have your .pem configured correctly, or at all.