MapStore2 icon indicating copy to clipboard operation
MapStore2 copied to clipboard

`HTTP Not found` using docker-compose up on latest release

Open pantelis opened this issue 3 years ago • 0 comments

Description

HTTP Not Found using docker-compose

How to reproduce

    docker-compose up -d
    In latest release Chrome http://localhost/mapstore

Expected Result Frontend UI showing up

Current Result HTTP Status 404 – Not Found

Type Status Report

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

  • [x] Not browser related
Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Chrome

Other useful information

docker-compose up -d 
[+] Running 7/8
 ⠿ proxy Pulled                                                                                                                                                                                                                                                                                                 4.0s
   ⠿ b85a868b505f Pull complete                                                                                                                                                                                                                                                                                 2.4s
   ⠿ f4407ba1f103 Pull complete                                                                                                                                                                                                                                                                                 2.9s
   ⠿ 4a7307612456 Pull complete                                                                                                                                                                                                                                                                                 3.0s
   ⠿ 935cecace2a0 Pull complete                                                                                                                                                                                                                                                                                 3.1s
   ⠿ 8f46223e4234 Pull complete                                                                                                                                                                                                                                                                                 3.2s
   ⠿ fe0ef4c895f5 Pull complete                                                                                                                                                                                                                                                                                 3.3s
 ⠿ postgres Error                                                                                                                                                                                                                                                                                               0.3s
Sending build context to Docker daemon     647B
Step 1/5 : FROM postgis/postgis:12-3.1
 ---> 3a52fc088274
Step 2/5 : WORKDIR /code
 ---> Using cache
 ---> cb03fae797d1
Step 3/5 : COPY ./01-init-user.sh /docker-entrypoint-initdb.d/
 ---> Using cache
 ---> 0fb77403a138
Step 4/5 : RUN apt-get update     && apt-get install wget -y     && rm -rf /var/cache/apt/*
 ---> Using cache
 ---> a4f509ccad20
Step 5/5 : RUN wget https://raw.githubusercontent.com/geosolutions-it/geostore/master/doc/sql/002_create_schema_postgres.sql
 ---> Running in e8d1a9e73e7e
--2022-07-05 12:29:48--  https://raw.githubusercontent.com/geosolutions-it/geostore/master/doc/sql/002_create_schema_postgres.sql
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.109.133, 185.199.108.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5974 (5.8K) [text/plain]
Saving to: ‘002_create_schema_postgres.sql’

     0K .....                                                 100% 6.47M=0.001s

2022-07-05 12:29:48 (6.47 MB/s) - ‘002_create_schema_postgres.sql’ saved [5974/5974]

 ---> 24f7a39f8bbb
Successfully built 24f7a39f8bbb
Successfully tagged geosolutions-mapstore/postgis:latest
Sending build context to Docker daemon  475.5MB
Step 1/25 : FROM tomcat:9-jdk11-openjdk AS mother
 ---> 77bba8817cde
Step 2/25 : LABEL maintainer="Alessandro Parma<[email protected]>"
 ---> Using cache
 ---> 7487743c3df5
Step 3/25 : ARG MAPSTORE_WEBAPP_SRC="https://github.com/geosolutions-it/MapStore2/releases/latest/download/mapstore.war"
 ---> Using cache
 ---> 7495db445419
Step 4/25 : ADD "${MAPSTORE_WEBAPP_SRC}" "/mapstore/"
Downloading [==================================================>]  78.38MB/78.38MB

 ---> Using cache
 ---> 7346f93fb912
Step 5/25 : COPY ./docker/* /mapstore/docker/
 ---> a8042f0469e5
Step 6/25 : WORKDIR /mapstore
 ---> Running in 5ab29c40936a
 ---> dc7d7a254b27
Step 7/25 : FROM tomcat:9-jdk11-openjdk
 ---> 77bba8817cde
Step 8/25 : ENV CATALINA_BASE "$CATALINA_HOME"
 ---> Using cache
 ---> 147f8bfb9205
Step 9/25 : ENV MAPSTORE_WEBAPP_DST="${CATALINA_BASE}/webapps"
 ---> Using cache
 ---> 5111a0c28bb0
Step 10/25 : ENV INITIAL_MEMORY="512m"
 ---> Using cache
 ---> 8ec9de8f8d35
Step 11/25 : ENV MAXIMUM_MEMORY="512m"
 ---> Using cache
 ---> c3dbe6eb041b
Step 12/25 : ENV JAVA_OPTS="${JAVA_OPTS} -Xms${INITIAL_MEMORY} -Xmx${MAXIMUM_MEMORY}"
 ---> Using cache
 ---> 47bdf7fd5ad6
Step 13/25 : ARG OVR=""
 ---> Using cache
 ---> 2ddf60bf7e53
Step 14/25 : ARG DATA_DIR="${CATALINA_BASE}/datadir"
 ---> Using cache
 ---> afdeb3be4d79
Step 15/25 : ENV GEOSTORE_OVR_OPT=""
 ---> Using cache
 ---> 93ea78de2577
Step 16/25 : ENV JAVA_OPTS="${JAVA_OPTS} ${GEOSTORE_OVR_OPT} -Ddatadir.location=${DATA_DIR}"
 ---> Using cache
 ---> 27054932e137
Step 17/25 : ENV TERM xterm
 ---> Using cache
 ---> b2b4763af3dc
Step 18/25 : COPY --from=mother "/mapstore/mapstore.war" "${MAPSTORE_WEBAPP_DST}/mapstore.war"
 ---> Using cache
 ---> 389287a9cf4d
Step 19/25 : COPY --from=mother "/mapstore/docker" "${CATALINA_BASE}/docker/"
 ---> 91fea5a3e356
Step 20/25 : RUN mkdir -p ${DATA_DIR}
 ---> Running in 870d4237c30c
 ---> 320b349d08fd
Step 21/25 : RUN cp ${CATALINA_BASE}/docker/wait-for-postgres.sh /usr/bin/wait-for-postgres
 ---> Running in d0522af0e7a9
 ---> deb42673f08a
Step 22/25 : RUN apt-get update     && apt-get install --yes postgresql-client     && apt-get clean     && apt-get autoclean     && apt-get autoremove -y     && rm -rf /var/cache/apt/*     && rm -rf /var/lib/apt/lists/*     && rm -rf /usr/share/man/*     && rm -rf /usr/share/doc/*
 ---> Running in eb905b8aa893
Get:1 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Get:2 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]
Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [164 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8182 kB]
Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [2592 B]
Fetched 8548 kB in 2s (4461 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libpq5 postgresql-client-13 postgresql-client-common
Suggested packages:
  postgresql-13 postgresql-doc-13
The following NEW packages will be installed:
  libpq5 postgresql-client postgresql-client-13 postgresql-client-common
0 upgraded, 4 newly installed, 0 to remove and 13 not upgraded.
Need to get 1852 kB of archives.
After this operation, 7681 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 postgresql-client-common all 225 [89.3 kB]
Get:2 http://security.debian.org/debian-security bullseye-security/main amd64 libpq5 amd64 13.7-0+deb11u1 [180 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 postgresql-client all 13+225 [64.8 kB]
Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 postgresql-client-13 amd64 13.7-0+deb11u1 [1518 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 1852 kB in 0s (5892 kB/s)
Selecting previously unselected package libpq5:amd64.
(Reading database ... 12681 files and directories currently installed.)
Preparing to unpack .../libpq5_13.7-0+deb11u1_amd64.deb ...
Unpacking libpq5:amd64 (13.7-0+deb11u1) ...
Selecting previously unselected package postgresql-client-common.
Preparing to unpack .../postgresql-client-common_225_all.deb ...
Unpacking postgresql-client-common (225) ...
Selecting previously unselected package postgresql-client-13.
Preparing to unpack .../postgresql-client-13_13.7-0+deb11u1_amd64.deb ...
Unpacking postgresql-client-13 (13.7-0+deb11u1) ...
Selecting previously unselected package postgresql-client.
Preparing to unpack .../postgresql-client_13+225_all.deb ...
Unpacking postgresql-client (13+225) ...
Setting up postgresql-client-common (225) ...
Setting up libpq5:amd64 (13.7-0+deb11u1) ...
Setting up postgresql-client-13 (13.7-0+deb11u1) ...
update-alternatives: using /usr/share/postgresql/13/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
Setting up postgresql-client (13+225) ...
Processing triggers for libc-bin (2.31-13+deb11u3) ...
Reading package lists...
Building dependency tree...
Reading state information...
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
 ---> 77b90c89a4f0
Step 23/25 : WORKDIR ${CATALINA_BASE}
 ---> Running in 1aa881bc4ded
 ---> 7716212d8027
Step 24/25 : VOLUME [ "${DATA_DIR}" ]
 ---> Running in 480562bf79b8
 ---> d93e4ad4f006
Step 25/25 : EXPOSE 8080
 ---> Running in 0335e28f4ddc
 ---> bc5f12733b51
Successfully built bc5f12733b51
Successfully tagged mapstore2_mapstore:latest

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[+] Running 5/5
 ⠿ Network mapstore2_mapstore-network  Created                                                                                                                                                                                                                                                                  0.1s
 ⠿ Volume "mapstore2_pg_data"          Created                                                                                                                                                                                                                                                                  0.0s
 ⠿ Container postgres                  Started                                                                                                                                                                                                                                                                  0.7s
 ⠿ Container mapstore                  Started                                                                                                                                                                                                                                                                  1.7s
 ⠿ Container proxy                     Started                                  

pantelis avatar Jul 05 '22 12:07 pantelis