1

When I create a .sddraft it by default gets Owner's read and write permissions. I think I need execute permission for creating .sd file. I am using Python and my file resides in LINUX server.

3
  • you must have write permission to the directory to create a new file.
    – Zoltan
    Commented Dec 14, 2015 at 19:28
  • Did you install server as root?
    – risail
    Commented Dec 14, 2015 at 19:29
  • yes and my parent directory has read write and execute permissions. but when I am creating a new file in the folder it gets only read and write permission
    – Mehreen
    Commented Dec 14, 2015 at 19:34

1 Answer 1

2

When you create a file in linux ownership is going to be assigned to the creator. You need to change ownership or add your user to a common group in order to publish the sddraft.

7
  • I am working as an owner group and I already changed the file permission of folder manually but when I creates a new .sddraft it only gets read and write permission from parent folder.
    – Mehreen
    Commented Dec 14, 2015 at 19:33
  • Thats correct you draft is going to be read and converted with arcpy.StageService_server are you unable to run it?
    – risail
    Commented Dec 14, 2015 at 19:35
  • yes I was thinking it might need execute permission. can we change permissions in python?
    – Mehreen
    Commented Dec 14, 2015 at 19:36
  • no and you don;t need to... Publishing services is a three step process arcpy.mapping.CreateMapSDDraft() then arcpy.StageService_server() and finally arcpy.UploadServiceDefinition_server() you only need to be able to read the draft file it is not an executable file type
    – risail
    Commented Dec 14, 2015 at 19:39
  • yes! i am trying the same steps but I was getting an error "Consolidating the data failed". I was thinking File permissions are the last option toward the service definition file.
    – Mehreen
    Commented Dec 14, 2015 at 19:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.