Primary links

Deployement Error - "No database Selected"

Hi i am using Java as language and tried to create deployment but in select project list it is empty...First i used the ActiveGrid Studio 2.3.1 version.Then i downloaded the ActiveGrid 2.3.1 Commercial version and i successfully deployed the application.Then i tried to redeploy it in linux and it was reployed succesfully.But when i executed the page i got the error as msgpart abc has no database selected.Kindly help me out to clear the error.

Thanks

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gcohen's picture

start the studio if you are

  1. start the studio
  2. if you are running in java mode, be sure to have Tools-Options Tomcat server running in console mode
  3. close all projects
  4. set the Log dropdown to ActiveGrid Studio
  5. hit Clear
  6. open the project thats giving you trouble
  7. if any exceptions are thrown in the log window, copy and past them, and save it as openingProject.txt
  8. hit Clear on the log window
  9. set the Log dropdown to Python Applications
  10. hit Clear
  11. do a test run, click around to where error normally would occur
  12. copy any exceptions from the log to runtimeProject.txt
  13. set the Log dropdown to ActiveGrid Studio
  14. copy any exceptions from the log to runtimeProject.txt
  15. copy any exceptions from the Java console to runtimeProject.txt
  16. Clear ¨Python Applications" and ¨ActiveGrid Studio¨ logs
  17. set the Log dropdown to ActiveGrid Studio
  18. Tools->Deploy, ...
  19. copy any errors from the Java Console, ActiveGrid Studio, and Python Applications to deployErrors.txt
  20. Post em

thanks

geremy

Succesfully Deployed

Hi Geremy

Thanks for ur response.The error was after deployement there was no database connectivity.I have downloaded mysql jar file & executed successfully in Tomcat Server

Thanks for ur sugesstion

Cibi

edc's picture

What if it works in studio, but not deployment ?

Hello Geremy,

Can you speak to effective use of log files for production only issues ? For example, when things work great in studio and the issue, such as above, occur in the deployment environment only.

Are there AG specific log files to look for ?

Are there AG specific line leaders to grep for in the system/server log files ?

Other tricks to searching system and server log files ?

-EdC

 

 

gcohen's picture

 Hi EdC!-   Here is a good

 Hi EdC!-

 

Here is a good place to start.  Once you install AG Server on Linux, you can change the various debug settings here:

 

AG_INSTALL/local/logs/pyRunLog.ini

 

Next, set the Apache config to pass through the lowest-level debug message.  At line 512 of httpd.conf found at AG_INSTALL/local/conf, set LogLeve to debug.

 

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel debug

 

Next, restart the server with an

activegridctl restart

command.

 

You can now tail AG_INSTALL/local/logs/error_log to watch whats going on in real time.  I've noticed when an exception is thrown sometimes the CR/LFs dont come through right.  To get around this, try something like:

 

tail -f error_log | sed 's/\\n/\n/g'

 

Give that a run, and tell me what ya think.

geremy

 

--

Geremy Cohen
Community Dev Manager
ActiveGrid, Incorporated
150 Spear Street, Suite 525
San Francisco, California 94105