Hi,

I was testing with my work computer as a localpower user. That user does not 
have full rights but I do not know exactly the limits. My observations:


  *   I used the Install as a service option but I could not start the service. 
Running the startService.bat did not start the service for me but yielded 
always these two lines

net start GeoServer

[Invalid service name] – translated from Finnish

Installer creates also the startup.bat file and next results are obtained by 
running that.

  *   Geoserver does not start if it is installed into the suggested location 
Program Files\GeoServer. With my rights it is not allowed to create a new layer 
during startup. Error:

Please wait while loading GeoServer...



2021-10-04 09:43:02.572:INFO::main: Logging initialized @1579ms to 
org.eclipse.jetty.util.log.StdErrLog

2021-10-04 09:43:02.873:INFO:oejs.Server:main: jetty-9.4.36.v20210114; built: 
2021-01-14T16:44:28.689Z; git: 238ec6997c7806b055319a6d11f8ae7564adc0de; jvm 
1.8.0_252-b09

2021-10-04 09:43:02.888:INFO:oejdp.ScanningAppProvider:main: Deployment monitor 
[file:///C:/Program%20Files/GeoServer/webapps/] at interval 1

2021-10-04 09:43:02.988:WARN:oejw.WebAppContext:main: Failed startup of context 
o.e.j.w.WebAppContext@1e6d1014{geoserver,/geoserver,null,STOPPED}{C:\Program<mailto:o.e.j.w.WebAppContext@1e6d1014%7bgeoserver,/geoserver,null,STOPPED%7d%7bC:\Program>
 Files\GeoServer\webapps\geoserver}

java.lang.IllegalStateException: Unable to create temp dir C:\Program 
Files\GeoServer\work\jetty-0_0_0_0-8080-geoserver-_geoserver-any-



  *   The first installation with the default settings created environmental 
variable GEOSERVER_DATA_DIR set to C:\ProgramData\GeoServer. It seems that 
uninstaller does not remove this variable and giving another path when running 
the installer again does not change GEOSERVER_DATA_DIR. Error:

04 lokakuuta 09:54:36 WARN [geoserver.platform] - Found Java environment 
variable GEOSERVER_DATA_DIR set to C:\ProgramData\GeoServer , but this path 
does not exist

04 lokakuuta 09:54:36 WARN [geoserver.platform] - Found System environment 
variable GEOSERVER_DATA_DIR set to C:\ProgramData\GeoServer , but this path 
does not exist

04 lokakuuta 09:54:36 INFO [geoserver.platform] - Falling back to embedded data 
directory: C:\ohjelmat\gs20rc\webapps\geoserver\data



However, the directory that I gave for the installer was created and populated. 
As a result Geoserver did not start right because it was searching the data_dir 
from a wrong place.



  *   Next I uninstalled again and removed the GEOSERVER_DATA_DIR environment 
variable before running the installer. I used a custom data_dir location but 
the installer did not set the variable at all. The data directory was created 
and populated and after setting the GEOSERVER_DATA_DIR manually I could run 
startup.bat and Geoserver 2.20-RC started.

Conclusion:

  *   There seems to be something to check with setting/removing/changing the 
location of the data_dir with installer and uninstaller
  *   The run as service alternative did not work at all for me
  *   Using directory “Program Files” may make troubles even the installation 
seems to be successful because Jetty wants to create a new directory when it 
starts. I do not know if using ProgramData may show similar issues because I 
used a custom data_dir location in most of my tests.

-Jukka Rahkonen-


Lähettäjä: Jody Garnett <jody.garn...@gmail.com>
Lähetetty: sunnuntai 3. lokakuuta 2021 20.26
Vastaanottaja: GeoServer Users <geoserver-users@lists.sourceforge.net>
Aihe: [Geoserver-users] GeoServer 2.20-RC windows installer testing requested

Reporting in from the foss4g code sprint, and I noticed that Sander and Juan 
produces a GeoServer-install-2.20-RC.exe last week...

I do not have a windows environment handy, can I ask for testing please? 
Download is available from 
https://sourceforge.net/projects/geoserver/files/GeoServer/2.20-RC/

--
Jody Garnett
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to