Hi, I had this issue before, where having installed using Ariel's GeoNode packages, changing the following files does not result in a change on GeoServer Data directory. The files are: /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml /etc/geonode/geoserver/web.xml No change in either of this results in the change of the Data directory. The data directory points to /var/lib/tomcat6/webapps/geoserver/data. Any pointers? -- Regards, Jude Mwenda Skype id: jmwenda Twitter: www.twitter.com/judemwenda Web: www.africangeogeek.com "Was ist mein Leben, wenn ich nicht mehr nützlich für andere." Johann Wolfgang von Goethe
Well, changing the datadir can be slightly tricky for two reasons: 1) GeoServer will not respect this setting until *tomcat is restarted* 2) GeoServer will *ignore the setting* if the directory doesn't exist (that one always trips me up.) So double-check that the directory exists - either copy/paste the path from your web.xml into the command line for an "ls" command, or use "readlink -f my-data-dir" to get a full path to the datadir you can copy/paste into the web.xml. Then restart GeoServer and check the tomcat log for errors. -- David Winslow OpenGeo - http://opengeo.org/ On Wed, Oct 19, 2011 at 5:56 AM, jude mwenda <judemwenda@gmail.com> wrote: > Hi, > I had this issue before, where having installed using Ariel's GeoNode > packages, changing the following files does not result in a change on > GeoServer Data directory. The files are: > /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml > /etc/geonode/geoserver/web.xml > > No change in either of this results in the change of the Data directory. > The data directory points to /var/lib/tomcat6/webapps/geoserver/data. Any > pointers? > > -- > Regards, > > Jude Mwenda > Skype id: jmwenda > Twitter: www.twitter.com/judemwenda > Web: www.africangeogeek.com > > "Was ist mein Leben, wenn ich nicht mehr nützlich für andere." > Johann Wolfgang von Goethe >
Did you check the group and owner of the folder "/var/lib/geoserver/geonode-data" ? We found that if you create/copy the folder from another installation usually the owner and the group is not set correctly to "tomcat6" and geoserver is not able to read that folder so set the default data directory to "/var/lib/tomcat6/webapps/geoserver/data". Ciao, Thomas
Thomas, yes that is correct, a 'copy' of the geonode-data directory will alter the users and permissions. However if you copy the directory using tar, for example: tar cf - dirA | tar xvf - -C dirB then you'll preserver all the users and file directory permissions. Cheers, Ben -- Ben Wyss OpenQuake Community Manager GEM Foundation c/o Eucentre, Via Ferrata 1 27100 Pavia, Italy www.openquake.org On Mar 7, 2012, at 7:42 PM, info@dooit.it wrote: > Did you check the group and owner of the folder > "/var/lib/geoserver/geonode-data" ? > > We found that if you create/copy the folder from another installation > usually the owner and the group is not set correctly to "tomcat6" and > geoserver is not able to read that folder so set the default data > directory to "/var/lib/tomcat6/webapps/geoserver/data". > > Ciao, Thomas > >
Does the directory have to have files/content. I created a file which is empty and restarted but the GeoServer still reads /var/lib/tomcat6/webapps/geoserver/data On 19 October 2011 16:49, David Winslow <dwinslow@opengeo.org> wrote: > Well, changing the datadir can be slightly tricky for two reasons: > > 1) GeoServer will not respect this setting until *tomcat is restarted* > 2) GeoServer will *ignore the setting* if the directory doesn't exist > (that one always trips me up.) > > So double-check that the directory exists - either copy/paste the path from > your web.xml into the command line for an "ls" command, or use "readlink -f > my-data-dir" to get a full path to the datadir you can copy/paste into the > web.xml. > > Then restart GeoServer and check the tomcat log for errors. > > -- > David Winslow > OpenGeo - http://opengeo.org/ > > On Wed, Oct 19, 2011 at 5:56 AM, jude mwenda <judemwenda@gmail.com> wrote: > >> Hi, >> I had this issue before, where having installed using Ariel's GeoNode >> packages, changing the following files does not result in a change on >> GeoServer Data directory. The files are: >> /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml >> /etc/geonode/geoserver/web.xml >> >> No change in either of this results in the change of the Data directory. >> The data directory points to /var/lib/tomcat6/webapps/geoserver/data. Any >> pointers? >> >> -- >> Regards, >> >> Jude Mwenda >> Skype id: jmwenda >> Twitter: www.twitter.com/judemwenda >> Web: www.africangeogeek.com >> >> "Was ist mein Leben, wenn ich nicht mehr nützlich für andere." >> Johann Wolfgang von Goethe >> > > -- Regards, Jude Mwenda Skype id: jmwenda Twitter: www.twitter.com/judemwenda Web: www.africangeogeek.com "Was ist mein Leben, wenn ich nicht mehr nützlich für andere." Johann Wolfgang von Goethe
Yes, please try copying the data/ directory from the GeoServer WAR file to the desired location. -- David Winslow OpenGeo - http://opengeo.org/ On Wed, Oct 19, 2011 at 10:01 AM, jude mwenda <judemwenda@gmail.com> wrote: > Does the directory have to have files/content. I created a file which is > empty and restarted but the GeoServer still reads > /var/lib/tomcat6/webapps/geoserver/data > > > On 19 October 2011 16:49, David Winslow <dwinslow@opengeo.org> wrote: > >> Well, changing the datadir can be slightly tricky for two reasons: >> >> 1) GeoServer will not respect this setting until *tomcat is restarted* >> 2) GeoServer will *ignore the setting* if the directory doesn't exist >> (that one always trips me up.) >> >> So double-check that the directory exists - either copy/paste the path >> from your web.xml into the command line for an "ls" command, or use >> "readlink -f my-data-dir" to get a full path to the datadir you can >> copy/paste into the web.xml. >> >> Then restart GeoServer and check the tomcat log for errors. >> >> -- >> David Winslow >> OpenGeo - http://opengeo.org/ >> >> On Wed, Oct 19, 2011 at 5:56 AM, jude mwenda <judemwenda@gmail.com>wrote: >> >>> Hi, >>> I had this issue before, where having installed using Ariel's GeoNode >>> packages, changing the following files does not result in a change on >>> GeoServer Data directory. The files are: >>> /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml >>> /etc/geonode/geoserver/web.xml >>> >>> No change in either of this results in the change of the Data directory. >>> The data directory points to /var/lib/tomcat6/webapps/geoserver/data. >>> Any pointers? >>> >>> -- >>> Regards, >>> >>> Jude Mwenda >>> Skype id: jmwenda >>> Twitter: www.twitter.com/judemwenda >>> Web: www.africangeogeek.com >>> >>> "Was ist mein Leben, wenn ich nicht mehr nützlich für andere." >>> Johann Wolfgang von Goethe >>> >> >> > > > -- > Regards, > > Jude Mwenda > Skype id: jmwenda > Twitter: www.twitter.com/judemwenda > Web: www.africangeogeek.com > > "Was ist mein Leben, wenn ich nicht mehr nützlich für andere." > Johann Wolfgang von Goethe >
Sadly on changing the file /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml changes still do not reflect. Any pointers? On 19 October 2011 17:03, David Winslow <dwinslow@opengeo.org> wrote: > Yes, please try copying the data/ directory from the GeoServer WAR file to > the desired location. > > -- > David Winslow > OpenGeo - http://opengeo.org/ > > > On Wed, Oct 19, 2011 at 10:01 AM, jude mwenda <judemwenda@gmail.com>wrote: > >> Does the directory have to have files/content. I created a file which is >> empty and restarted but the GeoServer still reads >> /var/lib/tomcat6/webapps/geoserver/data >> >> >> On 19 October 2011 16:49, David Winslow <dwinslow@opengeo.org> wrote: >> >>> Well, changing the datadir can be slightly tricky for two reasons: >>> >>> 1) GeoServer will not respect this setting until *tomcat is restarted* >>> 2) GeoServer will *ignore the setting* if the directory doesn't exist >>> (that one always trips me up.) >>> >>> So double-check that the directory exists - either copy/paste the path >>> from your web.xml into the command line for an "ls" command, or use >>> "readlink -f my-data-dir" to get a full path to the datadir you can >>> copy/paste into the web.xml. >>> >>> Then restart GeoServer and check the tomcat log for errors. >>> >>> -- >>> David Winslow >>> OpenGeo - http://opengeo.org/ >>> >>> On Wed, Oct 19, 2011 at 5:56 AM, jude mwenda <judemwenda@gmail.com>wrote: >>> >>>> Hi, >>>> I had this issue before, where having installed using Ariel's GeoNode >>>> packages, changing the following files does not result in a change on >>>> GeoServer Data directory. The files are: >>>> /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml >>>> /etc/geonode/geoserver/web.xml >>>> >>>> No change in either of this results in the change of the Data directory. >>>> The data directory points to /var/lib/tomcat6/webapps/geoserver/data. >>>> Any pointers? >>>> >>>> -- >>>> Regards, >>>> >>>> Jude Mwenda >>>> Skype id: jmwenda >>>> Twitter: www.twitter.com/judemwenda >>>> Web: www.africangeogeek.com >>>> >>>> "Was ist mein Leben, wenn ich nicht mehr nützlich für andere." >>>> Johann Wolfgang von Goethe >>>> >>> >>> >> >> >> -- >> Regards, >> >> Jude Mwenda >> Skype id: jmwenda >> Twitter: www.twitter.com/judemwenda >> Web: www.africangeogeek.com >> >> "Was ist mein Leben, wenn ich nicht mehr nützlich für andere." >> Johann Wolfgang von Goethe >> > > -- Regards, Jude Mwenda Skype id: jmwenda Twitter: www.twitter.com/judemwenda Web: www.africangeogeek.com "Was ist mein Leben, wenn ich nicht mehr nützlich für andere." Johann Wolfgang von Goethe
I'm not sure then. Perhaps as a workaround you can use a symbolic link? ln -s /path/to/my/data /var/lib/tomcat6/webapps/geoserver/data/ -- David Winslow OpenGeo - http://opengeo.org/ On Wed, Oct 19, 2011 at 10:09 AM, jude mwenda <judemwenda@gmail.com> wrote: > Sadly on changing the > file /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml changes still do not > reflect. Any pointers? > > > On 19 October 2011 17:03, David Winslow <dwinslow@opengeo.org> wrote: > >> Yes, please try copying the data/ directory from the GeoServer WAR file to >> the desired location. >> >> -- >> David Winslow >> OpenGeo - http://opengeo.org/ >> >> >> On Wed, Oct 19, 2011 at 10:01 AM, jude mwenda <judemwenda@gmail.com>wrote: >> >>> Does the directory have to have files/content. I created a file which is >>> empty and restarted but the GeoServer still reads >>> /var/lib/tomcat6/webapps/geoserver/data >>> >>> >>> On 19 October 2011 16:49, David Winslow <dwinslow@opengeo.org> wrote: >>> >>>> Well, changing the datadir can be slightly tricky for two reasons: >>>> >>>> 1) GeoServer will not respect this setting until *tomcat is restarted* >>>> 2) GeoServer will *ignore the setting* if the directory doesn't exist >>>> (that one always trips me up.) >>>> >>>> So double-check that the directory exists - either copy/paste the path >>>> from your web.xml into the command line for an "ls" command, or use >>>> "readlink -f my-data-dir" to get a full path to the datadir you can >>>> copy/paste into the web.xml. >>>> >>>> Then restart GeoServer and check the tomcat log for errors. >>>> >>>> -- >>>> David Winslow >>>> OpenGeo - http://opengeo.org/ >>>> >>>> On Wed, Oct 19, 2011 at 5:56 AM, jude mwenda <judemwenda@gmail.com>wrote: >>>> >>>>> Hi, >>>>> I had this issue before, where having installed using Ariel's GeoNode >>>>> packages, changing the following files does not result in a change on >>>>> GeoServer Data directory. The files are: >>>>> /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml >>>>> /etc/geonode/geoserver/web.xml >>>>> >>>>> No change in either of this results in the change of the Data >>>>> directory. The data directory points to /var/lib/tomcat6/webapps/geoserver/data. >>>>> Any pointers? >>>>> >>>>> -- >>>>> Regards, >>>>> >>>>> Jude Mwenda >>>>> Skype id: jmwenda >>>>> Twitter: www.twitter.com/judemwenda >>>>> Web: www.africangeogeek.com >>>>> >>>>> "Was ist mein Leben, wenn ich nicht mehr nützlich für andere." >>>>> Johann Wolfgang von Goethe >>>>> >>>> >>>> >>> >>> >>> -- >>> Regards, >>> >>> Jude Mwenda >>> Skype id: jmwenda >>> Twitter: www.twitter.com/judemwenda >>> Web: www.africangeogeek.com >>> >>> "Was ist mein Leben, wenn ich nicht mehr nützlich für andere." >>> Johann Wolfgang von Goethe >>> >> >> > > > -- > Regards, > > Jude Mwenda > Skype id: jmwenda > Twitter: www.twitter.com/judemwenda > Web: www.africangeogeek.com > > "Was ist mein Leben, wenn ich nicht mehr nützlich für andere." > Johann Wolfgang von Goethe >