public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cannot set up cron as a service on corporate PC
@ 2023-12-09 21:55 Adam Dinwoodie
  2023-12-10 16:22 ` Brian Inglis
  2023-12-11 14:07 ` Jon Turney
  0 siblings, 2 replies; 5+ messages in thread
From: Adam Dinwoodie @ 2023-12-09 21:55 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1790 bytes --]

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
far; mostly I've found references to cyglsa, which I get the impression
is thoroughly deprecated, and based on
https://www.cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd3 I don't
think it's appropriate anyway due to the way the password is stored.

For now I'm continuing to use a snippet in my .bashrc to start cron when
I first start Bash, but that's not the nicest of workarounds.  Does
anyone have suggestions for anything better?

[-- Attachment #2: work_system_console_log.txt --]
[-- Type: text/plain, Size: 2673 bytes --]

EUROPE+adinwoodie@CygwinCronSTC ~
$ cron-config
The cron daemon can run as a service or as a job. The latter is not recommended.
Do you want to install the cron daemon as a service? (yes/no) yes
Enter the value of CYGWIN for the daemon: [ ]

You must decide under what account the cron daemon will run.
If you are the only user on this machine, the daemon can run as yourself.
   This gives access to all network drives but only allows you as user.
To run multiple users, cron must change user context without knowing
  the passwords. There are three methods to do that, as explained in
  http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd1
If all the cron users have executed "passwd -R" (see man passwd),
  which provides access to network drives, or if you are using the
  cyglsa package, then cron should run under the local system account.
Otherwise you need to have or to create a privileged account.
  This script will help you do so.
Do you want the cron daemon to run as yourself? (yes/no) yes

Please enter the password for user 'EUROPE+adinwoodie':
Reenter:
Running cron_diagnose ...
WARNING: You do not currently have a crontab file.

... no problem found.

Do you want to start the cron daemon as a service now? (yes/no) yes
cygrunsrv: Error starting a service: StartService:  Win32 error 1068:
The dependency service or group failed to start.


In case of problem, examine the log file for cron,
/var/log/cron.log, and the Windows event log (using /usr/bin/cronevents)
for information about the problem cron is having.

Examine also any cron.log file in the HOME directory
(or the file specified in MAILTO) and cron related files in /tmp.

If you cannot fix the problem, then report it to cygwin@cygwin.com.
Please run the script /usr/bin/cronbug and ATTACH its output
(the file cronbug.txt) to your e-mail.

WARNING: PATH may be set differently under cron than in interactive shells.
         Names such as "find" and "date" may refer to Windows programs.


EUROPE+adinwoodie@CygwinCronSTC ~
$ cp /dev/clipboard event_details.txt

EUROPE+adinwoodie@CygwinCronSTC ~
$ /usr/bin/cronbug

This script produces an error report for cron.
Please run it while the cron service is running (if possible).
Send cronbug.txt as an attachment to cygwin@cygwin.com
mentioning "cron" in the Subject line
and describing the problem you observe.
Do you want to continue? (yes/no) yes

The report is written to the file ./cronbug.txt
ls: cannot access '/var/cron/tabs/*': No such file or directory
ls: cannot access '/var/cron/tabs/*': No such file or directory
no crontab for EUROPE+adinwoodie

EUROPE+adinwoodie@CygwinCronSTC ~
$ ls /var/log
setup.log  setup.log.full

[-- Attachment #3: personal_system_console_log.txt --]
[-- Type: text/plain, Size: 2392 bytes --]


adam@CygwinCronGood ~
$ cron-config
The cron daemon can run as a service or as a job. The latter is not recommended.
Do you want to install the cron daemon as a service? (yes/no) yes
Enter the value of CYGWIN for the daemon: [ ]

You must decide under what account the cron daemon will run.
If you are the only user on this machine, the daemon can run as yourself.
   This gives access to all network drives but only allows you as user.
To run multiple users, cron must change user context without knowing
  the passwords. There are three methods to do that, as explained in
  http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd1
If all the cron users have executed "passwd -R" (see man passwd),
  which provides access to network drives, or if you are using the
  cyglsa package, then cron should run under the local system account.
Otherwise you need to have or to create a privileged account.
  This script will help you do so.
Do you want the cron daemon to run as yourself? (yes/no) yes

Please enter the password for user 'adam':
Reenter:
Running cron_diagnose ...
WARNING: You do not currently have a crontab file.

... no problem found.

Do you want to start the cron daemon as a service now? (yes/no) yes
OK. The cron daemon is now running.

In case of problem, examine the log file for cron,
/var/log/cron.log, and the Windows event log (using /usr/bin/cronevents)
for information about the problem cron is having.

Examine also any cron.log file in the HOME directory
(or the file specified in MAILTO) and cron related files in /tmp.

If you cannot fix the problem, then report it to cygwin@cygwin.com.
Please run the script /usr/bin/cronbug and ATTACH its output
(the file cronbug.txt) to your e-mail.

WARNING: PATH may be set differently under cron than in interactive shells.
         Names such as "find" and "date" may refer to Windows programs.


adam@CygwinCronGood ~
$ /usr/bin/cronbug

This script produces an error report for cron.
Please run it while the cron service is running (if possible).
Send cronbug.txt as an attachment to cygwin@cygwin.com
mentioning "cron" in the Subject line
and describing the problem you observe.
Do you want to continue? (yes/no) yes

The report is written to the file ./cronbug.txt
ls: cannot access '/var/cron/tabs/*': No such file or directory
ls: cannot access '/var/cron/tabs/*': No such file or directory
no crontab for adam

[-- Attachment #4: work_system_cronbug.txt --]
[-- Type: text/plain, Size: 16800 bytes --]


Current version
-rwxr-xr-x 1 EUROPE+adinwoodie Administrators 5304 Feb 16  2010 /usr/share/doc/Cygwin/cron-4.1-65.README

Running crons:
None

Sendmail:
lrwxrwxrwx 1 EUROPE+adinwoodie Administrators 16 Dec  6 16:21 /usr/sbin/sendmail -> /usr/bin/cronlog

Crontabs:

cron.log:

cron.pid:

Crontab:

Windows Application Events log:
2023/12/06 16:24:41 [adinwoodie] crontab: PID 2067: (EUROPE+adinwoodie) LIST (EUROPE+adinwoodie)

Cygcheck:

Cygwin Configuration Diagnostics
Current System Time: Wed Dec 06 16:24:41 2023

Windows 11 Enterprise Ver 10.0 Build 22631 

Running in Terminal Service session

Path:	C:\cygwin64\usr\local\bin
	C:\cygwin64\bin
	C:\Windows\system32
	C:\Windows
	C:\Windows\System32\Wbem
	C:\Windows\System32\WindowsPowerShell\v1.0
	C:\Windows\System32\OpenSSH
	C:\Users\adinwoodie\AppData\Local\Microsoft\WindowsApps

Output from C:\cygwin64\bin\id.exe
UID: 4096(EUROPE+adinwoodie)         GID: 4096(EUROPE+adinwoodie)
4096(EUROPE+adinwoodie)              405504(High Mandatory Level)
544(Administrators)                  545(Users)
4(INTERACTIVE)                       66049(CONSOLE LOGON)
11(Authenticated Users)              15(This Organization)
4095(CurrentSession)                 66048(LOCAL)
262180(Cloud Account Authentication)

SysDir: C:\Windows\system32
WinDir: C:\Windows

CYGWIN = 'ntsec'
PWD = '/home/adinwoodie'
HOME = '/home/adinwoodie'
USER = 'EUROPE+adinwoodie'

ProgramFiles(x86) = 'C:\Program Files (x86)'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
SHELL = '/bin/bash'
NUMBER_OF_PROCESSORS = '4'
PROCESSOR_LEVEL = '6'
TERM_PROGRAM_VERSION = '3.7.0'
USERDOMAIN_ROAMINGPROFILE = 'EUROPE'
HOSTNAME = 'CygwinCronSTC'
PROGRAMFILES = 'C:\Program Files'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
OS = 'Windows_NT'
HOMEDRIVE = 'C:'
USERDOMAIN = 'EUROPE'
USERDNSDOMAIN = 'europe.corp.microsoft.com'
USERPROFILE = 'C:\Users\adinwoodie'
PRINTER = 'Microsoft Print to PDF'
TZ = 'Europe/London'
ALLUSERSPROFILE = 'C:\ProgramData'
ORIGINAL_PATH = '/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Windows/System32/OpenSSH:/cygdrive/c/Users/adinwoodie/AppData/Local/Microsoft/WindowsApps'
CommonProgramW6432 = 'C:\Program Files\Common Files'
USERNAME = 'adinwoodie'
OneDrive = 'C:\Users\adinwoodie\OneDrive - Microsoft'
COMSPEC = 'C:\Windows\system32\cmd.exe'
APPDATA = 'C:\Users\adinwoodie\AppData\Roaming'
SYSTEMROOT = 'C:\Windows'
LOCALAPPDATA = 'C:\Users\adinwoodie\AppData\Local'
__COMPAT_LAYER = 'DetectorsAppHealth Installer'
COMPUTERNAME = 'CYGWINCRONSTC'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info'
TERM = 'xterm'
LOGONSERVER = '\\CYGWINCRONSTC'
PSModulePath = 'C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules'
TEMP = '/tmp'
SHLVL = '2'
PROCESSOR_REVISION = '8c01'
DriverData = 'C:\Windows\System32\Drivers\DriverData'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
LC_CTYPE = 'en_GB.UTF-8'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 140 Stepping 1, GenuineIntel'
HOMEPATH = '\Users\adinwoodie'
TMP = '/tmp'
ProgramW6432 = 'C:\Program Files'
PROFILEREAD = 'true'
MINTTY_SHORTCUT = '/cygdrive/c/Users/Public/Desktop/Cygwin64 Terminal.lnk'
WINDIR = 'C:\Windows'
PROCESSOR_ARCHITECTURE = 'AMD64'
PUBLIC = 'C:\Users\Public'
SYSTEMDRIVE = 'C:'
OneDriveCommercial = 'C:\Users\adinwoodie\OneDrive - Microsoft'
EXECIGNORE = '*.dll'
OLDPWD = '/etc/skel'
TERM_PROGRAM = 'mintty'
ProgramData = 'C:\ProgramData'
_ = '/usr/bin/cygcheck'

HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\cygwin64'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'C:\cygwin64'
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IntuneManagementExtension\Proxies\CygwinCronSTC_defaultuser0
  (default) = ''
  AutoProxy = ''

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: e022582115c10879 Path: C:\cygwin64

c:  hd  NTFS    129163Mb  18% CP CS UN PA FC    QU  
d:  cd  UDF       6375Mb 100% CP CS UN              CCCOMA_X64FRE_EN-GB_DV9

C:\cygwin64      /          system  binary,auto
C:\cygwin64\bin  /usr/bin   system  binary,auto
C:\cygwin64\lib  /usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  user    binary,posix=0,auto

Found: C:\cygwin64\bin\awk
 -> C:\cygwin64\bin\gawk.exe
Found: C:\cygwin64\bin\bash.exe
Found: C:\cygwin64\bin\cat.exe
Found: C:\Windows\system32\certutil.exe
Not Found: clinfo
Found: C:\Windows\system32\comp.exe
Found: C:\Windows\system32\convert.exe
Found: C:\cygwin64\bin\cp.exe
Not Found: cpp (good!)
Found: C:\cygwin64\bin\crontab.exe
Found: C:\Windows\system32\curl.exe
Found: C:\cygwin64\bin\expand.exe
Found: C:\Windows\system32\expand.exe
Warning: C:\cygwin64\bin\expand.exe hides C:\Windows\system32\expand.exe
Found: C:\cygwin64\bin\find.exe
Found: C:\Windows\system32\find.exe
Warning: C:\cygwin64\bin\find.exe hides C:\Windows\system32\find.exe
Found: C:\Windows\system32\ftp.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin64\bin\grep.exe
Found: C:\cygwin64\bin\hostname.exe
Found: C:\Windows\system32\hostname.exe
Warning: C:\cygwin64\bin\hostname.exe hides C:\Windows\system32\hostname.exe
Found: C:\cygwin64\bin\kill.exe
Found: C:\Windows\system32\klist.exe
Not Found: ld
Found: C:\cygwin64\bin\ls.exe
Not Found: make
Found: C:\cygwin64\bin\mv.exe
Found: C:\Windows\system32\nslookup.exe
Not Found: patch
Not Found: perl
Found: C:\Windows\system32\replace.exe
Found: C:\cygwin64\bin\rm.exe
Found: C:\cygwin64\bin\sed.exe
Found: C:\cygwin64\bin\sh.exe
Found: C:\Windows\system32\shutdown.exe
Found: C:\cygwin64\bin\sort.exe
Found: C:\Windows\system32\sort.exe
Warning: C:\cygwin64\bin\sort.exe hides C:\Windows\system32\sort.exe
Found: C:\Windows\System32\OpenSSH\ssh.exe
Found: C:\cygwin64\bin\tar.exe
Found: C:\Windows\system32\tar.exe
Warning: C:\cygwin64\bin\tar.exe hides C:\Windows\system32\tar.exe
Found: C:\cygwin64\bin\test.exe
Found: C:\cygwin64\bin\timeout.exe
Found: C:\Windows\system32\timeout.exe
Warning: C:\cygwin64\bin\timeout.exe hides C:\Windows\system32\timeout.exe
Found: C:\cygwin64\bin\vi.exe
Not Found: vim
Found: C:\cygwin64\bin\whoami.exe
Found: C:\Windows\system32\whoami.exe
Warning: C:\cygwin64\bin\whoami.exe hides C:\Windows\system32\whoami.exe

   45k 2023/07/11 C:\cygwin64\bin\cygargp-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygargp-0.dll" v0.0 ts=2023-07-11 20:11
   17k 2023/01/15 C:\cygwin64\bin\cygattr-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygattr-1.dll" v0.0 ts=2023-01-15 15:39
  254k 2020/03/31 C:\cygwin64\bin\cygblkid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygblkid-1.dll" v0.0 ts=2020-03-28 06:22
   66k 2019/07/21 C:\cygwin64\bin\cygbz2-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygbz2-1.dll" v0.0 ts=2019-07-22 00:05
 2487k 2023/09/12 C:\cygwin64\bin\cygcrypto-1.1.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypto-1.1.dll" v0.0 ts=2023-09-12 18:36
 3754k 2023/11/04 C:\cygwin64\bin\cygcrypto-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypto-3.dll" v0.0 ts=2023-11-04 15:56
  353k 2020/03/31 C:\cygwin64\bin\cygfdisk-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygfdisk-1.dll" v0.0 ts=2020-03-28 06:23
   27k 2015/11/17 C:\cygwin64\bin\cygffi-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygffi-6.dll" v0.0 ts=2015-11-17 22:14
   60k 2023/01/20 C:\cygwin64\bin\cygformw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygformw-10.dll" v0.0 ts=2023-01-20 06:16
   74k 2023/06/05 C:\cygwin64\bin\cyggcc_s-seh-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyggcc_s-seh-1.dll" v0.0 ts=2023-06-05 16:00
   49k 2019/07/10 C:\cygwin64\bin\cyggdbm-6.dll - os=4.0 img=0.0 sys=5.2
                  "cyggdbm-6.dll" v0.0 ts=2019-07-10 14:53
  591k 2023/07/31 C:\cygwin64\bin\cyggmp-10.dll - os=4.0 img=0.0 sys=5.2
                  "cyggmp-10.dll" v0.0 ts=2023-07-31 20:20
   36k 2022/10/08 C:\cygwin64\bin\cyghistory7.dll - os=4.0 img=0.0 sys=5.2
                  "cyghistory7.dll" v0.0 ts=2022-10-08 05:37
 1063k 2022/05/23 C:\cygwin64\bin\cygiconv-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygiconv-2.dll" v0.0 ts=2022-05-23 12:22
  105k 2023/11/25 C:\cygwin64\bin\cygintl-8.dll - os=4.0 img=0.0 sys=5.2
                  "cygintl-8.dll" v0.0 ts=2023-11-25 22:21
  136k 2022/10/30 C:\cygwin64\bin\cyglz4-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyglz4-1.dll" v0.0 ts=2022-10-30 17:59
  174k 2023/11/04 C:\cygwin64\bin\cyglzma-5.dll - os=4.0 img=0.0 sys=5.2
                  "cyglzma-5.dll" v0.0 ts=2023-11-04 11:43
  160k 2023/01/14 C:\cygwin64\bin\cygmagic-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygmagic-1.dll" v0.0 ts=2023-01-14 21:35
  214k 2023/09/24 C:\cygwin64\bin\cygman-2-12-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygman-2-12-0.dll" v0.0 ts=2023-09-24 19:20
   25k 2023/09/24 C:\cygwin64\bin\cygmandb-2-12-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygmandb-2-12-0.dll" v0.0 ts=2023-09-24 19:20
   29k 2023/01/20 C:\cygwin64\bin\cygmenuw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygmenuw-10.dll" v0.0 ts=2023-01-20 06:14
  650k 2023/08/22 C:\cygwin64\bin\cygmpfr-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygmpfr-6.dll" v0.0 ts=2023-08-22 18:46
  327k 2023/01/20 C:\cygwin64\bin\cygncursesw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygncursesw-10.dll" v0.0 ts=2023-01-20 06:12
 1020k 2020/03/27 C:\cygwin64\bin\cygp11-kit-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygp11-kit-0.dll" v0.0 ts=2020-03-27 22:30
   13k 2023/01/20 C:\cygwin64\bin\cygpanelw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygpanelw-10.dll" v0.0 ts=2023-01-20 06:14
  620k 2022/12/18 C:\cygwin64\bin\cygpcre2-8-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygpcre2-8-0.dll" v0.0 ts=2022-12-18 16:27
   44k 2022/10/06 C:\cygwin64\bin\cygpipeline-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygpipeline-1.dll" v0.0 ts=2022-10-06 19:49
   42k 2023/02/19 C:\cygwin64\bin\cygpopt-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygpopt-0.dll" v0.0 ts=2023-02-19 19:45
  257k 2022/10/08 C:\cygwin64\bin\cygreadline7.dll - os=4.0 img=0.0 sys=5.2
                  "cygreadline7.dll" v0.0 ts=2022-10-08 05:37
  156k 2020/03/31 C:\cygwin64\bin\cygsmartcols-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygsmartcols-1.dll" v0.0 ts=2020-03-28 06:22
  512k 2023/09/12 C:\cygwin64\bin\cygssl-1.1.dll - os=4.0 img=0.0 sys=5.2
                  "cygssl-1.1.dll" v0.0 ts=2023-09-12 18:36
  590k 2023/11/04 C:\cygwin64\bin\cygssl-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygssl-3.dll" v0.0 ts=2023-11-04 15:56
 1904k 2023/06/05 C:\cygwin64\bin\cygstdc++-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygstdc++-6.dll" v0.0 ts=2023-06-05 16:06
   68k 2019/07/29 C:\cygwin64\bin\cygtasn1-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygtasn1-6.dll" v0.0 ts=2019-07-29 03:12
   59k 2023/01/20 C:\cygwin64\bin\cygticw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygticw-10.dll" v0.0 ts=2023-01-20 06:12
  185k 2023/07/16 C:\cygwin64\bin\cyguchardet-0.dll - os=4.0 img=0.0 sys=5.2
                  "cyguchardet-0.dll" v0.0 ts=2023-07-16 08:19
   27k 2020/03/31 C:\cygwin64\bin\cyguuid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyguuid-1.dll" v0.0 ts=2020-03-28 06:22
   88k 2023/08/19 C:\cygwin64\bin\cygz.dll - os=4.0 img=0.0 sys=5.2
                  "cygz.dll" v0.0 ts=2023-08-19 10:49
  650k 2023/04/12 C:\cygwin64\bin\cygzstd-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygzstd-1.dll" v0.0 ts=2023-04-12 16:04
 2885k 2023/11/29 C:\cygwin64\bin\cygwin1.dll - os=4.0 img=0.0 sys=5.2
                  "cygwin1.dll" v0.0 ts=2023-11-29 12:15
    Cygwin DLL version info:
        DLL version: 3.4.10
        API major: 0
        API minor: 345
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        Shared id: cygwin1S5


Service             : cron                
Display name        : Cron daemon
Current State       : Stopped
Command             : /usr/sbin/cron -n
stdin path          : /dev/null
stdout path         : /var/log/cron.log
stderr path         : /var/log/cron.log
Environment         : CYGWIN=" " TMP="/tmp" TEMP="/tmp" 
Process Type        : Own Process
Startup             : Automatic
Account             : EUROPE\adinwoodie


Cygwin Package Information
Last downloaded files to: C:\Users\adinwoodie\Downloads
Last downloaded files from: https://www.mirrorservice.org/sites/sourceware.org/pub/cygwin/

Package              Version                      Status
_autorebase          001091-1                     OK
alternatives         1.3.30c-10                   OK
base-cygwin          3.8-2                        OK
base-files           4.3-3                        OK
bash                 5.2.15-3                     OK
bzip2                1.0.8-1                      OK
ca-certificates      2023.2.62_v7.0.401-1         OK
coreutils            9.0-1                        OK
cron                 4.1-65                       OK
crypto-policies      20190218-1                   OK
cygrunsrv            1.64-1                       OK
cygutils             1.4.17-1                     OK
cygwin               3.4.10-1                     OK
dash                 0.5.12-2                     OK
diffutils            3.10-1                       OK
editrights           1.04-1                       OK
file                 5.44-1                       OK
findutils            4.9.0-1                      OK
gawk                 5.3.0-1                      OK
getent               2.18.90-5                    OK
grep                 3.11-1                       OK
groff                1.23.0-1                     OK
gzip                 1.13-1                       OK
hostname             3.13-1                       OK
info                 7.0.3-3                      OK
ipc-utils            1.1-1                        OK
less                 608-1                        OK
libargp              20230708-2                   OK
libattr1             2.5.1-1.20.g0981a7bfe487     OK
libblkid1            2.33.1-2                     OK
libbz2_1             1.0.8-1                      OK
libfdisk1            2.33.1-2                     OK
libffi6              3.2.1-2                      OK
libgcc1              11.4.0-1                     OK
libgdbm6             1.18.1-1                     OK
libgmp10             6.3.0-1                      OK
libiconv2            1.17-1                       OK
libintl8             0.22.4-1                     OK
liblz4_1             1.9.4-1                      OK
liblzma5             5.4.5-1                      OK
libmpfr6             4.2.1-1                      OK
libncursesw10        6.4-3.20230114               OK
libp11-kit0          0.23.20-1                    OK
libpcre2_8_0         10.42-1                      OK
libpipeline1         1.5.6-1                      OK
libpopt-common       1.19-1                       OK
libpopt0             1.19-1                       OK
libreadline7         8.2-2                        OK
libsmartcols1        2.33.1-2                     OK
libssl1.1            1.1.1w-1                     OK
libssl3              3.0.12-1                     OK
libstdc++6           11.4.0-1                     OK
libtasn1_6           4.14-1                       OK
libuchardet0         0.0.8-1                      OK
libuuid1             2.33.1-2                     OK
libzstd1             1.5.5-1                      OK
login                1.13-1                       OK
man-db               2.12.0-1                     OK
mintty               3.7.0-1                      OK
ncurses              6.4-3.20230114               OK
openssl              3.0.12-1                     OK
p11-kit              0.23.20-1                    OK
p11-kit-trust        0.23.20-1                    OK
rebase               4.6.6-1                      OK
run                  1.3.4-2                      OK
sed                  4.9-1                        OK
tar                  1.35-1                       OK
terminfo             6.4-3.20230114               OK
tzcode               2023c-1                      OK
tzdata               2023c-1                      OK
util-linux           2.33.1-2                     OK
vim-minimal          8.2.4372-2                   OK
which                2.20-2                       OK
xz                   5.4.5-1                      OK
zlib0                1.3-1                        OK
zstd                 1.5.5-1                      OK
Use -h to see help about each section

[-- Attachment #5: personal_system_cronbug.txt --]
[-- Type: text/plain, Size: 16975 bytes --]


Current version
-rwxr-xr-x 1 adam Administrators 5304 Feb 16  2010 /usr/share/doc/Cygwin/cron-4.1-65.README

Running crons:
      339     338     339       1916  ?         197609 17:01:33 /usr/sbin/cron

Sendmail:
lrwxrwxrwx 1 adam Administrators 16 Dec  6 17:00 /usr/sbin/sendmail -> /usr/bin/cronlog

Crontabs:

cron.log:
-rw-r--r-- 1 adam adam 0 Dec  6 17:01 /var/log/cron.log

cron.pid:
-rw-r--r-- 1 adam adam 4 Dec  6 17:01 /var/run/cron.pid

Crontab:

Windows Application Events log:
2023/12/06 17:01:34 [adam] /usr/sbin/cron: PID 339: (CRON) STARTUP (V5.0)
2023/12/06 17:01:34 [adam] cron: PID 338: `cron' service started
2023/12/06 17:02:07 [adam] crontab: PID 351: (adam) LIST (adam)

Cygcheck:

Cygwin Configuration Diagnostics
Current System Time: Wed Dec 06 17:02:07 2023

Windows 11 Professional Ver 10.0 Build 22631 

Running in Terminal Service session

Path:	C:\cygwin64\usr\local\bin
	C:\cygwin64\bin
	C:\Windows\system32
	C:\Windows
	C:\Windows\System32\Wbem
	C:\Windows\System32\WindowsPowerShell\v1.0
	C:\Windows\System32\OpenSSH
	C:\Users\adam\AppData\Local\Microsoft\WindowsApps

Output from C:\cygwin64\bin\id.exe
UID: 197609(adam)
GID: 197609(adam)
197609(adam)
405504(High Mandatory Level)
114(Local account and member of Administrators group)
545(Users)
544(Administrators)
4(INTERACTIVE)
66049(CONSOLE LOGON)
11(Authenticated Users)
15(This Organization)
68503(MicrosoftAccount+adam@dinwoodie.org)
113(Local account)
4095(CurrentSession)
66048(LOCAL)
262180(Cloud Account Authentication)

SysDir: C:\Windows\system32
WinDir: C:\Windows

CYGWIN = 'ntsec'
PWD = '/home/adam'
HOME = '/home/adam'
USER = 'adam'

ProgramFiles(x86) = 'C:\Program Files (x86)'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
SHELL = '/bin/bash'
NUMBER_OF_PROCESSORS = '4'
PROCESSOR_LEVEL = '6'
TERM_PROGRAM_VERSION = '3.7.0'
USERDOMAIN_ROAMINGPROFILE = 'CYGWINCRONGOOD'
HOSTNAME = 'CygwinCronGood'
PROGRAMFILES = 'C:\Program Files'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
OS = 'Windows_NT'
HOMEDRIVE = 'C:'
USERDOMAIN = 'CYGWINCRONGOOD'
USERPROFILE = 'C:\Users\adam'
OneDriveConsumer = 'C:\Users\adam\OneDrive'
PRINTER = 'Microsoft Print to PDF'
TZ = 'Europe/London'
ALLUSERSPROFILE = 'C:\ProgramData'
ORIGINAL_PATH = '/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Windows/System32/OpenSSH:/cygdrive/c/Users/adam/AppData/Local/Microsoft/WindowsApps'
CommonProgramW6432 = 'C:\Program Files\Common Files'
USERNAME = 'adam'
OneDrive = 'C:\Users\adam\OneDrive'
COMSPEC = 'C:\Windows\system32\cmd.exe'
APPDATA = 'C:\Users\adam\AppData\Roaming'
SYSTEMROOT = 'C:\Windows'
LOCALAPPDATA = 'C:\Users\adam\AppData\Local'
__COMPAT_LAYER = 'Installer'
COMPUTERNAME = 'CYGWINCRONGOOD'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info'
TERM = 'xterm'
LOGONSERVER = '\\CYGWINCRONGOOD'
PSModulePath = 'C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules'
TEMP = '/tmp'
SHLVL = '2'
PROCESSOR_REVISION = '8c01'
DriverData = 'C:\Windows\System32\Drivers\DriverData'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
LC_CTYPE = 'en_GB.UTF-8'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 140 Stepping 1, GenuineIntel'
HOMEPATH = '\Users\adam'
TMP = '/tmp'
ProgramW6432 = 'C:\Program Files'
PROFILEREAD = 'true'
MINTTY_SHORTCUT = '/cygdrive/c/Users/Public/Desktop/Cygwin64 Terminal.lnk'
WINDIR = 'C:\Windows'
PROCESSOR_ARCHITECTURE = 'AMD64'
PUBLIC = 'C:\Users\Public'
SYSTEMDRIVE = 'C:'
EXECIGNORE = '*.dll'
OLDPWD = '/cygdrive/c/Users/adam/Desktop'
TERM_PROGRAM = 'mintty'
ProgramData = 'C:\ProgramData'
_ = '/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Installations
  (default) = '\??\C:\cygwin64'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\cygwin64'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'C:\cygwin64'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: e022582115c10879 Path: C:\cygwin64
  User:   Key: e022582115c10879 Path: C:\cygwin64

c:  hd  NTFS    129163Mb  18% CP CS UN PA FC    QU  
d:  cd  UDF       6375Mb 100% CP CS UN              CCCOMA_X64FRE_EN-GB_DV9

C:\cygwin64      /          system  binary,auto
C:\cygwin64\bin  /usr/bin   system  binary,auto
C:\cygwin64\lib  /usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  user    binary,posix=0,auto

Found: C:\cygwin64\bin\awk
 -> C:\cygwin64\bin\gawk.exe
Found: C:\cygwin64\bin\bash.exe
Found: C:\cygwin64\bin\cat.exe
Found: C:\Windows\system32\certutil.exe
Not Found: clinfo
Found: C:\Windows\system32\comp.exe
Found: C:\Windows\system32\convert.exe
Found: C:\cygwin64\bin\cp.exe
Not Found: cpp (good!)
Found: C:\cygwin64\bin\crontab.exe
Found: C:\Windows\system32\curl.exe
Found: C:\cygwin64\bin\expand.exe
Found: C:\Windows\system32\expand.exe
Warning: C:\cygwin64\bin\expand.exe hides C:\Windows\system32\expand.exe
Found: C:\cygwin64\bin\find.exe
Found: C:\Windows\system32\find.exe
Warning: C:\cygwin64\bin\find.exe hides C:\Windows\system32\find.exe
Found: C:\Windows\system32\ftp.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin64\bin\grep.exe
Found: C:\cygwin64\bin\hostname.exe
Found: C:\Windows\system32\hostname.exe
Warning: C:\cygwin64\bin\hostname.exe hides C:\Windows\system32\hostname.exe
Found: C:\cygwin64\bin\kill.exe
Found: C:\Windows\system32\klist.exe
Not Found: ld
Found: C:\cygwin64\bin\ls.exe
Not Found: make
Found: C:\cygwin64\bin\mv.exe
Found: C:\Windows\system32\nslookup.exe
Not Found: patch
Not Found: perl
Found: C:\Windows\system32\replace.exe
Found: C:\cygwin64\bin\rm.exe
Found: C:\cygwin64\bin\sed.exe
Found: C:\cygwin64\bin\sh.exe
Found: C:\Windows\system32\shutdown.exe
Found: C:\cygwin64\bin\sort.exe
Found: C:\Windows\system32\sort.exe
Warning: C:\cygwin64\bin\sort.exe hides C:\Windows\system32\sort.exe
Found: C:\Windows\System32\OpenSSH\ssh.exe
Found: C:\cygwin64\bin\tar.exe
Found: C:\Windows\system32\tar.exe
Warning: C:\cygwin64\bin\tar.exe hides C:\Windows\system32\tar.exe
Found: C:\cygwin64\bin\test.exe
Found: C:\cygwin64\bin\timeout.exe
Found: C:\Windows\system32\timeout.exe
Warning: C:\cygwin64\bin\timeout.exe hides C:\Windows\system32\timeout.exe
Found: C:\cygwin64\bin\vi.exe
Not Found: vim
Found: C:\cygwin64\bin\whoami.exe
Found: C:\Windows\system32\whoami.exe
Warning: C:\cygwin64\bin\whoami.exe hides C:\Windows\system32\whoami.exe

   45k 2023/07/11 C:\cygwin64\bin\cygargp-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygargp-0.dll" v0.0 ts=2023-07-11 20:11
   17k 2023/01/15 C:\cygwin64\bin\cygattr-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygattr-1.dll" v0.0 ts=2023-01-15 15:39
  254k 2020/03/31 C:\cygwin64\bin\cygblkid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygblkid-1.dll" v0.0 ts=2020-03-28 06:22
   66k 2019/07/21 C:\cygwin64\bin\cygbz2-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygbz2-1.dll" v0.0 ts=2019-07-22 00:05
 2487k 2023/09/12 C:\cygwin64\bin\cygcrypto-1.1.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypto-1.1.dll" v0.0 ts=2023-09-12 18:36
 3754k 2023/11/04 C:\cygwin64\bin\cygcrypto-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypto-3.dll" v0.0 ts=2023-11-04 15:56
  353k 2020/03/31 C:\cygwin64\bin\cygfdisk-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygfdisk-1.dll" v0.0 ts=2020-03-28 06:23
   27k 2015/11/17 C:\cygwin64\bin\cygffi-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygffi-6.dll" v0.0 ts=2015-11-17 22:14
   60k 2023/01/20 C:\cygwin64\bin\cygformw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygformw-10.dll" v0.0 ts=2023-01-20 06:16
   74k 2023/06/05 C:\cygwin64\bin\cyggcc_s-seh-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyggcc_s-seh-1.dll" v0.0 ts=2023-06-05 16:00
   49k 2019/07/10 C:\cygwin64\bin\cyggdbm-6.dll - os=4.0 img=0.0 sys=5.2
                  "cyggdbm-6.dll" v0.0 ts=2019-07-10 14:53
  591k 2023/07/31 C:\cygwin64\bin\cyggmp-10.dll - os=4.0 img=0.0 sys=5.2
                  "cyggmp-10.dll" v0.0 ts=2023-07-31 20:20
   36k 2022/10/08 C:\cygwin64\bin\cyghistory7.dll - os=4.0 img=0.0 sys=5.2
                  "cyghistory7.dll" v0.0 ts=2022-10-08 05:37
 1063k 2022/05/23 C:\cygwin64\bin\cygiconv-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygiconv-2.dll" v0.0 ts=2022-05-23 12:22
  105k 2023/11/25 C:\cygwin64\bin\cygintl-8.dll - os=4.0 img=0.0 sys=5.2
                  "cygintl-8.dll" v0.0 ts=2023-11-25 22:21
  136k 2022/10/30 C:\cygwin64\bin\cyglz4-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyglz4-1.dll" v0.0 ts=2022-10-30 17:59
  174k 2023/11/04 C:\cygwin64\bin\cyglzma-5.dll - os=4.0 img=0.0 sys=5.2
                  "cyglzma-5.dll" v0.0 ts=2023-11-04 11:43
  160k 2023/01/14 C:\cygwin64\bin\cygmagic-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygmagic-1.dll" v0.0 ts=2023-01-14 21:35
  214k 2023/09/24 C:\cygwin64\bin\cygman-2-12-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygman-2-12-0.dll" v0.0 ts=2023-09-24 19:20
   25k 2023/09/24 C:\cygwin64\bin\cygmandb-2-12-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygmandb-2-12-0.dll" v0.0 ts=2023-09-24 19:20
   29k 2023/01/20 C:\cygwin64\bin\cygmenuw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygmenuw-10.dll" v0.0 ts=2023-01-20 06:14
  650k 2023/08/22 C:\cygwin64\bin\cygmpfr-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygmpfr-6.dll" v0.0 ts=2023-08-22 18:46
  327k 2023/01/20 C:\cygwin64\bin\cygncursesw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygncursesw-10.dll" v0.0 ts=2023-01-20 06:12
 1020k 2020/03/27 C:\cygwin64\bin\cygp11-kit-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygp11-kit-0.dll" v0.0 ts=2020-03-27 22:30
   13k 2023/01/20 C:\cygwin64\bin\cygpanelw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygpanelw-10.dll" v0.0 ts=2023-01-20 06:14
  620k 2022/12/18 C:\cygwin64\bin\cygpcre2-8-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygpcre2-8-0.dll" v0.0 ts=2022-12-18 16:27
   44k 2022/10/06 C:\cygwin64\bin\cygpipeline-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygpipeline-1.dll" v0.0 ts=2022-10-06 19:49
   42k 2023/02/19 C:\cygwin64\bin\cygpopt-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygpopt-0.dll" v0.0 ts=2023-02-19 19:45
  257k 2022/10/08 C:\cygwin64\bin\cygreadline7.dll - os=4.0 img=0.0 sys=5.2
                  "cygreadline7.dll" v0.0 ts=2022-10-08 05:37
  156k 2020/03/31 C:\cygwin64\bin\cygsmartcols-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygsmartcols-1.dll" v0.0 ts=2020-03-28 06:22
  512k 2023/09/12 C:\cygwin64\bin\cygssl-1.1.dll - os=4.0 img=0.0 sys=5.2
                  "cygssl-1.1.dll" v0.0 ts=2023-09-12 18:36
  590k 2023/11/04 C:\cygwin64\bin\cygssl-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygssl-3.dll" v0.0 ts=2023-11-04 15:56
 1904k 2023/06/05 C:\cygwin64\bin\cygstdc++-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygstdc++-6.dll" v0.0 ts=2023-06-05 16:06
   68k 2019/07/29 C:\cygwin64\bin\cygtasn1-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygtasn1-6.dll" v0.0 ts=2019-07-29 03:12
   59k 2023/01/20 C:\cygwin64\bin\cygticw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygticw-10.dll" v0.0 ts=2023-01-20 06:12
  185k 2023/07/16 C:\cygwin64\bin\cyguchardet-0.dll - os=4.0 img=0.0 sys=5.2
                  "cyguchardet-0.dll" v0.0 ts=2023-07-16 08:19
   27k 2020/03/31 C:\cygwin64\bin\cyguuid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyguuid-1.dll" v0.0 ts=2020-03-28 06:22
   88k 2023/08/19 C:\cygwin64\bin\cygz.dll - os=4.0 img=0.0 sys=5.2
                  "cygz.dll" v0.0 ts=2023-08-19 10:49
  650k 2023/04/12 C:\cygwin64\bin\cygzstd-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygzstd-1.dll" v0.0 ts=2023-04-12 16:04
 2885k 2023/11/29 C:\cygwin64\bin\cygwin1.dll - os=4.0 img=0.0 sys=5.2
                  "cygwin1.dll" v0.0 ts=2023-11-29 12:15
    Cygwin DLL version info:
        DLL version: 3.4.10
        API major: 0
        API minor: 345
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        Shared id: cygwin1S5


Service             : cron                
Display name        : Cron daemon
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/cron -n
stdin path          : /dev/null
stdout path         : /var/log/cron.log
stderr path         : /var/log/cron.log
Environment         : CYGWIN=" " TMP="/tmp" TEMP="/tmp" 
Process Type        : Own Process
Startup             : Automatic
Account             : .\adam


Cygwin Package Information
Last downloaded files to: C:\Users\adam\Downloads
Last downloaded files from: https://www.mirrorservice.org/sites/sourceware.org/pub/cygwin/

Package              Version                      Status
_autorebase          001091-1                     OK
alternatives         1.3.30c-10                   OK
base-cygwin          3.8-2                        OK
base-files           4.3-3                        OK
bash                 5.2.15-3                     OK
bzip2                1.0.8-1                      OK
ca-certificates      2023.2.62_v7.0.401-1         OK
coreutils            9.0-1                        OK
cron                 4.1-65                       OK
crypto-policies      20190218-1                   OK
cygrunsrv            1.64-1                       OK
cygutils             1.4.17-1                     OK
cygwin               3.4.10-1                     OK
dash                 0.5.12-2                     OK
diffutils            3.10-1                       OK
editrights           1.04-1                       OK
file                 5.44-1                       OK
findutils            4.9.0-1                      OK
gawk                 5.3.0-1                      OK
getent               2.18.90-5                    OK
grep                 3.11-1                       OK
groff                1.23.0-1                     OK
gzip                 1.13-1                       OK
hostname             3.13-1                       OK
info                 7.0.3-3                      OK
ipc-utils            1.1-1                        OK
less                 608-1                        OK
libargp              20230708-2                   OK
libattr1             2.5.1-1.20.g0981a7bfe487     OK
libblkid1            2.33.1-2                     OK
libbz2_1             1.0.8-1                      OK
libfdisk1            2.33.1-2                     OK
libffi6              3.2.1-2                      OK
libgcc1              11.4.0-1                     OK
libgdbm6             1.18.1-1                     OK
libgmp10             6.3.0-1                      OK
libiconv2            1.17-1                       OK
libintl8             0.22.4-1                     OK
liblz4_1             1.9.4-1                      OK
liblzma5             5.4.5-1                      OK
libmpfr6             4.2.1-1                      OK
libncursesw10        6.4-3.20230114               OK
libp11-kit0          0.23.20-1                    OK
libpcre2_8_0         10.42-1                      OK
libpipeline1         1.5.6-1                      OK
libpopt-common       1.19-1                       OK
libpopt0             1.19-1                       OK
libreadline7         8.2-2                        OK
libsmartcols1        2.33.1-2                     OK
libssl1.1            1.1.1w-1                     OK
libssl3              3.0.12-1                     OK
libstdc++6           11.4.0-1                     OK
libtasn1_6           4.14-1                       OK
libuchardet0         0.0.8-1                      OK
libuuid1             2.33.1-2                     OK
libzstd1             1.5.5-1                      OK
login                1.13-1                       OK
man-db               2.12.0-1                     OK
mintty               3.7.0-1                      OK
ncurses              6.4-3.20230114               OK
openssl              3.0.12-1                     OK
p11-kit              0.23.20-1                    OK
p11-kit-trust        0.23.20-1                    OK
rebase               4.6.6-1                      OK
run                  1.3.4-2                      OK
sed                  4.9-1                        OK
tar                  1.35-1                       OK
terminfo             6.4-3.20230114               OK
tzcode               2023c-1                      OK
tzdata               2023c-1                      OK
util-linux           2.33.1-2                     OK
vim-minimal          8.2.4372-2                   OK
which                2.20-2                       OK
xz                   5.4.5-1                      OK
zlib0                1.3-1                        OK
zstd                 1.5.5-1                      OK
Use -h to see help about each section

[-- Attachment #6: work_system_event_details.txt --]
[-- Type: text/plain, Size: 977 bytes --]

Log Name:      System
Source:        NETLOGON
Date:          06/12/2023 16:22:39
Event ID:      3095
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      CygwinCronSTC
Description:
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.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="NETLOGON" />
    <EventID Qualifiers="0">3095</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2023-12-06T16:22:39.6432700Z" />
    <EventRecordID>637</EventRecordID>
    <Correlation />
    <Execution ProcessID="928" ThreadID="0" />
    <Channel>System</Channel>
    <Computer>CygwinCronSTC</Computer>
    <Security />
  </System>
  <EventData>
  </EventData>
</Event>

[-- Attachment #7: personal_system_cron.log --]
[-- Type: text/plain, Size: 0 bytes --]



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

* Re: Cannot set up cron as a service on corporate PC
  2023-12-09 21:55 Cannot set up cron as a service on corporate PC Adam Dinwoodie
@ 2023-12-10 16:22 ` Brian Inglis
  2023-12-11 11:55   ` Adam Dinwoodie
  2023-12-11 14:07 ` Jon Turney
  1 sibling, 1 reply; 5+ messages in thread
From: Brian Inglis @ 2023-12-10 16:22 UTC (permalink / raw)
  To: cygwin

On 2023-12-09 14:55, Adam Dinwoodie via Cygwin wrote:
> 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
> far; mostly I've found references to cyglsa, which I get the impression
> is thoroughly deprecated, and based on
> https://www.cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd3 I don't
> think it's appropriate anyway due to the way the password is stored.
> For now I'm continuing to use a snippet in my .bashrc to start cron when
> I first start Bash, but that's not the nicest of workarounds.  Does
> anyone have suggestions for anything better?

Never any issues here with cron, other than no mail, but I run mainly run 
scripts that log to /var/log/, and syslog rules that chmod a+r.
I installed cyglsa many years ago, but don't think that's used any more, and I 
also used passwd -R, so that should still be around.
I have also customized my daemon services so auto-start is delayed, notify on 
pre-shutdown, and depend on others: cron -> syslog-ng -> cygserver -> SamSS 
Security Accounts Manager, as I an not in a domain.

Given the error, I suggest checking the system config, as it either needs to be 
a domain member, with DC/AD access, or you need your work user created locally.
Also check the deps with `sc qc cron` and follow the chain to see where netlogon 
gets involved.

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry


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

* Re: Cannot set up cron as a service on corporate PC
  2023-12-10 16:22 ` Brian Inglis
@ 2023-12-11 11:55   ` Adam Dinwoodie
  0 siblings, 0 replies; 5+ messages in thread
From: Adam Dinwoodie @ 2023-12-11 11:55 UTC (permalink / raw)
  To: cygwin

On Sun, Dec 10, 2023 at 09:22:12AM -0700, Brian Inglis via Cygwin wrote:
> On 2023-12-09 14:55, Adam Dinwoodie via Cygwin wrote:
> > 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
> > far; mostly I've found references to cyglsa, which I get the impression
> > is thoroughly deprecated, and based on
> > https://www.cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd3 I don't
> > think it's appropriate anyway due to the way the password is stored.
> > For now I'm continuing to use a snippet in my .bashrc to start cron when
> > I first start Bash, but that's not the nicest of workarounds.  Does
> > anyone have suggestions for anything better?
> 
> Never any issues here with cron, other than no mail, but I run mainly run
> scripts that log to /var/log/, and syslog rules that chmod a+r.
> I installed cyglsa many years ago, but don't think that's used any more, and
> I also used passwd -R, so that should still be around.
> I have also customized my daemon services so auto-start is delayed, notify
> on pre-shutdown, and depend on others: cron -> syslog-ng -> cygserver ->
> SamSS Security Accounts Manager, as I an not in a domain.
> 
> Given the error, I suggest checking the system config, as it either needs to
> be a domain member, with DC/AD access, or you need your work user created
> locally.

I'm honestly not sure what system config I'd need to check here.  Can
you give any more detailed instructions?

> Also check the deps with `sc qc cron` and follow the chain to see where
> netlogon gets involved.

That doesn't seem useful, sadly: as far as I can tell, cron has no
dependencies, so it's not clear to me why netlogon is getting involved
at all.

    $ sc qc cron
    [SC] QueryServiceConfig SUCCESS

    SERVICE_NAME: cron
            TYPE               : 10  WIN32_OWN_PROCESS
            START_TYPE         : 2   AUTO_START
            ERROR_CONTROL      : 1   NORMAL
            BINARY_PATH_NAME   : C:\cygwin64\bin\cygrunsrv.exe
            LOAD_ORDER_GROUP   :
            TAG                : 0
            DISPLAY_NAME       : Cron daemon
            DEPENDENCIES       :
            SERVICE_START_NAME : EUROPE\adinwoodie

I get the same results running that in Cygwin Bash and in PowerShell,
and with either started normally or running with Administrator
permissions.

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

* Re: Cannot set up cron as a service on corporate PC
  2023-12-09 21:55 Cannot set up cron as a service on corporate PC Adam Dinwoodie
  2023-12-10 16:22 ` Brian Inglis
@ 2023-12-11 14:07 ` Jon Turney
  2023-12-12 10:48   ` Adam Dinwoodie
  1 sibling, 1 reply; 5+ messages in thread
From: Jon Turney @ 2023-12-11 14:07 UTC (permalink / raw)
  To: Adam Dinwoodie, The Cygwin Mailing List

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?)


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

* Re: Cannot set up cron as a service on corporate PC
  2023-12-11 14:07 ` Jon Turney
@ 2023-12-12 10:48   ` Adam Dinwoodie
  0 siblings, 0 replies; 5+ messages in thread
From: Adam Dinwoodie @ 2023-12-12 10:48 UTC (permalink / raw)
  To: cygwin

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.

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

end of thread, other threads:[~2023-12-12 10:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-09 21:55 Cannot set up cron as a service on corporate PC Adam Dinwoodie
2023-12-10 16:22 ` Brian Inglis
2023-12-11 11:55   ` Adam Dinwoodie
2023-12-11 14:07 ` Jon Turney
2023-12-12 10:48   ` Adam Dinwoodie

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).