public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* 1.5.3 - can't start cron nor apache service - operation not permitted
@ 2003-09-11 23:20 Andrew DeFaria
  2003-09-12  7:44 ` Corinna Vinschen
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew DeFaria @ 2003-09-11 23:20 UTC (permalink / raw)
  To: cygwin

Since upgrading to 1.5.3 I cannot start cron or apache as services. They 
were added as follows:

$ cygrunsrv -I cron -p /usr/sbin/cron -a -D -d "Cygwin cron" -e 
"MAILTO=$USER@<domain>" -e "CYGWIN=ntsec
$ cygrunsrv -I apache -p /usr/sbin/httpd -a -k -d "Cygwin Apache" -f 
"Apache for Cygwin"
$ cygrunsrv -S cron
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.
$ cygrunsrv -S apache
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

Examining the Event Viewer yeilds:

Event Type:    Error
Event Source:    cron
Event Category:    None
Event ID:    0
Date:        9/11/2003
Time:        3:23:08 PM
User:        NT AUTHORITY\SYSTEM
Computer:    ADEFARIA
Description:
cron : PID 3856 : starting service `cron' failed: execv: 1, Operation 
not permitted

And

Event Type:    Error
Event Source:    Apache
Event Category:    None
Event ID:    0
Date:        9/11/2003
Time:        3:27:26 PM
User:        NT AUTHORITY\SYSTEM
Computer:    ADEFARIA
Description:
The description for Event ID ( 0 ) in Source ( Apache ) cannot be found. 
The local computer may not have the necessary registry information or 
message DLL files to display messages from a remote computer. You may be 
able to use the /AUXSOURCE= flag to retrieve this description; see Help 
and Support for details. The following information is part of the event: 
Apache : PID 4000 : starting service `Apache' failed: execv: 1, 
Operation not permitted.

I looked through the list and didn't find anything that helped me.

(BTW: Interestingly enough, I no longer have a /usr/doc/Cygwin/cron.README!)


Obligatory witty saying: Consciousness: That annoying time between naps.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 1.5.3 - can't start cron nor apache service - operation not permitted
  2003-09-11 23:20 1.5.3 - can't start cron nor apache service - operation not permitted Andrew DeFaria
@ 2003-09-12  7:44 ` Corinna Vinschen
  2003-09-12 15:25   ` Andrew DeFaria
  0 siblings, 1 reply; 5+ messages in thread
From: Corinna Vinschen @ 2003-09-12  7:44 UTC (permalink / raw)
  To: cygwin

On Thu, Sep 11, 2003 at 04:12:43PM -0700, Andrew DeFaria wrote:
> Since upgrading to 1.5.3 I cannot start cron or apache as services. They 
> were added as follows:
> [...]
> cron : PID 3856 : starting service `cron' failed: execv: 1, Operation 
> not permitted
> [...]

I've just tested it and it still works for me.  Could you check the 
permissions on cygwin1.dll?  Is system not permitted to read/execute
the DLL perhaps?  

> (BTW: Interestingly enough, I no longer have a /usr/doc/Cygwin/cron.README!)

Quote from the announcement:
  "The package now adheres to the filesystem hirarchy standard (FHS)."

That means, documentation, man pages and info pages are now under
/usr/share instead of /usr.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 1.5.3 - can't start cron nor apache service - operation not permitted
  2003-09-12  7:44 ` Corinna Vinschen
@ 2003-09-12 15:25   ` Andrew DeFaria
  2003-09-12 20:32     ` Larry Hall
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew DeFaria @ 2003-09-12 15:25 UTC (permalink / raw)
  To: cygwin

Corinna Vinschen wrote:

> On Thu, Sep 11, 2003 at 04:12:43PM -0700, Andrew DeFaria wrote:
>
>> Since upgrading to 1.5.3 I cannot start cron or apache as services. They
>> were added as follows:
>> [...]
>> cron : PID 3856 : starting service `cron' failed: execv: 1, Operation
>> not permitted
>> [...]
>
> I've just tested it and it still works for me. Could you check the 
> permissions on cygwin1.dll? Is system not permitted to read/executethe 
> DLL perhaps? 

Interesting:

$ ll /bin/cygwin1.dll
-rwxr-x---+   1 Andrew   Users      967522 Sep  1 10:16 /bin/cygwin1.dll*
$ chmod +x /bin/cygwin1.dll
$ ll /bin/cygwin1.dll
-rwxr-x--x+   1 Andrew   Users      967522 Sep  1 10:16 /bin/cygwin1.dll*
$ net start cron
The Cygwin cron service is starting.
The Cygwin cron service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.

Didn't help. Wonder why many of the files under /bin were owned by the 
group Users and others set to the group DeFaria? And what does that "+" 
at the end of the permmissions string mean?

Anyways I did a:

$ chmod 755 /bin/*
$ chgrp DeFaria /bin/*

Didn't help.

I did get the following one time:

Event Type:    Information
Event Source:    /usr/sbin/cron
Event Category:    None
Event ID:    0
Date:        9/12/2003
Time:        7:52:46 AM
User:        NT AUTHORITY\SYSTEM
Computer:    STARBASE
Description:
The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot 
be found. The local computer may not have the necessary registry 
information or message DLL files to display messages from a remote 
computer. You may be able to use the /AUXSOURCE= flag to retrieve this 
description; see Help and Support for details. The following information 
is part of the event: /usr/sbin/cron : PID 4036 : (CRON) STAT FAILED 
(/etc/cron.d).

Interesting because I don't have an /etc/cron.d. Creating it fixed my 
problem! Hmmm... Why didn't the post install create this? I have no 
idea. But I'm glad it's now working.

>> (BTW: Interestingly enough, I no longer have a 
>> /usr/doc/Cygwin/cron.README!)
>
> Quote from the announcement:
> "The package now adheres to the filesystem hirarchy standard (FHS)."
>
> That means, documentation, man pages and info pages are now under 
> /usr/share instead of /usr.

Thanks.
===
Obligatory witty line: Help! I'm modeming... and I can't hang up!!!



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 1.5.3 - can't start cron nor apache service - operation not permitted
  2003-09-12 15:25   ` Andrew DeFaria
@ 2003-09-12 20:32     ` Larry Hall
  2003-09-13  6:10       ` Igor Pechtchanski
  0 siblings, 1 reply; 5+ messages in thread
From: Larry Hall @ 2003-09-12 20:32 UTC (permalink / raw)
  To: Andrew DeFaria, cygwin

At 11:25 AM 9/12/2003, Andrew DeFaria you wrote:
>Corinna Vinschen wrote:
>
>>On Thu, Sep 11, 2003 at 04:12:43PM -0700, Andrew DeFaria wrote:
>>
>>>Since upgrading to 1.5.3 I cannot start cron or apache as services. They
>>>were added as follows:
>>>[...]
>>>cron : PID 3856 : starting service `cron' failed: execv: 1, Operation
>>>not permitted
>>>[...]
>>
>>I've just tested it and it still works for me. Could you check the permissions on cygwin1.dll? Is system not permitted to read/executethe DLL perhaps? 
>
>Interesting:
>
>$ ll /bin/cygwin1.dll
>-rwxr-x---+   1 Andrew   Users      967522 Sep  1 10:16 /bin/cygwin1.dll*
>$ chmod +x /bin/cygwin1.dll
>$ ll /bin/cygwin1.dll
>-rwxr-x--x+   1 Andrew   Users      967522 Sep  1 10:16 /bin/cygwin1.dll*
>$ net start cron
>The Cygwin cron service is starting.
>The Cygwin cron service could not be started.
>
>The service did not report an error.
>
>More help is available by typing NET HELPMSG 3534.
>
>Didn't help. Wonder why many of the files under /bin were owned by the group Users and others set to the group DeFaria? 


My WAG is you've run setup.exe more than once to install something and
your ID had different group permissions on some of these rounds.


>And what does that "+" at the end of the permmissions string mean?


Do you google?

<http://www.cygwin.com/ml/cygwin/2002-12/msg00097.html>


>Anyways I did a:
>
>$ chmod 755 /bin/*
>$ chgrp DeFaria /bin/*
>
>Didn't help.
>
>I did get the following one time:
>
>Event Type:    Information
>Event Source:    /usr/sbin/cron
>Event Category:    None
>Event ID:    0
>Date:        9/12/2003
>Time:        7:52:46 AM
>User:        NT AUTHORITY\SYSTEM
>Computer:    STARBASE
>Description:
>The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: /usr/sbin/cron : PID 4036 : (CRON) STAT FAILED (/etc/cron.d).
>
>Interesting because I don't have an /etc/cron.d. Creating it fixed my problem! Hmmm... Why didn't the post install create this? I have no idea. But I'm glad it's now working.


The post install doesn't need to create it.  It's part of the cron package.
<http://cygwin.com/cgi-bin2/package-cat.cgi?file=cron/cron-3.0.1-10&grep=cron.d>

Looks like you had a problem installing the 'cron' package for some reason.
Try again, if required.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 1.5.3 - can't start cron nor apache service - operation  not permitted
  2003-09-12 20:32     ` Larry Hall
@ 2003-09-13  6:10       ` Igor Pechtchanski
  0 siblings, 0 replies; 5+ messages in thread
From: Igor Pechtchanski @ 2003-09-13  6:10 UTC (permalink / raw)
  To: cygwin; +Cc: Andrew DeFaria

On Fri, 12 Sep 2003, Larry Hall wrote:

> At 11:25 AM 9/12/2003, Andrew DeFaria you wrote:
> >Corinna Vinschen wrote:
> >
> >>On Thu, Sep 11, 2003 at 04:12:43PM -0700, Andrew DeFaria wrote:
> >>
> >>>Since upgrading to 1.5.3 I cannot start cron or apache as services. They
> >>>were added as follows:
> >>>[...]
> >>>cron : PID 3856 : starting service `cron' failed: execv: 1, Operation
> >>>not permitted
> >>>[...]
> >>
> >>I've just tested it and it still works for me. Could you check the permissions on cygwin1.dll? Is system not permitted to read/executethe DLL perhaps?
> >
> >Interesting:
> >
> >$ ll /bin/cygwin1.dll
> >-rwxr-x---+   1 Andrew   Users      967522 Sep  1 10:16 /bin/cygwin1.dll*
> >$ chmod +x /bin/cygwin1.dll
> >$ ll /bin/cygwin1.dll
> >-rwxr-x--x+   1 Andrew   Users      967522 Sep  1 10:16 /bin/cygwin1.dll*
> >$ net start cron
> >The Cygwin cron service is starting.
> >The Cygwin cron service could not be started.
> >
> >The service did not report an error.
> >
> >More help is available by typing NET HELPMSG 3534.
> >
> >Didn't help. Wonder why many of the files under /bin were owned by the group Users and others set to the group DeFaria?
>
>
> My WAG is you've run setup.exe more than once to install something and
> your ID had different group permissions on some of these rounds.
>
>
> >And what does that "+" at the end of the permmissions string mean?
>
>
> Do you google?
>
> <http://www.cygwin.com/ml/cygwin/2002-12/msg00097.html>
>
>
> >Anyways I did a:
> >
> >$ chmod 755 /bin/*
> >$ chgrp DeFaria /bin/*
> >
> >Didn't help.
> >
> >I did get the following one time:
> >
> >Event Type:    Information
> >Event Source:    /usr/sbin/cron
> >Event Category:    None
> >Event ID:    0
> >Date:        9/12/2003
> >Time:        7:52:46 AM
> >User:        NT AUTHORITY\SYSTEM
> >Computer:    STARBASE
> >Description:
> >The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: /usr/sbin/cron : PID 4036 : (CRON) STAT FAILED (/etc/cron.d).
> >
> >Interesting because I don't have an /etc/cron.d. Creating it fixed my problem! Hmmm... Why didn't the post install create this? I have no idea. But I'm glad it's now working.
>
>
> The post install doesn't need to create it.  It's part of the cron package.
> <http://cygwin.com/cgi-bin2/package-cat.cgi?file=cron/cron-3.0.1-10&grep=cron.d>
>
> Looks like you had a problem installing the 'cron' package for some reason.
> Try again, if required.

Try "cygcheck -cv cron".
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-09-13  6:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-11 23:20 1.5.3 - can't start cron nor apache service - operation not permitted Andrew DeFaria
2003-09-12  7:44 ` Corinna Vinschen
2003-09-12 15:25   ` Andrew DeFaria
2003-09-12 20:32     ` Larry Hall
2003-09-13  6:10       ` Igor Pechtchanski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).