Frequently Asked Questions
On the address bar of a browser, type “http://localhost:3015”.
You will get a message as “Server running successfully”. If you do not see this message, it means node server has some issues.
Run nodeAppStop.bat to stop the server. Open a command prompt window in the node folder and type ‘node app’. You might again get some error. Some common errors and its solutions are listed below.
Check the path of the instant client, python, from the path variable of the system variables section. Copy and paste the path values into the file explorer and check if it is a valid one. Alternatively, you can also run ‘echo %PATH%’ in the command prompt and get the path of the instant client and python.
This means your node setup is incomplete. You need to run npmInstall.bat again without any errors. You may ignore warnings.
Check whether the paths are valid or not. The python path is resolved from the ‘%USERPROFILE%’, sometimes it may be incorrectly pointing to a location other than the user profile. In such cases, edit the path by hardcoding the exact location of the python path. Also, check if some windows updates are to be installed in the system and restart the system. Occasionally, you may need to check the OCI_INC_DIR and OCI_LIB_DIR.
In the path section of the system variables, make sure that the instant client path is on the top followed by the python paths. This is mandatory for the successful compilation of the oracledb library. During the oracle installation, location will be on the top of the path(system variables) by its installer.
This is because you might have directly copied the project folder from another system and trying to run it without modifying anything. While copying the project folder, the bitnesses and node versions must be same. But, if you still wish to copy, you must run ‘npmInstall.bat’ batch file after doing so.
You need to whitelist the port number or contact the service provider of your server.
Make sure that the TNS_ADMIN path in the system variables are correct. Also, open the dbconfig.js file under the config folder of the node and check if the tnsnamenode entry value is a valid entry in the tnsnames.ora file.
Navigate to the specific node folder and run nodeAppStop.bat, nodeAppStart.bat or nodeAppRestart.bat based on your need. For example, if you have made some changes in the node folder of a project, run nodeAppRestart.bat.