Matlab Toolbox Download Fails

Hello
 
I am trying to use the genetic algorithm functionality in the Onscale Matlab toolbox. I've set up a very simple test problem where I am optimising for the velocity of a homogeneous slab given the time it takes for a wave to propagate from one end to the other. The jobs appear to run successfully on the cloud but I then get an error for each Sim id:
 
{
    "errorCode": 404,
    "errorMessage": "Failed to download job file",
    "errorTitle": "File download failed"
}
 
Although the job completes in Matlab, the output results .csv file is all just zeros.

12 comments

  • Official comment

    Hi Katherine,

     

    Welcome to our MATLAB Toolbox forum! 

    When a simulation completes on the cloud, there is a slight delay before it can be downloaded as files need to be transferred. This can sometimes cause issues because MATLAB tries to download files before they are available. If you add a pause() command before the download this should solve the issue. Try 10 or 20 seconds.

     

    Best Regards,

    Chloe

    Comment actions Permalink
  • Thanks Chloe.

    Still getting used to the structure of the matlab functions and what calls what. Can you point me to where I should insert the pause command?

    Best wishes,

    Katy

    Comment actions Permalink
  • Katy,

     

    Assuming you are using the GAOnScale class you can insert a pause in GAOnScale.m line 344 before downloadAndProcess();

    If this doesn't work let me know and I can help you debug further.

     

    Best Regards,

    Chloe

    Comment actions Permalink
  • Hi Chloe

    I added a pause statement where you suggested (I ended up trying up to 600s!) but I'm still receiving the same error. Any idea?

    Best wishes,

    Katy

    Comment actions Permalink
  • Katy,

     

    Are you able to share your files with me via your preferred cloud sharing service so that I can help debug the issue?

     

    Best Regards,

    Chloe

    Comment actions Permalink
  • Hi Chloe

    I've just rerun the the Onscale provided GA example to check it wasn't something I had done, and I still get the same error codes. You can download all output files here: https://strathcloud.sharefile.eu/d-s4072ba8a58f04436834cc68725b448c4

    Best wishes,

    Katy

    Comment actions Permalink
  • Katy,

    That is interesting, the GA example runs successfully on my machine. Are you on an internal network that have a firewall that is blocking the download of files? Also, what version of the toolbox are you using? Could you uninstall and install the latest found here. The only other thing I could think that is the issue is that your filepath is too long for download, can you try running the example from your desktop please?

    Hopefully one of those things is the cause of the issue. Let me know how you get on.

    Best Regards,

    Chloe

    Comment actions Permalink
  • Hi Chloe

    I did have the most recent version but reinstalled anyway. Ran from my desktop and temporarily shut off my machine's firewalls (not connected to any networks) but the error persists. However I can download the files fine from the cloud using the Onscale software. Although obviously this is no use for the GA implentation though.... Any further thoughts on things to try would be appreciated! I'm totally stumped!

    Best wishes,

    Katy

    Comment actions Permalink
  • Hi Chloe

    I'd still be interested in trying to get this up and running. I noticed when running a local simulation on Onscale today that after a successful model run, the console window displays the following:

    MATLAB:I18n:LocaleDatabaseNotFound - Cannot find the MATLAB locale database. The MATLAB process default locale is set to "en_US.US-ASCII".

     

    It's not affecting my run at all but I was wondering if this could be related to the issues we duscussed above - some sort of issue interfacing matlab and onscale? Maybe not but I thought it might be worth checking as I'd really like to get the GA stuff up and running.

     

    Best wises,

     

    Katy

    Comment actions Permalink
  • Hi Katy, 

    Apologies for the delayed reply. I don't believe the warning in the console window is related. I am struggling to think of what the issue could be, it must be something related to your environment as it works on my machine (and my colleagues machines). 

    Can you try to run it again and after the error appears can you navigate to this property and copy and paste it here please.

    Thanks,

    Chloe

    Comment actions Permalink
  • Hi Chloe

    Navigating to that property prints out:

    ans =

    "Variables assigned
    Submitted to cloud
    ERROR: "errorMessage": "Failed to download job file", "

    Best wishes,

    Katy

    Comment actions Permalink
  • Hi Katy,

    I think we are at the stage where we might need to debug this over a call. If you contactwith a time that would work for you next week we can set up a meeting. Sorry for delay in fixing this for you.

    Best Regards,

    Chloe

    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post