delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/12/12/05:49:17

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F38C53856DED
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1702378155;
bh=UDlKmHNRbamkEUOPgeEMxbbTJL95DuJzRwKahdHeyBw=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=VA4FXhWrUrFF+dKIqTSKBLslxuwGgxgMXWkd+gcG484cSiILQ4dRSmq8Dn8E6oQ6M
ZAlC1jAS9+8nROJsHu4RFVTKaV+Albu4d8JVgUnr4atsubyFbv514fR0Z14vTisj38
Cz/aAaKOzIH+pMu0KbYsNGzl3pKZxKFpS8GdR3Gs=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2F8C33857400
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2F8C33857400
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702378110; cv=none;
b=qTYvRWeDQSBpTPGbPsFZCkHGMMaJD2//wprLsxcQsJMYlvVS/AIQc8W/DMYnrPNzZJYpfD3iM4h7FZhtqsqza4M/LfPJi8MzH9fwqkiJ5mvkcAsI/IS5rqHIT2m/OG/amqkAlGlKbmGz4xQx6Z6+KZLeOKQh2VWFIPeaHSZJtfA=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1702378110; c=relaxed/simple;
bh=Yn+FfVWqySiCn2hL+StUqkt7MjUCLxZLLn+3OJDfsN4=;
h=Date:From:To:Subject:Message-ID:MIME-Version;
b=aWSfFKJxdy7tUPx85PDz0pKbCvVxnhaxdsUHFWG2LJ6M0tzQwzWrO3nwvPenZyMb30WdQ2nmVrg70dHIS8M1F5lGAYzqn7QdK6lXysLuZ9Gt6yTNy7Ii3m1t1/VeR3Y5kqdzuRHxKoLPbpAkGymDGGMgEzpIfmEIIEU0H5ZY4hY=
ARC-Authentication-Results: i=1; server2.sourceware.org
Date: Tue, 12 Dec 2023 10:48:20 +0000
To: cygwin AT cygwin DOT com
Subject: Re: Cannot set up cron as a service on corporate PC
Message-ID: <20231212104820.dxbkb4273lj5ijgc@lucy.dinwoodie.org>
References: <20231209215527 DOT bg5slflpy6bufbmw AT lucy DOT dinwoodie DOT org>
<bc93f4f5-ebe0-4755-988d-ac332a1b3f16 AT dronecode DOT org DOT uk>
MIME-Version: 1.0
In-Reply-To: <bc93f4f5-ebe0-4755-988d-ac332a1b3f16@dronecode.org.uk>
X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
RDNS_DYNAMIC, SPF_HELO_PASS, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Adam Dinwoodie via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Adam Dinwoodie <adam AT dinwoodie DOT org>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Mon, Dec 11, 2023 at 02:07:08PM +0000, Jon Turney wrote:
> On 09/12/2023 21:55, Adam Dinwoodie via Cygwin wrote:
> > Hi,
> > 
> > I've been trying to set up Cygwin cron to work as a service on my work
> > PC.  I'm able to get it working just fine on a Windows system where I'm
> > using a personal Microsoft account, but when I attempt the same process
> > using on a Windows system using my work account, I get the following
> > error:
> > 
> >      cygrunsrv: Error starting a service: StartService:  Win32 error 1068:
> >      The dependency service or group failed to start.
> > 
> > I also note that in the failing scenario, I see the following log appear
> > at this time in Windows Event Viewer:
> > 
> > > This computer is configured as a member of a workgroup, not as a
> > > member of a domain. The Netlogon service does not need to run in this
> > > configuration.
> > 
> > I've reproduced this behaviour in virtual machines using fresh
> > installations of Windows, and where the only actions taken were to
> > bootstrap, log in, install Cygwin including cygrunsrv and cron, then
> > attempt to set up cron as a service.  I've attached copies of the MinTTY
> > output and the cronbug.txt files (which appear to include the normal
> > cygcheck -srv output, so I've not added those separately.  I've also
> > attached the full Event Viewer log
> > 
> > My guess is that something about how Windows manages user accounts has
> > changed over the years, and cygrunsrv hasn't been updated to cope, but
> > that's a very wild guess.  Searching the archives hasn't got me very
> 
> You might test this hypothesis by attempting to run 'true', or perhaps it
> needs to be something that runs forever like 'sleep infinity' and see if you
> get the same error about netlogon?
> 
> (Or are you able to run other cygwin services without problems?)

Good question!  Looks like this is common to all services installed with
cygrunsrv and a specific user:

    # cygrunsrv -I sleeptest -p /usr/bin/sleep -a infinity -u EUROPE+adinwoodie
    Enter password of user `EUROPE\adinwoodie':
    Re-enter, please:

    # cygrunsrv -Q sleeptest
    Service             : sleeptest
    Current State       : Stopped
    Command             : /usr/bin/sleep infinity

    # cygrunsrv -S sleeptest
    cygrunsrv: Error starting a service: StartService:  Win32 error 1068:
    The dependency service or group failed to start.

So I think that strongly points towards either (a) an issue with
cygrunsrv, or (b) using usernames like this is just doomed to failure
and cron-config might benefit from suggesting better options or at least
warning there aren't any.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019