cartoview icon indicating copy to clipboard operation
cartoview copied to clipboard

docker installation fails after line C:\docker\cartoview> docker-compose build --no-cache

Open limmyjw opened this issue 2 years ago • 3 comments

Please fill the following information to avoid closing issue

Describe your issue in detail

following the install guide in read the docs for install on docker for windows, I get an install error afther the command C:\docker\cartoview> docker-compose build --no-cache

result: no docker is created.

  • log (optional):
PS C:\docker> git clone -b v1.33.2 https://github.com/cartologic/cartoview.git
Cloning into 'cartoview'...
remote: Enumerating objects: 14692, done.
remote: Counting objects: 100% (2805/2805), done.
remote: Compressing objects: 100% (1536/1536), done.Receiving objects:   5% (735/14692)
remote: Total 14692 (delta 1154), reused 2744 (delta 1125), pack-reused 11887
Receiving objects: 100% (14692/14692), 76.04 MiB | 3.39 MiB/s, done.
Resolving deltas: 100% (7994/7994), done.
Note: switching to 'b18fbb216b91fa03241a09bbda99f0edc0c7e676'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

Updating files: 100% (300/300), done.
PS C:\docker>

------
PS C:\docker> cd cartoview
PS C:\docker\cartoview>
------

PS C:\docker\cartoview> docker-compose build --no-cache
postgis uses an image, skipping
elasticsearch uses an image, skipping
rabbitmq uses an image, skipping
data-dir-conf uses an image, skipping
geoserver uses an image, skipping
celery uses an image, skipping
nginx uses an image, skipping
Building cartoview
[+] Building 12.0s (8/9)
 => [internal] load build definition from Dockerfile                                                               0.1s
 => => transferring dockerfile: 400B                                                                               0.1s
 => [internal] load .dockerignore                                                                                  0.1s
 => => transferring context: 69B                                                                                   0.1s
 => [internal] load metadata for docker.io/library/python:3.8.9                                                    3.2s
 => CACHED [1/5] FROM docker.io/library/python:3.8.9@sha256:49d05fff9cb3b185b15ffd92d8e6bd61c20aa916133dca2e3dbe0  0.0s
 => [internal] load build context                                                                                  1.7s
 => => transferring context: 13.85MB                                                                               1.7s
 => [2/5] COPY . /usr/src/carto_app/cartoview                                                                      1.6s
 => [3/5] RUN chmod +x /usr/src/carto_app/cartoview/scripts/docker/setup.sh                                        3.5s
 => ERROR [4/5] RUN /usr/src/carto_app/cartoview/scripts/docker/setup.sh                                           1.3s
------
 > [4/5] RUN /usr/src/carto_app/cartoview/scripts/docker/setup.sh:
#8 1.227 /bin/sh: 1: /usr/src/carto_app/cartoview/scripts/docker/setup.sh: not found
------
_executor failed running [/bin/sh -c ${APP_DIR}/cartoview/scripts/docker/setup.sh]: exit code: 127
ERROR: Service 'cartoview' failed to build : Build failed_
PS C:\docker\cartoview>

limmyjw avatar Jun 28 '22 19:06 limmyjw

Hi @limmyjw ,

Solution is to set autocrlf to false because the /docker/setup.sh script is Unix-style line endings instead of Windows.

git config --global core.autocrlf false

We already have a PR to our Docs to make this point clear to windows users and we will be able to merge it as soon as you kindly confirm that is working. https://github.com/cartologic/cartoview/pull/235

Youssef-Harby avatar Jun 28 '22 21:06 Youssef-Harby

Hello @limmyjw,

I hope that the solution provided by @Youssef-Harby has mentioned fixes the issue for you.

On the other hand, as you are using Windows, allow me to introduce you to the Cartoview Windows installer that you can download and try from here but bear in mind that it's not working properly on Windows 11 nevertheless we will launch a fix for this soon.

MoRadwan74 avatar Jun 29 '22 14:06 MoRadwan74

Hi Thanks for the response. I've tried the windows installer and indeed it didn't work for me. That's why I tried this.

I've got another question though.

Everything has been installed alright, all containers are running, no errors,

Created a new key for 'AnonymousUser' Created a new key for 'admin' PS C:\docker\cartoview> docker-compose restart Restarting cartoview_django ... done Restarting cartoview_celery ... done Restarting cartoview_geoserver_1 ... done Restarting cartoview_rabbitmq_1 ... done Restarting cartoview_nginx_1 ... done Restarting cartoview_elasticsearch_1 ... done Restarting cartoview_postgis_1 ... done Restarting gsconf4cartoview ... done PS C:\docker\cartoview>

But if I type http://10.5.0.4/ in my browser, nothing happens. I don't want to report as a bug because i don't know is it has something to do with my networking knowledge (external/internal)

So the question is should i see something when i type this ( http://10.5.0.4/) in my browser, or not. Same issue with Open GeoServer available at http://10.5.0.4/geoserver/

Documentation says: Test Development Server Check if Cartoview is working as expected. Note Cartoview is running on 10.5.0.4 according to a pre-configured external IP. Warning Do Not run Cartoview on localhost as it's not configured to work on that.

Localhost does show the cartoview/geonode screen, but i'm not supposed to use that

Thank you

Limmyjw

Op wo 29 jun. 2022 om 16:15 schreef Muhammad Radwan < @.***>:

Hello @limmyjw https://github.com/limmyjw,

I hope that the solution provided by @Youssef-Harby https://github.com/Youssef-Harby has mentioned fixes the issue for you.

On the other hand, as you are using Windows, allow me to introduce you to the Cartoview Windows installer that you can download and try from here https://cartoview.net/ but bear in mind that it's not working properly on Windows 11 nevertheless we will launch a fix for this soon.

— Reply to this email directly, view it on GitHub https://github.com/cartologic/cartoview/issues/237#issuecomment-1170037668, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASIDDOWHRFD26ITZGTY5NTVRRLAFANCNFSM52DI3REQ . You are receiving this because you were mentioned.Message ID: @.***>

-- Met groet, Jan Willem

limmyjw avatar Jun 29 '22 14:06 limmyjw