Giter VIP home page Giter VIP logo

sabman / cartodb-docker-fork Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ernstae/cartodb-docker

6.0 6.0 5.0 60 KB

After going through the pain of setting up carto in a high performance and high availability environment we have decided to make our solution available as a service and are happy to announce the launch of cartohost.com

Home Page: https://getgeodb.com

License: BSD 3-Clause "New" or "Revised" License

Shell 29.84% JavaScript 33.89% Dockerfile 36.26%

cartodb-docker-fork's Introduction

Annoucing https://getgeodb.com

I wanted to let you know since we have been running carto in production in a microservices environment (think docker, docker swarm and kubernetes) with backups and monitoring for our clients.

After going through the pain of setting up carto in a high performance and high availability environment we have decided to make our solution available as a service and are happy to announce the launch of https://getgeodb.com

We are still in beta an sign up still requires some manual setups.

Ping me if you wanna talk more.

Shoaib Burq

CTO SpacialDB UG, Berlin

twitter.com/sabman

cartodb-docker-fork's People

Contributors

davschne avatar mnzaki avatar sabman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cartodb-docker-fork's Issues

Invalid user_from_host in SQLAPI

Current Default:

// service root@b893aa9d262c:/CartoDB-SQL-API# cat /etc/cartodb/config.js
  "user_from_host": "^(.*)\\.cartodb\\.com$",

Seems it should be

module.exports.user_from_host = '^([^\\.]+)\\.';

[mapsapi] - base configuration for batch API

@mnzaki so upon more investigation of trying to run the Analysis Tools - the following issue seems to be related to the configuration of the Batch API in mapsapi service. To reproduce try the following for the user:

[email protected] I'll message you the pass

screenflow

Error is:

{"type":"analysis","message":"Unable to enqueue SQL API batch job","analysis":{"id":"a1","type":"moran"}}

Current analysis config block has:

"analysis": {
    "batch": {
      "endpoint": "http://127.0.0.1:8080/api/v2/sql/job",
      "hostHeaderTemplate": "{{=it.username}}.localhost.lan"
    },
  },

I think it should be

"analysis": {
    "batch": {
      "endpoint": "http://0.0.0.0:8080/api/v2/sql/job",
      "hostHeaderTemplate": "{{=it.username}}.localhost.lan"
    },
  },

I'm not sure exactly what hostHeaderTemplate should be but I suspect it doesn't matter yet since we are using the IP to reference the host for now. What do you think?

Also when you first load the map you will see the client services error too.

Analysis/Batch API Failing

in the analysis logs I am seeing:

{  
  "name":"camshaft",
  "hostname":"a11804d63940",
  "pid":1,
  "level":30,
  "msg":"analysis:limits_error",
  "time":"2019-02-19T16:52:08.563Z",
  "v":0
}

saw something similar in #3

Attempting to set *.localhost names in .env causes router to crash

Hey, @sabman -- I pulled this down and built it, but I'm a bit confused about what are valid params to have in the .env file. I tried using the following:

ENVIRONMENT=development
DOMAINS=sabman.localhost
EMAIL=<MY EMAIL>
PUBLIC_HOST=sabman.localhost
PUBLIC_PROTOCOL=https
PUBLIC_PORT=443
DEFAULT_USER=nick
DEFAULT_PASSWORD=abc123def
POSTGRES_USER=postgres

When I build it with those values and bring the cluster up, the router container dies, with what I'm assuming is a failure message back from letsencrypt:

cartodb-router     | An unexpected error occurred:
cartodb-router     | The request message was malformed :: Error creating new authz :: Name does not end in a public suffix
cartodb-router exited with code 1

Do I need a fully qualified domain name in the .env file for it to work?

add varnish for caching

cartodb-editor asking permanently for password

cartodb-editor outputs Password: permanently. This seems to be a problem with bundle exec rake db:create or bundle exec rake db:migrate.
Do you have to do something else than setting all the environment variables (including POSTGRES_PASSWORD)?

Postgis extension not installed in template_postgis

After standing up the containers I ran docker-compose logs
.
.
.
[2018-11-20T12:03:21.373012 #85] DEBUG -- : Sequel::Postgres::Database (1140.0ms) CREATE DATABASE "cartodb_dev_user_62b6ab17-e862-44cb-8b81-a9e3ae30a19a_db"
cartodb-editor | WITH TEMPLATE = template_postgis
cartodb-editor | OWNER = postgres
cartodb-editor | ENCODING = 'UTF8'
cartodb-editor | CONNECTION LIMIT=-1
cartodb-editor | I, [2018-11-20T12:03:21.373135 #85] INFO -- : (1.140186s) CREATE DATABASE "cartodb_dev_user_62b6ab17-e862-44cb-8b81-a9e3ae30a19a_db"
cartodb-editor | WITH TEMPLATE = template_postgis
cartodb-editor | OWNER = postgres
cartodb-editor | ENCODING = 'UTF8'
cartodb-editor | CONNECTION LIMIT=-1
cartodb-editor | D, [2018-11-20T12:03:21.387069 #85] DEBUG -- : Sequel::Postgres::Database (0.5ms) SET standard_conforming_strings = ON
cartodb-editor | rake aborted!
cartodb-editor | PG::Error: ERROR: function postgis_scripts_installed() does not exist
cartodb-editor | LINE 1: SELECT postgis_scripts_installed()
cartodb-editor | ^
cartodb-editor | HINT: No function matches the given name and argument types. You might need to add explicit type casts.
cartodb-editor | QUERY: SELECT postgis_scripts_installed()
.
.
.
SELECT count() FROM pg_extension WHERE extname='postgis'
cartodb-editor |
cartodb-editor | I, [2018-11-20T12:03:21.429966 #85] INFO -- : (0.001023s)
cartodb-editor | SELECT count(
) FROM pg_extension WHERE extname='postgis'
cartodb-editor |
cartodb-editor | D, [2018-11-20T12:03:21.535599 #85] DEBUG -- : Sequel::Postgres::Database (105.4ms) CREATE EXTENSION postgis FROM unpackaged
cartodb-editor | E, [2018-11-20T12:03:21.535677 #85] ERROR -- : PG::Error: ERROR: function postgis_scripts_installed() does not exist
cartodb-editor | LINE 1: SELECT postgis_scripts_installed()
cartodb-editor | ^
cartodb-editor | HINT: No function matches the given name and argument types. You might need to add explicit type casts.
cartodb-editor | QUERY: SELECT postgis_scripts_installed()
cartodb-editor | CONTEXT: PL/pgSQL function postgis_major_version_check() line 24 at SQL statement: CREATE EXTENSION postgis FROM unpackaged
cartodb-editor | D, [2018-11-20T12:03:21.536434 #85] DEBUG -- : Sequel::Postgres::Database (0.6ms) ROLLBACK
cartodb-editor | I, [2018-11-20T12:03:21.536483 #85] INFO -- : (0.000674s) ROLLBACK
cartodb-editor | D, [2018-11-20T12:03:21.537007 #85] DEBUG -- : Sequel::Postgres::Database (0.3ms) ROLLBACK
.
.
.
I also checked the postgis container to see what extension are installed in the various databases
template_postgis
List of installed extensions
Name | Version | Schema | Description
---------+---------+------------+------------------------------
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language

carto_db_development
List of installed extensions
Name | Version | Schema | Description
-----------+---------+------------+---------------------------------------------------------------------
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
postgis | 2.5.0 | public | PostGIS geometry, geography, and raster spatial types and functions
uuid-ossp | 1.1 | public | generate universally unique identifiers (UUIDs)

cartodb_dev_user_eff62147-fd46-4571-baf5-7d32c9988267_db
List of installed extensions
Name | Version | Schema | Description
---------+---------+------------+------------------------------
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
(1 row)

Any pointer/s what could be the cause of this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.