Agile-Developer

Agile Developer

Frequently Asked Questions

Frequently Asked Questions

• How to check if the node server is running or not? 

• What should I do if I do not see the success message in the browser
even after running nodeAppStart.bat command? 

• What should I do if I see an error ‘The specified module could not
be found -oracle.node’? 
 

• What should I do if I get an error ‘oracledb not found’? 

• While running npmInstall.bat, I see lot of errors in red color, what
are they? 

• I have re-installed Oracle and my node application is not starting
now.What should I do now? 

• I see the error “%1 is not a win32 application” while executing
‘node app’. What could be the cause? 

• How do I make my application work and accessible outside my
network? 

• What should I do if I see the error ‘TNS could not resolve the name
spec­ified’ after logging into an application? 

• I have multiple instances of node server running in my machine, how
do I manage it? 

How to check if the node server is running or not?

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.

What should I do if I do not see the success message in the
browser even after run­ning nodeAppStart.bat command?

Run nodeAppStop.bat to stop the server. Open a command prompt win­dow in the node
folder and type ‘node app’. You might again get some er­ror. Some common errors and its solutions are listed
below.

What should I do if I see an error ‘The specified module could
not be found -ora­cle.node’?

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 ex­plorer 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.

What should I do if I get an error ‘oracledb not found’?

This means your node setup is incomplete. You need to run npmIn­stall.bat again
without any errors. You may ignore warnings.

While running npmInstall.bat, I see lot of errors in red color, what
are they?

Check whether the paths are valid or not. The python path is resolved from the ‘%USERPROFILE%’, sometimes it may
be incorrectly pointing to a lo­cation other than the user profile. In such cases, edit the path by
hardcod­ing the exact location of the python path. Also, check if some windows updates are to be installed
in the system and restart the system. Occasion­ally, you may need to check the OCI_INC_DIR and OCI_LIB_DIR.

I have re-installed Oracle and my node application is not starting
now.What should I do now?

   In the path section of the system variables, make sure that the instant cli­ent path is on
the top followed by the python paths. This is mandatory for the successful compilation of the oracledb library.
During the oracle instal­lation, location will be on the top of the path(system variables) by its
install­er.

I see the error “%1 is not a win32 application” while executing
‘node app’. What could be the cause?

This is because you might have directly copied the project folder from an­other 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.

How do I make my application work and accessible outside my
network?

You need to whitelist the port number or contact the service provider of your server.  

What should I do if I see the error ‘TNS could not resolve the
name specified’ after logging into an application?

   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.

I have multiple instances of node server running in my machine,
how do I manage it?

Navigate to the specific node folder and run nodeAppStop.bat, node­AppStart.bat or nodeAppRestart.bat based
on your need. For example, if you have made some changes in the node folder of a project, run
nodeAp­pRestart.bat.