[Live-demo] Permissions problems with GeoServer

Angelos Tzotsos gcpp.kalxas at gmail.com
Tue Dec 6 10:47:35 PST 2016


I figured out what went wrong.
The Cartaro installer used to set GeoServer data folder permissions 
before, so now that Cartaro was retired, this code is missing:
https://github.com/OSGeo/OSGeoLive/blob/master/bin/retired/install_cartaro.sh#L381-L385

Lets add this to the GeoNode installer, since that one is 
starting/stopping GeoServer for the first time during build.

Thoughts?



On 12/06/2016 12:02 PM, Angelos Tzotsos wrote:
> Hi Ben,
>
> I saw the same issue in nightly build5.
> I am wondering why geoserver has this permission issue, previous 
> versions used to work fine with this setup.
>
> Best,
> Angelos
>
> On 12/06/2016 05:10 AM, Ben Caradoc-Davies wrote:
>> Angelos,
>>
>> even with my most recent fixes 
>> <https://github.com/bencaradocdavies/OSGeoLive/tree/upgrade-geoserver>, 
>> GeoServer on a nightly build will still not start.
>>
>> Looks to me like permissions problems (files and directories in the 
>> data directory whcih are owned by root). Likely culprit is 
>> install_geonode.sh, which starts GeoServer as root "to update layers 
>> in the geonode db", causing the creation of files and directories 
>> owned by root:root. The solution (in install_geonode.sh) might be 
>> something like:
>>
>> su -c "$GEOSERVER_PATH/bin/startup.sh" - user
>>
>> but it will take a little fiddling to get this working with 
>> redirection and running in the background. I will let you know when I 
>> have a fix.
>>
>> Kind regards,
>>
>
>



-- 
Angelos Tzotsos, PhD
OSGeo Charter Member
http://users.ntua.gr/tzotsos



More information about the Live-demo mailing list