Run as a service NOT working

HI great product for the desktop users, all is well in that scope.

However, I cant get the run as service to work as a proper service, ie run when the user is not logged in.

I have installed properly (run the installer as administrator, install for all users, install as service, get popup saying service installed and started OK)
I have checked the services.msc and yes the acrosync service is running
I have checked that the program has been exited correctly (right click icon and choose Quit)
I have checked the registry for the "1"

Whenever I run the application as administrator, the profiles are stopped. If I start them, all is OK, until I either log out or Quit the application again.

Can you please advise what needs to be done in order to get this working.

Windows 7 64 bit

Comments

  • Is the 'Run at schedule time' checkbox checked?  You'll also need to check the 'Automatically run this profile on logon' checkbox in the scheduler dialog in order for the Acrosync service to run the profile.

    You can alway find the log files under the same directory as the Acrosync executable which may give you more information.

  • I have the same (Win 10) - for me, yes, the 'Run at schedule time' and 'Automatically run this profile on logon' are ticked. 

    I'm not sure if I need to use the "Start" button to run profiles with the scheduler.

    If I configure the scheduler to start in a couple of minutes from now, press "Start" and watch it using the Windows app, it runs fine when logged on but stops as soon as I log off.  The service is still running but no log is generated and I assume no files are transferred.

    If do not "Start" it, nothing happens. As far as I know the scheduler is configured correctly but Acrosync for me does nothing when the service is running and no-one is logged on.

    Is there a more verbose mode of logging that will tell me when the scheduler is next to run when the service starts of the previous run finishes?

  • Acrosync service expects profiles to be under the HKLM registry instead of HKCU.

    So if you look under HKLM/Software/Acrosync/AcrosyncClient, you will see all profiles there.  For a profile to be run by the service, it must have 'scheduled' and 'autostart' set to 1.

  • OK, so it's sprung to life.  I think rsync is being blocked sporadically and I'm not sure why.  The worrying thing is this:  My job is an upload only, but when Acrosync hits a blockage like this, it creates a load of folders on the client.  On the view of Windows Explorer below, the dated folders are from the server and should not be on the client.  They appear every week or so and are spooking the office workers who are concerned that Acrosync is downloading when we've not asked it to.

    image

    image




  • There are 3 reasons why the rsync channel can be blocked: the remote rsync is calculating the checksum of a very large file, there is an actual network issue that stalls the rsync channel, or there may be a bug in the libssh2 library that Acrosync uses for the ssh layer.

    You can try to increase the timeout by setting the registry value HKCU/Software/Acrosync/AcrosyncClient/TransmissionTimeout to a value larger than 600 seconds.

    If the problem persists, I would recommend switching to a different ssh library, libssh , which can be done by setting the registry value HKCU\Software\Acrosync\AcrosyncClient\UseLibssh to 1.

    If you set it correctly you'll see a log message saying 'The libssh dll has been loaded' when Acrosync starts up.  Make sure to exit the current Acrosync instance before a restart (right click the system tray icon and choose 'Quit').

    As for the mysterious folder, I suspect you have a different profile somewhere that is set to download with the incremental backup option checked.  You can enable the file logging option and look through the log files when that happens again.
  • edited April 2017
    I have the same behaviour as other guys in this post.

    HKLM/Software/Acrosync/AcrosyncClient, is set to 1 but as soon I log off and log on again the profile is marked as " stopped".

    AcroSync service is sometimes in "paused" state.

    Can you help ?


  • the profile is marked as " stopped"

    Did you mean that the profile was not running after you started Acrosync in the foreground?

    If so, this is actually how it works.  The state of profiles synced by the Acrosync service isn't reflected in the Acrosync GUI program.  The GUI program, when run as administrator, will temporarily pause the service once started and resume the service on exit.  That is why sometimes you saw the service was in the 'paused' state.

    If you have the 'scheduled' and 'autostart' registry values of a profile set to 1 and don't have Acrosync running in the foreground, the service should sync that profile in the background.
  • Hi Ghen,

    thank you very much for explanation.

    I verified the situation and you are absolutely right.

    Thank you again.


Sign In or Register to comment.