Module Import alias alias alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Import alias alias alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body TryFinally body TryExcept body Assign NameStore NameLoad Assign NameStore Str Print Print Str Print If NameLoad body Print BinOpAdd BinOpAdd Str NameLoad Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Print If CompareIs NameLoad NameLoad body Print Str Assign NameStore NameLoad orelse Print Str Assign NameStore NameLoad Print If NameLoad body Print Str Print Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Print For NameStore NameLoad body If CompareGt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num body Assign NameStore NameLoad Print BinOpAdd BinOpAdd Str NameLoad Str orelse Print BinOpAdd BinOpAdd Str NameLoad Str handlers ExceptHandler body Assign NameStore NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr Str Print Print Str Print BinOpAdd NameLoad Str Print NameLoad finalbody Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryFinally body TryExcept body Assign NameStore ListLoad Assign NameStore Str Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Str Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr Print BinOpAdd BinOpAdd Str NameLoad Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Str NameLoad AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr Print BinOpAdd BinOpAdd Str NameLoad Str Print Str Expr Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad NameLoad Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr CompareEq NameLoad Str CompareNotEq Call AttributeLoad NameLoad attr Str Num CompareNotEq Call AttributeLoad NameLoad attr Str Num body Continue If CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Print Print Str Print BinOpAdd NameLoad Str finalbody If NameLoad body Expr Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Str NameLoad NameLoad Str Str Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Print Str Return NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIn Str NameLoad CompareEq SubscriptLoad NameLoad Index Str Str body Return NameLoad orelse Return NameLoad decorator_list
N/A N/A sys os traceback N/A supportFilesPath N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path dirname N/A N/A N/A os path dirname N/A N/A N/A os path dirname N/A N/A sys argv N/A 0 SupportFiles N/A N/A N/A N/A sys path append supportFilesPath N/A httplib urllib json N/A arcpy N/A OpsServerConfig N/A subprocess Utilities makePath Utilities findFilePath Utilities editFiles N/A serverName N/A OpsServerConfig serverName N/A serverPort N/A OpsServerConfig serverPort N/A dbsForOpsServer N/A OpsServerConfig databasesToCreate N/A rootPostgreSQLPath N/A N/A OpsServerConfig getPostgreSQLRootPath N/A siteExistsCheck True N/A dbExistsCheck True PreConfigChecks N/A N/A agsSiteAdminUserName password N/A N/A N/A N/A N/A N/A N/A success True N/A msgPrefix Failed:  N/A N/A --Running pre-configuration checks... N/A N/A siteExistsCheck N/A N/A N/A N/A 	-Checking if ArcGIS Server site already exists on server ' serverName ' N/A token N/A getToken agsSiteAdminUserName password serverName serverPort N/A N/A N/A token None N/A N/A 	Passed: ArcGIS Server site does _not_ exist.
 N/A success True N/A N/A 	**Failed: ArcGIS Server site already exists.
 N/A success False N/A N/A dbExistsCheck N/A N/A 	-Checking if databases already exist... N/A N/A dbList N/A getPostgreSQLDatabases password N/A dbListAsStr N/A N/A N/A str dbList strip [] N/A dbListAsStr N/A N/A N/A N/A dbListAsStr replace ' lower N/A N/A db dbsForOpsServer N/A N/A N/A N/A N/A dbListAsStr find N/A N/A db lower -1 N/A N/A success False N/A N/A N/A 		**Failed: database ' db ' already exists. N/A N/A N/A N/A 		Passed: database ' db ' does _not_ exist. N/A N/A N/A N/A success False N/A tb N/A N/A N/A sys exc_info N/A 2 N/A tbinfo N/A N/A N/A traceback format_tb tb N/A 0 N/A pymsg N/A N/A N/A PYTHON ERRORS:
Traceback info:
 tbinfo 
Error Info:
 N/A str N/A N/A N/A sys exc_info N/A 1 N/A msgs N/A N/A ArcPy ERRORS:
 N/A N/A arcpy GetMessages N/A N/A ***** ERROR ENCOUNTERED ***** N/A N/A pymsg N/A msgs N/A N/A success N/A getPostgreSQLDatabases N/A N/A password N/A N/A N/A N/A N/A N/A N/A dbList N/A N/A f N/A confFileExists False N/A confFileFolder N/A N/A N/A os path join N/A N/A os environ N/A APPDATA postgresql N/A confFilePath N/A N/A N/A os path join confFileFolder pgpass.conf N/A scriptFileFolder N/A N/A N/A os path dirname N/A N/A sys argv N/A 0 N/A scriptFilePath N/A N/A N/A os path join scriptFileFolder RunPostgreSQLStatement.bat N/A outFile N/A N/A N/A os path join scriptFileFolder DatabaseOutput.txt N/A N/A N/A N/A os path exists outFile N/A N/A N/A N/A os remove outFile N/A confString N/A localhost:5432:postgres:postgres: password N/A N/A N/A N/A N/A os path exists confFileFolder N/A N/A N/A N/A os makedirs confFileFolder N/A N/A N/A N/A os path exists confFilePath N/A N/A confFileExists True N/A N/A N/A os rename confFilePath N/A confFilePath .bak N/A conf_f N/A open confFilePath w N/A N/A N/A conf_f write N/A confString N/A N/A N/A conf_f close N/A N/A N/A 		-Creating batch file:  scriptFilePath ... N/A psqlExePath N/A findFilePath rootPostgreSQLPath psql.exe N/A strToWrite N/A N/A N/A N/A N/A N/A N/A " psqlExePath " -U postgres -p 5432 -d postgres  -h localhost -f  scriptFileFolder N/A os sep ListPostgresDatabases.sql >  outFile N/A batFile_f N/A open scriptFilePath w N/A N/A N/A batFile_f write N/A strToWrite N/A N/A N/A batFile_f close N/A N/A N/A 		-Executing batch file ( scriptFilePath ) N/A 		to determine existing PostgreSQL databases... N/A N/A N/A subprocess call scriptFilePath N/A N/A N/A N/A os path exists outFile N/A N/A f N/A open outFile r N/A line f N/A N/A line N/A N/A line strip N/A N/A N/A line datname N/A N/A N/A line find -- -1 N/A N/A N/A line find  rows -1 N/A N/A N/A N/A N/A len line 0 N/A N/A N/A N/A dbList append line N/A N/A N/A N/A tb N/A N/A N/A sys exc_info N/A 2 N/A tbinfo N/A N/A N/A traceback format_tb tb N/A 0 N/A pymsg N/A N/A N/A PYTHON ERRORS:
Traceback info:
 tbinfo 
Error Info:
 N/A str N/A N/A N/A sys exc_info N/A 1 N/A N/A ***** ERROR ENCOUNTERED ***** N/A N/A pymsg N/A N/A f N/A N/A N/A N/A f close N/A conf_f N/A N/A N/A N/A conf_f close N/A N/A N/A os remove confFilePath N/A confFileExists N/A N/A N/A N/A os rename N/A confFilePath .bak confFilePath N/A dbList N/A getToken N/A N/A username password serverName serverPort N/A N/A N/A tokenURL /arcgis/admin/generateToken N/A params N/A N/A urllib urlencode N/A username password client f username password requestip json N/A headers N/A Content-type Accept application/x-www-form-urlencoded text/plain N/A httpConn N/A N/A httplib HTTPConnection serverName serverPort N/A N/A N/A httpConn request POST tokenURL params headers N/A response N/A N/A httpConn getresponse N/A N/A N/A response status 200 N/A N/A N/A N/A httpConn close N/A Error while fetching tokens from admin URL. Please check the URL and try again. N/A None N/A N/A data N/A N/A response read N/A N/A N/A httpConn close N/A N/A N/A assertJsonSuccess data N/A N/A None N/A token N/A N/A json loads data N/A N/A token N/A token N/A assertJsonSuccess N/A N/A data N/A N/A N/A obj N/A N/A json loads data N/A N/A N/A status obj N/A N/A obj N/A status error N/A N/A False N/A N/A True N/A