commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Beutel (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DAEMON-282) Failed to stop 'xx' service: The data area passed to a system call is too small
Date Fri, 20 Sep 2013 09:32:52 GMT

    [ https://issues.apache.org/jira/browse/DAEMON-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772901#comment-13772901
] 

Stephan Beutel commented on DAEMON-282:
---------------------------------------

I've the same problem, Tomcat service didn't stopped. Here's the log output of commons-daemon.log:

[2013-09-19 01:32:40] [info] [ 3816] Commons Daemon procrun (1.0.15.0 64-bit) started 
[2013-09-19 01:32:40] [info] [ 3816] Stopping service 'SERVICENAME' ... 
[2013-09-19 01:32:44] [error] [ 3816] Failed to stop 'SERVICENAME' service 
[2013-09-19 01:32:44] [error] [ 3816] The data area passed to a system call is too small.

[2013-09-19 01:32:44] [info] [ 3816] Stop service finished. 
[2013-09-19 01:32:44] [error] [ 3816] Commons Daemon procrun failed with exit value: 6 (Failed
to stop service) 
[2013-09-19 01:32:44] [error] [ 3816] The data area passed to a system call is too small.


In the log the service stop was finished, but if I want to delete a file (e.g. bootstrap.jar
of Tomcat), it's 
not possible and if I look into the services manager of Windows, the service is in the stopping
mode and can't
be edited anymore. The only way to stop the service is to kill the task in Windows Task Manager.

Is there any quickfix available (e.g. set a high timeout)? 

                
> Failed to stop 'xx' service: The data area passed to a system call is too small
> -------------------------------------------------------------------------------
>
>                 Key: DAEMON-282
>                 URL: https://issues.apache.org/jira/browse/DAEMON-282
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>    Affects Versions: 1.0.8, 1.0.12, 1.0.13
>         Environment: Procrun version tried: 
> 1.0.8
> 1.0.12
> 1.0.13
> System environment: 
> Windows XP SP3 32bit
> Windows 7 64bit
> Windows 2008 Server 32bit
>            Reporter: Hua Lan
>            Priority: Minor
>              Labels: procrun
>   Original Estimate: 336h
>  Remaining Estimate: 336h
>
> The Apache mailing list shows that they have the same problem before. However it said
procrun 1.0.8 fixed this problem. I tried different versions of procrun however it showed
no luck.
> http://mail-archives.apache.org/mod_mbox/commons-user/201204.mbox/%3C4F9503F4.6020500@apache.org%3E
> both installation and start work perfectly. However it always reported error when stopping
the service. 
> Failed to stop 'TestApplication' service
> The data area passed to a system call is too small.
> In fact, the stop was successful after the processing was complete.
> Here is the log generated:
> [2013-03-01 18:49:38] [debug] ( prunsrv.c:1672) [ 4172] Commons Daemon procrun log initialized
> [2013-03-01 18:49:38] [info]  ( prunsrv.c:1676) [ 4172] Commons Daemon procrun (1.0.13.0
64-bit) started
> [2013-03-01 18:49:38] [info]  ( prunsrv.c:686 ) [ 4172] Stopping service 'TestApplication'
...
> [2013-03-01 18:49:38] [debug] ( prunsrv.c:843 ) [ 1276] reportServiceStatusE: 3, 0, 3000,
0
> [2013-03-01 18:49:38] [info]  ( prunsrv.c:942 ) [10180] Stopping service...
> [2013-03-01 18:49:38] [debug] ( javajni.c:927 ) [  748] Java Worker thread started com/company/project/startup/WindowServiceApplication:stop
> [2013-03-01 18:49:39] [debug] ( prunsrv.c:988 ) [10180] Waiting for java jni stop worker
to finish...
> [2013-03-01 18:49:42] [error] ( prunsrv.c:707 ) [ 4172] Failed to stop 'TestApplication'
service
> [2013-03-01 18:49:42] [error] ( prunsrv.c:707 ) [ 4172] The data area passed to a system
call is too small.
> [2013-03-01 18:49:42] [info]  ( prunsrv.c:715 ) [ 4172] Stop service finished.
> [2013-03-01 18:49:42] [error] ( prunsrv.c:1748) [ 4172] Commons Daemon procrun failed
with exit value: 6 (Failed to stop service)
> [2013-03-01 18:49:42] [error] ( prunsrv.c:1748) [ 4172] The data area passed to a system
call is too small.
> [2013-03-01 18:49:47] [debug] ( javajni.c:948 ) [  748] Java Worker thread finished com/company/project/startup/WindowServiceApplication:stop
with status=0
> [2013-03-01 18:49:47] [debug] ( prunsrv.c:990 ) [10180] Java jni stop worker finished.
> [2013-03-01 18:49:47] [debug] ( prunsrv.c:843 ) [10180] reportServiceStatusE: 3, 0, 120000,
0
> [2013-03-01 18:49:47] [debug] ( prunsrv.c:1091) [10180] Waiting for worker to die naturally...
> [2013-03-01 18:49:47] [debug] ( prunsrv.c:1102) [10180] Worker finished gracefully in
0 ms.
> [2013-03-01 18:49:47] [info]  ( prunsrv.c:1112) [10180] Service stopped.
> [2013-03-01 18:49:47] [debug] ( prunsrv.c:843 ) [10180] reportServiceStatusE: 1, 0, 0,
0
> [2013-03-01 18:49:47] [info]  ( prunsrv.c:1591) [ 1276] Run service finished.
> [2013-03-01 18:49:47] [info]  ( prunsrv.c:1757) [ 1276] Commons Daemon procrun finished
> Checked TestApplicaton code and found out that when prunsrv threw that exception, the
java main thread was sleeping for 5 seconds. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message