hpacucli Error - Another instance of ACU is already running

Wednesday, October 6, 2010 |

Error Message

[root@blackbox locks]# hpacucli
HP Array Configuration Utility CLI 8.28-13.0
Detecting Controllers...
Error: Another instance of ACU is already running (possibly a service). Please
terminate the ACU application before running the ACU CLI. Press ENTER to
exit.
[root@blackbox locks]#
[root@blackbox ~]# ps -aef | grep acu
root 8714 8363 0 14:09 pts/0 00:00:00 grep acu
[root@blackbox ~]#
[root@blackbox ~]# ps -aef | grep hp
root 8762 8363 0 14:09 pts/0 00:00:00 grep hp
[root@blackbox ~]#


I was not able to find any other instance of the program on the process table.

Solution

1. Try to remove the lock file


[root@blackbox bbaby]# rm -f /opt/compaq/cpqacuxe/bld/locks/CPQACU_MUTEX
[root@blackbox bbaby]#



In my case this was not resolving problem. I was getting the same error message even after removing lock.

2. Do an strace and find what is blocking

[root@blackbox bbaby]# strace -f /opt/compaq/hpacucli/bld/hpacucli
execve("/opt/compaq/hpacucli/bld/hpacucli", ["/opt/compaq/hpacucli/bld/hpacucl"], [/* 19 vars */]) = 0
brk(0)
---snipped---
[pid 9629] times({tms_utime=4294967301, tms_stime=30064771073, tms_cutime=731361531114068436, tms_cstime=601725772861025720}) = 970423195
[pid 9629] time(NULL) = 1286376261
[pid 9629] time(NULL) = 1286376261
[pid 9629] stat64("/opt/compaq/cpqacuxe/bld/locks/CPQACU_MUTEX", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
[pid 9629] semget(0x1000e, 1, IPC_CREAT|0) = 7798791
[pid 9629] semop(7798791, 0x861f7c4, 2) = -1 EAGAIN (Resource temporarily unavailable)
[pid 9629] geteuid32() = 0
[pid 9629] rt_sigaction(SIGHUP, {0x1000000008094054, [], SA_RESTORER|SA_STACK|SA_RESTART|SA_INTERRUPT|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0x3943418, (nil)}, {SIG_DFL, ~[HUP INT QUIT ILL TRAP ABRT TERM URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS RTMIN RT_1 RT_2 RT_3 RT_5 RT_6 RT_8 RT_11 RT_12 RT_15 RT_16 RT_17 RT_18 RT_20 RT_22 RT_23], SA_RESTORER|SA_STACK|SA_INTERRUPT|SA_NODEFER|0x1e302d0, 0xf7f46d4c00000000}, 8) = 0
[pid 9629] rt_sigaction(SIGINT, {0x1000000008094054, [], SA_RESTORER|SA_STACK|SA_RESTART|SA_INTERRUPT|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0x3943418, (nil)}, {SIG_DFL, ~[HUP INT QUIT ILL TRAP ABRT TERM URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS RTMIN RT_1 RT_2 RT_3 RT_5 RT_6 RT_8 RT_11 RT_12 RT_15 RT_16 RT_17 RT_18 RT_20 RT_22 RT_23], SA_RESTORER|SA_STACK|SA_INTERRUPT|SA_NODEFER|0x1e302d0, 0xf7f46d4c00000000}, 8) = 0
[pid 9629] rt_sigaction(SIGQUIT, {0x1000000008094054, [], SA_RESTORER|SA_STACK|SA_RESTART|SA_INTERRUPT|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0x3943418, (nil)}, {SIG_DFL, ~[HUP INT QUIT ILL TRAP ABRT TERM URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS RTMIN RT_1 RT_2 RT_3 RT_5 RT_6 RT_8 RT_11 RT_12 RT_15 RT_16 RT_17 RT_18 RT_20 RT_22 RT_23], SA_RESTORER|SA_STACK|SA_INTERRUPT|SA_NODEFER|0x1e302d0, 0xf7f46d4c00000000}, 8) = 0
[pid 9629] rt_sigaction(SIGSEGV, {0x1000000008094054, [], SA_RESTORER|SA_STACK|SA_RESTART|SA_INTERRUPT|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0x3943418, (nil)}, {SIG_DFL, ~[HUP INT QUIT ILL TRAP ABRT TERM URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS RTMIN RT_1 RT_2 RT_3 RT_5 RT_6 RT_8 RT_11 RT_12 RT_15 RT_16 RT_17 RT_18 RT_20 RT_22 RT_23], SA_RESTORER|SA_STACK|SA_INTERRUPT|SA_NODEFER|0x1e302d0, 0xf7f46d4c00000000}, 8) = 0
[pid 9629] rt_sigaction(SIGABRT, {0x1000000008094054, [], SA_RESTORER|SA_STACK|SA_RESTART|SA_INTERRUPT|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0x3943418, (nil)}, {SIG_DFL, ~[HUP INT QUIT ILL TRAP ABRT TERM URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS RTMIN RT_1 RT_2 RT_3 RT_5 RT_6 RT_8 RT_11 RT_12 RT_15 RT_16 RT_17 RT_18 RT_20 RT_22 RT_23], SA_RESTORER|SA_STACK|SA_INTERRUPT|SA_NODEFER|0x1e302d0, 0xf7f46d4c00000000}, 8) = 0
[pid 9629] rt_sigaction(SIGFPE, {0x1000000008094054, [], SA_RESTORER|SA_STACK|SA_RESTART|SA_INTERRUPT|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0x3943418, (nil)}, {SIG_DFL, ~[HUP INT QUIT ILL TRAP ABRT TERM URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS RTMIN RT_1 RT_2 RT_3 RT_5 RT_6 RT_8 RT_11 RT_12 RT_15 RT_16 RT_17 RT_18 RT_20 RT_22 RT_23], SA_RESTORER|SA_STACK|SA_INTERRUPT|SA_NODEFER|0x1e302d0, 0xf7f46d4c00000000}, 8) = 0
[pid 9629] rt_sigaction(SIGPIPE, {0x1000000008094054, [], SA_RESTORER|SA_STACK|SA_RESTART|SA_INTERRUPT|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0x3943418, (nil)}, {SIG_DFL, ~[HUP INT QUIT ILL TRAP ABRT TERM URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS RTMIN RT_1 RT_2 RT_3 RT_5 RT_6 RT_8 RT_11 RT_12 RT_15 RT_16 RT_17 RT_18 RT_20 RT_22 RT_23], SA_RESTORER|SA_STACK|SA_INTERRUPT|SA_NODEFER|0x1e302d0, 0xf7f46d4c00000000}, 8) = 0
[pid 9629] rt_sigaction(SIGALRM, {0x1000000008094054, [], SA_RESTORER|SA_STACK|SA_RESTART|SA_INTERRUPT|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0x3943418, (nil)}, {SIG_DFL, ~[HUP INT QUIT ILL TRAP ABRT TERM URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS RTMIN RT_1 RT_2 RT_3 RT_5 RT_6 RT_8 RT_11 RT_12 RT_15 RT_16 RT_17 RT_18 RT_20 RT_22 RT_23], SA_RESTORER|SA_STACK|SA_INTERRUPT|SA_NODEFER|0x1e302d0, 0xf7f46d4c00000000}, 8) = 0
[pid 9629] rt_sigaction(SIGTERM, {0x1000000008094054, [], SA_RESTORER|SA_STACK|SA_RESTART|SA_INTERRUPT|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0x3943418, (nil)}, {SIG_DFL, ~[HUP INT QUIT ILL TRAP ABRT TERM URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS RTMIN RT_1 RT_2 RT_3 RT_5 RT_6 RT_8 RT_11 RT_12 RT_15 RT_16 RT_17 RT_18 RT_20 RT_22 RT_23], SA_RESTORER|SA_STACK|SA_INTERRUPT|SA_NODEFER|0x1e302d0, 0xf7f46d4c00000000}, 8) = 0
[pid 9629] rt_sigaction(SIGUSR1, {0x1000000008094054, [], SA_RESTORER|SA_STACK|SA_RESTART|SA_INTERRUPT|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0x3943418, (nil)}, {SIG_DFL, ~[HUP INT QUIT ILL TRAP ABRT TERM URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS RTMIN RT_1 RT_2 RT_3 RT_5 RT_6 RT_8 RT_11 RT_12 RT_15 RT_16 RT_17 RT_18 RT_20 RT_22 RT_23], SA_RESTORER|SA_STACK|SA_INTERRUPT|SA_NODEFER|0x1e302d0, 0xf7f46d4c00000000}, 8) = 0
[pid 9629] rt_sigaction(SIGUSR2, {0x1000000008094054, [], SA_RESTORER|SA_STACK|SA_RESTART|SA_INTERRUPT|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0x3943418, (nil)}, {SIG_DFL, ~[HUP INT QUIT ILL TRAP ABRT TERM URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS RTMIN RT_1 RT_2 RT_3 RT_5 RT_6 RT_8 RT_11 RT_12 RT_15 RT_16 RT_17 RT_18 RT_20 RT_22 RT_23], SA_RESTORER|SA_STACK|SA_INTERRUPT|SA_NODEFER|0x1e302d0, 0xf7f46d4c00000000}, 8) = 0
[pid 9629] rt_sigaction(SIGUSR2, {0x1000000008094054, [], SA_RESTORER|SA_STACK|SA_RESTART|SA_INTERRUPT|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0x3943418, (nil)}, {0x1000000008094054, ~[HUP INT QUIT ILL TRAP ABRT TERM URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS RTMIN RT_1 RT_2 RT_3 RT_5 RT_6 RT_8 RT_11 RT_12 RT_15 RT_16 RT_17 RT_18 RT_20 RT_22 RT_23], SA_RESTORER|SA_STACK|SA_RESTART|SA_INTERRUPT|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0x3943418, 0xf7f46d4c00000000}, 8) = 0
[pid 9629] write(1, "Detecting Controllers...\n", 25Detecting Controllers...
) = 25
[pid 9629] write(1, "\n", 1
) = 1
[pid 9629] write(1, "Error: Another instance of ACU i"..., 160Error: Another instance of ACU is already running (possibly a service). Please
terminate the ACU application before running the ACU CLI. Press ENTER to
) = 160
[pid 9629] write(1, " exit.\n", 13 exit.
) = 13
[pid 9629] write(1, "\n", 1
) = 1
[pid 9629] fstat64(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
[pid 9629] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xff942f40) = 0xfffffffff7cc8000
[pid 9629] read(0,
Process 9621 resumed
Process 9629 detached
[root@blackbox bbaby]#



In this case need to delete the semaphore *7798791*

3. Delete the blocking semaphore


{terminal}
[root@blackbox bbaby]# /usr/bin/ipcrm -s 7798791
[root@blackbox bbaby]#
{terminal}

4. Verify whether it still exits or not


[root@blackbox bbaby]# /usr/bin/ipcs -a

------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x0052e2c1 1081344 postgres 600 11083776 2

------ Semaphore Arrays --------
key semid owner perms nsems
0x0052e2c1 7569408 postgres 600 17
0x0052e2c2 7602177 postgres 600 17
0x0052e2c3 7634946 postgres 600 17
0x0052e2c4 7667715 postgres 600 17
0x0052e2c5 7700484 postgres 600 17
0x0052e2c6 7733253 postgres 600 17
0x0052e2c7 7766022 postgres 600 17
0x0001000e 7864327 root 0 1
0xffffffff 7831560 root 0 1

------ Message Queues --------
key msqid owner perms used-bytes messages

[root@blackbox bbaby]#



Check the hpacucli status


[root@blackbox bbaby]# hpacucli
HP Array Configuration Utility CLI 8.28-13.0
Detecting Controllers...Done.
Type "help" for a list of supported commands.
Type "exit" to close the console.

=> exit
[root@blackbox bbaby]#

6 comments:

Rajesh Devabhaktuni said...

Hi Sir

Very nice info, But for me removing a lock file freed the command, i learned another scenario and new thing. Thanks much.

I've a UNIX blog as well, can i use the data here in my blog ? Thanks much.

Anonymous said...

Thank you. Saved out server from a reboot ;)

Anonymous said...

It's mid-2013, and on my Debian/Ubuntu install, I had to remove the file at /dev/shm/sem.hpacu.appLock instead of following the above instructions. Hope this helps someone. here's the version of hpacucli I was using:

=> version

ACU CLI Version: 9.30.15.0
SoulAPI Version: 6.1.19.0
InfoManager Version: 6.1-29.0

Amit said...

This file sometimes exists on RHEL/OEL/CentOS. Indeed removing /dev/shm/sem.hpacu.appLock solved the problem instead of following the above instructions.

Thanks for the pointing it out here, Helped a Lot.

Unknown said...

"It's mid-2013, and on my Debian/Ubuntu install, I had to remove the file at /dev/shm/sem.hpacu.appLock instead of following the above instructions. Hope this helps someone. here's the version of hpacucli I was using:"

This really helped me!!!

Linux said...

Perfect, thank you!

Post a Comment