Refinery Server not running issue

Hi all,

I’m playing around with Refinery in Dynamo 2.0.2 and am having an issue when creating a new study in Refinery - i get the issue ‘Server is not running’.

Is this an issue with the Refinery server actually being down or is it an IT issue whereby the network i’m on is not setup to connect to the Refinery server?

Anyone else have this issue pop up? If so, what did you do to resolve it?

Thanks!
ND

Can you post an image of the error?

So the ‘server’ is executed locally on your C drive. Can you open up task manager and see if RestDynamoCore.Exe and RefineryServer.exe are running?

If not, my guess is that it’s an AV/ASW or Permissions issue (so local security).

Also what version of Refinery are you using? Be sure to keep up to date as a lot of this stuff changes fast.

FYI @Lilli_Smith

Got the same issue, but RestDynamoCore.Exe and RefineryServer.exe are running on the task manager. BTW, I am using Refinery 0.4.26

What is the CPU usage of the RestDynamoCore tasks? If they and the arefinery server are all idling at 0% then you need to force quit the process tree for RefineryServer (right click it in the details, select end process tree - that will stop all the Refinery Server instances and the RestDynamoCore instances). Then close and restart Dynamo. Then restart refinery. Once you’re back in the process may or may not kick back off where it stopped

got the same issue here and the RestDynamoCore.Exe and RefineryServer.exe are NOT running… i downloaded the last version of dynamo n refinery… what should I do to solve it?? Did u solve those issues???

Restart your system as a first step. That usually solves it.

If not:

  • Close Refinery
  • Open task manager (ctrl + shift + esc)
  • Go to the details tab
  • Find both instances of RefineryServer.exe and all instances of RestDynamoCore.exe

If RestDynamoCore or RefineryServer are not idling at 0% then you just need to exercise some patience as they’re actively working.

  • If RefineryServer and all instances of RestDynamoCore are idling at 0% cpu:
  • Right click on RefineryServer
  • Select ‘end process tree’ from the list
  • Confirm all instances of RestDynamoCore and RefineryServer are closed
  • Restart Refinery
  • Stop any auto-starting run on restart, and delete the results as they may be incorrect due to the force quit
  • Start a new run in Refinery and confirm that RestDynamoCore and RefineryServer do not get stuck in another idle loop by watching task manager.

Hmm, most of the time the cpu were idling at 0%. Have tried it your way @jacob.small and it did show “the server is running”. But no cases were created right after I click “Generate”.

Looks like a common issue to me. I thought very few people would have this problem. Hope this problem would be solved in the next release. And please remind me if you have any way to solve this instead of using task manager. Thx~

Heads up if you haven’t upgraded refinery yet. I’m pretty sure the latest update of refinery from 6 days ago 0.4.44 addresses a major cause of these hang ups; at least that was what was mentioned on the internal refinery boards. I haven’t upgraded yet and am still experiencing the described issues above. @jacob.small fix totally works in the short term and is what I’ve been doing.

1 Like

I have already upgraded refinery but it is still not working for me. When I opened the refinery server log, most of the time it returned the error “‘utf-8’ codec can’t decode byte 0xc0 in position 6”. I tried to google it and found that it might have to do with the language that is embedded in our windows system, but I still don’t have a clue how to fix it.

** Yes, @jacob.small this happened to my sample files as well.
When I am at C:\Users\myusername\AppData\Roaming\Refinery. I found a log file and it shows:
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xc0 in position 6: invalid start byte

*** @Neal_Burnham Sure, it is installed at C:\Users\myusername(my username is just some numbers without any characters like 1234)\AppData\Roaming\Dynamo\Dynamo Core\2.0\packages

Does this happen with the sample files as well? If not upload the dyn that you’re attempting to use so we can have a look at possible causes.

Hi Yuxin,

Can you provide us with your folder path to Refinery? For example:

“C:\Users\{username}\AppData\Roaming\Dynamo\Dynamo Revit\2.0\packages”

Thanks,

The Refinery Team, Neal

@Neal_Burnham Sure Neal, it is installed at C:\Users\myusername(my username is just some numbers without any characters like 1234)\AppData\Roaming\Dynamo\Dynamo Core\2.0\packages

What language are you running Revit and Windows in?

It’s Simplified Chinese

I’m so sorry for bothring you,have you resolved this problem?I got the same issue in the dynamo of revit2021,and my language is simplified Chinese too,but RestDynamoCore doesn’t in the task manage when I using GenerativeDesin in revit2021.If I using refinery for the previous version,RestDynamoCore did appear but iding at 0%.
Would you mind to tell me your how you do?I will really appreciate it.

Old topic but I am getting the same issue using Revit 2022 and Generative Design built on Dynamo 2.12

Are there solutions for this issue or a way to get more information about the issue? I have tried the restarts and the force stop even though “refinery” is no longer used. I tried the steps above from @jacob.small but modified them to match the GenerativeDesign.exe. The same issue occurs on both a laptop and desktop after reboots. Also I generated options successfully with the same graph less than two weeks ago. Please help if anyone has a solution.

2 Likes

For me the server was identified as “trojan” by Windows Security. You can open up your Windows Security app and see the Generative Design server that was blocked and “restore” it.

1 Like