mapcentia / vidi

Vidi – a modern take on browser GIS. It is the front-end client for GC2.
https://www.osgeo.org/projects/gc2-vidi/
GNU Affero General Public License v3.0
44 stars 24 forks source link

Layer loading issue #300

Open hrishiballal opened 2 weeks ago

hrishiballal commented 2 weeks ago

I am seeing a new error recently, I installed a fresh deployment and uploaded a couple of simple geometries in the public schema. When I use Vidi and try to turn on any layer, it goes in loop with the console error below. Any help would be appreciated.

image

hrishiballal commented 2 weeks ago

Just to add more context: getting this error during initialization: image

Where to define gc2host? I am using the default docker compose file

giovanniborella commented 1 week ago

gc2host should resolve to the gc2 container defined in compose if u remember correttly. check yout config.js - and ensure that the container is reachable

i'm thinking it is looking for this part:

// ===============================================
  // Following settings are set under build/startup.
  // They can not be altered in run-time.
  // ===============================================

  // ========================================
  // Which back-end is used. "gc2" or "carto"
  // ========================================

  backend: "gc2",

  // ==========================================
  // GC2 host. Both HTTP and HTTPS is supported
  // Carto is hardcoded to carto.com
  // ==========================================

  gc2: {
    host: "http://gc2core",
  },
  redis: {
    host: "redis:6379",
    db: 3,
  },

  // ===============================================================
hrishiballal commented 1 week ago

Thank you, I am checking this, I am using the default docker compose, I am trying to use other ports e..g 127.0.0.1:9000 or http://host.docker.internal:9000 , I also tried to change the networking. More shortly, thanks again!

BTW I am using Ubuntu 22.04 and Docker