question

Steven Chen avatar image
0 Likes"
Steven Chen asked Jacob Gillespie commented

Problem in the setup of Web Server

Hello,

As shown in the following pictured window, an unanticipated problem emerged as an endeavour was made to test the connectivity of the Web Server in FlexSim via a node.js method provided by Phil BoBo in the post: https://answers.flexsim.com/questions/114207/webserver-210-not-launching.html.

The activation of the "flexsimserver" file did not result in any responses, with the webserver untriggered.

1650337352048.png

For the launching window to remain open, a "pause" was added to the interior script of the file. The snapshot below demonstrates the modification.

1650337430460.png

Considerable uncertainty remains about how to solve the enigmatic problem. I hope somebody may offer ideas and opinions.

Thank you for your time and examination

FlexSim 22.0.2
webserverweb server
1650337352048.png (117.2 KiB)
1650337430460.png (82.0 KiB)
5 |100000

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

1 Answer

Jacob Gillespie avatar image
1 Like"
Jacob Gillespie answered Jacob Gillespie commented

@Steven Chen The problem might be that we are using a very old version of Node.js which is not supported anymore. I tried installing the webserver and was getting SSL errors when trying to install the packages. I updated to Node.js v8.17.0 and things worked better.


Here is a link to that if you want to try uninstalling and updating to a newer version of node.

https://nodejs.org/download/release/v8.17.0/node-v8.17.0-x64.msi

· 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 ·

The first time you start the webserver it calls:

npm install

This downloads the various node module dependencies such as keypress.

What you can do to see what is going wrong is:

  1. Open Command Prompt as an administrator.
  2. Change the directory to the Webserver's installation folder.
  3. Use the above command.
  4. See what error is being thrown when it is trying to download and install the node modules.
0 Likes 0 ·
Steven Chen avatar image Steven Chen Jacob Gillespie ♦ commented ·

Hi

I tried your method, but it get error. How can I do next?

cmd-webserver.jpg


0 Likes 0 ·
cmd-webserver.jpg (157.2 KiB)
Joerg Vogel avatar image Joerg Vogel Steven Chen commented ·

Perhaps you read in and connected links there:

https://stackoverflow.com/questions/49620780/cant-install-any-npm-package-error-4058

Somebody has suggested to quit VS session. Others have tried to install repeatedly the package. And other have killed all sessions of Java. But what do I know of problems like installing software. I just try to find solutions in the internet by keyword phrase “error code 4058”.

0 Likes 0 ·
Jacob Gillespie avatar image Jacob Gillespie ♦ Jacob Gillespie ♦ commented ·

@Steven Chen Sorry you actually have to change the directory to a subdirectory in the webserver.

C:\Program Files (x86)\FlexSim Web Server\webserver
0 Likes 0 ·