I’ve recently had this problem with a customer and Windows Server 2011, this was a new server and everything was transferred and setup the same but the script wouldn’t run, I could run it manually and all was good, the issue was the rights for the user, they changed the permissions on their end and everything worked.

 

Best Regards,

Dan Kelly

Yachtlink Engineering Inc.

1 954 663 1630

 

From: FileMaker Pro Discussions [mailto:[log in to unmask]] On Behalf Of John Haley
Sent: August 29, 2013 11:11
To: [log in to unmask]
Subject: Schedule Running System Level Script

 

Hi, I am sure I am having some sort of permission issue, but I can't figure it out.  I am running FM Server 12.0.4.40S on OS X.8.4 with all current updates installed.  I am trying to schedule an AppleScript to run.  The schedule keeps saying "Aborted by User".  I have tried simplifying the script to just "Tell application "Finder" to activate" and it still doesn't work.  I tired the suggestions under Notes on this page, http://help.filemaker.com/app/answers/detail/a_id/7601/~/specifying-a-user-account-to-run-system-level-scripts-with-filemaker-server , which say to add:

 

Host_Alias FMSHOST = yourhostname
Defaults:fmserver targetpw, timestamp_timeout=0, passwd_tries=1
fmserver FMSHOST = (ALL) /Library/FileMaker\Server/Data/Scripts/*,/bin/kill

 

to the sudoers file.  I think I did it correctly, visudo at least let me save it. ;-)  I added a missing space in the "FileMaker\Server" and used my host name, but left the rest typed above.

 

I tried adding the main user on to the file in the Script folder as well as made sure fmserver and fmsadmin were already there and had read write permission.

 

Here is a bit of the log file if that helpsWith validated user):

 

2013-08-29 09:57:00.358 -0500         Information      148      File Server       Schedule "Test" running.

2013-08-29 09:57:00.366 -0500         Information      731      File Server       Schedule "Test" has started system script "Test.scpt" with process ID 75339 using account "File Server".

2013-08-29 09:57:00.431 -0500         Information      152      File Server       Schedule "Test" aborted; aborted by user.

2013-08-29 09:57:00.431 -0500         Information      126      File Server       Schedule "Test" scheduled for 08/30/2013 09:57 AM.

 

And with default user:

 

2013-08-29 09:45:00.019 -0500         Information      148      File Server       Schedule "Showroom and Contract" running.

2013-08-29 09:45:00.027 -0500         Information      731      File Server       Schedule "Showroom and Contract" has started system script "Showroom Appointments Emailer.scpt" with process ID 74423 using account "fserver".

2013-08-29 09:45:00.095 -0500         Information      152      File Server       Schedule "Showroom and Contract" aborted; aborted by user.

2013-08-29 09:45:00.095 -0500         Information      126      File Server       Schedule "Showroom and Contract" scheduled for 08/29/2013 10:00 AM.

 

I am not sure what I am missing, but I am sure it is simple.  What am I missing?

 

Thanks,

John