Hello Markus
The issue of data dir outside not working was an issue of ownership.
This one is solved.
About the connection, the IPT interface provides med with "Could not
establish db connection: Communications link failure Last packet sent to
the server was 0 ms ago."
The log file is compressed and attached to this mail.
Thanks,
Mickaël
On Mon, 2009-05-18 at 15:20 +0200, "Markus Döring (GBIF)" wrote:Mickael,real sorry from my side. Seemed that I've uploaded a wrong snapshotversion to our ftp server. The war there didnt give any message to meneither.I've updated the file and the current ftp war (same name) does workfor me now. But I really had to remove tomcats cached work folderfiles in order to be taken up, pretty stupid, but well.You mentioned pointing IPT to a data dir outside didnt work?That would be a serious issue, but I cant reproduce that. If thatstill is true for you, can you please let us know what exactly happens?cheers,MarkusOn May 14, 2009, at 11:56, Mickael Graf wrote:Markus,I undeployed IPT from the manager interface of tomcat. Then I uploadedthe RC2 file from the same interface. This removed all the settings.Since then I restarted tomcat numerous times. I removed the cache thismorning but nothing changed.Now I just did what you wrote below, but I copied back the datadirectory because IPT didn't like having dataDir pointing to anotherplace.So when I come to my existing resource, under Source Data/SQL DataSources I get the following message:"No Database connected. Please adjust connection parameters to use SQLsources"The I click on Edit, all my parameters are in place and I save it.Then I come back to the previous page I get the message"Resource has been updated successfully." but the message under SQLDataSources is the same as before.This is what is logged after starting tomcat, login and getting to theresource and saving the database information, and it's not much:INFO main-AppConfig.reloadLogger(416) | Reloaded log4j settingsfrom /usr/share/tomcat5/webapps/ipt/data/logging/ipt-developer.xmlINFO main-AppConfig.<init>(57) |--------------------IPT_DATA_DIR: /usr/share/tomcat5/webapps/ipt/dataIPT_WEBAPP_DIR: /usr/share/tomcat5/webapps/iptIPT_BASE_URL: http://www.gbif.se:8080/iptIPT_GEOSERVER_URL: http://www.gbif.se:8080/geoserverIPT_GEOSERVER_DATA_DIR: /usr/share/tomcat5/webapps/geoserver/data--------------------Cheers,MickaëlOn Wed, 2009-05-13 at 21:21 +0200, "Markus Döring (GBIF)" wrote:Mickael,do you get any feedbacka) in the UI when saving a sql connectionb) in the logs?if not, how did you upgrade your installation?You might want to try:- stop tomcat- copy your existing data dir somewhere else- remove the exploded webapps folder- remove the cached version in tomcat/work/Catalina/localhost/ipt- start tomcat with ipt.war inside webapps- stop tomcat- update webapps/ipt/WEB-INF/classes/ipt.properties to point to yoursaved data dir- start tomcatthats the procedure for upgrading to a new IPT version while keepingyour data if its still living within the default webapps folder.Did you do this and still get no message when saving a not working dbconnection?MarkusOn May 13, 2009, at 12:24 PM, Mickael Graf wrote:Markus,The RC2 didn't help much, I'm totally blind as to find where theproblemcomes from.I was wondering if you could tell me which files are involved in theprocess so I can get a better understanding?Cheers,MickaëlOn Tue, 2009-05-12 at 11:47 +0200, "Markus Döring (GBIF)" wrote:Mickael,the latest IPT war snapshot can be found here:ftp://ftp.gbif.org/projects/ipt/downloads/ipt-1.0RC2-SNAPSHOT.warThis version logs connection problems and also uses in addition totomcat logging an ipt.log file inside the data/logging dir.It also shows a simple message if you configure a bad connection inthe manager UI.If you have time, please use this to find out more about your mysqlconenction problem.thanks,MarkusOn May 12, 2009, at 10:17 AM, Markus Döring (GBIF) wrote:Mickael,I looked at the source again and the IPT really doesn't log anyerrors when changing the db connection.This is obviously not very helpful, so I've updated the codealreadyto do so. I will upload a new war file today, so if you like youcantry this version and hopefully find the reason for your connectionproblem. Will post the links later.many thanks,MarkusOn May 11, 2009, at 6:03 PM, Tim Robertson wrote:Hej Mickael,Can you please post the logs you get when you configure and savethedatabase connection?Many thanks,TimOn 11 May 2009, at 14:36, Mickael Graf wrote:Sorry for posting at the wrong place.The database name is correct, and IPT runs on the same server asthemysql database. This database works perfectly with our TAPIRLinkprovider.The MySQL server version is 5.0.45 and Connector/J has version5.1.7. Ithas been tested against Java 1.6.0 (OpenJDK) and against SunJava 6Update 12. None of this worked.Cheers,MickaëlOn Mon, 2009-05-11 at 10:49 +0200, Tim Robertson wrote:Hi Mickael,Please always post questions to the list, to help us keep anFAQ uptodate and allow for others to search etc.I have just tested it myself with the following:Database connection URL: jdbc:mysql://localhost:3306/portalDatabase User: timDatabase Password: passwordand it worked... so, to get started debugging your issue may Ipleaseask some basic questions:- You wrote "jdbc:mysql://localhost:3306/databasename" - isyourdatabase name correct?- You are running the IPT on the same machine as the database?- You are using mysql?Cheers,TimOn 11 May 2009, at 10:26, Mickael Graf wrote:Hi Tim,I'm trying to create a resource in IPT but I encounter aproblemwhilecreating the link to the database: in "Source Data" it iswrittenunder"SQL Data Sources" I have the message "No Database connected.Pleaseadjust connection parameters to use SQL sources" while itkeeps mysettings correctly. I hope I wrote the jdbc string well:jdbc:mysql://localhost:3306/databasename.I surprised because I am using the same parameters as withTAPIRLinkinwhich I don't have any problem. I don't think I should makeanychangesin my grants on my database.Cheers,Mickaël-----------------------------------Mickaël GrafDatabase developper, GBIF Sweden - http://www.gbif.setel: +46 8 5195 4045mailto:mickael.graf@nrm.seSwedish Museum of Natural History - http://www.nrm.seBox 50007SE-104 05 StockholmSweden-----------------------------------Mickaël GrafDatabase developper, GBIF Sweden - http://www.gbif.setel: +46 8 5195 4045mailto:mickael.graf@nrm.seSwedish Museum of Natural History - http://www.nrm.seBox 50007SE-104 05 StockholmSweden_______________________________________________IPT mailing listIPT@lists.gbif.orghttp://lists.gbif.org/mailman/listinfo/ipt-----------------------------------Mickaël Graf, Database developperGBIF Sweden - http://www.gbif.semailto:mickael.graf@nrm.setel: +46 8 5195 4045Swedish Museum of Natural History - http://www.nrm.seBox 50007SE-104 05 StockholmSweden-----------------------------------Mickaël Graf, Database developperGBIF Sweden - http://www.gbif.semailto:mickael.graf@nrm.setel: +46 8 5195 4045Swedish Museum of Natural History - http://www.nrm.seBox 50007SE-104 05 StockholmSweden_______________________________________________IPT mailing listIPT@lists.gbif.orghttp://lists.gbif.org/mailman/listinfo/ipt--
---------------------------------
Mickaël Graf, Database developper
GBIF Sweden - http://www.gbif.se
mailto:mickael.graf@nrm.se
tel: +46 8 5195 4045
Swedish Museum of Natural History - http://www.nrm.se
Box 50007
SE-104 05 Stockholm
Sweden
<ipt.log.tar.bz2>_______________________________________________
IPT mailing list
IPT@lists.gbif.org
http://lists.gbif.org/mailman/listinfo/ipt