Could not find handle.exe with Rabbit 3.8.3

1,377 views
Skip to first unread message

Sri Reddy

unread,
May 28, 2020, 5:33:23 PM5/28/20
to rabbitmq-users
I have upgraded my Erlang, RabbitMQ Server and RabbitMQ Client (C#) to the following versions:
RabbitMQ Server 3.8.3Erlang 22.3 and Client 6.0.0

I started the RabbitMQ Server and immidiately  see this error in the logs. I downloaded `handle.exe` and updated the path variable. Restarted the machine, but i still see this error. 

Please let me know if you need any more information?

2020-05-28 17:21:25.230 [error] <0.3304.0> Could not find handle.exe, please install from sysinternals
2020-05-28 17:31:28.120 [error] <0.3304.0> Could not find handle.exe, please install from sysinternals


Wesley Peng

unread,
May 29, 2020, 3:32:20 AM5/29/20
to Sri Reddy, rabbitmq-users
What OS are you using? Do you have full privileges to install application?

Regards 

29 травня 2020 р., 05:33:30,від "Sri Reddy" <kool...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/bb04144b-4376-4006-889f-b2e10311529e%40googlegroups.com.

Michael Klishin

unread,
May 29, 2020, 1:03:54 PM5/29/20
to rabbitm...@googlegroups.com

See Environment Variable Changes on Windows [1]. You must reinstall the *Windows service* (not RabbitMQ itself) for environment variable values to be picked up by it.

 

  1. https://www.rabbitmq.com/install-windows.html#configure
  2.  

--

Sri Reddy

unread,
May 29, 2020, 2:41:46 PM5/29/20
to rabbitmq-users
I am using Microsoft Windows 10 Enterprise and have full privileges. I installed Erlang, RabbitMQ server without any problem. I tried to follow the steps mentioned in the link provided - 

  • Start an administrative command prompt
  • cd into the sbin folder under the RabbitMQ server installation directory (such as C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-{version}\sbin)
  • Run rabbitmq-service.bat stop to stop the service
  • Run rabbitmq-service.bat remove to remove the Windows service (this will not remove RabbitMQ or its data directory)
  • Set environment variables via command line, i.e. run commands like the following:
    setx path="C:\Windows\Handle"
  • Run rabbitmq-service.bat install
  • Run rabbitmq-service.bat start
No luck. And i can see that handle.exe is working from path, as I can run it from command line. Not sure, what else should i check.

Michael Klishin

unread,
May 29, 2020, 3:02:34 PM5/29/20
to rabbitm...@googlegroups.com

Are you configuring PATH or other environment variables for the same user that installed RabbitMQ? (used to run the Windows service)

 

Rabbitmqctl.bat eval 'os:getenv().'

 

Will print all environment variables as seen by the server. On other OSes it will also include the user, I am not sure about Windows. But that will give you more data to compare anyway.

--

You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.

Sri Reddy

unread,
Jun 1, 2020, 2:35:37 PM6/1/20
to rabbitmq-users
I configured PATH for the current user. Also, I have tried with updating the other env variables.

2020-06-01 14_36_13-Could not find handle.exe with Rabbit 3.8.3 - Google Groups.png


But, I still get the same error. 

I tried to run the command you mentioned and get the following syntax error:

C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.8.3\sbin>Rabbitmqctl.bat eval 'os:getenv()'
Error (argument validation): "syntax error before: "
Arguments given:
        eval 'os:getenv()'

[1mUsage [0m

rabbitmqctl [--node <node>] [--longnames] [--quiet] eval <expression>

On Friday, May 29, 2020 at 3:02:34 PM UTC-4, Michael Klishin wrote:

Are you configuring PATH or other environment variables for the same user that installed RabbitMQ? (used to run the Windows service)

 

Rabbitmqctl.bat eval 'os:getenv().'

 

Will print all environment variables as seen by the server. On other OSes it will also include the user, I am not sure about Windows. But that will give you more data to compare anyway.

 

On 29.05.2020, 21:41, rabbit...@googlegroups.com on behalf of Sri Reddy wrote:

 

I am using Microsoft Windows 10 Enterprise and have full privileges. I installed Erlang, RabbitMQ server without any problem. I tried to follow the steps mentioned in the link provided - 

 

  • Start an administrative command prompt
  • cd into the sbin folder under the RabbitMQ server installation directory (such as C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-{version}\sbin)
  • Run rabbitmq-service.bat stop to stop the service
  • Run rabbitmq-service.bat remove to remove the Windows service (this will not remove RabbitMQ or its data directory)
  • Set environment variables via command line, i.e. run commands like the following:
setx path="C:\Windows\Handle"
  • Run rabbitmq-service.bat install
  • Run rabbitmq-service.bat start

No luck. And i can see that handle.exe is working from path, as I can run it from command line. Not sure, what else should i check.

 

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to rabbitm...@googlegroups.com.

Michael Klishin

unread,
Jun 2, 2020, 10:57:01 AM6/2/20
to rabbitm...@googlegroups.com

“The current user” does not answer my question, I’m afraid. It has to be the same user that *runs RabbitMQ*,

which is not necessarily “the current one”.

 

In your eval line, you are missing the dot in eval 'os:getenv().'

Yes, it is important since you are executing an Erlang function via rabbitmqctl.

 

 

On 01.06.2020, 21:35, rabbitm...@googlegroups.com on behalf of Sri Reddy wrote:

 

I configured PATH for the current user. Also, I have tried with updating the other env variables.

To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/17ee26f3-7411-4d4f-9232-015f791155ac%40googlegroups.com.

Luke Bakken

unread,
Jun 2, 2020, 11:52:14 AM6/2/20
to rabbitmq-users
Hi Sri,
  • Please remove the PATH changes you have made
  • Save handle.exe to C:\Windows\system32
  • Log in as the admin user you used to install RabbitMQ and open the "RabbitMQ Command Prompt (sbin dir)" item
  • Use the set command to ensure your PATH changes have been reverted
  • Ensure that you can run handle from this command prompt
  • Remove and re-install the RabbitMQ windows service
Let us know if this resolves your issue.
Thanks,
Luke

Sri Reddy

unread,
Jun 5, 2020, 11:26:24 AM6/5/20
to rabbitmq-users
Hi Liuke,

Thanks for your suggestion. It is working now. But, I do see these messages though

2020-06-04 19:04:06.396 [error] <0.3317.0> handle.exe output did not contain a line beginning with '  File ', unable to determine used file descriptor count: "\r\nNthandle v4.22 - Handle viewer\r\nCopyright (C) 1997-2019 Mark Russinovich\r\nSysinternals - www.sysinternals.com\r\n\r\nHandle type summary:\r\r\n  ALPC Port       : 1\r\r\n  Desktop         : 1\r\r\n  Directory       : 2\r\r\n  EtwRegistration : 97\r\r\n  Event           : 168\r\r\n  IoCompletion    : 6\r\r\n  IRTimer         : 6\r\r\n  Key             : 14\r\r\n  Mutant          : 1\r\r\n  Process         : 4\r\r\n  Process         : 96\r\r\n  Section         : 1\r\r\n  Semaphore       : 6\r\r\n  Thread          : 82\r\r\n  TpWorkerFactory : 3\r\r\n  WaitCompletionPacket: 8\r\r\n  WindowStation   : 2\r\r\nTotal handles: 498\r\r\n"

Not sure, what would be the reason for this?

Luke Bakken

unread,
Jun 5, 2020, 11:35:16 AM6/5/20
to rabbitmq-users
Hello,

That is a known issue with handle.exe. Sometimes it does not produce the expected output. I have never been able to reproduce it, however.

Thanks,
Luke

Sri Reddy

unread,
Jun 9, 2020, 4:22:08 PM6/9/20
to rabbitmq-users
Thanks Luke for responding. Hope this will not impact negatively on performance or anything. Right?
Reply all
Reply to author
Forward
0 new messages