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.
-
you must have write permission to the directory to create a new file.– ZoltanDec 14, 2015 at 19:28
-
Did you install server as root?– risailDec 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– MehreenDec 14, 2015 at 19:34
1 Answer
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
.
-
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.– MehreenDec 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?– risailDec 14, 2015 at 19:35 -
yes I was thinking it might need execute permission. can we change permissions in python?– MehreenDec 14, 2015 at 19:36
-
no and you don;t need to... Publishing services is a three step process
arcpy.mapping.CreateMapSDDraft()
thenarcpy.StageService_server()
and finallyarcpy.UploadServiceDefinition_server()
you only need to be able to read the draft file it is not an executable file type– risailDec 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.– MehreenDec 14, 2015 at 19:41