cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: This service has not been started

19 posts / 0 new
Last post
grobbe
Offline
Last seen: 7 years 10 months ago
Joined: 19.05.2015 - 20:21
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: This service has not been started

hi,

i installed COPSSH version 4.1.0 on 2 Windows 2012 servers. COPSSH (or Openssh SSHD service) runs perfectly fine on the one server but for the love of me does not want to start on the other one.

command line that i use to start = cygrunsrv -S opensshserver and i then get the following error:

cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: This service has not been started

when i try to start the Openssh SSHD service from the Windows Services Console i get the following error:

The Openssh SSHD service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

i have searched to see whether there is a duplicated cygwin1.dll on the system but there is only one.

i changed the user account under which the Openssh SSHD service runs and also elevated the security access to FULL control on the \ICW folder as well as subfolders. it did not help.

i also changed the cygrunsrv Properties > Compatibility to run as Windows 7 or 8 and that also did not help........

i checked the setup between the 2 servers and they are the same.......what am i missing here?

please help......thanks and regards

 

 

itefix
Offline
Last seen: 20 hours 45 min ago
Joined: 01.05.2008 - 21:33
Well, if it works on one

Well, if it works on one machine, then you need to focus on the differences between those two machines. I see that you've made some manual changes. I recommend that you uninstall Copssh on the problem server completely - uninstall, remove the installation directory and the service account and try to install again. Start then Copssh Control Panel and check log contents.

grobbe
Offline
Last seen: 7 years 10 months ago
Joined: 19.05.2015 - 20:21
hi, i tried the server with

hi,

i tried the server with the "working" solution but can't start sftp.......it times out because it is looking for a DLL that it can't find. had a look but can't see anywhere on the system which DLL it is looking for.

 

can you perhaps suggest another SFTP installation i can use for Windows 2012 srv 64-bit?

 

regards

itefix
Offline
Last seen: 20 hours 45 min ago
Joined: 01.05.2008 - 21:33
Version 4.1.0 is quite old

Version 4.1.0 is quite old and is not supported any longer actually. When you wrote that it worked on one of the systems, we thought that the problem was related to the specific server configuration. We try to support what we offer at our website.

grobbe
Offline
Last seen: 7 years 10 months ago
Joined: 19.05.2015 - 20:21
i understand you can only

i understand you can only support what you offer but which of your installations are working on Win2012 srv?

regards

itefix
Offline
Last seen: 20 hours 45 min ago
Joined: 01.05.2008 - 21:33
Assuming that you look for a

Assuming that you look for a free solution: We don't have it. Our product edition works just fine on W2012(R2) systems.

grobbe
Offline
Last seen: 7 years 10 months ago
Joined: 19.05.2015 - 20:21
is there a possibility of a

is there a possibility of a free trial so that we can evaluate?

 

itefix
Offline
Last seen: 20 hours 45 min ago
Joined: 01.05.2008 - 21:33
We have sent you a trial link

We have sent you a trial link by e-mail.

grobbe
Offline
Last seen: 7 years 10 months ago
Joined: 19.05.2015 - 20:21
hi, i only downloaded the

hi,

i only downloaded the trial yesterday and see that it expires on 31/05/2015............but in any case, here are the issues that we are experiencing when installing the trial.

oops, i see that i cannot paste any images. where can i upload the images to?

in the meantime while i wait for you to reply, here are the error messages we get:

1 - command issued: sftp "user"@"host ip address"

1 - reply: 1 [main] sftp 2028 fork: child 7664 - died waiting for dll loading, errno 11 fork: Resource temporarily unavailable

2 - After installing the software on our server attempting to use the Windows Services to start Openssh service

2 - reply: Windows could not start Openssh SSHD service on Local Computer Error 1067: The process terminated unexpectedly

3 - initiated a commandline via Windows dos prompt

3. reply: SFTP: Couldn't agree a client-to-server cipher (available: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com

 

can you please supply us with some sort of starting point where to look for the issues?

 

regards

g

 

 

itefix
Offline
Last seen: 20 hours 45 min ago
Joined: 01.05.2008 - 21:33
There are too many errors

There are too many errors indicating that the installation is not completed properly. Please follow steps below for a fresh start:

  • Uninstall Copssh. Remove remnants of the installation directory and make sure that the service account (SvcCopssh by default) is also removed.
  • Install Copssh it again
  • Start Copssh Control Panel again and make sure that the service is green.
  • Activate a user via Copssh Control Panel
  • Test SFTP
grobbe
Offline
Last seen: 7 years 10 months ago
Joined: 19.05.2015 - 20:21
hi, re-installed Copssh as

hi,

re-installed Copssh as instructed previously. executed command line and received the following:

SFTP: Couldn't agree a client-to-server cipher (available: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com)

itefix
Offline
Last seen: 20 hours 45 min ago
Joined: 01.05.2008 - 21:33
Can you try instructions

Can you try instructions described at our FAQ 

Connection fails with "no matching cipher found" message

 

Stop and start the service via Copssh Control Panel.

grobbe
Offline
Last seen: 7 years 10 months ago
Joined: 19.05.2015 - 20:21
hi, added as per your

hi,

added as per your suggestion. stopped and started via panel and still receiving reply:

SFTP: Couldn't agree a client-to-server cipher (available: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com)

 

itefix
Offline
Last seen: 20 hours 45 min ago
Joined: 01.05.2008 - 21:33
Which SFTP client do you use

Which SFTP client do you use ?

grobbe
Offline
Last seen: 7 years 10 months ago
Joined: 19.05.2015 - 20:21
a derivative of putty

a derivative of putty

itefix
Offline
Last seen: 20 hours 45 min ago
Joined: 01.05.2008 - 21:33
Can you paste contents of

Can you paste contents of etc/sshd_config file ?

grobbe
Offline
Last seen: 7 years 10 months ago
Joined: 19.05.2015 - 20:21
Port 22 Compression

Port 22

Compression delayed

LogLevel INFO

TCPKeepAlive yes

LoginGraceTime 120

Protocol 2

MaxAuthTries 6

MaxSessions 10

Subsystem sftp internal-sftp -l ERROR

 

Match User svc_cascm

PasswordAuthentication   yes

PubkeyAuthentication   yes

AllowTcpForwarding   yes

# Catch All

Match User *

AllowTcpForwarding no

PasswordAuthentication no

PubkeyAuthentication no

itefix
Offline
Last seen: 20 hours 45 min ago
Joined: 01.05.2008 - 21:33
It doesn't seem that changes

It doesn't seem that changes you made in bin/copsshcp.config are reflected to etc/sshd_config. Restart Copssh Control Panel and restart the service again and check if you see cipher directive in etc/sshd_config.

grobbe
Offline
Last seen: 7 years 10 months ago
Joined: 19.05.2015 - 20:21
Copssh was restarted via the

Copssh was restarted via the Control Panel but the cipher has not pulled through to the etc/sshd_config file. we also see that the trial period ran out yesterday. is it possible to give us an extension on this as we have only been problem solving since we installed it and has had no testing time thus far with the product?

 

Release news