HISE Logo Forum
    • Categories
    • Register
    • Login

    Server wont run...

    Scheduled Pinned Locked Moved General Questions
    4 Posts 2 Posters 134 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LindonL
      Lindon
      last edited by

      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?

      HISE Development for hire.
      www.channelrobot.com

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @Lindon
        last edited by

        @Lindon Could be a permission issue with the target file, but that's just a guess.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @d.healey
          last edited by

          @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()?

          HISE Development for hire.
          www.channelrobot.com

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @Lindon
            last edited by d.healey

            @Lindon

            isDirectory()?

            Yes.

            I always download to the temp folder.

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            22

            Online

            1.7k

            Users

            11.8k

            Topics

            102.7k

            Posts