Server wont run...
-
So I have the most horrible of beta testing situations - the plugin is running fine here, but failing for one user.
Its attempting to do some downloads, sample files. These all live in a manifest which list 13 different files to download. These all get downloaded one at a time, like this:
Server.cleanFinishedDownloads(); writeLog("----Server online status:" + Server.isOnline()); writeLog("--------Server pending downloads:" + trace(Server.getPendingDownloads())); writeLog("--------Server pending calls:" + trace(Server.getPendingCalls())); writeLog("Downloading " + (targetStep+1) + " of " + setupManifest.setupSteps.length + " Files"); // ok so here is where we will do the actual download... // theDownloadedFile = USERDOWNLOAD_FOLDER_OBJ.getChildFile(setupManifest.setupSteps[targetStep].downloadFileDestination); writeLog("Downloading " + setupManifest.setupSteps[targetStep].downloadFileDestination + "..."); theDownload = Server.downloadFile(setupManifest.setupSteps[targetStep].downloadFileName,{},theDownloadedFile,function() { writeLog("in the download process..... " + theDownloadedFile + "..."); // a bunch of other stuff here..... };
As you can see its writing a log file, when I look at the users log file, I get this:
----Server online status:1 --------Server pending downloads:[] --------Server pending calls:[] Downloading 1 of 13 Files Downloading HorizenDataT01.sfc...
So the server is online, and the first file to download is discovered, but its just not entering the download function, but for me its saying:
----Server online status:1 --------Server pending downloads:[] --------Server pending calls:[] Downloading 1 of 13 Files Downloading HorizenDataT01.sfc... in the download process..... Object 0xb4322628... Downloaded Object 0xb4322628 Downloading 2 of 13 Files Downloading HorizenDataT02.sfc... in the download process..... Object 0xb43189c8... Downloaded Object 0xb43189c8 Downloading 3 of 13 Files Downloading HorizenDataT03.sfc... in the download process..... Object 0xb4316fb8... Downloaded Object 0xb4316fb8 Downloading 4 of 13 Files Downloading HorizenDataT04.sfc... in the download process..... Object 0xb431d7f8... Downloaded Object 0xb431d7f8 Downloading 5 of 13 Files Downloading HorizenDataT05.sfc... in the download process..... Object 0xb4320c18... etc...etc..
So for me it IS entering the download function and executing correctly. The user says there's no calls being recorded in his firewall... has anyone got ANY ideas?
-
@Lindon Could be a permission issue with the target file, but that's just a guess.
-
@d-healey said in Server wont run...:
@Lindon Could be a permission issue with the target file, but that's just a guess.
thanks Dave, but the Forum gods helped me out again as soon as I posted this the user reported what the problem was -- I think...
So its trying to download on window to the users download folder, and this didn't exist for this user - he had some strange re-routing configuration...
Hmm, how do I test if FileSystem.getFolder(FileSystem.Downloads); returns an existing folder I wonder? just isDirectory()?
-