[GeoNetwork-users] same thumbnail upload problem

Dear list,

my first post to this list and also starting with geonetwork so bare with
me. Hello everyone :wink:

I directly ran in issure that was asked some months ago, but I couldn't
find an answer:
https://sourceforge.net/mailarchive/message.php?msg_id=28699097

I had the same error, when trying to upload an image, with the scale
thumbnail checkbox checked. After disabling the scaling I get the following
error:

java.lang.Exception: unable to move uploaded thumbnail to destination
directory

Geonetwork is running in tomcat, tomcat user has permission everywhere, but
maybe not in the destination directory, but where is the destination
directory?

Thanks, Michael

the complete stack trace:

2012-08-03 10:07:35,982 ERROR [jeeves.dbmspool] - reconnecting: 877023>=1
ms since last connection
2012-08-03 10:07:36,005 DEBUG [jeeves.engine] - TransformerFactoryFactory:
de.fzi.dbs.xml.transform.CachingTransformerFactory
2012-08-03 10:07:36,005 DEBUG [jeeves.engine] - TransformerFactoryFactory:
produces transformer implementation net.sf.saxon.IdentityTransformer
2012-08-03 10:07:36,008 ERROR [jeeves.service] - Exception when executing
service
2012-08-03 10:07:36,008 ERROR [jeeves.service] - (C) Exc :
java.lang.Exception: unable to move uploaded thumbnail to destination
directory
2012-08-03 10:07:36,009 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
  <message>unable to move uploaded thumbnail to destination
directory</message>
  <class>Exception</class>
  <stack>
    <at class="org.fao.geonet.services.thumbnail.Set" file="Set.java"
line="144" method="exec" />
    <at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="238" method="execService" />
    <at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="141" method="execServices" />
    <at class="jeeves.server.dispatchers.ServiceManager"
file="ServiceManager.java" line="399" method="dispatch" />
    <at class="jeeves.server.JeevesEngine" file="JeevesEngine.java"
line="670" method="dispatch" />
    <at class="jeeves.server.sources.http.JeevesServlet"
file="JeevesServlet.java" line="185" method="execute" />
    <at class="jeeves.server.sources.http.JeevesServlet"
file="JeevesServlet.java" line="108" method="doPost" />
    <at class="javax.servlet.http.HttpServlet" file="HttpServlet.java"
line="637" method="service" />
    <at class="javax.servlet.http.HttpServlet" file="HttpServlet.java"
line="717" method="service" />
    <at class="org.apache.catalina.core.ApplicationFilterChain"
file="ApplicationFilterChain.java" line="290" method="internalDoFilter" />
  </stack>
  <request>
    <language>en</language>
    <service>metadata.thumbnail.set</service>
  </request>
</error>
2012-08-03 10:07:36,009 INFO [jeeves.service] - -> dispatching to error
for : metadata.thumbnail.set
2012-08-03 10:07:36,014 DEBUG [jeeves.engine] - TransformerFactoryFactory:
de.fzi.dbs.xml.transform.CachingTransformerFactory
2012-08-03 10:07:36,015 DEBUG [jeeves.engine] - TransformerFactoryFactory:
produces transformer implementation net.sf.saxon.IdentityTransformer
2012-08-03 10:07:36,016 INFO [jeeves.service] - -> transforming with
stylesheet : /usr/share/tomcat6/webapps/geonetwork/xsl/error.xsl
2012-08-03 10:07:36,017 DEBUG [jeeves.engine] - TransformerFactoryFactory:
de.fzi.dbs.xml.transform.CachingTransformerFactory
2012-08-03 10:07:36,017 DEBUG [jeeves.engine] - TransformerFactoryFactory:
produces transformer implementation net.sf.saxon.IdentityTransformer
2012-08-03 10:07:37,871 INFO [jeeves.service] - -> end error
transformation for : metadata.thumbnail.set
2012-08-03 10:07:37,872 INFO [jeeves.service] - -> error ended for :
metadata.thumbnail.set

--
-----------------------------------------------------------
Michael Schulz

Hi Michael,

Could you tell me which version of GeoNetwork you are using? The data
directories have moved around a bit between version, as well as a few other
changes that could effect this.

Cheers,
Byron Cochrane
LISAsoft

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/same-thumbnail-upload-problem-tp4992892p4993786.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Byron,

I'm using Geonetwork 2.6.3, the culprit was the "../../data" datadir
definition in config.xml. In our tomcat setup I assumed it pointed to the
data directory in /WEB-INF where e.g. the /removed folder was created, but
obviously not. After all I created an external specific geonetwork_data_dir
and pointed the datadir param to geonetwork_data_dir/data (and also
setting the catalina GEONETWORK_DATADIR variable pointing
to geonetwork_data_dir). It's working and I hope it's the correct way?

Thanks, Michael

2012/8/8 ByronCinNZ <cochranes4@anonymised.com>

Hi Michael,

Could you tell me which version of GeoNetwork you are using? The data
directories have moved around a bit between version, as well as a few other
changes that could effect this.

Cheers,
Byron Cochrane
LISAsoft

--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/same-thumbnail-upload-problem-tp4992892p4993786.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--
-----------------------------------------------------------
Michael Schulz