Re: installer does not install service?

34 posts / 0 new
Last post
itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: installer does not install service?

I have tried installing 2.0.2 on a Win 2000 server and it does not create the services. The only information that it gives is that the service is not installed when it checks for it.
I have tried downloading and installing the 2.0.0 with extra logging, but there was no additional help that I saw in the logging.

Here is the section in question:

Creating service account SvcwRsync
The command completed successfully.

User name SvcwRsync
Full Name
Comment cwRsync service account
User's comment
Country code 000 (System Default)
Account active Yes
Account expires Never

Password last set 8/18/2005 12:30 PM
Password expires 9/30/2005 11:17 AM
Password changeable 8/18/2005 12:30 PM
Password required Yes
User may change password Yes

Workstations allowed All
Logon script
User profile
Home directory
Last logon Never

Logon hours allowed All

Local Group Memberships *Users
Global Group memberships *None
The command completed successfully.

Grant required privileges to the service account
Granting SeServiceLogonRight to SvcwRsync ... successful
Installing rsync daemon as a service
/cygdrive/c/cwRsyncServer/bin/cygrunsrv: Error querying a service: OpenService: Win32 error 1060:
The specified service does not exist as an installed service.

Any ideas?

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

Did the installer display a message box for service password ?

What output do you get when you run password generation tool pwdgen directly ?

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: installer does not install service?

It does display a password in a message window and I do not have a binary called pwdgen on my machine. Where should it have installed it?

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

I'm experiencing a similar problem on Windows NT.
I upgraded from 1.2.7 to 2.0.2 (using cwRsync_Server_2.0.2_Installer.exe). I first stopped the rsync service.

I did get a dialog informing me of the service password, and I do have a SvcwRsync account, which I don't think I had before (according to the Services applet it was setup to run under the Administrator account).

After the install, checking the task manager there was no rsync.exe process running. I tried starting it from the Services applet, and got an error along the lines of the executable not being found. Checking the registry (assuming the service name is still "RsyncServer") showed that the paths were still pointing to the old directory and the Image and Application keys were both pointing to the old rsync.cmd.

I manually updated the paths to the new directory, pointed to rsync.exe in the bin subdirectory, and changed the AppParameters key to show the parameters you specify in the documentation.

Now I get:
% net start rsyncserver
The service is not responding to the control function.

after a long pause.

Starting rsync using the same paths and command line options from the prompt manually seems to work fine.

Do I need to manually reinstall the service using cygrunsrv.exe?

Any idea why the installer failed to set this up?

Are there any logs produced by the installer?

-Tom

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

I guess third time is the charm...after a few uninstall/reinstall cycles it eventually created a working service installation.
First I uninstalled:

Remove registry keys
Remove uninstaller
Delete file: C:\bin\util\backup\cwRsync\uninstall.exe
Stop and remove NT services
/cygdrive/c/bin/util/backup/cwRsync/bin/cygrunsrv: Error stopping a service: OpenService: Win32 error 1060:
The specified service does not exist as an installed service.

/cygdrive/c/bin/util/backup/cwRsync/bin/cygrunsrv: Error removing a service: OpenService: Win32 error 1060:
The specified service does not exist as an installed service.

Revoke service account rights and permissions
Revoking SeCreateTokenPrivilege from SvcwRsync ... successful
Revoking SeAssignPrimaryTokenPrivilege from SvcwRsync ... successful
Revoking SeIncreaseQuotaPrivilege from SvcwRsync ... successful
Revoking SeServiceLogonRight from SvcwRsync ... successful
Revoking SeTcbPrivilege from SvcwRsync ... failed
AddUserRightToAccount:

***Error*** AddUserRightToAccount -1073741772
Revoking SeDenyBatchLogonRight from SvcwRsync ... failed
AddUserRightToAccount:

***Error*** AddUserRightToAccount -1073741772
Revoking SeDenyInteractiveLogonRight from SvcwRsync ... failed
AddUserRightToAccount:

***Error*** AddUserRightToAccount -1073741772
Revoking SeDenyNetworkLogonRight from SvcwRsync ... failed
AddUserRightToAccount:

***Error*** AddUserRightToAccount -1073741772
Revoking SeDenyRemoteInteractiveLogonRight from SvcwRsync ... failed
AddUserRightToAccount:

***Error*** AddUserRightToAccount -1073741772
Remove system accounts
The command completed successfully.

The user name could not be found.

More help is available by typing NET HELPMSG 2221.

Remove installation directory
LookupAccountName : setowner 1332 No mapping between account names and security IDs was done.

Current object C:\bin\util\backup\cwRsync will not be processed
LookupAccountName : setowner 1332 No mapping between account names and security IDs was done.

Current object C:\bin\util\backup\cwRsync\* will not be processed
No mapping between account names and security IDs was done.
Delete file: C:\bin\util\backup\cwRsync\bin\cygcrypt-0.dll

Completed

Then I attempted a reinstall:

Output folder: C:\bin\util\backup\cwRsyncServer\bin
Extract: xcacls.exe

Extract: cygz.dll
Generate batch file setperms.cmd to set permissions and ownerships
Output folder: C:\bin\util\backup\cwRsyncServer\bin
Extract: PrepUploadDir.exe
Extract: rsync.exe
Output folder: C:\bin\util\backup\cwRsyncServer
Output folder: C:\bin\util\backup\cwRsyncServer\doc
Extract: rsync.html

Extract: sshd.html
Output folder: C:\bin\util\backup\cwRsyncServer
Extract: rsyncd.conf
Extract: license.txt
Creating service account SvcwRsync
The option /D8NLDLO64 is unknown.

The syntax of this command is:

NET USER ]
username {password | *} /ADD
username

More help is available by typing NET HELPMSG 3506.

The user name could not be found.

More help is available by typing NET HELPMSG 2221.

Grant required privileges to the service account
Granting SeServiceLogonRight to SvcwRsync ... failed (GetAccountSid(SvcwRsync)=1332
Installing rsync daemon as a service
/cygdrive/c/bin/util/backup/cwRsyncServer/bin/cygrunsrv: Error installing a service: CreateService: Win32 error 1057:
The account name is invalid or does not exist.

/cygdrive/c/bin/util/backup/cwRsyncServer/bin/cygrunsrv: Error querying a service: OpenService: Win32 error 1060:
The specified service does not exist as an installed service.

Setting permissions on C:\bin\util\backup\cwRsyncServer (run setperms.cmd)
LookupAccountName : setowner 1332 No mapping between account names and security IDs was done.

Current object C:\bin\util\backup\cwRsyncServer will not be processed
LookupAccountName : setowner 1332 No mapping between account names and security IDs was done.

Current object C:\bin\util\backup\cwRsyncServer\* will not be processed
No mapping between account names and security IDs was done.
Write installation info to registry (HKLM\Software\Itefix\cwRsyncServer)
Write uninstall registry keys at \ "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\cwRsync Server"
Created uninstaller: C:\bin\util\backup\cwRsyncServer\uninstall.exe
Creating shortcuts

Completed

Here things fell apart because the generated password started with "/". You'll need to revise the password generator to be more restrictive in the character set it uses.

(Speaking of the generated password, can you display it in a control that can be selected and copied to the clipboard? Rather error prone to transcribe it by hand.)

Another uninstall:

Remove registry keys
Remove uninstaller
Delete file: C:\bin\util\backup\cwRsyncServer\uninstall.exe
Stop and remove NT services
/cygdrive/c/bin/util/backup/cwRsyncServer/bin/cygrunsrv: Error stopping a service: OpenService: Win32 error 1060:
The specified service does not exist as an installed service.

/cygdrive/c/bin/util/backup/cwRsyncServer/bin/cygrunsrv: Error removing a service: OpenService: Win32 error 1060:
The specified service does not exist as an installed service.

/cygdrive/c/bin/util/backup/cwRsyncServer/bin/cygrunsrv: Error stopping a service: OpenService: Win32 error 1060:
The specified service does not exist as an installed service.

/cygdrive/c/bin/util/backup/cwRsyncServer/bin/cygrunsrv: Error removing a service: OpenService: Win32 error 1060:
The specified service does not exist as an installed service.

Revoke service account rights and permissions
Revoking SeCreateTokenPrivilege from SvcwRsync ... failed (GetAccountSid(SvcwRsync)=1332
Revoking SeAssignPrimaryTokenPrivilege from SvcwRsync ... failed (GetAccountSid(SvcwRsync)=1332
Revoking SeIncreaseQuotaPrivilege from SvcwRsync ... failed (GetAccountSid(SvcwRsync)=1332
Revoking SeServiceLogonRight from SvcwRsync ... failed (GetAccountSid(SvcwRsync)=1332
Revoking SeTcbPrivilege from SvcwRsync ... failed (GetAccountSid(SvcwRsync)=1332
Revoking SeDenyBatchLogonRight from SvcwRsync ... failed (GetAccountSid(SvcwRsync)=1332
Revoking SeDenyInteractiveLogonRight from SvcwRsync ... failed (GetAccountSid(SvcwRsync)=1332
Revoking SeDenyNetworkLogonRight from SvcwRsync ... failed (GetAccountSid(SvcwRsync)=1332
Revoking SeDenyRemoteInteractiveLogonRight from SvcwRsync ... failed (GetAccountSid(SvcwRsync)=1332
Remove system accounts
The user name could not be found.

More help is available by typing NET HELPMSG 2221.

The user name could not be found.

More help is available by typing NET HELPMSG 2221.

Remove installation directory
LookupAccountName : setowner 1332 No mapping between account names and security IDs was done.

Current object C:\bin\util\backup\cwRsyncServer will not be processed
LookupAccountName : setowner 1332 No mapping between account names and security IDs was done.

Current object C:\bin\util\backup\cwRsyncServer\* will not be processed
No mapping between account names and security IDs was done.
Delete file: C:\bin\util\backup\cwRsyncServer\bin\cygcrypt-0.dll

Completed

And finally the install that worked:

Output folder: C:\bin\util\backup\cwRsyncServer\bin
Extract: xcacls.exe

Extract: license.txt
Creating service account SvcwRsync
The command completed successfully.

User name SvcwRsync
Full Name
Comment cwRsync service account
User's comment
Country code 000 (System Default)
Account active Yes
Account expires Never

Password last set 8/19/05 1:47 AM
Password expires 10/1/05 12:34 AM
Password changeable 8/19/05 1:47 AM
Password required Yes
User may change password Yes

Workstations allowed All
Logon script
User profile
Home directory
Last logon Never

Logon hours allowed All

Local Group Memberships *Users
Global Group memberships *None
The command completed successfully.

Grant required privileges to the service account
Granting SeServiceLogonRight to SvcwRsync ... successful
Installing rsync daemon as a service
Service : RsyncServer
Description : Rsync - open source utility that provides fast incremental file transfer
Current State : Stopped
Command : C:\bin\util\backup\cwRsyncServer\bin\rsync.exe --config rsyncd.conf --daemon --no-detach
Working Dir : C:\bin\util\backup\cwRsyncServer
stdin path : /dev/null
stdout path : C:\bin\util\backup\cwRsyncServer\rsyncd-stdin.log
stderr path : C:\bin\util\backup\cwRsyncServer\rsyncd-stderr.log
Special flags : --shutdown
Environment : CYGWIN="nontsec binmode"
Process Type : Own Process
Startup : Manual
Account : .\SvcwRsync

Setting permissions on C:\bin\util\backup\cwRsyncServer (run setperms.cmd)
Write installation info to registry (HKLM\Software\Itefix\cwRsyncServer)
Write uninstall registry keys at \ "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\cwRsync Server"
Created uninstaller: C:\bin\util\backup\cwRsyncServer\uninstall.exe
Creating shortcuts

Completed

Now the subkeys of "RsyncServer" look quite a but different.

Unfortunately I didn't think to save the log from the initial install attempt, so I don't know what specifically failed. I don't think it was due to the password (which was +XaPAx6t29).

-Tom

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

It does display a password in a message window and I do not have a binary called pwdgen on my machine. Where should it have installed it?

pwdgen is installed as a part of cwrsync installation and can be found in the directory bin. It seems that something went wrong during password generation. A slash in the password for example.

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

Here things fell apart because the generated password started with "/". You'll need to revise the password generator to be more restrictive in the character set it uses.

(Speaking of the generated password, can you display it in a control that can be selected and copied to the clipboard? Rather error prone to transcribe it by hand.)

......
Unfortunately I didn't think to save the log from the initial install attempt, so I don't know what specifically failed. I don't think it was due to the password (which was +XaPAx6t29).

-Tom

Thanks for a detailed test and feedback. I will revise password-generation logic to avoid characters troubling installation. Your request about clipboard functionality for generated passwords is also a very reasonable one :-)

I think your problem with the initial installation is caused by less-than-optimal treatment of previous installations. The installer tries to find if there is an existing installation and asks to remove it. It is better to add some additional checks to handle existing services. That will be adressed with the next release.

-Tev

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

The installation failed with all of the following passwords given:
dZ68qwS5E)
&J8j9eJVu8
ERC4vtf9(6
$VitM4eb80
BV%Y1p6m90

I can't imagine it didn't like any of those passwords. Any other ideas?

Is there a place in the documentation that explains how to do all of this stuff manually?

Thanks!

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

Also, here is the contents of my bin directory:
Directory of C:\cwRsyncServer\bin

bash.exe
cat.exe chmod.exe chown.exe
cygcrypt-0.dll cygcrypto-0.9.7.dll cygiconv-2.dll
cygintl-1.dll cygintl-2.dll cygintl-3.dll
cygminires.dll cygpath.exe cygpcre-0.dll
cygpcre.dll cygpopt-0.dll cygrunsrv.exe
cygwin1.dll cygz.dll false.exe
grep.exe listacc.exe mkdir.exe
mkgroup.exe mkpasswd.exe mount.exe
ntrights.exe PrepUploadDir.exe rm.exe
rsync.exe sed.exe setx.exe
sftp-server.exe sftp.exe ssh-add.exe
ssh-agent.exe ssh-keygen.exe ssh-keyscan.exe
ssh-keysign.exe ssh.exe sshd.exe
subinacl.exe touch.exe umount.exe
xcacls.exe
44 File(s) 6,361,557 bytes

No pwdgen.exe that I can see...

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

I think your problem with the initial installation is caused by less-than-optimal treatment of previous installations.

Yes, I suspect if I had uninstalled it first, instead of just renaming the directory, the new installation probably would have worked.

The installer tries to find if there is an existing installation and asks to remove it.

I was not prompted to remove my existing installation. What does the installer look for to determine if these is an existing installation? Maybe having renamed the directory threw it off.

It is better to add some additional checks to handle existing services. That will be adressed with the next release.

Yes, at minimum looking for the "RsyncServer" key.

Thanks for a detailed test and feedback.

You're welcome. I consider providing feedback my duty as an open source user and the least I can do to help contribute. Thanks for your efforts to assemble cwRsync.

-Tom

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

I too have a program installing the 2.0.2 version on W2K. I previously had 1.2.7 installed and it seems I've a LEGACY_RSYNCSERVER service in my registry. I can't uninstall it, because 1.2.7 says the service isn't found. I can't install 2.0.2 because it doesn't create a new service.When trying to delete it manually from the registry I get 'permission denied' even though I'm logged in as Administrator.
Now I have no working rsync server anymore!

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

When trying to delete it manually from the registry I get 'permission denied' even though I'm logged in as Administrator.
If you think you know what you're doing :-) you can use Rededit32 (instead of Regedit) to alter the permissions on the key in question.

-Tom

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

Try to use cygrunsrv -R RsyncServer to remove existing service.

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

When I try to remove the service it says it doesn't exist. Yet, when I try to re-install it says it failed to create the service. At no time can I get the RryncServer to show up in the services list, except if I re-install 1.2.7, then it appears. When I uninstall 1.2.7, the service goes away, yet 2.0.2 can't create it appearently. When I search the registry I always see some lingering LEGACY_RSYNCSERVER entries, even though the services list doesn't show the RsyncServer..What is this OpenService? I don't see that either..

Manually removing RsyncServer:
C:\Program Files\cwRsyncServer\bin>cygrunsrv -R RsyncServer
cygrunsrv: Error removing a service: OpenService: Win32 error 1060:
The specified service does not exist as an installed service.

Installing 2.0.2
...
Grant required privileges to the service account
Granting SeServiceLogonRight to SvcwRsync ... successful
Installing rsync daemon as a service
/cygdrive/c/Program Files/cwRsyncServer/bin/cygrunsrv: Error querying a service: OpenService: Win32 error 1060:
The specified service does not exist as an installed service.
...

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

Glad to see I'm not the only one having the problem.

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

What I observe that you try to upgrade from version 1.2.7 to 2.0.2. Due to differences between version 1.x.x and 2.x.x, it seems that a couple of things are not being handled properly.

What I recommend is to install/uninstall version 1.2.7 and try version 2.0.2 when you are sure that version 1.2.7 is gone. A reboot between installations can also help.

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

OK, this is what I did:-First I have an installed 1.2.7 with RSyncServer listed in the Services listing
-I uninstall 1.2.7 using the uninstall of 1.2.7 (see below), no errors.
-Reboot
-Install 2.0.2 (see below), no errors.
-No RSyncServer listed in the services listing
-Reboot
-Still no RSyncServer listed in the services listing
-Now what?

Uninstall 1.2.7:
Remove registry keys
Stop and remove NT service

The RsyncServer service was stopped successfully.

The service was successfully deleted!
Remove service account
The command completed successfully.

Remove uninstaller
Delete file: C:\cwrsync\uninstall.exe
Remove shortcuts
Remove folder: C:\Documents and Settings\Administrator\Start Menu\Programs\cwRsync
Remove installation directory
Remove folder: C:\cwrsync
Completed

Install 2.0.2:
Output folder: C:\Program Files\cwRsyncServer\bin
Extract: xcacls.exe
Extract: subinacl.exe
Extract: ntrights.exe
Extract: cygrunsrv.exe
Extract: listacc.exe
Extract: pwdgen.exe
Extract: cygcrypt-0.dll
Extract: cygcrypto-0.9.8.dll... 100%
Extract: cygiconv-2.dll... 100%
Extract: cygintl-1.dll
Extract: cygintl-2.dll
Extract: cygintl-3.dll
Extract: cygminires.dll
Extract: cygpcre-0.dll
Extract: cygpcre.dll
Extract: cygpopt-0.dll
Extract: cygwin1.dll
Extract: cygz.dll
Generate batch file setperms.cmd to set permissions and ownerships
Output folder: C:\Program Files\cwRsyncServer\bin
Extract: PrepUploadDir.exe
Extract: rsync.exe
Output folder: C:\Program Files\cwRsyncServer
Output folder: C:\Program Files\cwRsyncServer\doc
Extract: rsync.html
Extract: rsyncd-conf.html
Extract: scp.html
Extract: sftp-server.html
Extract: sftp.html
Extract: ssh-add.html
Extract: ssh-agent.html
Extract: ssh-keygen.html
Extract: ssh-keyscan.html
Extract: ssh-keysign.html
Extract: ssh.html
Extract: sshd.html
Output folder: C:\Program Files\cwRsyncServer
Extract: rsyncd.conf
Extract: license.txt
Creating service account SvcwRsync
The command completed successfully.

User name SvcwRsync
Full Name
Comment cwRsync service account
User's comment
Country code 000 (System Default)
Account active Yes
Account expires Never

Password last set 8/20/2005 9:36 AM
Password expires 10/2/2005 8:24 AM
Password changeable 8/20/2005 9:36 AM
Password required Yes
User may change password Yes

Workstations allowed All
Logon script
User profile
Home directory
Last logon Never

Logon hours allowed All

Local Group Memberships *Users
Global Group memberships *None
The command completed successfully.

Grant required privileges to the service account
Granting SeServiceLogonRight to SvcwRsync ... successful
Installing rsync daemon as a service
Setting permissions on C:\Program Files\cwRsyncServer (run setperms.cmd)
Write installation info to registry (HKLM\Software\Itefix\cwRsyncServer)
Write uninstall registry keys at \ "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\cwRsync Server"
Created uninstaller: C:\Program Files\cwRsyncServer\uninstall.exe
Creating shortcuts
Create folder: C:\Documents and Settings\Administrator\Start Menu\Programs\cwRsync Server
Output folder: C:\Program Files\cwRsyncServer
Create shortcut: C:\Documents and Settings\Administrator\Start Menu\Programs\cwRsync Server\01. rsyncd.conf.lnk
Create shortcut: C:\Documents and Settings\Administrator\Start Menu\Programs\cwRsync Server\02. Prep a Dir for Upload.lnk
Create shortcut: C:\Documents and Settings\Administrator\Start Menu\Programs\cwRsync Server\03. Web site.lnk
Create shortcut: C:\Documents and Settings\Administrator\Start Menu\Programs\cwRsync Server\10. DONATE!.lnk
Create folder: C:\Documents and Settings\Administrator\Start Menu\Programs\cwRsync Server\Documentation
Create shortcut: C:\Documents and Settings\Administrator\Start Menu\Programs\cwRsync Server\Documentation\rsync.lnk
Create shortcut: C:\Documents and Settings\Administrator\Start Menu\Programs\cwRsync Server\Documentation\rsyncd-conf.lnk
Create shortcut: C:\Documents and Settings\Administrator\Start Menu\Programs\cwRsync Server\11. Uninstall cwRsync Server.lnk
Completed

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

I don't get it :-) Everything seems normal except one thing:

--------- 2.0.2 log file --------------
Installing rsync daemon as a service
?????
Setting permissions on C:\Program Files\cwRsyncServer (run setperms.cmd)
----------------------------------------

Between the lines above, there should be output from the command
cygrunsrv --verbose --query RsyncServer. It will produce some output even if the service does not exist.

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

Please don't forget me too :) - it looks like there are two of us experiencing the same issue - that 2.0.2 does not properly install the service on Win2000. I have never installed this program before, so it is unrelated to previous versions. What is the command that the installer runs to install the service? I can try running it manually and report back what error it gives.
Thanks!

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

I too believe it has little (if anything) to do with my previous installation. I did notice that cygrunsrv.exe crashes on load, which explains why cygrunsrv.exe didn't output anything during the installation. I ran the program under a debugger and obtained the following trace:(This explains why the service didn't get installed (or started) for that matter.
Question is now, why did cygrunsrv.exe crash?

--------------------------------------------------------------------------------
Starting profile on 8/22/2005 at 4:48:42 PM

Operating System: Microsoft Windows 2000 Advanced Server (32-bit), version 5.00.2195 Service Pack 4
Program Executable: c:\program files\cwrsyncserver\bin\CYGRUNSRV.EXE
Program Arguments: --verbose --query RsyncServer
Starting Directory: C:\Program Files\cwRsyncServer\bin\
Search Path: D:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem

Options Selected:
Simulate ShellExecute by inserting any App Paths directories into the PATH environment variable.
Log DllMain calls for process attach and process detach messages.
Hook the process to gather more detailed dependency information.
Log LoadLibrary function calls.
Log GetProcAddress function calls.
Log thread information.
Use simple thread numbers instead of actual thread IDs.
Log first chance exceptions.
Log debug output messages.
Log a time stamp with each line of log.
Automatically open and profile child processes.
--------------------------------------------------------------------------------

00:00:00.000: Started "CYGRUNSRV.EXE" (process 0xC88) at address 0x00400000 by thread 1. Successfully hooked module.
00:00:00.000: Loaded "NTDLL.DLL" at address 0x77F80000 by thread 1. Successfully hooked module.
00:00:00.000: Loaded "CYGWIN1.DLL" at address 0x61000000 by thread 1. Successfully hooked module.
00:00:00.000: Loaded "ADVAPI32.DLL" at address 0x7C2D0000 by thread 1. Successfully hooked module.
00:00:00.125: Loaded "KERNEL32.DLL" at address 0x7C570000 by thread 1. Successfully hooked module.
00:00:00.125: Loaded "RPCRT4.DLL" at address 0x77D30000 by thread 1. Successfully hooked module.
00:00:00.125: Loaded "USER32.DLL" at address 0x77E10000 by thread 1. Successfully hooked module.
00:00:00.125: Loaded "GDI32.DLL" at address 0x77F40000 by thread 1. Successfully hooked module.
00:00:00.125: Entrypoint reached. All implicit modules have been loaded.
00:00:00.125: DllMain(0x7C570000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "KERNEL32.DLL" called by thread 1.
00:00:00.140: DllMain(0x7C570000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "KERNEL32.DLL" returned 1 (0x1) by thread 1.
00:00:00.172: Injected "DEPENDS.DLL" at address 0x08370000 by thread 1.
00:00:00.172: DllMain(0x08370000, DLL_PROCESS_ATTACH, 0x00000000) in "DEPENDS.DLL" called by thread 1.
00:00:00.172: DllMain(0x08370000, DLL_PROCESS_ATTACH, 0x00000000) in "DEPENDS.DLL" returned 1 (0x1) by thread 1.
00:00:00.359: DllMain(0x77D30000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "RPCRT4.DLL" called by thread 1.
00:00:00.375: LoadLibraryA("kernel32.dll") called from "RPCRT4.DLL" at address 0x77D6039B by thread 1.
00:00:00.375: LoadLibraryA("kernel32.dll") returned 0x7C570000 by thread 1.
00:00:00.625: GetProcAddress(0x7C570000 , "InterlockedCompareExchange") called from "RPCRT4.DLL" at address 0x77D603AB and returned 0x7C57B5BC by thread 1.
00:00:00.625: DllMain(0x77D30000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "RPCRT4.DLL" returned 1 (0x1) by thread 1.
00:00:00.640: DllMain(0x7C2D0000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "ADVAPI32.DLL" called by thread 1.
00:00:00.640: DllMain(0x7C2D0000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "ADVAPI32.DLL" returned 1 (0x1) by thread 1.
00:00:00.640: DllMain(0x61000000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "CYGWIN1.DLL" called by thread 1.
00:00:00.656: Thread 2 started in "KERNEL32.DLL" at address 0x7C57B700.
00:00:00.656: LoadLibraryA("advapi32") called from "CYGWIN1.DLL" at address 0x61001251 by thread 1.
00:00:00.656: LoadLibraryA("advapi32") returned 0x7C2D0000 by thread 1.
00:00:00.672: GetProcAddress(0x7C2D0000 , "InitializeSecurityDescriptor") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2ED90C by thread 1.
00:00:00.672: GetProcAddress(0x7C2D0000 , "SetSecurityDescriptorDacl") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2ED92D by thread 1.
00:00:00.687: GetProcAddress(0x7C2D0000 , "OpenProcessToken") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2EDA89 by thread 1.
00:00:00.687: GetProcAddress(0x7C2D0000 , "LookupPrivilegeValueA") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2ED762 by thread 1.
00:00:00.687: LoadLibraryW("rpcrt4.dll") called from "RPCRT4.DLL" at address 0x77D4EE71 by thread 1.
00:00:00.687: LoadLibraryW("rpcrt4.dll") returned 0x77D30000 by thread 1.
00:00:00.812: GetProcAddress(0x7C2D0000 , "AdjustTokenPrivileges") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2ED6D0 by thread 1.
00:00:00.828: GetProcAddress(0x7C2D0000 , "GetUserNameA") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2EA2C0 by thread 1.
00:00:00.828: GetProcAddress(0x7C2D0000 , "GetTokenInformation") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2EDAAE by thread 1.
00:00:00.828: GetProcAddress(0x7C2D0000 , "SetTokenInformation") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C300055 by thread 1.
00:00:00.828: GetProcAddress(0x7C2D0000 , "InitializeAcl") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2ED956 by thread 1.
00:00:00.843: GetProcAddress(0x7C2D0000 , "AddAccessAllowedAce") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2ED97B by thread 1.
00:00:00.843: GetProcAddress(0x7C2D0000 , "FindFirstFreeAce") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C300C9B by thread 1.
00:00:00.843: GetProcAddress(0x7C2D0000 , "GetSecurityDescriptorDacl") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2E6828 by thread 1.
00:00:00.859: GetProcAddress(0x7C2D0000 , "SetKernelObjectSecurity") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2E2259 by thread 1.
00:00:00.859: GetProcAddress(0x7C2D0000 , "GetSidIdentifierAuthority") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2DE964 by thread 1.
00:00:00.875: GetProcAddress(0x7C2D0000 , "GetSidSubAuthorityCount") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2E39D6 by thread 1.
00:00:00.875: GetProcAddress(0x7C2D0000 , "GetSidSubAuthority") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2E39B8 by thread 1.
00:00:00.875: GetProcAddress(0x7C2D0000 , "RegOpenKeyExA") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2EF4C0 by thread 1.
00:00:00.890: GetProcAddress(0x7C2D0000 , "RegCreateKeyExA") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2ED804 by thread 1.
00:00:00.890: GetProcAddress(0x7C2D0000 , "RegQueryValueExA") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2EF5E6 by thread 1.
00:00:00.906: GetProcAddress(0x7C2D0000 , "RegEnumKeyExA") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2EA06F by thread 1.
00:00:01.187: GetProcAddress(0x7C2D0000 , "ImpersonateLoggedOnUser") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2E2D23 by thread 1.
00:00:01.187: GetProcAddress(0x7C2D0000 , "DuplicateTokenEx") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2E68C8 by thread 1.
00:00:01.187: DllMain(0x61000000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "CYGWIN1.DLL" returned 1 (0x1) by thread 1.
00:00:01.203: DllMain(0x77E10000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "USER32.DLL" called by thread 1.
00:00:01.203: DllMain(0x77E10000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "USER32.DLL" returned 28311553 (0x1B00001) by thread 1.
00:00:01.218: Thread 2 exited with code 0 (0x0).
00:00:01.218: LoadLibraryA("kernel32") called from "CYGWIN1.DLL" at address 0x61001251 by thread 1.
00:00:01.234: LoadLibraryA("kernel32") returned 0x7C570000 by thread 1.
00:00:01.250: GetProcAddress(0x7C570000 , "IsDebuggerPresent") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C57F5A1 by thread 1.
00:00:01.265: cYgFFFFFFFF 610EC77C
00:00:01.265: GetProcAddress(0x7C2D0000 , "CopySid") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2E6879 by thread 1.
00:00:01.281: GetProcAddress(0x7C2D0000 , "InitializeSid") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2E2A61 by thread 1.
00:00:01.390: GetProcAddress(0x7C2D0000 , "EqualSid") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C2E8C25 by thread 1.
00:00:01.390: Thread 3 started in "KERNEL32.DLL" at address 0x7C57B700.
00:00:01.406: cYgstd 22eeb0 d 3
00:00:01.406: GetProcAddress(0x7C570000 , "GetConsoleWindow") called from "CYGWIN1.DLL" at address 0x6100119E and returned 0x7C5AD322 by thread 1.
00:00:01.422: First chance exception 0xC0000005 (Access Violation) occurred in "NTDLL.DLL" at address 0x77FB866F by thread 3.
00:00:01.422: Second chance exception 0xC0000005 (Access Violation) occurred in "NTDLL.DLL" at address 0x77FB866F by thread 3.
00:00:01.422: Thread 1 exited with code 128 (0x80).
00:00:01.437: Exited "CYGRUNSRV.EXE" (process 0xC88) with code 128 (0x80) by thread 3.

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

BTW. the only reason I tried to upgrad to 2.0.2 is because 1.2.7 stopped working for no apparent reason. Below are two traces of the 1.2.7 "rsync /h" command. The first failed, the second succeeded. Does anyone know why it crashed when seemingly trying to do the following:LoadLibraryA("user32") called from "CYGWIN1.DLL" at address 0x610012B9.
On one server it consistently crashes, on another service it works only once in a while.
The only thing that has changed on this server is that W2K updates have been applied.
So both 1.2.7 and 2.0.2 seem to have the same problem that the any cygwin1.dll based application fails to start up due to DLL(?)/LoadLibrary(?) problem.

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

Log file from "rsync /h".. first one that didn't work, the second one from one that did work. (Same machine, same executable, just ran it twice)--------------------------------------------------------------------------------
Starting profile on 8/22/2005 at 5:11:30 PM

Operating System: Microsoft Windows 2000 Advanced Server (32-bit), version 5.00.2195 Service Pack 4
Program Executable: c:\cwrsync\RSYNC.EXE
Program Arguments: /h
Starting Directory: C:\cwrsync\
Search Path: C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN

Options Selected:
Simulate ShellExecute by inserting any App Paths directories into the PATH environment variable.
Log DllMain calls for process attach and process detach messages.
Hook the process to gather more detailed dependency information.
Log LoadLibrary function calls.
Log GetProcAddress function calls.
Log debug output messages.
Automatically open and profile child processes.
--------------------------------------------------------------------------------

Started "RSYNC.EXE" (process 0x988) at address 0x00400000. Successfully hooked module.
Loaded "NTDLL.DLL" at address 0x77F80000. Successfully hooked module.
Loaded "CYGWIN1.DLL" at address 0x61000000. Successfully hooked module.
Loaded "ADVAPI32.DLL" at address 0x7C2D0000. Successfully hooked module.
Loaded "KERNEL32.DLL" at address 0x7C570000. Successfully hooked module.
Loaded "RPCRT4.DLL" at address 0x77D30000. Successfully hooked module.
Entrypoint reached. All implicit modules have been loaded.
DllMain(0x7C570000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "KERNEL32.DLL" called.
DllMain(0x7C570000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "KERNEL32.DLL" returned 1 (0x1).
Injected "DEPENDS.DLL" at address 0x08370000.
DllMain(0x08370000, DLL_PROCESS_ATTACH, 0x00000000) in "DEPENDS.DLL" called.
DllMain(0x08370000, DLL_PROCESS_ATTACH, 0x00000000) in "DEPENDS.DLL" returned 1 (0x1).
DllMain(0x77D30000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "RPCRT4.DLL" called.
LoadLibraryA("kernel32.dll") called from "RPCRT4.DLL" at address 0x77D6039B.
LoadLibraryA("kernel32.dll") returned 0x7C570000.
GetProcAddress(0x7C570000 , "InterlockedCompareExchange") called from "RPCRT4.DLL" at address 0x77D603AB and returned 0x7C57B5BC.
DllMain(0x77D30000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "RPCRT4.DLL" returned 1 (0x1).
DllMain(0x7C2D0000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "ADVAPI32.DLL" called.
DllMain(0x7C2D0000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "ADVAPI32.DLL" returned 1 (0x1).
DllMain(0x61000000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "CYGWIN1.DLL" called.
LoadLibraryA("advapi32") called from "CYGWIN1.DLL" at address 0x610012B9.
LoadLibraryA("advapi32") returned 0x7C2D0000.
GetProcAddress(0x7C2D0000 , "InitializeSecurityDescriptor") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2ED90C.
GetProcAddress(0x7C2D0000 , "SetSecurityDescriptorDacl") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2ED92D.
GetProcAddress(0x7C2D0000 , "LookupPrivilegeValueA") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2ED762.
LoadLibraryW("rpcrt4.dll") called from "RPCRT4.DLL" at address 0x77D4EE71.
LoadLibraryW("rpcrt4.dll") returned 0x77D30000.
GetProcAddress(0x7C2D0000 , "OpenProcessToken") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2EDA89.
GetProcAddress(0x7C2D0000 , "AdjustTokenPrivileges") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2ED6D0.
GetProcAddress(0x7C2D0000 , "GetUserNameA") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2EA2C0.
GetProcAddress(0x7C2D0000 , "GetTokenInformation") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2EDAAE.
GetProcAddress(0x7C2D0000 , "SetTokenInformation") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C300055.
GetProcAddress(0x7C2D0000 , "InitializeAcl") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2ED956.
GetProcAddress(0x7C2D0000 , "AddAccessAllowedAce") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2ED97B.
GetProcAddress(0x7C2D0000 , "FindFirstFreeAce") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C300C9B.
GetProcAddress(0x7C2D0000 , "GetSecurityDescriptorDacl") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2E6828.
GetProcAddress(0x7C2D0000 , "SetKernelObjectSecurity") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2E2259.
GetProcAddress(0x7C2D0000 , "GetSidIdentifierAuthority") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2DE964.
GetProcAddress(0x7C2D0000 , "GetSidSubAuthorityCount") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2E39D6.
GetProcAddress(0x7C2D0000 , "GetSidSubAuthority") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2E39B8.
GetProcAddress(0x7C2D0000 , "RegCreateKeyExA") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2ED804.
GetProcAddress(0x7C2D0000 , "RegQueryValueExA") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2EF5E6.
GetProcAddress(0x7C2D0000 , "RegEnumKeyExA") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2EA06F.
DllMain(0x61000000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "CYGWIN1.DLL" returned 1 (0x1).
LoadLibraryA("kernel32") called from "CYGWIN1.DLL" at address 0x610012B9.
LoadLibraryA("kernel32") returned 0x7C570000.
GetProcAddress(0x7C570000 , "IsDebuggerPresent") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C57F5A1.
cYgFFFFFFFF 610F6C24
GetProcAddress(0x7C2D0000 , "CopySid") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2E6879.
GetProcAddress(0x7C2D0000 , "InitializeSid") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2E2A61.
GetProcAddress(0x7C2D0000 , "EqualSid") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2E8C25.
cYgstd 22f000 d 3
GetProcAddress(0x7C570000 , "GetConsoleWindow") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C5AD322.
Second chance exception 0xC0000005 (Access Violation) occurred in "CYGWIN1.DLL" at address 0x61093A12.
Exited "RSYNC.EXE" (process 0x988) with code 128 (0x80).
--------------------------------------------------------------------------------
Starting profile on 8/22/2005 at 5:11:52 PM

Operating System: Microsoft Windows 2000 Advanced Server (32-bit), version 5.00.2195 Service Pack 4
Program Executable: c:\cwrsync\RSYNC.EXE
Program Arguments: /h
Starting Directory: C:\cwrsync\
Search Path: C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN

Options Selected:
Simulate ShellExecute by inserting any App Paths directories into the PATH environment variable.
Log DllMain calls for process attach and process detach messages.
Hook the process to gather more detailed dependency information.
Log LoadLibrary function calls.
Log GetProcAddress function calls.
Log debug output messages.
Automatically open and profile child processes.
--------------------------------------------------------------------------------

Started "RSYNC.EXE" (process 0x9B8) at address 0x00400000. Successfully hooked module.
Loaded "NTDLL.DLL" at address 0x77F80000. Successfully hooked module.
Loaded "CYGWIN1.DLL" at address 0x61000000. Successfully hooked module.
Loaded "ADVAPI32.DLL" at address 0x7C2D0000. Successfully hooked module.
Loaded "KERNEL32.DLL" at address 0x7C570000. Successfully hooked module.
Loaded "RPCRT4.DLL" at address 0x77D30000. Successfully hooked module.
Entrypoint reached. All implicit modules have been loaded.
DllMain(0x7C570000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "KERNEL32.DLL" called.
DllMain(0x7C570000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "KERNEL32.DLL" returned 1 (0x1).
Injected "DEPENDS.DLL" at address 0x08370000.
DllMain(0x08370000, DLL_PROCESS_ATTACH, 0x00000000) in "DEPENDS.DLL" called.
DllMain(0x08370000, DLL_PROCESS_ATTACH, 0x00000000) in "DEPENDS.DLL" returned 1 (0x1).
DllMain(0x77D30000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "RPCRT4.DLL" called.
LoadLibraryA("kernel32.dll") called from "RPCRT4.DLL" at address 0x77D6039B.
LoadLibraryA("kernel32.dll") returned 0x7C570000.
GetProcAddress(0x7C570000 , "InterlockedCompareExchange") called from "RPCRT4.DLL" at address 0x77D603AB and returned 0x7C57B5BC.
DllMain(0x77D30000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "RPCRT4.DLL" returned 1 (0x1).
DllMain(0x7C2D0000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "ADVAPI32.DLL" called.
DllMain(0x7C2D0000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "ADVAPI32.DLL" returned 1 (0x1).
DllMain(0x61000000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "CYGWIN1.DLL" called.
LoadLibraryA("advapi32") called from "CYGWIN1.DLL" at address 0x610012B9.
LoadLibraryA("advapi32") returned 0x7C2D0000.
GetProcAddress(0x7C2D0000 , "InitializeSecurityDescriptor") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2ED90C.
GetProcAddress(0x7C2D0000 , "SetSecurityDescriptorDacl") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2ED92D.
GetProcAddress(0x7C2D0000 , "LookupPrivilegeValueA") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2ED762.
LoadLibraryW("rpcrt4.dll") called from "RPCRT4.DLL" at address 0x77D4EE71.
LoadLibraryW("rpcrt4.dll") returned 0x77D30000.
GetProcAddress(0x7C2D0000 , "OpenProcessToken") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2EDA89.
GetProcAddress(0x7C2D0000 , "AdjustTokenPrivileges") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2ED6D0.
GetProcAddress(0x7C2D0000 , "GetUserNameA") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2EA2C0.
GetProcAddress(0x7C2D0000 , "GetTokenInformation") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2EDAAE.
GetProcAddress(0x7C2D0000 , "SetTokenInformation") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C300055.
GetProcAddress(0x7C2D0000 , "InitializeAcl") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2ED956.
GetProcAddress(0x7C2D0000 , "AddAccessAllowedAce") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2ED97B.
GetProcAddress(0x7C2D0000 , "FindFirstFreeAce") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C300C9B.
GetProcAddress(0x7C2D0000 , "GetSecurityDescriptorDacl") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2E6828.
GetProcAddress(0x7C2D0000 , "SetKernelObjectSecurity") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2E2259.
GetProcAddress(0x7C2D0000 , "GetSidIdentifierAuthority") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2DE964.
GetProcAddress(0x7C2D0000 , "GetSidSubAuthorityCount") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2E39D6.
GetProcAddress(0x7C2D0000 , "GetSidSubAuthority") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2E39B8.
GetProcAddress(0x7C2D0000 , "RegCreateKeyExA") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2ED804.
GetProcAddress(0x7C2D0000 , "RegQueryValueExA") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2EF5E6.
GetProcAddress(0x7C2D0000 , "RegEnumKeyExA") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2EA06F.
DllMain(0x61000000, DLL_PROCESS_ATTACH, 0x0022FD1C) in "CYGWIN1.DLL" returned 1 (0x1).
LoadLibraryA("kernel32") called from "CYGWIN1.DLL" at address 0x610012B9.
LoadLibraryA("kernel32") returned 0x7C570000.
GetProcAddress(0x7C570000 , "IsDebuggerPresent") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C57F5A1.
cYgFFFFFFFF 610F6C24
GetProcAddress(0x7C2D0000 , "CopySid") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2E6879.
GetProcAddress(0x7C2D0000 , "InitializeSid") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2E2A61.
GetProcAddress(0x7C2D0000 , "EqualSid") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C2E8C25.
cYgstd 22f000 d 3
GetProcAddress(0x7C570000 , "GetConsoleWindow") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x7C5AD322.
LoadLibraryA("user32") called from "CYGWIN1.DLL" at address 0x610012B9.
Loaded "USER32.DLL" at address 0x77E10000. Successfully hooked module.
Loaded "GDI32.DLL" at address 0x77F40000. Successfully hooked module.
DllMain(0x77E10000, DLL_PROCESS_ATTACH, 0x00000000) in "USER32.DLL" called.
DllMain(0x77E10000, DLL_PROCESS_ATTACH, 0x00000000) in "USER32.DLL" returned 28311553 (0x1B00001).
LoadLibraryA("user32") returned 0x77E10000.
GetProcAddress(0x77E10000 , "GetKeyboardLayout") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x77E20DC9.
LoadLibraryA("ntdll") called from "CYGWIN1.DLL" at address 0x610012B9.
LoadLibraryA("ntdll") returned 0x77F80000.
GetProcAddress(0x77F80000 , "RtlIsDosDeviceName_U") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x77F89296.
GetProcAddress(0x77F80000 , "NtCreateFile") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x77F88278.
GetProcAddress(0x77F80000 , "RtlNtStatusToDosError") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x77FAC14A.
GetProcAddress(0x77F80000 , "NtQuerySystemInformation") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x77F889DC.
LoadLibraryA("psapi") called from "CYGWIN1.DLL" at address 0x610012B9.
Loaded "PSAPI.DLL" at address 0x690A0000. Successfully hooked module.
DllMain(0x690A0000, DLL_PROCESS_ATTACH, 0x00000000) in "PSAPI.DLL" called.
DllMain(0x690A0000, DLL_PROCESS_ATTACH, 0x00000000) in "PSAPI.DLL" returned 131073 (0x20001).
LoadLibraryA("psapi") returned 0x690A0000.
GetProcAddress(0x690A0000 , "GetProcessMemoryInfo") called from "CYGWIN1.DLL" at address 0x6100122E and returned 0x690A3233.
DllMain(0x690A0000, DLL_PROCESS_DETACH, 0x00000001) in "PSAPI.DLL" called.
DllMain(0x690A0000, DLL_PROCESS_DETACH, 0x00000001) in "PSAPI.DLL" returned 131073 (0x20001).
DllMain(0x77E10000, DLL_PROCESS_DETACH, 0x00000001) in "USER32.DLL" called.
DllMain(0x77E10000, DLL_PROCESS_DETACH, 0x00000001) in "USER32.DLL" returned 1 (0x1).
DllMain(0x08370000, DLL_PROCESS_DETACH, 0x00000001) in "DEPENDS.DLL" called.
DllMain(0x08370000, DLL_PROCESS_DETACH, 0x00000001) in "DEPENDS.DLL" returned 1 (0x1).
DllMain(0x61000000, DLL_PROCESS_DETACH, 0x00000001) in "CYGWIN1.DLL" called.
DllMain(0x61000000, DLL_PROCESS_DETACH, 0x00000001) in "CYGWIN1.DLL" returned 1 (0x1).
DllMain(0x7C2D0000, DLL_PROCESS_DETACH, 0x00000001) in "ADVAPI32.DLL" called.
DllMain(0x7C2D0000, DLL_PROCESS_DETACH, 0x00000001) in "ADVAPI32.DLL" returned 1 (0x1).
DllMain(0x77D30000, DLL_PROCESS_DETACH, 0x00000001) in "RPCRT4.DLL" called.
DllMain(0x77D30000, DLL_PROCESS_DETACH, 0x00000001) in "RPCRT4.DLL" returned 1 (0x1).
DllMain(0x7C570000, DLL_PROCESS_DETACH, 0x00000001) in "KERNEL32.DLL" called.
DllMain(0x7C570000, DLL_PROCESS_DETACH, 0x00000001) in "KERNEL32.DLL" returned 1 (0x1).
Exited "RSYNC.EXE" (process 0x9B8) with code 1 (0x1).

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

Here is the full output of a plain install, in case it helps:
Output folder: C:\Program Files\cwRsyncServer\bin
Extract: xcacls.exe
Extract: subinacl.exe
Extract: ntrights.exe
Extract: cygrunsrv.exe
Extract: listacc.exe
Extract: pwdgen.exe
Extract: cygcrypt-0.dll
Extract: cygcrypto-0.9.8.dll
Extract: cygiconv-2.dll
Extract: cygintl-1.dll
Extract: cygintl-2.dll
Extract: cygintl-3.dll
Extract: cygminires.dll
Extract: cygpcre-0.dll
Extract: cygpcre.dll
Extract: cygpopt-0.dll
Extract: cygwin1.dll
Extract: cygz.dll
Generate batch file setperms.cmd to set permissions and ownerships
Output folder: C:\Program Files\cwRsyncServer\bin
Extract: PrepUploadDir.exe
Extract: rsync.exe
Output folder: C:\Program Files\cwRsyncServer
Output folder: C:\Program Files\cwRsyncServer\doc
Extract: rsync.html
Extract: rsyncd-conf.html
Extract: scp.html
Extract: sftp-server.html
Extract: sftp.html
Extract: ssh-add.html
Extract: ssh-agent.html
Extract: ssh-keygen.html
Extract: ssh-keyscan.html
Extract: ssh-keysign.html
Extract: ssh.html
Extract: sshd.html
Output folder: C:\Program Files\cwRsyncServer
Extract: rsyncd.conf
Extract: license.txt
Creating service account SvcwRsync
The command completed successfully.

User name SvcwRsync
Full Name
Comment cwRsync service account
User's comment
Country code 000 (System Default)
Account active Yes
Account expires Never

Password last set 8/23/2005 8:54 AM
Password expires 10/5/2005 7:42 AM
Password changeable 8/23/2005 8:54 AM
Password required Yes
User may change password Yes

Workstations allowed All
Logon script
User profile
Home directory
Last logon Never

Logon hours allowed All

Local Group Memberships *Users
Global Group memberships *None
The command completed successfully.

Grant required privileges to the service account
Granting SeServiceLogonRight to SvcwRsync ... successful
Installing rsync daemon as a service
/cygdrive/c/Program Files/cwRsyncServer/bin/cygrunsrv: Error querying a service: OpenService: Win32 error 1060:
The specified service does not exist as an installed service.

Setting permissions on C:\Program Files\cwRsyncServer (run setperms.cmd)
Write installation info to registry (HKLM\Software\Itefix\cwRsyncServer)
Write uninstall registry keys at \ "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\cwRsync Server"
Created uninstaller: C:\Program Files\cwRsyncServer\uninstall.exe
Creating shortcuts
Create folder: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server
Output folder: C:\Program Files\cwRsyncServer
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\01. rsyncd.conf.lnk
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\02. Prep a Dir for Upload.lnk
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\03. Web site.lnk
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\10. DONATE!.lnk
Create folder: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\Documentation
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\Documentation\rsync.lnk
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\Documentation\rsyncd-conf.lnk
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\11. Uninstall cwRsync Server.lnk
Output folder: C:\Program Files\cwRsyncServer\bin
Extract: bash.exe
Extract: chmod.exe
Extract: chown.exe
Extract: cygpath.exe
Extract: false.exe
Extract: grep.exe
Extract: mkdir.exe
Extract: rm.exe
Extract: cat.exe
Extract: mkgroup.exe
Extract: mkpasswd.exe
Extract: mount.exe
Extract: sed.exe
Extract: setx.exe
Extract: ssh.exe
Extract: sshd.exe
Extract: sftp.exe
Extract: sftp-server.exe
Extract: ssh-add.exe
Extract: ssh-agent.exe
Extract: ssh-keygen.exe
Extract: ssh-keyscan.exe
Extract: ssh-keysign.exe
Extract: touch.exe
Extract: umount.exe
Output folder: C:\Program Files\cwRsyncServer
Output folder: C:\Program Files\cwRsyncServer\etc
Extract: moduli
Extract: moduli.bak
Extract: profile
Extract: ssh_config
Extract: sshd_config
Output folder: C:\Program Files\cwRsyncServer
Set cygwin root to cwRsyncServer inst.directory
mount: warning - /usr/bin does not exist.
C:\Program Files\cwRsyncServer\bin on /usr/bin type system (binmode)
C:\Program Files\cwRsyncServer on / type system (binmode)
c: on /cygdrive/c type user (binmode,noumount)
d: on /cygdrive/d type user (binmode,noumount)
Set system-wide CYGWIN environment variable to -binmode ntsec tty-
Make initial /etc/group and /etc/passwd

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\mkgroup" -l 1>"C:\Program Files\cwRsyncServer\etc\group"

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\mkpasswd" -l 1>"C:\Program Files\cwRsyncServer\etc\passwd"

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\sed" "3,$d" /etc/passwd 1>"C:\Program Files\cwRsyncServer\etc\passwd.new"

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\cat" /etc/passwd.new 1>"C:\Program Files\cwRsyncServer\etc\passwd"
Delete file: C:\Program Files\cwRsyncServer\_tmp.cmd
Delete file: C:\Program Files\cwRsyncServer\etc\passwd.new
Generate some required directories and files
Generate host keys
Generate keys for service account

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\cat" /var/SvcwRsync/.ssh/cwrsync.pub 1>"C:\Program Files\cwRsyncServer\var\SvcwRsync\.ssh\authorized_keys"

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\cat" /var/SvcwRsync/.ssh/cwrsync.pub 1>"C:\Program Files\cwRsyncServer\var\SvcwRsync\.ssh\authorized_keys2"
Delete file: C:\Program Files\cwRsyncServer\_tmp.cmd
Generate sshd account for privilege separation
The command completed successfully.

User name sshd
Full Name
Comment SSHD privilege separation user
User's comment
Country code 000 (System Default)
Account active No
Account expires Never

Password last set 8/23/2005 8:55 AM
Password expires 10/5/2005 7:43 AM
Password changeable 8/23/2005 8:55 AM
Password required Yes
User may change password Yes

Workstations allowed All
Logon script
User profile
Home directory C:\Program Files\cwRsyncServer\var\empty
Last logon Never

Logon hours allowed All

Local Group Memberships *Users
Global Group memberships *None
The command completed successfully.

Update /etc/passwd for service accounts

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\mkpasswd" -l -u sshd 1>>"C:\Program Files\cwRsyncServer\etc\passwd"

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\mkpasswd" -l -u SvcwRsync -p /var 1>>"C:\Program Files\cwRsyncServer\etc\passwd"
Delete file: C:\Program Files\cwRsyncServer\_tmp.cmd
Installing sshd as a service
Service : OpenSSHServer
Display name : Openssh SSHD
Description : Enables ssh-based secure encrypted communications between two untrusted hosts over an insecure network
Current State : Stopped
Command : /bin/sshd -D
stdin path : /dev/null
stdout path : /var/log/OpenSSHServer.log
stderr path : /var/log/OpenSSHServer.log
Process Type : Own Process
Startup : Manual
Account : .\SvcwRsync

Update setperms.cmd
Setting permissions on C:\Program Files\cwRsyncServer (run setperms.cmd)
The command completed successfully.

Grant service account necessary rights and permissions
Granting SeCreateTokenPrivilege to SvcwRsync ... successful
Granting SeAssignPrimaryTokenPrivilege to SvcwRsync ... successful
Granting SeIncreaseQuotaPrivilege to SvcwRsync ... successful
Granting SeServiceLogonRight to SvcwRsync ... successful
Granting SeTcbPrivilege to SvcwRsync ... successful
Granting SeDenyBatchLogonRight to SvcwRsync ... successful
Granting SeDenyInteractiveLogonRight to SvcwRsync ... successful
Granting SeDenyNetworkLogonRight to SvcwRsync ... successful
Granting SeDenyRemoteInteractiveLogonRight to SvcwRsync ... failed
AddUserRightToAccount:

***Error*** AddUserRightToAccount -1073741728
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\04. Private key for Service Account.lnk
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\05. Start a Unix BASH Shell.lnk
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\06. Start a Windows CMD Shell.lnk
Completed

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

This is interesting. Before I always changed the path to just c:\cwRsyncServer, and I had no pwdgen.exe. This time when I just choose the default paths, there are more folders and I have pwdgen.exe in bin.
I can run it and get a new password every time.

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

I downloaded and installed 2.0.1 (tried it twice) to see if that worked and it half worked - it didn't install the rsync service (even though it paused for a lot longer), but it did install the ssh service:
Output folder: C:\Program Files\cwRsyncServer\bin
Extract: xcacls.exe
Extract: subinacl.exe
Extract: ntrights.exe
Extract: cygrunsrv.exe
Extract: listacc.exe
Extract: pwdgen.exe
Extract: cygcrypt-0.dll
Extract: cygcrypto-0.9.7.dll
Extract: cygiconv-2.dll
Extract: cygintl-1.dll
Extract: cygintl-2.dll
Extract: cygintl-3.dll
Extract: cygminires.dll
Extract: cygpcre-0.dll
Extract: cygpcre.dll
Extract: cygpopt-0.dll
Extract: cygz.dll
Extract: cygwin1.dll
Generate batch file setperms.cmd to set permissions and ownerships
Output folder: C:\Program Files\cwRsyncServer\bin
Extract: PrepUploadDir.exe
Extract: rsync.exe
Output folder: C:\Program Files\cwRsyncServer
Output folder: C:\Program Files\cwRsyncServer\doc
Extract: rsync.html
Extract: rsyncd-conf.html
Extract: scp.html
Extract: sftp-server.html
Extract: sftp.html
Extract: ssh-add.html
Extract: ssh-agent.html
Extract: ssh-keygen.html
Extract: ssh-keyscan.html
Extract: ssh-keysign.html
Extract: ssh.html
Extract: sshd.html
Output folder: C:\Program Files\cwRsyncServer
Extract: rsyncd.conf
Extract: LICENSE.TXT
Creating service account SvcwRsync
The command completed successfully.

User name SvcwRsync
Full Name
Comment cwRsync service account
User's comment
Country code 000 (System Default)
Account active Yes
Account expires Never

Password last set 8/23/2005 9:13 AM
Password expires 10/5/2005 8:00 AM
Password changeable 8/23/2005 9:13 AM
Password required Yes
User may change password Yes

Workstations allowed All
Logon script
User profile
Home directory
Last logon Never

Logon hours allowed All

Local Group Memberships *Users
Global Group memberships *None
The command completed successfully.

Grant required privileges to the service account
Granting SeServiceLogonRight to SvcwRsync ... successful
Installing rsync daemon as a service
/cygdrive/c/Program Files/cwRsyncServer/bin/cygrunsrv: Error querying a service: OpenService: Win32 error 1060:
The specified service does not exist as an installed service.

Setting permissions on C:\Program Files\cwRsyncServer (run setperms.cmd)

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\listacc" 1>"C:\Program Files\cwRsyncServer\_tmp2.cmd"

C:\Program Files\cwRsyncServer>call "C:\Program Files\cwRsyncServer\_tmp2.cmd" 1>NUL

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\subinacl" /noverbose /file "C:\Program Files\cwRsyncServer" /setowner=SvcwRsync 1>NUL

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\subinacl" /noverbose /subdirectories "C:\Program Files\cwRsyncServer\*" /setowner=SvcwRsync 1>NUL

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\xcacls" "C:\Program Files\cwRsyncServer" /T /G Administrators:F /Y 1>NUL

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\xcacls" "C:\Program Files\cwRsyncServer" /T /E /G SvcwRsync:F /Y 1>NUL
Write installation info to registry (HKLM\Software\Itefix\cwRsyncServer)
Write uninstall registry keys at \ "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\cwRsync Server"
Created uninstaller: C:\Program Files\cwRsyncServer\uninstall.exe
Creating shortcuts
Create folder: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server
Output folder: C:\Program Files\cwRsyncServer
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\01. rsyncd.conf.lnk
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\02. Prep a Dir for Upload.lnk
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\03. Web site.lnk
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\10. DONATE!.lnk
Create folder: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\Documentation
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\Documentation\rsync.lnk
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\Documentation\rsyncd-conf.lnk
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\11. Uninstall cwRsync Server.lnk
Output folder: C:\Program Files\cwRsyncServer\bin
Extract: bash.exe
Extract: chmod.exe
Extract: chown.exe
Extract: cygpath.exe
Extract: false.exe
Extract: grep.exe
Extract: mkdir.exe
Extract: rm.exe
Extract: cat.exe
Extract: mkgroup.exe
Extract: mkpasswd.exe
Extract: mount.exe
Extract: sed.exe
Extract: setx.exe
Extract: ssh.exe
Extract: sshd.exe
Extract: sftp.exe
Extract: sftp-server.exe
Extract: ssh-add.exe
Extract: ssh-agent.exe
Extract: ssh-keygen.exe
Extract: ssh-keyscan.exe
Extract: ssh-keysign.exe
Extract: touch.exe
Extract: umount.exe
Output folder: C:\Program Files\cwRsyncServer
Output folder: C:\Program Files\cwRsyncServer\etc
Extract: moduli
Extract: moduli.bak
Extract: profile
Extract: ssh_config
Extract: sshd_config
Output folder: C:\Program Files\cwRsyncServer
Set cygwin root to cwRsyncServer inst.directory
mount: warning - /usr/bin does not exist.
C:\Program Files\cwRsyncServer\bin on /usr/bin type system (binmode)
C:\Program Files\cwRsyncServer on / type system (binmode)
c: on /cygdrive/c type user (binmode,noumount)
d: on /cygdrive/d type user (binmode,noumount)
Set system-wide CYGWIN environment variable to -binmode ntsec tty-
Make initial /etc/group and /etc/passwd

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\mkgroup" -l 1>"C:\Program Files\cwRsyncServer\etc\group"

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\mkpasswd" -l 1>"C:\Program Files\cwRsyncServer\etc\passwd"

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\sed" "3,$d" /etc/passwd 1>"C:\Program Files\cwRsyncServer\etc\passwd.new"

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\cat" /etc/passwd.new 1>"C:\Program Files\cwRsyncServer\etc\passwd"
Delete file: C:\Program Files\cwRsyncServer\_tmp.cmd
Delete file: C:\Program Files\cwRsyncServer\etc\passwd.new
Generate some required directories and files
Generate host keys
Generate keys for service account

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\cat" /var/SvcwRsync/.ssh/cwrsync.pub 1>"C:\Program Files\cwRsyncServer\var\SvcwRsync\.ssh\authorized_keys"

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\cat" /var/SvcwRsync/.ssh/cwrsync.pub 1>"C:\Program Files\cwRsyncServer\var\SvcwRsync\.ssh\authorized_keys2"
Delete file: C:\Program Files\cwRsyncServer\_tmp.cmd
Generate sshd account for privilege separation
The command completed successfully.

User name sshd
Full Name
Comment SSHD privilege separation user
User's comment
Country code 000 (System Default)
Account active No
Account expires Never

Password last set 8/23/2005 9:15 AM
Password expires 10/5/2005 8:02 AM
Password changeable 8/23/2005 9:15 AM
Password required Yes
User may change password Yes

Workstations allowed All
Logon script
User profile
Home directory C:\Program Files\cwRsyncServer\var\empty
Last logon Never

Logon hours allowed All

Local Group Memberships *Users
Global Group memberships *None
The command completed successfully.

Update /etc/passwd for service accounts

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\mkpasswd" -l -u sshd 1>>"C:\Program Files\cwRsyncServer\etc\passwd"

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\mkpasswd" -l -u SvcwRsync -p /var 1>>"C:\Program Files\cwRsyncServer\etc\passwd"
Delete file: C:\Program Files\cwRsyncServer\_tmp.cmd
Installing sshd as a service
Service : OpenSSHServer
Display name : Openssh SSHD
Description : Enables ssh-based secure encrypted communications between two untrusted hosts over an insecure network
Current State : Stopped
Command : /bin/sshd -D
stdin path : /dev/null
stdout path : /var/log/OpenSSHServer.log
stderr path : /var/log/OpenSSHServer.log
Process Type : Own Process
Startup : Manual
Account : .\SvcwRsync

Update setperms.cmd
Setting permissions on C:\Program Files\cwRsyncServer (run setperms.cmd)

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\listacc" 1>"C:\Program Files\cwRsyncServer\_tmp2.cmd"

C:\Program Files\cwRsyncServer>call "C:\Program Files\cwRsyncServer\_tmp2.cmd" 1>NUL

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\subinacl" /noverbose /file "C:\Program Files\cwRsyncServer" /setowner=SvcwRsync 1>NUL

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\subinacl" /noverbose /subdirectories "C:\Program Files\cwRsyncServer\*" /setowner=SvcwRsync 1>NUL

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\xcacls" "C:\Program Files\cwRsyncServer" /T /G Administrators:F /Y 1>NUL

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\xcacls" "C:\Program Files\cwRsyncServer" /T /E /G SvcwRsync:F /Y 1>NUL

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\chmod" -R 750 /*

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\chmod" 770 /tmp

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\chmod" 600 /etc/ssh_h*

C:\Program Files\cwRsyncServer>"C:\Program Files\cwRsyncServer\bin\chown" SvcwRsync /var/SvcwRsync /var/SvcwRsync/.ssh /var/empty /var/run /etc/ssh_h*

C:\Program Files\cwRsyncServer>net localgroup Administrators SvcwRsync /add
The command completed successfully.

Grant service account necessary rights and permissions
Granting SeCreateTokenPrivilege to SvcwRsync ... successful
Granting SeAssignPrimaryTokenPrivilege to SvcwRsync ... successful
Granting SeIncreaseQuotaPrivilege to SvcwRsync ... successful
Granting SeServiceLogonRight to SvcwRsync ... successful
Granting SeTcbPrivilege to SvcwRsync ... successful
Granting SeDenyBatchLogonRight to SvcwRsync ... successful
Granting SeDenyInteractiveLogonRight to SvcwRsync ... successful
Granting SeDenyNetworkLogonRight to SvcwRsync ... successful
Granting SeDenyRemoteInteractiveLogonRight to SvcwRsync ... failed
AddUserRightToAccount:

***Error*** AddUserRightToAccount -1073741728
Create shortcut: C:\Documents and Settings\Administrator.TORINO\Start Menu\Programs\cwRsync Server\04. Private key for Service Account.lnk
Completed

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

I tried installing v2.0.0 and it didn't install either service.

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

Does this information help?

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

No, unfortunately not. I have difficulties to understand why service install command fails on this specific machine. It seems that something is broken. Do you have an other 2000 server you can try to install cwRsyncServer ?

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

Since the service for OpenSSH gets installed, I thought that this is not a cygrunsrv issue. Who knows ? Installer runs following command to install Rsync daemon as a service (all in one line):

"inst.dir\bin\cygrunsrv" -I RsyncServer -c "inst.dir" -p "inst.dir\bin\rsync.exe" -a "--config rsyncd.conf --daemon --no-detach" -o -t manual -e "CYGWIN=nontsec binmode" -1 "inst.dir\rsyncd-stdin.log" -2 "inst.dir\rsyncd-stderr.log" -u machine name\SvcwRsync -w password -f "Rsync - open source utility that provides fast incremental file transfer"

I think there are remains from the previous installations creating that havoc. Giving the service a new name (RsyncServer1 for example) can help.

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

No, unfortunately not. I have difficulties to understand why service install command fails on this specific machine.
It may help those involved if you detailed the manual steps for installing the service (cygrunsrv.exe command line) and document what they should expect to find in the registry, if it works. This may turn up error messages that are being obscured by the installer.

-Tom

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

I think there are remains from the previous installations creating that havoc. Giving the service a new name...
Or deleting the key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RsyncServer

prior to install, might help. I know prior to my last install attempt, which was successful, I confirmed that uninstalling the older version had removed the key.

Here's my RsyncServer key sub-tree from a working install (omitting the Security sub-key):

"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"="C:\\bin\\util\\backup\\cwRsyncServer\\bin\\cygrunsrv.exe"
"DisplayName"="RsyncServer"
"ObjectName"=".\\SvcwRsync"
"Description"="Rsync - open source utility that provides fast incremental file transfer"

"AppPath"="C:\\bin\\util\\backup\\cwRsyncServer\\bin\\rsync.exe"
"AppArgs"="--config rsyncd.conf --daemon --no-detach"
"WorkingDirectory"="C:\\bin\\util\\backup\\cwRsyncServer"
"StdOut"="C:\\bin\\util\\backup\\cwRsyncServer\\rsyncd-stdin.log"
"StdErr"="C:\\bin\\util\\backup\\cwRsyncServer\\rsyncd-stderr.log"
"Shutdown"=dword:00000001

"CYGWIN"="nontsec binmode"

"0"="Root\\LEGACY_RSYNCSERVER\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001

-Tom

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

I think there has been some confusion because there has been two people reporting the same problem. All of my posts say "Kevin" on them. Anyway, for some reason manually installing the service with the line tev provided worked without any errors.
The only thing I can think of is that maybe when used inside the installer "inst.dir\bin\cygrunsrv" should be "inst.dir\bin\cygrunsrv.exe"?

By the way, I checked before installing and there were no remnant registry keys causing problems.

Kevin

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
ability to copy service account password to the clipboard

As I mentioned over in this cwrsync thread:

Speaking of the generated password, can you display it in a control that can be selected and copied to the clipboard? Rather error prone to transcribe it by hand.

The same suggestion applies to copSSH.

Also, what are some scenarios under which knowing the service account password would be useful?

Would there be much danger in logging it to a file that only the administrator (or user performing the install) had read access to?

-Tom

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: Re: installer does not install service?

As I mentioned over in this cwrsync thread...

Hmmm...seems some wires got crossed...that should have been posted as a new topic on the copSSH forum. Does the forum software store the current forum in a cookie or something? (I had a post in progress in both forums in different browser windows.)

-Tom

Topic locked

Release announcements