Jboss 4.2.3 transaction timeout after 10 minutes - jboss

I have a very long transaction (over 10 minutes) running on my jboss. This transaction fail consistently after 10 minutes.
I changed my jboss-service.xml as follows:
<mbean code="com.arjuna.ats.jbossatx.jta.TransactionManagerService"
name="jboss:service=TransactionManager">
<attribute name="TransactionTimeout">1200</attribute>
<attribute name="ObjectStoreDir">${jboss.server.data.dir}/tx-object-store</attribute>
</mbean>
I also changed the max bean age in standardjboss.xml (10 occurrences ):
<max-bean-age>1600</max-bean-age>
Which is set to 600 by default (10 min) but the issues still occur with 1600.
Some logs :
I've got this thousands of times during the transaction :
2012-10-29 15:57:45,006 DEBUG [com.hp.hpl.jena.shared.LockMRSW] Lock : http-0.0.0.0-8080-2
2012-10-29 15:57:45,006 DEBUG [com.hp.hpl.jena.shared.LockMRSW] http-0.0.0.0-8080-2 >> enterCS: Thread R/W: 0/0 :: Model R/W: 0/0 (thread: http-0.0.0.0-8080-2)
2012-10-29 15:57:45,006 DEBUG [com.hp.hpl.jena.shared.LockMRSW] http-0.0.0.0-8080-2 << enterCS: Thread R/W: 0/1 :: Model R/W: 0/1 (thread: http-0.0.0.0-8080-2)
2012-10-29 15:57:45,006 DEBUG [com.hp.hpl.jena.shared.LockMRSW] http-0.0.0.0-8080-2 >> leaveCS: Thread R/W: 0/1 :: Model R/W: 0/1 (thread: http-0.0.0.0-8080-2)
2012-10-29 15:57:45,006 DEBUG [com.hp.hpl.jena.shared.LockMRSW] http-0.0.0.0-8080-2 << leaveCS: Thread R/W: 0/0 :: Model R/W: 0/0 (thread: http-0.0.0.0-8080-2)
2012-10-29 15:57:45,115 DEBUG [com.hp.hpl.jena.shared.LockMRSW] Lock : http-0.0.0.0-8080-2
And when it fail :
2012-10-29 15:58:12,944 DEBUG [com.hp.hpl.jena.shared.LockMRSW] Lock : http-0.0.0.0-8080-2
2012-10-29 15:58:12,944 DEBUG [com.hp.hpl.jena.shared.LockMRSW] http-0.0.0.0-8080-2 >> enterCS: Thread R/W: 0/0 :: Model R/W: 0/0 (thread: http-0.0.0.0-8080-2)
2012-10-29 15:58:12,944 DEBUG [com.hp.hpl.jena.shared.LockMRSW] http-0.0.0.0-8080-2 << enterCS: Thread R/W: 0/1 :: Model R/W: 0/1 (thread: http-0.0.0.0-8080-2)
2012-10-29 15:58:12,944 DEBUG [com.hp.hpl.jena.shared.LockMRSW] http-0.0.0.0-8080-2 >> leaveCS: Thread R/W: 0/1 :: Model R/W: 0/1 (thread: http-0.0.0.0-8080-2)
2012-10-29 15:58:12,944 DEBUG [com.hp.hpl.jena.shared.LockMRSW] http-0.0.0.0-8080-2 << leaveCS: Thread R/W: 0/0 :: Model R/W: 0/0 (thread: http-0.0.0.0-8080-2)
2012-10-29 15:58:12,975 DEBUG [org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager] Attempting to activate; id=4spxl-oj441k-h8vp9pzg-1-h8vpcqc2-p
2012-10-29 15:58:13,100 ERROR [org.nuxeo.ecm.core.event.impl.EventServiceImpl] Error during sync listener execution
javax.ejb.NoSuchEJBException: Could not find stateful bean: 4spxl-oj441k-h8vp9pzg-1-h8vpcqc2-p
at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:390)
at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:375)
at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:166)
at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:115)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
Can someone help me ?
There is a relative post here but without solution : https://community.jboss.org/thread/159596
Thanks a lot !

I found the solution :
Go in : "jboss\server\default\conf\jboss-service.xml" line :
1200
(default is 300)
Then
Go in :
"jboss\server\default\deploy\ejb3-interceptors-aop.xml"
find : idleTimeoutSeconds=300
replace with : idleTimeoutSeconds=1800
There is 4 occurences, replace all.

Related

debugging with OpenOCD reports Protocol error with Rcmd

I'm working on establishing a debug connection to a Renesas RZ/G2L MPU.
My OpenOCD connection appears to launch fine (and i can connect to it with gdb from the shell afterwards with (gdb) target remote localhost:3333 fine):
Open On-Chip Debugger 0.12.0-rc2+dev-00989-g9501b263e-dirty (2022-12-12-17:03)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
G2L
G2L - 0 CA57(s), 2 CA55(s), 0 CA53(s), 0 CR7(s), 1 CM33(s)
Boot Core - CA55
r9a07g044l.cpu
SMP targets: r9a07g044l.a55.0 r9a07g044l.a55.1
init_reset
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : J-Link V11 compiled Dec 5 2022 13:50:41
Info : Hardware version: 11.00
Info : VTarget = 1.812 V
Info : clock speed 4000 kHz
Info : JTAG tap: r9a07g044l.cpu tap/device found: 0x6ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x6)
Info : r9a07g044l.a55.0: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for r9a07g044l.a55.0 on 3333
Info : Listening on port 3333 for gdb connections
Info : starting gdb server for r9a07g044l.m33 on 3334
Info : Listening on port 3334 for gdb connections
Info : gdb port disabled
I'm trying to hook it up with eclipse to debug Flash Writer which should allow me to bring up the system. I createda debug configuration, set the init commands under start up (per instructions from Renesas) and set the launch target to localhost:3333. Upon launch of a debug session from Eclipse however, I get the following error:
Error in final launch sequence:
Failed to execute MI command:
source /home/mistywest/git/rzg2_flash_writer/gdb_smarc_g2l_flash_writer
Error message from debugger back end:
/home/mistywest/git/rzg2_flash_writer/gdb_smarc_g2l_flash_writer:12: Error in sourced command file:
Protocol error with Rcmd
Failed to execute MI command:
source /home/mistywest/git/rzg2_flash_writer/gdb_smarc_g2l_flash_writer
Error message from debugger back end:
/home/mistywest/git/rzg2_flash_writer/gdb_smarc_g2l_flash_writer:12: Error in sourced command file:
Protocol error with Rcmd
Failed to execute MI command:
source /home/mistywest/git/rzg2_flash_writer/gdb_smarc_g2l_flash_writer
Error message from debugger back end:
/home/mistywest/git/rzg2_flash_writer/gdb_smarc_g2l_flash_writer:12: Error in sourced command file:
Protocol error with Rcmd
/home/mistywest/git/rzg2_flash_writer/gdb_smarc_g2l_flash_writer:12: Error in sourced command file:\nProtocol error with Rcmd
and on the OpenOCD console:
Info : accepting 'gdb' connection on tcp/3333
Info : r9a07g044l.a55.0 cluster 0 core 0 multi core
r9a07g044l.a55.0 halted in AArch64 state due to debug-request, current mode: EL3H
cpsr: 0x400003cd pc: 0x3a94
MMU: disabled, D-Cache: disabled, I-Cache: enabled
Info : New GDB Connection: 1, Target r9a07g044l.a55.0, state: halted
Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: r9a07g044l.cpu: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Invalid ACK (0) in DAP response
Info : Deferring arp_examine of r9a07g044l.a55.1
Info : Use arp_examine command to examine it manually!
Info : Deferring arp_examine of r9a07g044l.m33
Info : Use arp_examine command to examine it manually!
Error: Invalid ACK (0) in DAP response
Error: Debug regions are unpowered, an unexpected reset might have happened
Error: JTAG-DP STICKY ERROR
Error: Could not initialize the APB-AP
Info : dropped 'gdb' connection
Oh I'm running this from a Fedora 36 host - if it matters

PostgreSQL (pg_hba.conf / postgresql.conf) The connection to the server was lost. Attempting reset: Failed

I have a problem with Postgres that others seem to have found but the solutions that are given somehow do not work for me. I explain:
WHAT I USE
MacOS 10.15.6
Installed through Homebrew
PostgreSQL 12.2 on x86_64-apple-darwin, compiled by Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn), 64-bit
THE TRIGGER EVENT
I have been doing queries without problems but some of them crash my system, here is one of the examples
SELECT w2.id AS "id"
FROM weather w1
JOIN weather w2
ON EXTRACT(DAY FROM CAST(w2.recorddate AS TIMESTAMP)-CAST(w1.recorddate AS TIMESTAMP)) = 1
AND w2.temperature > w1.temperature;
THE ERROR
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
I tried on PgAdmin and it also crashes.
THINGS I HAVE CHECKED
The pg_hba.conf file
I tried some of the suggestions in this thread without success
The postgresql.conf file
I tried adding listen_addresses = '*' to the end of the file without success
CURRENT SETTINGS
I went back to the defaults I had originally but now I am not sure if everything is in order
My pg_hba.conf file looks like this:
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all trust
host replication all 127.0.0.1/32 trust
host replication all ::1/128 trust
My postgresql.conf has the following settings
listen_addresses = 'localhost'
port = 5432
QUESTION
Any suggestion on where to look, what to reinstall, or what to do? It is a bit uncomfortable not being able to run certain queries.
Thanks!
EDIT POSTGRES LOG
Process: postgres [11542]
Path: /Users/USER/*/postgres
Identifier: postgres
Version: ???
Code Type: X86-64 (Native)
Parent Process: postgres [123]
Responsible: postgres [123]
User ID: 502
Date/Time: 2020-09-06 14:06:05.972 -0700
OS Version: Mac OS X 10.15.6 (19G2021)
Report Version: 12
Anonymous UUID: C82E0E26-CE4B-F615-A561-84E475FEB121
Sleep/Wake UUID: 4B9FB152-7EE9-4D77-B3B3-909D1AD8479A
Time Awake Since Boot: 7500 seconds
Time Since Wake: 740 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (Code Signature Invalid)
Exception Codes: 0x0000000000000032, 0x000000010453f000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace CODESIGNING, Code 0x2
kernel messages:
VM Regions Near 0x10453f000:
__LINKEDIT 0000000104466000-000000010453f000 [ 868K] r--/rw- SM=COW /Users/USER/*/*.dylib
--> VM_ALLOCATE 000000010453f000-0000000104543000 [ 16K] r-x/rwx SM=COW
__TEXT 0000000104544000-0000000104562000 [ 120K] r-x/rwx SM=COW /Users/USER/*/*.dylib
Application Specific Information:
crashed on child side of fork pre-exec
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 0x000000010453f000 0 + 4367577088
1 postmaster 0x00000001035841c6 ExecScan + 582 (execScan.c:239)
2 postmaster 0x00000001035a5270 ExecSort + 240 (nodeSort.c:109)
3 postmaster 0x000000010359e581 ExecMergeJoin + 241 (nodeMergejoin.c:657)
4 postmaster 0x000000010359e581 ExecMergeJoin + 241 (nodeMergejoin.c:657)
5 postmaster 0x00000001035a5270 ExecSort + 240 (nodeSort.c:109)
6 postmaster 0x00000001035a654d ExecGroup + 109 (nodeGroup.c:70)
7 postmaster 0x000000010357c3bf standard_ExecutorRun + 287 (execMain.c:364)
8 postmaster 0x00000001036e1963 PortalRunSelect + 243 (pquery.c:931)
9 postmaster 0x00000001036e153e PortalRun + 430 (pquery.c:770)
10 postmaster 0x00000001036e0585 exec_simple_query + 1445 (postgres.c:1223)
11 postmaster 0x00000001036de40d PostgresMain + 3917 (postgres.c:4249)
12 postmaster 0x000000010365ee28 PostmasterMain + 7832 (postmaster.c:1377)
13 postmaster 0x00000001035cbbce main + 1678
14 libdyld.dylib 0x00007fff6b701cc9 start + 1
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x000000010453f000 rbx: 0x00007fc79682d4c0 rcx: 0x0000000106f818d8 rdx: 0x00007ffeec82e5e7
rdi: 0x00007fc79682d578 rsi: 0x00007fc79682d1a0 rbp: 0x00007ffeec82e610 rsp: 0x00007ffeec82e5b8
r8: 0x0000000000016d3d r9: 0xffffffff00000000 r10: 0x0000000106f818d0 r11: 0x00007fc799288730
r12: 0x00007fc79682d578 r13: 0x00007fc79682be00 r14: 0x00007fc79682d1a0 r15: 0x0000000103a3c240
rip: 0x000000010453f000 rfl: 0x0000000000010246 cr2: 0x000000010453f000
Logical CPU: 0
Error Code: 0x00000015 (invalid protections for user instruction read)
Trap Number: 14
This looks like a known issue where JIT code is not signed properly and triggers security errors on MacOS. I thought a fix for this was already released, so I don't know why you would still be seeing it on 12.4, but in any event turning jit=off should fix the problem.

Pymodbus RTU [Errno 25] Inappropriate ioctl for device

I'm trying to have a modbus RTU client on my Raspberry Pi 4 talking to the modbus synchronous server available in the pymodbus examples (https://pymodbus.readthedocs.io/en/latest/source/example/synchronous_client.html). I set up the server like this:
# RTU:
StartSerialServer(context, framer=ModbusRtuFramer, identity=identity,
port='/dev/ttyAMA0', timeout=.5, baudrate=9600)
What my client does:
from pymodbus.pdu import ModbusRequest
from pymodbus.client.sync import ModbusSerialClient
from pymodbus.transaction import ModbusRtuFramer
import time
import logging
### Logs
FORMAT = ('%(asctime)-15s %(threadName)-15s '
'%(levelname)-8s %(module)-15s:%(lineno)-8s %
(message)s')
logging.basicConfig(format=FORMAT)
log = logging.getLogger()
log.setLevel(logging.DEBUG)
### Modbus RTU stuff
client = ModbusSerialClient(method='rtu', port='/dev/ttyAMA0', baudrate=9600, timeout=.5, parity='N')
client.connect()
client.write_registers(1, 1, unit=1)
client.close()
What I see in server console:
2020-03-24 00:08:14,189 MainThread DEBUG sync :46 Client Connected [/dev/ttyAMA0:/dev/ttyAMA0]
2020-03-24 00:08:14,190 MainThread DEBUG sync :580 Started thread to serve client
Client logs:
2020-03-24 00:09:53,937 MainThread DEBUG transaction :115 Current transaction state - IDLE
2020-03-24 00:09:53,938 MainThread DEBUG transaction :120 Running transaction 1
2020-03-24 00:09:53,939 MainThread DEBUG transaction :219 SEND: 0x1 0x10 0x0 0x1 0x0 0x1 0x2 0x0 0x1 0x66 0x41
2020-03-24 00:09:53,939 MainThread DEBUG sync :75 New Transaction state 'SENDING'
2020-03-24 00:09:53,940 MainThread DEBUG transaction :238 Transaction failed. ([Errno 25] Inappropriate ioctl for device)
2020-03-24 00:09:53,941 MainThread DEBUG rtu_framer :235 Frame - [b''] not ready
2020-03-24 00:09:53,941 MainThread DEBUG transaction :394 Getting transaction 1
2020-03-24 00:09:53,942 MainThread DEBUG transaction :193 Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
I'm really confused by the error message:
[Errno 25] Inappropriate ioctl for device
Up to that point the logs show what I expected (It looks like I can connect and the SEND stuff is correct), but I can't understand what's going on with that error message. On the server side nothing happens in the terminal window. I made sure that with
sudo raspi-config
to disable shell and kernel from the serial connection.
Any idea about what the issue could be? Ty

Greenplum DB stuck in recovery mode

I have a Greenplum deployment with several segments.
version: postgres (Greenplum Database) 8.2.15
A few days ago after an error as seen from pg_log (below)
FATAL 54000 out of on_shmem_exit slots
WARNING 1000 StartTransaction while in START state
PANIC XX000 Waiting on lock already held! (lwlock.c:557)
LOG 0 server process (PID 224596) was terminated by signal 6: Aborted
LOG 0 terminating any other active server processes
FATAL 57P01 terminating connection due to administrator command
LOG 0 sweeper process (PID 102635) exited with exit code 2
LOG 0 seqserver process (PID 102632) exited with exit code 2
FATAL 57P03 the database system is in recovery mode
LOG 0 ftsprobe process (PID 102633) exited with exit code 2
FATAL 57P03 the database system is in recovery mode
FATAL 57P03 the database system is in recovery mode
FATAL 57P03 the database system is in recovery mode
FATAL 57P03 the database system is in recovery mode
FATAL 57P03 the database system is in recovery mode
For 4 days now database remains in recovery mode, gpstart, gpstop all return with errors "the database system is in recovery mode" afterwards fails.
See ps response below:
[gpadmin#mdw1 ~]$ ps -ef | grep post
gpadmin 2979 189094 0 12:25 pts/0 00:00:00 grep post
postfix 3264 3251 0 2015 ? 00:34:40 qmgr -l -t fifo -u
gpadmin 102637 230099 0 May18 ? 00:01:47 postgres: port 5432, stats sender process
gpadmin 230099 1 0 Apr24 ? 02:47:53 /usr/local/greenplum-db-4.3.10.0/bin/postgres -D /data/master/gpseg-1 -p 5432 -b 1 -z 96 --silent-mode=true -i -M master -C -1 -x 194 -E
gpadmin 230100 230099 0 Apr24 ? 00:49:45 postgres: port 5432, master logger process
[gpadmin#mdw1 ~]$
I have searched a lot but am not able to find as a solution kindly assist with pointers on how to bring the database up.

pidfile '/var/log/contextBroker/contextBroker.pid' does not exist

I installed the new version of ContextBroker:
curl localhost:1026/version
{
"orion" :
{
"version" : "1.2.1",
"uptime" : "0 d, 0 h, 7 m, 58 s",
"git_hash" : "af44fd1fbdbbfd28d79ef4f929e871e515b5452e",
"compile_time" : "Thu Jun 16 15:46:51 CEST 2016",
"compiled_by" : "fermin",
"compiled_in" : "centollo"
}
}
Then I installed the watchdog and verifying the file /var/log/contextBroker/monitBROKER.log , I encounter the following error:
error : 'contextBroker' failed to start (exit status 1) -- /etc/init.d/contextBroker: Starting...
contextBroker está parado
Starting contextBroker... pidfile not found[FALLÓ]
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=19.5 kB]
debug : pidfile '/var/log/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' process is not running
info : 'contextBroker' trying to restart
debug : pidfile '/var/log/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/log/contextBroker/contextBroker.pid' does not exist
info : 'contextBroker' start: /etc/init.d/contextBroker
debug : pidfile '/var/log/contextBroker/contextBroker.pid' does not exist
debug : Starting...
contextBroker está parado
Starting contextBroker... pidfile not found[FALLÓ]
debug : pidfile '/var/log/contextBroker/contextBroker.pid' does not exist
Preventing the operation of watchdog.
Could you please tell how to fix it?
EDIT 1
This is the command execution contextBroker (in bold the folder where the PID file is created):
/usr/bin/contextBroker -port 1026 -logDir /var/log/contextBroker -pidpath /var/run/contextBroker/contextBroker.pid -dbhost localhost -db orion -multiservice
How I can modify it to create the PID file where it should?
Or should modify the configuration of watchdog to point to that folder?
EDIT 2
I modified the configuration of the watchdog modifying the monitBROKER.conf file to point to the folder /var/run/contextBroker/
Following the steps indicated by fgalan, I made the "full reset".
If at first you run the script watchdog and observing their log:
info : Starting Monit 5.14 daemon
info : 'ServidorCaptura.guest.domain' Monit 5.14 started
debug : Socket test failed for [::1]:1026 -- Connection refused
debug : Socket test failed for [127.0.0.1]:1026 -- Connection refused
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- Connection refused
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=464 B]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' process is not running
info : 'contextBroker' trying to restart
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
info : 'contextBroker' start: /etc/init.d/contextBroker
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : Starting...
contextBroker está parado
Starting contextBroker... [ OK ]
debug : 'contextBroker' started
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=1.9 kB]
info : 'contextBroker' process is running with pid 1493
debug : 'contextBroker' zombie check succeeded
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=3.3 MB]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=3.1 kB]
debug : 'contextBroker' process is running with pid 1493
debug : 'contextBroker' zombie check succeeded
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=3.8 MB]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=4.3 kB]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' process is not running
info : 'contextBroker' trying to restart
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
info : 'contextBroker' start: /etc/init.d/contextBroker
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : Starting...
contextBroker está parado
Starting contextBroker... pidfile not found[FALLÓ]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' failed to start (exit status 1) -- /etc/init.d/contextBroker: Starting...
contextBroker está parado
Starting contextBroker... pidfile not found[FALLÓ]
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=9.0 kB]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' process is not running
info : 'contextBroker' trying to restart
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
info : 'contextBroker' start: /etc/init.d/contextBroker
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : Starting...
contextBroker está parado
Starting contextBroker... pidfile not found[FALLÓ]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
...
Or if you first started the Context Broker: /etc/init.d/contextBroker start , the PID file is created in the folder /var/run/contextBroker/ , then run the script watchdog and observing the log of the latter:
debug : pidfile '/var/log/contextBroker/monit.pid' does not exist
info : Starting Monit 5.14 daemon
info : 'ServidorCaptura.guest.domain' Monit 5.14 started
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=664 B]
debug : 'contextBroker' process is running with pid 2299
debug : 'contextBroker' zombie check succeeded
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=5.3 MB]
debug : 'contextBroker' cpu usage check skipped (initializing)
debug : 'contextBroker' cpu usage check skipped (initializing)
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=1.7 kB]
debug : 'contextBroker' process is running with pid 2299
debug : 'contextBroker' zombie check succeeded
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=5.8 MB]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=2.9 kB]
debug : 'contextBroker' process is running with pid 2299
debug : 'contextBroker' zombie check succeeded
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=5.9 MB]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : Socket test failed for [::1]:1026 -- Connection refused
debug : Socket test failed for [127.0.0.1]:1026 -- Connection refused
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- Connection refused
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=4.0 kB]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' process is not running
info : 'contextBroker' trying to restart
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
info : 'contextBroker' start: /etc/init.d/contextBroker
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : Starting...
contextBroker está parado
Starting contextBroker... [ OK ]
debug : 'contextBroker' started
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=5.5 kB]
info : 'contextBroker' process is running with pid 2386
debug : 'contextBroker' zombie check succeeded
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=3.3 MB]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%]
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=6.7 kB]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' process is not running
info : 'contextBroker' trying to restart
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
info : 'contextBroker' start: /etc/init.d/contextBroker
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : Starting...
contextBroker está parado
Starting contextBroker... pidfile not found[FALLÓ]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' failed to start (exit status 1) -- /etc/init.d/contextBroker: Starting...
contextBroker está parado
Starting contextBroker... pidfile not found[FALLÓ]
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match
info : 'localhost' exec: /etc/init.d/contextBroker
debug : 'monitBROKER.log' file exists
debug : 'monitBROKER.log' is a regular file or socket
debug : 'monitBROKER.log' size check succeeded [current size=11.5 kB]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
error : 'contextBroker' process is not running
info : 'contextBroker' trying to restart
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
info : 'contextBroker' start: /etc/init.d/contextBroker
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : Starting...
contextBroker está parado
Starting contextBroker... pidfile not found[FALLÓ]
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist
...
I'd suggest to do a "full reset", then try again.
By "full reset" I mean to ensure that CB is stopped and all its running artifact are removed. In particular (as root or using the sudo command):
Do /etc/init.d/contextBroker stop
Ensure that contextBroker is no longer running with ps ax | grep contextBroker. If the process is still there, stop it using the kill command (or kill -9 if the former doesn't work).
Remove any existing /var/log/contextBroker/contextBroker.pid file.
EDIT: In order to change the PID file, edit the BROKER_PID_FILE variable in the /etc/sysconfig/contextBroker, then restart the service.