Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Win32 build with websockets won't run as a service.

Hi Roger,

Thx for the tip.  I tried that and I don't see any difference except that when I try and start the service the dialog says:

"Windows could not start the Mosquitto Broker service on Local Computer.  Error 1053: The service did not respond to the start or control request in a timely fashion"

The process monitor shows from successfully running from the console:

9:00:21.8592223 AM mosquitto.exe 4884 RegOpenKey HKLM\System\CurrentControlSet\Services\Tcpip6\Parameters\Winsock REPARSE Desired Access: Read
9:00:21.8592381 AM mosquitto.exe 4884 RegOpenKey HKLM\System\CurrentControlSet\Services\Tcpip6\Parameters\Winsock SUCCESS Desired Access: Read
9:00:21.8592543 AM mosquitto.exe 4884 RegSetInfoKey HKLM\System\CurrentControlSet\Services\TCPIP6\Parameters\Winsock SUCCESS KeySetInformationClass: KeySetHandleTagsInformation, Length: 0
9:00:21.8592653 AM mosquitto.exe 4884 RegQueryValue HKLM\System\CurrentControlSet\Services\TCPIP6\Parameters\Winsock\MinSockaddrLength SUCCESS Type: REG_DWORD, Length: 4, Data: 28
9:00:21.8593439 AM mosquitto.exe 4884 RegQueryValue HKLM\System\CurrentControlSet\Services\TCPIP6\Parameters\Winsock\MaxSockaddrLength SUCCESS Type: REG_DWORD, Length: 4, Data: 28
9:00:21.8593687 AM mosquitto.exe 4884 RegQueryValue HKLM\System\CurrentControlSet\Services\TCPIP6\Parameters\Winsock\UseDelayedAcceptance SUCCESS Type: REG_DWORD, Length: 4, Data: 0
9:00:21.8594066 AM mosquitto.exe 4884 RegCloseKey HKLM\System\CurrentControlSet\Services\TCPIP6\Parameters\Winsock SUCCESS
.... and waits as the server is running


In the failure I get basically the same up to the point of the success above but get in addition:

8:57:49.0403536 AM mosquitto.exe 3840 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
8:57:49.0403638 AM mosquitto.exe 3840 RegQueryKey HKLM SUCCESS Query: Name
8:57:49.0403808 AM mosquitto.exe 3840 RegOpenKey HKLM\SYSTEM\CurrentControlSet\Services\Winsock\Setup Migration\Providers REPARSE Desired Access: Read
8:57:49.0404495 AM mosquitto.exe 3840 RegOpenKey HKLM\System\CurrentControlSet\Services\Winsock\Setup Migration\Providers SUCCESS Desired Access: Read
8:57:49.0404811 AM mosquitto.exe 3840 RegSetInfoKey HKLM\System\CurrentControlSet\Services\Winsock\Setup Migration\Providers SUCCESS KeySetInformationClass: KeySetHandleTagsInformation, Length: 0
8:57:49.0404953 AM mosquitto.exe 3840 RegQueryKey HKLM\System\CurrentControlSet\Services\Winsock\Setup Migration\Providers SUCCESS Query: HandleTags, HandleTags: 0x400
8:57:49.0405103 AM mosquitto.exe 3840 RegOpenKey HKLM\System\CurrentControlSet\Services\Winsock\Setup Migration\Providers\Tcpip6 SUCCESS Desired Access: Read
8:57:49.0405336 AM mosquitto.exe 3840 RegQueryValue HKLM\System\CurrentControlSet\Services\Winsock\Setup Migration\Providers\Tcpip6\WinSock 2.0 Provider ID SUCCESS Type: REG_BINARY, Length: 16, Data: C0 B0 EA F9 D4 26 D0 11 BB BF 00 AA 00 6C 34 E4
8:57:49.0405458 AM mosquitto.exe 3840 RegCloseKey HKLM\System\CurrentControlSet\Services\Winsock\Setup Migration\Providers\Tcpip6 SUCCESS
8:57:49.0405557 AM mosquitto.exe 3840 RegCloseKey HKLM\System\CurrentControlSet\Services\Winsock\Setup Migration\Providers SUCCESS
8:57:49.0405758 AM mosquitto.exe 3840 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
8:57:49.0406745 AM mosquitto.exe 3840 RegQueryKey HKLM SUCCESS Query: Name
8:57:49.0406990 AM mosquitto.exe 3840 RegOpenKey HKLM\System\CurrentControlSet\Services\Tcpip6\Parameters\Winsock REPARSE Desired Access: Read
8:57:49.0407830 AM mosquitto.exe 3840 RegOpenKey HKLM\System\CurrentControlSet\Services\Tcpip6\Parameters\Winsock SUCCESS Desired Access: Read
8:57:49.0408446 AM mosquitto.exe 3840 RegSetInfoKey HKLM\System\CurrentControlSet\Services\TCPIP6\Parameters\Winsock SUCCESS KeySetInformationClass: KeySetHandleTagsInformation, Length: 0
8:57:49.0408636 AM mosquitto.exe 3840 RegQueryValue HKLM\System\CurrentControlSet\Services\TCPIP6\Parameters\Winsock\MinSockaddrLength SUCCESS Type: REG_DWORD, Length: 4, Data: 28
8:57:49.0408750 AM mosquitto.exe 3840 RegQueryValue HKLM\System\CurrentControlSet\Services\TCPIP6\Parameters\Winsock\MaxSockaddrLength SUCCESS Type: REG_DWORD, Length: 4, Data: 28
8:57:49.0408845 AM mosquitto.exe 3840 RegQueryValue HKLM\System\CurrentControlSet\Services\TCPIP6\Parameters\Winsock\UseDelayedAcceptance SUCCESS Type: REG_DWORD, Length: 4, Data: 0
8:57:49.0409433 AM mosquitto.exe 3840 RegCloseKey HKLM\System\CurrentControlSet\Services\TCPIP6\Parameters\Winsock SUCCESS
8:58:18.8316585 AM mosquitto.exe 3840 Thread Exit SUCCESS Thread ID: 5520, User Time: 0.0156250, Kernel Time: 0.0468750
8:58:18.8319664 AM mosquitto.exe 3840 Thread Exit SUCCESS Thread ID: 2816, User Time: 0.0000000, Kernel Time: 0.0000000
8:58:18.8323840 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\rsaenh.dll SUCCESS Name: \Windows\SysWOW64\rsaenh.dll
8:58:18.8324337 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\cryptsp.dll SUCCESS Name: \Windows\SysWOW64\cryptsp.dll
8:58:18.8324945 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\winrnr.dll SUCCESS Name: \Windows\SysWOW64\winrnr.dll
8:58:18.8325877 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\dnsapi.dll SUCCESS Name: \Windows\SysWOW64\dnsapi.dll
8:58:18.8326343 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\mswsock.dll SUCCESS Name: \Windows\SysWOW64\mswsock.dll
8:58:18.8326939 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\nlaapi.dll SUCCESS Name: \Windows\SysWOW64\nlaapi.dll
8:58:18.8327239 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\pnrpnsp.dll SUCCESS Name: \Windows\SysWOW64\pnrpnsp.dll
8:58:18.8327444 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\NapiNSP.dll SUCCESS Name: \Windows\SysWOW64\NapiNSP.dll
8:58:18.8327779 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\bcryptprimitives.dll SUCCESS Name: \Windows\SysWOW64\bcryptprimitives.dll
8:58:18.8327827 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\cryptbase.dll SUCCESS Name: \Windows\SysWOW64\cryptbase.dll
8:58:18.8327831 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\sspicli.dll SUCCESS Name: \Windows\SysWOW64\sspicli.dll
8:58:18.8327831 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\gdi32.dll SUCCESS Name: \Windows\SysWOW64\gdi32.dll
8:58:18.8337841 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\nsi.dll SUCCESS Name: \Windows\SysWOW64\nsi.dll
8:58:18.8338544 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\msvcrt.dll SUCCESS Name: \Windows\SysWOW64\msvcrt.dll
8:58:18.8338797 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\kernel32.dll SUCCESS Name: \Windows\SysWOW64\kernel32.dll
8:58:18.8339531 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\rpcrt4.dll SUCCESS Name: \Windows\SysWOW64\rpcrt4.dll
8:58:18.8339949 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\advapi32.dll SUCCESS Name: \Windows\SysWOW64\advapi32.dll
8:58:18.8340364 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\sechost.dll SUCCESS Name: \Windows\SysWOW64\sechost.dll
8:58:18.8340861 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\user32.dll SUCCESS Name: \Windows\SysWOW64\user32.dll
8:58:18.8341165 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\KernelBase.dll SUCCESS Name: \Windows\SysWOW64\KernelBase.dll
8:58:18.8341477 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\ws2_32.dll SUCCESS Name: \Windows\SysWOW64\ws2_32.dll
8:58:18.8342038 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\System32\wow64win.dll SUCCESS Name: \Windows\System32\wow64win.dll
8:58:18.8342630 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\System32\wow64.dll SUCCESS Name: \Windows\System32\wow64.dll
8:58:18.8343463 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\System32\wow64cpu.dll SUCCESS Name: \Windows\System32\wow64cpu.dll
8:58:18.8343798 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\SysWOW64\ntdll.dll SUCCESS Name: \Windows\SysWOW64\ntdll.dll
8:58:18.8344055 AM mosquitto.exe 3840 QueryNameInformationFile C:\Windows\System32\ntdll.dll SUCCESS Name: \Windows\System32\ntdll.dll
8:58:18.8345113 AM mosquitto.exe 3840 Process Exit SUCCESS Exit Status: 0, User Time: 0.0156250 seconds, Kernel Time: 0.0468750 seconds, Private Bytes: 5,668,864, Peak Private Bytes: 5,783,552, Working Set: 9,740,288, Peak Working Set: 9,760,768
8:58:18.8345673 AM mosquitto.exe 3840 CloseFile C:\Windows SUCCESS
8:58:18.8346652 AM mosquitto.exe 3840 CloseFile C:\Windows\SysWOW64 SUCCESS
8:58:18.8348661 AM mosquitto.exe 3840 RegCloseKey HKLM\System\CurrentControlSet\Control\SESSION MANAGER SUCCESS
8:58:18.8352550 AM mosquitto.exe 3840 RegCloseKey HKLM\System\CurrentControlSet\Control\Nls\CustomLocale SUCCESS
8:58:18.8352771 AM mosquitto.exe 3840 RegCloseKey HKLM\System\CurrentControlSet\Control\Nls\Sorting\Versions SUCCESS
8:58:18.8352952 AM mosquitto.exe 3840 RegCloseKey HKLM SUCCESS
8:58:18.8353075 AM mosquitto.exe 3840 RegCloseKey HKLM\System\CurrentControlSet\Control\Nls\Sorting\Ids SUCCESS
8:58:18.8353201 AM mosquitto.exe 3840 RegCloseKey HKU\.DEFAULT\Control Panel\International SUCCESS
8:58:18.8353339 AM mosquitto.exe 3840 RegCloseKey HKLM\System\CurrentControlSet\Services\WinSock2\Parameters\Protocol_Catalog9 SUCCESS
8:58:18.8353473 AM mosquitto.exe 3840 RegCloseKey HKLM\System\CurrentControlSet\Services\WinSock2\Parameters\NameSpace_Catalog5 SUCCESS


Thx for your help.  I don't see anything out of the ordinary.  Do you?

Regards,

Rodolfo Ochangco


On Wed, Apr 20, 2016 at 4:56 PM, Roger Light <roger@xxxxxxxxxx> wrote:
Hi Rodolfo,

I've not tried to do that before, but my guess would be that it can't
load the library where it expects to find it. I'd suggest running
ProcessMonitor [1] at the same time as you try to start the service
and see if that sheds any light on the problem.

[1] https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx

Cheers,

Roger



On Wed, Apr 20, 2016 at 9:05 PM, Rodolfo Ochangco <rochangco@xxxxxxxxx> wrote:
> I have a situation I can't seem to find an answer to.  I've made a build of
> mosquitto 1.4.8 with websocket support using VS2013.  Running from a console
> works fine but won't as a service.  Has anyone had experience with this
> before?  Thx.
>
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev
_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


Back to the top