Recreation model limits

Hi Forum members

Just a quick question about the recreation model and whether there are any limits posed on the size of analysis you can do. I'm interested in doing some work looking at recreational value across the UK. I'm using a fairly coarse grid polygon to start with (50km x 50km) so 157 cells. When I try to run the model I get the following error message;

CommunicationError: cannot connect: [Errno 10061] No connection could be made because the target machine actively refused it

I had been testing the model over the last couple of days using a smaller area of just 20 polygons cells (50km x 50km) and it all worked fine for each run. So I think my question is whether there is a limit imposed on the spatial extent which you can analyse or the granularity?

Thanks for your help everyone.

Rob

Comments

  • DaveDave Member, NatCap Staff
    edited November 2016
    Hi Rob,

    There should be no limits on spatial resolution. It sounds like a coincidence that the model was working for you earlier at one cell size and not working now at another.

    The error message sounds like a network issue. Would you upload the complete logfile for that run to this thread please?

    I'm hoping @Rich can take a look.

    Dave
    Post edited by Dave on
  • RichRich Administrator, NatCap Staff
    OH MAN!

    The rec server lives on Google's cloud, and it looks like they made some non-backwards compatible upgrades that broke our startup script while everyone was focused on the US election.  It also looks like they reset the rec server.  Anyway, doing some patching now, the rec model will be down until then, but hopefully up again soon!

    More soon!
  • RichRich Administrator, NatCap Staff
    Okay it's up again.  Rob, I think that'll fix your issue.  Let us know if you have any more problems!
  • Hi Rich

    Thanks so much for looking into that. The model now runs up to a point! I submitted my full dataset this morning which is UK wide. It calculated the PUD for about 2 hours and then kicked me off. This might just be a flaky connection problem at my end. I'm going to have a go at chopping the data up into smaller sections and seeing if that works. I've appended the log file below for your interest.

    All the best

    Rob

    Arguments:
    aoi_path                      C:/Users/rah1r11/Invest/BVCM/data/Master_50km_Grid.shp
    compute_regression            True
    end_year                      2014
    grid_aoi                      False
    predictor_table_path          C:/Users/rah1r11/Invest/BVCM/predictors3.csv
    results_suffix                BVCM_50km
    scenario_predictor_table_path
    start_year                    2005
    workspace_dir                 C:\Users\rah1r11\Invest\BVCM


    11/11/2016 09:10:20  root               INFO     Logging will be saved to natcap.invest.recreation.recmodel_client-log-2016-11-11--09_10_20.txt
    11/11/2016 09:10:20  root               DEBUG    Loaded the model from natcap.invest.recreation.recmodel_client
    11/11/2016 09:10:20  root               INFO     Executing the loaded model
    11/11/2016 09:10:20  root               INFO     Running InVEST version "3.3.2"
    11/11/2016 09:10:20  root               INFO     Python architecture: ('32bit', 'WindowsPE')
    11/11/2016 09:10:20  root               INFO     Disk space remaining for workspace: 736.4 GB
    11/11/2016 09:10:20  root               INFO     Pointing temporary directory at the workspace at C:\Users\rah1r11\Invest\BVCM
    11/11/2016 09:10:20  root               INFO     Updating os.environ["TMP"]=C:\Users\rah1r11\AppData\Local\Temp to C:\Users\rah1r11\Invest\BVCM
    11/11/2016 09:10:20  root               INFO     Updating os.environ["TEMP"]=C:\Users\rah1r11\AppData\Local\Temp to C:\Users\rah1r11\Invest\BVCM
    11/11/2016 09:10:20  root               INFO     Setting os.environ["TMPDIR"]=C:\Users\rah1r11\Invest\BVCM
    11/11/2016 09:10:20  root               INFO     Setting tempfile.tempdir to C:\Users\rah1r11\Invest\BVCM\tmp
    11/11/2016 09:10:20  root               INFO     Starting natcap.invest.recreation.recmodel_client
    11/11/2016 09:10:20  natcap.invest.recmodel_client INFO     Contacting server, please wait.
    11/11/2016 09:10:21  natcap.invest.recmodel_client INFO     Server online, version: 3.3.2:./recserver_cache/0c010b5f4a698db8_fast_hash.pickle
    11/11/2016 09:10:21  natcap.invest.recmodel_client INFO     Server supports year queries between 2005 and 2014
    11/11/2016 09:10:21  natcap.invest.recmodel_client INFO     archiving C:\Users\rah1r11\Invest\BVCM\aoi_BVCM_50km.prj
    11/11/2016 09:10:21  natcap.invest.recmodel_client INFO     archiving C:\Users\rah1r11\Invest\BVCM\aoi_BVCM_50km.shp
    11/11/2016 09:10:21  natcap.invest.recmodel_client INFO     archiving C:\Users\rah1r11\Invest\BVCM\aoi_BVCM_50km.shx
    11/11/2016 09:10:21  natcap.invest.recmodel_client INFO     archiving C:\Users\rah1r11\Invest\BVCM\aoi_BVCM_50km.dbf
    11/11/2016 09:10:21  natcap.invest.recmodel_client INFO     Please wait for server to calculate PUD...
    11/11/2016 11:10:22  root               ERROR    ---------------------------------------------------
    11/11/2016 11:10:22  root               ERROR    ---------------------- ERROR ----------------------
    11/11/2016 11:10:22  root               ERROR    ---------------------------------------------------
    11/11/2016 11:10:22  root               ERROR    Error: exception found while running natcap.invest.recreation.recmodel_client
    11/11/2016 11:10:22  root               DEBUG   
    11/11/2016 11:10:22  root               DEBUG    Build details
    11/11/2016 11:10:22  root               DEBUG    Interpreter
    11/11/2016 11:10:22  root               DEBUG    Current temp dir: C:\Users\rah1r11\Invest\BVCM\tmp
    11/11/2016 11:10:22  root               DEBUG    tempfile.tempdir: C:\Users\rah1r11\Invest\BVCM\tmp
    11/11/2016 11:10:22  root               DEBUG   
    11/11/2016 11:10:22  root               DEBUG    System
    11/11/2016 11:10:22  root               DEBUG    OS              : Windows-7-6.1.7601-SP1
    11/11/2016 11:10:22  root               DEBUG    Processor architecture: AMD64
    11/11/2016 11:10:22  root               DEBUG    FS encoding     : mbcs
    11/11/2016 11:10:22  root               DEBUG    Preferred encoding: cp1252
    11/11/2016 11:10:22  root               DEBUG   
    11/11/2016 11:10:22  root               DEBUG    Python
    11/11/2016 11:10:22  root               DEBUG    Version         : 2.7.9
    11/11/2016 11:10:22  root               DEBUG    Build           : ('default', 'Dec 10 2014 12:24:55')
    11/11/2016 11:10:22  root               DEBUG    Compiler        : MSC v.1500 32 bit (Intel)
    11/11/2016 11:10:22  root               DEBUG    Implementation  : CPython
    11/11/2016 11:10:22  root               DEBUG    Architecture    : 32bit
    11/11/2016 11:10:22  root               DEBUG    Linkage format  : WindowsPE
    11/11/2016 11:10:22  root               DEBUG   
    11/11/2016 11:10:22  root               DEBUG    Packages
    11/11/2016 11:10:22  root               DEBUG    Cython          : ?
    11/11/2016 11:10:22  root               DEBUG    Numpy           : 1.11.2rc1
    11/11/2016 11:10:22  root               DEBUG    Scipy           : 0.16.1
    11/11/2016 11:10:22  root               DEBUG    OSGEO           : 1.11.3
    11/11/2016 11:10:22  root               DEBUG    Shapely         : 1.5.5
    11/11/2016 11:10:22  root               DEBUG    InVEST          : 3.3.2
    11/11/2016 11:10:22  root               DEBUG   
    11/11/2016 11:10:22  root               DEBUG   
    11/11/2016 11:10:22  root               DEBUG    Exception not environment-related
    11/11/2016 11:10:22  root               DEBUG    Printing traceback
    Traceback (most recent call last):
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.iui.executor", line 560, in runModel
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.recreation.recmodel_client", line 225, in execute
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\Pyro4.core", line 171, in __call__
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\Pyro4.core", line 422, in _pyroInvoke
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\Pyro4.message", line 166, in recv
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\Pyro4.socketutil", line 451, in recv
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\Pyro4.socketutil", line 183, in receiveData
    ConnectionClosedError: receiving: connection lost: [Errno 10054] An existing connection was forcibly closed by the remote host


    11/11/2016 11:10:22  root               ERROR    Exiting due to failures
    11/11/2016 11:10:22  root               INFO     Elapsed time: 2h 0m 2.09s
  • Hello again

    Just to add to the above. It seems to be a 2 hour time limit on the server. I have chopped the data up and some of it runs fine, but whenI get to an area where there must be a lot of PUD (e.g. a grid squares containing London) the calculation runs for two hours then terminates with the same error as above.

    All the best

    Rob
  • RichRich Administrator, NatCap Staff
    We don't have a strict time limit on the calculation, but the software does use a persistent Internet connection to wait for the PUD to calculate.  Generally that's not a problem since most queries in our imagined use cases execute in seconds to minutes.  But I'm not surprised to hear that a remote procedure connection may not tolerate being open so long. Anyway, all of that is to say your issues are related the software implementation of which I am the software implementer so I apologize.  :)

    Next steps would have been to recommended you cut up your query size to something smaller, which sounds like you did and it works.  So thanks for being persistent, and sorry it's not as smooth as we would like for large queries.
  • DaveDave Member, NatCap Staff
    Would selecting fewer years of data to process also limit query sizes and increase chances of success? The default is 10 years of Flickr data, but in an area with such huge volume of data, fewer years might suffice.

    Also maybe a wired internet connection would increase success for long runs?
  • HI Both

    Thanks for getting back to me so quickly. Firstly, the way these models are implemented is fantastic, having spent years battling with ArcGIS now I don't know if I can ever go back!

    Those were all good suggestions. As with so much in the UK I think that it is just London that is causing the problems :-). I've sliced round that and broken the rest of the country up in to regions and each one runs in less than 10 mins. I've also cut the years down from the default to just 2009-11.

    Anyway thanks for your help with this and every continued success with the work.

    All the best

    Rob
  • Hello!

    I installed the last version of InVEST and I have the same problem as robholorama: "[Errno 10061] No connection could be made because the target machine actively refused it".

    I made screenshots of the log: first part and second part.
    In the log, French sentences are all the same and mean "[Errno 10061] No connection could be made because the target machine actively refused it".

    Maybe it's the same problem as in November with Google's cloud?

    Thank you in advance!

    Best regards,
    Stickophobe.
  • HI Stickophobe

    If it is any help what I found was that there was one grid cell in my map that had a lot of photodays (it was Central London, it was a coarse analysis and I wasn't really interested in that area it was just included for completions sake). Anyway I managed to solve the issue by reducing the cell size of my analysis. Hopefully this might help you figure out if it could be the same problem or whether there is something else causing the error. 

    Hope that it helps, good luck with the analysis. The INVEST team were super helpful. 

    Rob
  • RichRich Administrator, NatCap Staff
    Hi @stickophobe, occasionally that error occurs with intermittent lack of connection to the rec server.  For what it's worth, I just now tried it from my bagel shop connection and it was okay, it might be okay for you now too.  Can you try again?  There doesn't otherwise appear to be anything wrong from the server-side.
  • Thank you for your answers!

    If it is any help what I found was that there was one grid cell in my
    map that had a lot of photodays (it was Central London, it was a coarse
    analysis and I wasn't really interested in that area it was just
    included for completions sake).

    My working area is in France and it's a little one so it should work easily considering this proxy.

    Anyway I managed to solve the issue by reducing the cell size of my
    analysis. Hopefully this might help you figure out if it could be the
    same problem or whether there is something else causing the error.


    I tried to reduce the cell size a few times and it still doesn't work unfortunately.

    Hi @stickophobe,
    occasionally that error occurs with intermittent lack of connection to
    the rec server.  For what it's worth, I just now tried it from my bagel
    shop connection and it was okay, it might be okay for you now too.  Can
    you try again?  There doesn't otherwise appear to be anything wrong from
    the server-side.


    I have tried a few times again and I still have the same issue. I have tried to use the defaults model and I have the same message: "[Errno 10061] No connection could be made because the target machine actively refused it". Maybe it comes from my computer?
  • RichRich Administrator, NatCap Staff
    Ahh, I'm glad you got it running. For reference, it's likely that a transient network issue caused that no-connection error. AOI based errors often express a `MemoryError` since too many points get picked up.  Mentioning in case another user comes to this thread with a similar issue.

    I'm glad the model is working for you now!

  • Hm... In fact, it's still not working. As I said, I have the same message "[Errno 10061] No connection could be made because the target machine actively refused it".
  • RichRich Administrator, NatCap Staff
    Oh I apologize Stickophobe, I misread and thought it was working for you now.  After looking back at your log, I see some other errors that look like there is a Unicode issue.  I also apologize since we rarely think about this issue and crassly assume all computers are in UTF-8.  This might get tricky to debug unless you're nearby the Stanford campus and we can meet in person? :)

    If you're up for it, I'll try a couple of custom tweaks on a build of InVEST and send you a link.  More soon...
  • RichRich Administrator, NatCap Staff
    Hi Stickophobe, here's a development build of InVEST that might fix your error (if it is what I think it is) and also outputs a little extra logging information in case it does fail it'll give us some extra insight as to what's happening.  If you get time, thanks for helping us debug this issue: http://data.naturalcapitalproject.org/nightly-build/invest-forks/richpsharp/InVEST_richpsharp3.3.3.post8+n3ce0af958fe1_x86_Setup.exe

  • StickophobeStickophobe Member
    edited February 2017
    Thank you again for your help!

    I have tried your fixing software but I have still had the same issue. Nevertheless, my IT team have found where the problem comes from. It is a firewall issue. So we have tried with an independent laptop and an independent internet connection and it has worked!

    Now I have a new problem but it is probably my fault. It might be a problem with my shape files.

    Here is the log if you want to check:

    Initializing...

    02/13/2017 12:26:55 root DEBUG Loading <module 'natcap.invest.recreation.recmodel_client'
    from 'C:\INVEST~1.3_X\INVEST~1\natcap\invest\recreation\recmodel_client.pyc'>
    in frozen environment

    Arguments:

    aoi_path C:/FILES/pons/BIOCENOSE/2017/Lot4/ArcGIS/RecreationModel/aoi4.shp

    cell_size 7000.0

    compute_regression False

    end_year 2014

    grid_aoi True

    grid_type hexagon

    results_suffix

    start_year 2005

    workspace_dir C:\FILES\pons\BIOCENOSE\2017\Lot4\ArcGIS





    02/13/2017 12:26:55 root INFO Logging will be saved to
    natcap.invest.recreation.recmodel_client-log-2017-02-13--12_26_55.txt

    02/13/2017 12:26:55 root DEBUG Loaded the model from natcap.invest.recreation.recmodel_client

    02/13/2017 12:26:55 root INFO Executing the loaded model

    02/13/2017 12:26:55 root INFO Running InVEST version "3.3.3"

    02/13/2017 12:26:55 root INFO Python architecture: ('32bit',
    'WindowsPE')

    02/13/2017 12:26:55 root INFO Disk space remaining for
    workspace: 78.26 GB

    02/13/2017 12:26:55 root INFO Pointing temporary directory
    at the workspace at C:\FILES\pons\BIOCENOSE\2017\Lot4\ArcGIS

    02/13/2017 12:26:55 root INFO Starting natcap.invest.recreation.recmodel_client

    02/13/2017 12:26:55 root INFO Setting tempfile.tempdir
    to C:\FILES\pons\BIOCENOSE\2017\Lot4\ArcGIS\tmp

    02/13/2017 12:26:56 natcap.invest.recmodel_client INFO
    Contacting server, please wait.

    02/13/2017 12:26:56 natcap.invest.recmodel_client INFO
    Server online, version: 3.3.2:./recserver_cache/0c010b5f4a698db8_fast_hash.pickle

    02/13/2017 12:26:56 natcap.invest.recmodel_client INFO
    Server supports year queries between 2005 and 2014

    02/13/2017 12:26:56 natcap.invest.recmodel_client INFO
    gridding aoi

    02/13/2017 12:26:56 natcap.invest.recmodel_client INFO
    archiving C:\FILES\pons\BIOCENOSE\2017\Lot4\ArcGIS\aoi.prj

    02/13/2017 12:26:56 natcap.invest.recmodel_client INFO
    archiving C:\FILES\pons\BIOCENOSE\2017\Lot4\ArcGIS\aoi.shp

    02/13/2017 12:26:56 natcap.invest.recmodel_client INFO
    archiving C:\FILES\pons\BIOCENOSE\2017\Lot4\ArcGIS\aoi.shx

    02/13/2017 12:26:56 natcap.invest.recmodel_client INFO
    archiving C:\FILES\pons\BIOCENOSE\2017\Lot4\ArcGIS\aoi.dbf

    02/13/2017 12:26:56 natcap.invest.recmodel_client INFO
    Please wait for server to calculate PUD...

    02/13/2017 12:26:59 root ERROR ---------------------------------------------------

    02/13/2017 12:26:59 root ERROR ----------------------
    ERROR ----------------------

    02/13/2017 12:26:59 root ERROR ---------------------------------------------------

    02/13/2017 12:26:59 root ERROR Error: exception found
    while running natcap.invest.recreation.recmodel_client

    02/13/2017 12:26:59 root DEBUG

    02/13/2017 12:26:59 root DEBUG Build details

    02/13/2017 12:26:59 root DEBUG Interpreter

    02/13/2017 12:26:59 root DEBUG Current temp dir: C:\FILES\pons\BIOCENOSE\2017\Lot4\ArcGIS\tmp

    02/13/2017 12:26:59 root DEBUG tempfile.tempdir: C:\FILES\pons\BIOCENOSE\2017\Lot4\ArcGIS\tmp

    02/13/2017 12:26:59 root DEBUG

    02/13/2017 12:26:59 root DEBUG System

    02/13/2017 12:26:59 root DEBUG OS : Windows-7-6.1.7601-SP1

    02/13/2017 12:26:59 root DEBUG Processor architecture:
    AMD64

    02/13/2017 12:26:59 root DEBUG FS encoding : mbcs

    02/13/2017 12:26:59 root DEBUG Preferred encoding: cp1252

    02/13/2017 12:26:59 root DEBUG

    02/13/2017 12:26:59 root DEBUG Python

    02/13/2017 12:26:59 root DEBUG Version : 2.7.9

    02/13/2017 12:26:59 root DEBUG Build : ('default', 'Dec
    10 2014 12:24:55')

    02/13/2017 12:26:59 root DEBUG Compiler : MSC v.1500 32
    bit (Intel)

    02/13/2017 12:26:59 root DEBUG Implementation : CPython

    02/13/2017 12:26:59 root DEBUG Architecture : 32bit

    02/13/2017 12:26:59 root DEBUG Linkage format : WindowsPE

    02/13/2017 12:26:59 root DEBUG

    02/13/2017 12:26:59 root DEBUG Packages

    02/13/2017 12:26:59 root DEBUG Cython : ?

    02/13/2017 12:26:59 root DEBUG Numpy : 1.11.2

    02/13/2017 12:26:59 root DEBUG Scipy : 0.16.1

    02/13/2017 12:26:59 root DEBUG OSGEO : 1.11.3

    02/13/2017 12:26:59 root DEBUG Shapely : 1.5.5

    02/13/2017 12:26:59 root DEBUG InVEST : 3.3.3

    02/13/2017 12:26:59 root DEBUG

    02/13/2017 12:26:59 root DEBUG

    02/13/2017 12:26:59 root DEBUG Exception not environment-related

    02/13/2017 12:26:59 root DEBUG Printing traceback

    Traceback (most recent call last):

    File
    "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.iui.executor",
    line 620, in runModel

    File
    "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.recreation.recmodel_client",
    line 229, in execute

    File
    "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\Pyro4.core",
    line 178, in __call__

    File
    "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\Pyro4.core",
    line 450, in _pyroInvoke

    NotImplementedError: Wrong number of arguments for overloaded
    function 'CoordinateTransformation_TransformPoint'.

    Possible C/C++ prototypes are:

    TransformPoint(OSRCoordinateTransformationShadow *,double
    [3])

    TransformPoint(OSRCoordinateTransformationShadow *,double
    [3],double,double,double)







    02/13/2017 12:26:59 root ERROR Exiting due to failures



    NotImplementedError encountered: Wrong
    number of arguments for overloaded function

    'CoordinatTrasnformation_TrasnformPoint'.
    Possible C/C++ prototypes are: TransformPoint (OSRCoordinateTransformationShadow
    *, double [3]) TransformPoint (OSRCoordinateTransformationShadow *, double
    [3], double, double, double)

    See the log for details
    Post edited by Stickophobe on
  • RichRich Administrator, NatCap Staff
    Hi Stickophobe, from your log it looks like you might be using InVEST 3.1.3, is that right?  If so, could you try upgrading to 3.3.3 first, trying again, and then posting your log again if it's an issue?  (sorry for the hassle)

  • Hello again!

    I have tried with 3.3.2 version (because it's quite long to have something installed in my office) and I have the same message problem. I have tried with two computers.

    I figured it out that it could be a coordinate system issue but I checked and my shapefile is in "WGS_1984_Complex_UTM_Zone_30N" coordinate system so it should work, isn't it?

    I will test 3.3.3 version as soon as possible. For now, I don't have any idea where the problem lies.
  • I have finally tried with the 3.3.3 version and the problem remains.
  • DaveDave Member, NatCap Staff
    Hi @Stickophobe,

    Sorry for the struggle. I'm fairly confident that if you choose a different coordinate system for your shapefiles you will be able to avoid this error. I recommend this one: http://spatialreference.org/ref/epsg/wgs-84-utm-zone-30n/

    I think if you examine the prj files of shapefiles with this system and your original "Complex" one, you'll see some minor differences. I believe ArcGIS is the only software that deals with those "Complex" systems.

    Thanks!
  • Hi Dave,

    I have just tried this coordinate system and it has worked! I finally have results!

    Thank you a lot, your a great team. Active and likeable.
  • SylvieSylvie Member
    Hi Rich and team,

    I`m trying to run the recreation model and have run into similar problems as @Stickophobe in that I get the error message `receiving: connection lost: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or establised connection failed because connected host has failed to respond``

    I have read through this thread and tried switching from a Wifi to a more reliable Ethernet connection, disabling the firewalls and still have no success. I`ve also tried downloading that fix you provided without success. Do you have another suggestions?

    thanks! 

     Here is the log output from it:

    Initializing...

    05/31/2017 15:31:06 root DEBUG Loading <module 'natcap.invest.recreation.recmodel_client' from 'C:\INVEST~1.POS\INVEST~1\natcap\invest\recreation\recmodel_client.pyc'> in frozen environment

    Arguments:

    aoi_path C:/Users/Labo_JD/Documents/Sylvia/Models/Tourism/MRC_UTMCopy.shp

    cell_size 7000.0

    compute_regression True

    end_year 2014

    grid_aoi True

    grid_type hexagon

    predictor_table_path C:/Users/Labo_JD/Documents/Sylvia/Models/Tourism/Predictor_Table.csv

    results_suffix

    scenario_predictor_table_path

    start_year 2013

    workspace_dir C:\Users\Labo_JD/Documents/recreation_workspace



    05/31/2017 15:31:06 root INFO Logging will be saved to natcap.invest.recreation.recmodel_client-log-2017-05-31--15_31_06.txt

    05/31/2017 15:31:06 root DEBUG Loaded the model from natcap.invest.recreation.recmodel_client

    05/31/2017 15:31:06 root INFO Executing the loaded model

    05/31/2017 15:31:06 root INFO Running InVEST version "3.3.3.post8+n3ce0af958fe1"

    05/31/2017 15:31:06 root INFO Python architecture: ('32bit', 'WindowsPE')

    05/31/2017 15:31:06 root INFO Disk space remaining for workspace: 1.65 TB

    05/31/2017 15:31:06 root INFO Pointing temporary directory at the workspace at C:\Users\Labo_JD/Documents/recreation_workspace

    05/31/2017 15:31:06 root INFO Starting natcap.invest.recreation.recmodel_client

    05/31/2017 15:31:06 root INFO Setting tempfile.tempdir to C:\Users\Labo_JD/Documents/recreation_workspace\tmp

    05/31/2017 15:31:06 natcap.invest.recmodel_client INFO Contacting server at PYRO:natcap.invest.recreation@104.197.158.239:54321 please wait.

    05/31/2017 15:31:06 natcap.invest.recmodel_client INFO Server online, version: 3.3.2:./recserver_cache/0c010b5f4a698db8_fast_hash.pickle

    05/31/2017 15:31:06 natcap.invest.recmodel_client INFO Server supports year queries between 2005 and 2014

    05/31/2017 15:31:06 natcap.invest.recmodel_client INFO gridding aoi

    05/31/2017 15:31:07 natcap.invest.recmodel_client INFO archiving C:\Users\Labo_JD/Documents/recreation_workspace\aoi.prj

    05/31/2017 15:31:07 natcap.invest.recmodel_client INFO archiving C:\Users\Labo_JD/Documents/recreation_workspace\aoi.shp

    05/31/2017 15:31:07 natcap.invest.recmodel_client INFO archiving C:\Users\Labo_JD/Documents/recreation_workspace\aoi.shx

    05/31/2017 15:31:07 natcap.invest.recmodel_client INFO archiving C:\Users\Labo_JD/Documents/recreation_workspace\aoi.dbf

    05/31/2017 15:31:07 natcap.invest.recmodel_client INFO Please wait for server to calculate PUD...

    05/31/2017 15:31:26 root ERROR ---------------------------------------------------

    05/31/2017 15:31:26 root ERROR ---------------------- ERROR ----------------------

    05/31/2017 15:31:26 root ERROR ---------------------------------------------------

    05/31/2017 15:31:26 root ERROR Error: exception found while running natcap.invest.recreation.recmodel_client

    05/31/2017 15:31:26 root DEBUG

    05/31/2017 15:31:26 root DEBUG Build details

    05/31/2017 15:31:26 root DEBUG Interpreter

    05/31/2017 15:31:26 root DEBUG Current temp dir: C:\Users\Labo_JD/Documents/recreation_workspace\tmp

    05/31/2017 15:31:26 root DEBUG tempfile.tempdir: C:\Users\Labo_JD/Documents/recreation_workspace\tmp

    05/31/2017 15:31:26 root DEBUG

    05/31/2017 15:31:26 root DEBUG System

    05/31/2017 15:31:26 root DEBUG OS : Windows-8-6.2.9200

    05/31/2017 15:31:26 root DEBUG Processor architecture: AMD64

    05/31/2017 15:31:26 root DEBUG FS encoding : mbcs

    05/31/2017 15:31:26 root DEBUG Preferred encoding: cp1252

    05/31/2017 15:31:26 root DEBUG

    05/31/2017 15:31:26 root DEBUG Python

    05/31/2017 15:31:26 root DEBUG Version : 2.7.9

    05/31/2017 15:31:26 root DEBUG Build : ('default', 'Dec 10 2014 12:24:55')

    05/31/2017 15:31:26 root DEBUG Compiler : MSC v.1500 32 bit (Intel)

    05/31/2017 15:31:26 root DEBUG Implementation : CPython

    05/31/2017 15:31:26 root DEBUG Architecture : 32bit

    05/31/2017 15:31:26 root DEBUG Linkage format : WindowsPE

    05/31/2017 15:31:26 root DEBUG

    05/31/2017 15:31:26 root DEBUG Packages

    05/31/2017 15:31:26 root DEBUG Cython : ?

    05/31/2017 15:31:26 root DEBUG Numpy : 1.11.2

    05/31/2017 15:31:26 root DEBUG Scipy : 0.16.1

    05/31/2017 15:31:26 root DEBUG OSGEO : 1.11.3

    05/31/2017 15:31:26 root DEBUG Shapely : 1.5.5

    05/31/2017 15:31:26 root DEBUG InVEST : 3.3.3.post8+n3ce0af958fe1

    05/31/2017 15:31:26 root DEBUG

    05/31/2017 15:31:26 root DEBUG

    05/31/2017 15:31:26 root DEBUG Exception not environment-related

    05/31/2017 15:31:26 root DEBUG Printing traceback

    Traceback (most recent call last):

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.iui.executor", line 620, in runModel

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.recreation.recmodel_client", line 229, in execute

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\Pyro4.core", line 179, in __call__

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\Pyro4.core", line 430, in _pyroInvoke

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\Pyro4.message", line 167, in recv

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\Pyro4.socketutil", line 451, in recv

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\Pyro4.socketutil", line 183, in receiveData

    ConnectionClosedError: receiving: connection lost: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond



    05/31/2017 15:31:26 root ERROR Exiting due to failures 
  • RichRich Administrator, NatCap Staff
    Gosh I'm not sure.  That model won't be tolerant of spotty Internet connections, so it's good you switched to ethernet.  Do you want to pass me your data to see if I can run it on my end?  If it's successful I can dropbox you the results.
  • SylvieSylvie Member
    Hey Rich,

    Apologies for the slow reply, but that would be great! I will email you the data asap.

    Best,
    Sylvi
  • LucyLucy Member
    Hi Rich and team, 
    I'm trying to run the recreation model (v 3.4.2 x86) and have run into similar problems as Stickophobe and Sylvie. The error message I get is "Communication Error encountered: cannot connect: Errno 10061 No connection could be made because the target machine actively refused it".
    I've read through the thread and tried some of the solutions, but I still seem to get the same message. Do you have any other suggestions?
    Many thanks, 
    Lucy
  • DaveDave Member, NatCap Staff
    Hi Lucy,

    That error seems to be an intermittent one, unfortunately. I just did a quick test of the server and had success. Hopefully you aren't still experiencing that communication error. If you are, you could try Rich's suggestion from earlier in this thread to test a much smaller AOI. If you find that you have a specific AOI that is causing problems, please let us know and we can help debug that or suggest a workaround.

    Dave
  • LucyLucy Member
    Hi Dave,
    Thanks for your reply. I've managed to get it working now. I think it was to do with the my organisation's firewall that was preventing it from connecting back.
    MAny thanks, 
    Lucy
Sign In or Register to comment.