question

vigneshs avatar image
0 Likes"
vigneshs asked Jeanette F commented

FlexSim Webserver not starting instances for model

webserver error.PNG

I have Flexsim educational license installed on my computer and working successfully. The model runs fine without the use of webserver. But when started in web server I get error message instantly showing "Failed to start instance on the server". I have checked submitted answers previously and configured all the paths for webserver configuration text file and also tried by starting with administrator permissions still the same error. My models are placed under documents and flexsim folder only.

@Ben Wilson @Joerg Vogel requesting to help on this issue. What can be the best way to debug or identify the cause of this issue.

FlexSim 22.0.1
flexsim webserver
webserver-error.png (47.4 KiB)
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jacob Gillespie avatar image Jacob Gillespie ♦ commented ·
Either it failed to create the process or it failed to register with the webserver after FlexSim opens.
0 Likes 0 ·
vigneshs avatar image vigneshs Jacob Gillespie ♦ commented ·
The local flexsim model is working. But in the web server when i pull the same model, it is trying to create instance but it fails withe the above said error message.
0 Likes 0 ·
vigneshs avatar image vigneshs vigneshs commented ·
@Jacob Gillespie any updates are really appreciated.
0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @vigneshs, was Logan Gold's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Logan Gold avatar image
0 Likes"
Logan Gold answered

We were able to troubleshoot this issue with a web meeting, and it seems like the webserver was timing out while waiting for FlexSim to open and load the model(s). The solution was to increase the value of the "Reply Timeout" line in the "flexsim webserver configuration.txt" file.

@vignesh.s, I can't remember if you had the configuration file set up to use the FlexSim Version Selector or not. But if the webserver is using the Version Selector, then you can try changing the configuration file to use the specific version of FlexSim you need instead, and that can make instances start/load faster.

Also, I know we looked at a few possible custom shape files that might be causing the models to open slowly. There are some "Guidelines for Creating Custom 3D Objects" in the user manual. You may be able to speed up the problematic models by making sure those imported files are following these guidelines:

https://docs.flexsim.com/en/21.2/Using3DObjects/CreatingCustomObjectsAnimations/CreatingCustomObjects/CreatingCustomObjects.html

At the very least, you can test to see if this is an issue by replacing any custom shapes with basic shapes and then trying to load the model (with and without the webserver). If the models load significantly faster with the basic shapes, then you may want to put some time into optimizing the custom shapes so things work better with the webserver.

Let us know if there are any more issues, especially if the webserver still seems to time out even after increasing the timeout line in the configuration file.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.