Hello,
I had the same problem last week (Debian Bullseye 11, Tomcat 9.4.03)

In my case it was about Tomcat permission ReadWritePaths parameter, it need to be added with new GEOSERVER_DATA path to tomcat service unit, for ex.:
'ReadWritePaths=/geoserver/home_data/data/'


--check your tomcat settings
# systemctl cat tomcat9.service

--add parameter ([Service] + parameter) and save
# systemctl edit tomcat9.service

[Service]
ReadWritePaths=/geoserver/home_data/data/


--It created file
/etc/systemd/system/tomcat9.service.d/override.conf

--reload
# systemctl daemon-reload

--check if parameter is there
# systemctl cat tomcat9.service

.....
ReadWritePaths=/etc/tomcat9/Catalina/
ReadWritePaths=/var/lib/tomcat9/webapps/
ReadWritePaths=/var/log/tomcat9/

[Install]
WantedBy=multi-user.target

# /etc/systemd/system/tomcat9.service.d/override.conf
[Service]
ReadWritePaths=/geoserver/home_data/data/
.....


--restart tomcat
# systemctl stop tomcat9.service
# systemctl start tomcat9.service

Maybe it is not fully correct procedure, but it works for me. You can see more how to configure it here
https://www.2daygeek.com/linux-modifying-existing-systemd-unit-file/

milan











On 06.12.2021 17:34, Mauricio Vieira Cardoso Filho wrote:
Hi Ian... thanks for response.

Yes.. user tomcat, group tomcat...

Is a mistery...750 permissions (tested with 777 too.. 755...).. but, not resolve...



Em seg., 6 de dez. de 2021 13:20, Ian Turton <ijtur...@gmail.com <mailto:ijtur...@gmail.com>> escreveu:

    Are you sure you are running tomcat as the tomcat user? Look to
    see who owns the default working directory

    Ian

    On Mon, 6 Dec 2021 at 15:44, Mauricio Vieira Cardoso Filho
    <mcard...@topocart.com.br <mailto:mcard...@topocart.com.br>> wrote:


        Maurício Vieira Cardoso Filho
        Gerente TI Infra
        Tel: +556137995051
        email : mcard...@topocart.com.br
        <mailto:mcard...@topocart.com.br>;
        skype: mauricio.cardoso1974


        ---------- Forwarded message ---------
        De: *Mauricio Vieira Cardoso Filho* <mcard...@topocart.com.br
        <mailto:mcard...@topocart.com.br>>
        Date: dom., 5 de dez. de 2021 às 17:48
        Subject: Help please!!!!
        To: <claudius.ptoloma...@gmail.com
        <mailto:claudius.ptoloma...@gmail.com>>


        Hi Claudius, how are you?

        Dear, I have a problem on the geoserver, which I've been
        trying to solve for 5 days and I can't find any kind of solution.

        I can't make the server read the data directory I point to.

        In the logs, I get this message:

        2021-12-05 19:42:38,249 WARN [geoserver.platform] - Found
        Servlet context parameter GEOSERVER_DATA_DIR set to
        /var/lib/geoserverv , which is not writeable
        2021-12-05 19:42:38,250 INFO [geoserver.platform] - Falling
        back to embedded data directory:
        /var/lib/tomcat9/webapps/geoserversg/data

        I already set permissions on the folder to tomcat:tomcat (750).

        Wherever I put the data folder on the server, I always have
        the same message (whether on a secondary disk, on the root, or
        anywhere).

        I've already tried to insert the path in the tomcat9.service
        file, but the problem persists.

        I have installed tomcat9, java 11.

        What else can I check to try to solve this problem?

        Please give me some tips, possibilities to solve this problem.
        I don't know what else to look at here. Any guidance,
        suggestion or observation, I know will have a great effect.

        Best regards.

        Maurício Vieira Cardoso Filho
        Gerente TI Infra
        Tel: +556137995051
        email : mcard...@topocart.com.br
        <mailto:mcard...@topocart.com.br>;
        skype: mauricio.cardoso1974
        _______________________________________________
        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
        <mailto:Geoserver-users@lists.sourceforge.net>
        https://lists.sourceforge.net/lists/listinfo/geoserver-users



-- Ian Turton



_______________________________________________
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

_______________________________________________
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