Hmmm . . . .
>
> But if you leave the default path
> (/var/lib/tomcat8v/webapps/geoserverv/WEB-INF/data), it works just fine.


I am not a 100% sure but some system files stay in the original location I
think. Specifically:

nano /opt/tomcat/latest/conf/server.xml
    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

It certainly seems like your second port is not routing correctly.

Vera

On Fri, Dec 17, 2021 at 4:03 AM Mauricio Vieira Cardoso Filho <
mcard...@topocart.com.br> wrote:

> Hi, Good morning people,
>
> I believe I am close to finding a solution.
>
> I will explain in more detail the current problem scenario.
>
> On the server, I have two instances of Geoserver installed: Geoserverv and
> Geoserveri.
>
> Both instances are in the same root directory "/dados" (/dados/geoserverv/
> and /dados/geoserveri/).
>
> When I run Geoserveri from the address
> http://192.168.0.119:8089/geoserveri , it works perfectly.
>
> When I run Geoserverv from the address
> http://192.168.0.119:8102/geoserverv, it doesn't work, showing the return
> page "404"
> (http status 404 - Not Found
> Type: Status Report
> Message: /geoserverv/web/
> Description The origin server did not find a current representation for
> the target resource or is not willing to describe that one exists)
>
> I took the following test:
> - Deleted all content from /datos/geoserverv folder and copied all
> Geoserveri content to it.
>
> After that, the geoserverv worked perfectly, however, loading the same
> data as the geoserveri, which would be obvious as it is the base of the
> other geoserver.
>
> When I returned the original geoserverv content, it returned the same 404
> error.
>
> With this test, it is clear that it is just a changed configuration file
> either inside the contents of the /dados/geoserverv folder, or inside the
> geoserver or tomcat in /var/lib.
>
> One thing I noticed is that, after comparing files inside the data folders
> of the two instances, inside the geoserveri workspace I have a
> "default.xml" file. I couldn't find this file in the geoserveri workspace.
>
> The geoserveri has a connection to postgresql. We tested the database
> connection settings, and it is working (we created a new database and
> executed the connection with the option to create new tables, and it worked
> perfectly).
>
> In light of these tests, I think it's either a configuration I'm not
> looking at in the case of geoserverv, or it's a file that has been deleted
> by someone else.
>
> As I've been trying to solve it for a few days, I may be letting something
> go by without noticing it out of tiredness.
>
> Any guidance they can give me, what settings can I review?
>
> Best regards,
>
> Maurício Vieira Cardoso Filho
> Gerente TI Infra
> Tel: +556137995051
> email : mcard...@topocart.com.br;
> skype: mauricio.cardoso1974
>
>
> Em qui., 16 de dez. de 2021 às 15:11, Mauricio Vieira Cardoso Filho <
> mcard...@topocart.com.br> escreveu:
>
>> Thanks for answering
>> Even inserting the path dir in the service execution file, it doesn't
>> work.
>>
>> Are there any more config files I could be looking at? - I think I've
>> exhausted my options...
>>
>>
>> Maurício Vieira Cardoso Filho
>> Gerente TI Infra
>> Tel: +556137995051
>> email : mcard...@topocart.com.br;
>> skype: mauricio.cardoso1974
>>
>>
>> Em qui., 16 de dez. de 2021 às 08:55, Russ Hore <r...@russ-hore.co.uk>
>> escreveu:
>>
>>> I am coming to this late but have you checked the tomcat.service file in
>>> /usr/lib/systemd/system
>>>
>>> Is there a line something like;
>>>
>>> ReadWritePaths=/data/
>>>
>>> for wherever your data directory is?
>>>
>>> Russ
>>>
>>> On 16 Dec 2021, at 11:30, Mauricio Vieira Cardoso Filho <
>>> mcard...@topocart.com.br> wrote:
>>>
>>> Hi, A good day to all.
>>>
>>> Problem with connection to the bank is solved. Simply reconnected.
>>> However, when I direct the geoserver to read the specific data directory
>>> (/dados/geoserverv), it cannot load the data from this directory, giving an
>>> error 404.
>>> But if you leave the default path
>>> (/var/lib/tomcat8v/webapps/geoserverv/WEB-INF/data), it works just fine.
>>>
>>> I've already looked at the permissions of the destination directory
>>> (owner and group are tomcat8) as well as already applied 750, 770, 755 and
>>> 777 in folders, but it still doesn't load.
>>>
>>> Apart from the web.xml on the geoserver, should I configure it elsewhere?
>>>
>>> Att.,
>>>
>>> Maurício Vieira Cardoso Filho
>>> Gerente TI Infra
>>> Tel: +556137995051
>>> email : mcard...@topocart.com.br;
>>> skype: mauricio.cardoso1974
>>>
>>>
>>> Em qua., 15 de dez. de 2021 às 10:58, Mauricio Vieira Cardoso Filho <
>>> mcard...@topocart.com.br> escreveu:
>>>
>>>> Hi,
>>>>
>>>> I recently started a request for help, however, I had to be away from
>>>> the service due to other issues. But now I returned and the problem got
>>>> worse.
>>>>
>>>> In addition to not being able to read the data directory specified in
>>>> the web.xml, now I have another problem that the geoserver cannot connect
>>>> to the postgree database.
>>>>
>>>> I use jdbc extension, and nothing in the configuration has changed.
>>>> Simply all geoserver stopped running. (see image below):
>>>>
>>>> <Captura de tela de 2021-12-15 10-42-52.png>
>>>>
>>>> What can I say on the subject:
>>>>
>>>> - All permissions on the pointed data folder are for tomcat user and
>>>> group;
>>>> - All content is readable;
>>>> - username and password to connect to the bank is ok (credentials are
>>>> correct)
>>>> - the bank is on the same server as the application (it was trying to
>>>> address it by ip address and by localhost).
>>>> - I have a base of two geoservers in the same directory
>>>> (/dados/geoserverv and /dados/geoserveri), one of which is working
>>>> perfectly with the same settings.
>>>> - I've deployed a new war many times.
>>>>
>>>> Attached, I'll send my catalina.out if it's any help in assessing the
>>>> issues and the possibility of sending some guidance.
>>>> Maurício Vieira Cardoso Filho
>>>> Gerente TI Infra
>>>> Tel: +556137995051
>>>> email : 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
>>> 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
>
_______________________________________________
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