Error 10061 "No connection could be made because the target machine actively refused it" in Recreation and Tourisme model

Hi all,

I am trying to run the Visitation : Recreation and Tourism model on Invest but I have an error like this after a few seconds : “Pyro4.errors.CommunicationError: cannot connect to (‘34.44.144.58’, 54321): [WinError 10061] No connection could be made because the target machine actively refused it”.
I tried on my working computer with my institution network (with the latest Invest version) and with my own computer with my personal Internet connection using Invest 3.12.0. I already tried a few days ago and I had the same problem, the same happened with the Invest files. Attached my log file. Any idea/advice about what I am doing wrong ?

Thank you all,
Best

InVEST-natcap.invest.recreation.recmodel_client-log-2025-05-26–14_15_14.txt (3.6 KB)

Hi @Asang , thank you for reporting this issue and including your logfile. I can see you are using a fairly old version of invest. The best thing to do if you can is update to the latest version of invest: InVEST Downloads, User Guides, and Data Sources | The Natural Capital Project

There were significant updates to the recreation model recently:

  • Added a database of geotagged tweets to support calculating twitter-user-days (TUD) as proxy for visitation rates. The model now calculates photo-user-days (PUD) and TUD and uses their average as the response variable in the regression model. Please refer to the User’s Guide for more details on the regression model.
  • Output data were updated to support the new TUD results, and vector outputs are now in GeoPackage format instead of ESRI Shapefile.
  • Regression coefficients are still listed in a summary text file, and are now also included in a tabular output: “regression_coefficients.csv”.

Hi Dave and thank you for your answer.
I have downloaded the last version and it seemed to work until now. I am working on a large area and I had to divid it into 6 polygons for the models to run. However, the model seems to get stuck at the “zipping result” step for two polygons while perfectly running for the rest of them. After a while I get an “TimeoutError [WinError 10060]” message. The same thing happened yesterday. Do you have any idea of what’s happening ? I leave the logfile attached below :
InVEST-natcap.invest.recreation.recmodel_client-log-2025-05-29–11_17_57.txt (42.7 KB)

Hi @Asang , thanks for trying the latest version and sharing your logfile. It appears there was a dropped connection between you and the server at the point where it was trying to send back the results. From your logfile, this is not a particularly large amount of data, so I’m a little bit surprised to hear this happened more than once. Do you feel like you have a reliable internet connection?

I confirmed that server is running properly. I would expect that if you tried it again, it would work. I could also send you a private message with the results. They appear to be complete on the server.