question

Ankur A3 avatar image
0 Likes"
Ankur A3 asked Jacob Gillespie edited

FlexSim Webserver Not Launching?

Hi Team,

I am using FlexSim latest trial version 22.2. After installing FlexSim Webserver, it is not opening as it is expected to show cmd window instructing to go on ip address 127.0.0.1.

After clicking on FlexSim webserver, it is just opening for a moment and closing immediately.

Here is the setting in flexsim webserver configuration file:

1662446546686.png

I have also checked on other answers available for almost same issue and tried installing Node.js but it is showing it's latest version is already available. Please refer post below:

https://answers.flexsim.com/questions/113291/flexsim-webserver-does-not-work-properly.html

Can you help me to resolve this issue?

Thank you!

FlexSim 22.2.1
webserverlaunching
1662446546686.png (59.7 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

@Ankur A3

Node.js being at the latest version could be the problem. I've seen incompatibilities between the webserver and newer Node.js versions than the version that ships with the webserver installer.

Try uninstalling both Node.js and the webserver, then install the webserver again. It will install its necessary version of Node.js on its own. Test and let us know the results.

2 Likes 2 ·
Ankur A3 avatar image Ankur A3 Ben Wilson ♦♦ commented ·
Hi @Ben Wilson,

I have installed webserver only very first.

How the suggested method is different in this case?

Thank you!

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ Ankur A3 commented ·

@Ankur A3 ,

You mentioned that you "tried installing Node.js but it is showing it's latest version is already available". This suggests you already had a newer version of Node.js installed before you installed the Webserver. Then when you installed the Webserver the first time, perhaps the included version of Node.js was not installed, because it was older than an existing version already on your computer. Thus you had a mismatch between the Webserver and its required version of Node.js on your computer.

Please test the suggestion of uninstalling both Node.js and the Webserver, then install the webserver. Let us know the results.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Ankur A3, was Jacob Gillespie'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

Jacob Gillespie avatar image
0 Likes"
Jacob Gillespie answered Jacob Gillespie edited

If Ben's suggestion doesn't solve the issue then there are some things you can do to see what is happening.

1. In C:\Program Files (x86)\FlexSim Web Server\webserver delete the node_modules folder. These are downloaded automatically the first time you start the webserver. They could have downloaded incorrectly.

2. Open an elevated command prompt and then navigate to C:\Program Files (x86)\FlexSim Web Server\webserver. Then run the command npm install. This will try to install the node modules and we can see if there is any problems with that. Note that there are some warnings / errors that show up on a functional install that are not a problem.

3. From that same elevated command prompt you can run the server by the command node index.js

Let us know what you find.

5 |100000

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