Install on a vm 12.04 Ubuntu

413 views
Skip to first unread message

Claudio Pellegrino

unread,
Oct 4, 2016, 11:25:33 AM10/4/16
to cartodb
Is the installation guide updated? Can someone helps me? Can I find a script sh?

Nacho Sanchez

unread,
Oct 4, 2016, 11:32:32 AM10/4/16
to car...@googlegroups.com
It is. Please write here if you find any problem.

On Tue, Oct 4, 2016 at 5:25 PM, Claudio Pellegrino <cla.p...@gmail.com> wrote:
Is the installation guide updated? Can someone helps me? Can I find a script sh?

--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Juan Ignacio Sánchez Lara
CARTO Backend Engineer
Twitter: @juanignaciosl

CARTO — Predict Through Location

Live sessions to learn CARTO

Claudio Pellegrino

unread,
Oct 4, 2016, 2:07:20 PM10/4/16
to cartodb
I had an error with gdal at line:
sudo pip install --no-use-wheel -r python_requirements.txt

Can i fix it with this??


wget http://download.osgeo.org/gdal/1.10.0/gdal-1.10.0.tar.gz
tar xvfz gdal-1.10.0.tar.gz
cd gdal-1.10.0
./configure --with-python
make
sudo make install


after it seems ok but at:

RAILS_ENV=development bundle exec rake db:create


it give me

Ignoring statsd, because there were a error loading the config
[sequel] Created database 'carto_db_development'
[sequel] Created database 'carto_db_test'

after i go with:

RAILS_ENV=development bundle exec rake db:migrate

it give me

^[(0.000277s) SET standard_conforming_strings = ON
(0.000226s) SET client_min_messages = 'WARNING'
(0.000335s) SET DateStyle = 'ISO'
(0.016725s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" =
'external_sources') AND ("pg_namespace"."nspname" !~*
'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
PG::Error: ERROR: relation "external_sources" does not exist
LINE 1: SELECT * FROM "external_sources" LIMIT 1
^: SELECT * FROM "external_sources" LIMIT 1
(0.002592s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" =
'shared_entities') AND ("pg_namespace"."nspname" !~*
'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
PG::Error: ERROR: relation "shared_entities" does not exist
LINE 1: SELECT * FROM "shared_entities" LIMIT 1
^: SELECT * FROM "shared_entities" LIMIT 1
(0.002341s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'permissions')
AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY
"pg_attribute"."attnum"
PG::Error: ERROR: relation "permissions" does not exist
LINE 1: SELECT * FROM "permissions" LIMIT 1
^: SELECT * FROM "permissions" LIMIT 1
(0.002011s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'user_tables')
AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY
"pg_attribute"."attnum"
PG::Error: ERROR: relation "user_tables" does not exist
LINE 1: SELECT * FROM "user_tables" LIMIT 1
^: SELECT * FROM "user_tables" LIMIT 1
(0.003257s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'maps') AND (
"pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY
"pg_attribute"."attnum"
PG::Error: ERROR: relation "maps" does not exist
LINE 1: SELECT * FROM "maps" LIMIT 1
^: SELECT * FROM "maps" LIMIT 1
(0.002125s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'layers') AND
("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY
"pg_attribute"."attnum"
PG::Error: ERROR: relation "layers" does not exist
LINE 1: SELECT * FROM "layers" LIMIT 1
^: SELECT * FROM "layers" LIMIT 1
(0.002320s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'likes') AND (
"pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY
"pg_attribute"."attnum"
PG::Error: ERROR: relation "likes" does not exist
LINE 1: SELECT * FROM "likes" LIMIT 1
^: SELECT * FROM "likes" LIMIT 1
(0.001949s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" =
'synchronization_oauths') AND ("pg_namespace"."nspname" !~*
'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
PG::Error: ERROR: relation "synchronization_oauths" does not exist
LINE 1: SELECT * FROM "synchronization_oauths" LIMIT 1
^: SELECT * FROM "synchronization_oauths" LIMIT 1
(0.003300s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'logs') AND (
"pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY
"pg_attribute"."attnum"
PG::Error: ERROR: relation "logs" does not exist
LINE 1: SELECT * FROM "logs" LIMIT 1
^: SELECT * FROM "logs" LIMIT 1
(0.003012s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'data_imports'
) AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY
"pg_attribute"."attnum"
PG::Error: ERROR: relation "data_imports" does not exist
LINE 1: SELECT * FROM "data_imports" LIMIT 1
^: SELECT * FROM "data_imports" LIMIT 1
(0.002888s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" =
'external_data_imports') AND ("pg_namespace"."nspname" !~*
'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
PG::Error: ERROR: relation "external_data_imports" does not exist
LINE 1: SELECT * FROM "external_data_imports" LIMIT 1
^: SELECT * FROM "external_data_imports" LIMIT 1
(0.002118s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" =
'feature_flags') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema'
)) ORDER BY "pg_attribute"."attnum"
PG::Error: ERROR: relation "feature_flags" does not exist
LINE 1: SELECT * FROM "feature_flags" LIMIT 1
^: SELECT * FROM "feature_flags" LIMIT 1
(0.001947s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'users') AND (
"pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY
"pg_attribute"."attnum"
PG::Error: ERROR: relation "users" does not exist
LINE 1: SELECT * FROM "users" LIMIT 1
^: SELECT * FROM "users" LIMIT 1
Ignoring statsd, because there were a error loading the config
PG::Error: ERROR: relation "schema_migrations" does not exist
LINE 1: SELECT NULL FROM "schema_migrations" LIMIT 1
^: SELECT NULL FROM "schema_migrations" LIMIT 1
(0.021192s) CREATE TABLE "schema_migrations" ("filename" text PRIMARY KEY)
PG::Error: ERROR: relation "schema_info" does not exist
LINE 1: SELECT NULL FROM "schema_info" LIMIT 1
^: SELECT NULL FROM "schema_info" LIMIT 1
(0.001593s) SELECT "filename" FROM "schema_migrations" ORDER BY "filename"
Begin applying migration 20110117161245_users.rb, direction: up
(0.000357s) BEGIN
(0.018362s) CREATE TABLE "users" ("id" serial PRIMARY KEY, "email" text NOT
NULL UNIQUE, "crypted_password" text NOT NULL, "salt" text NOT NULL,
"database_name" text, "username" text NOT NULL UNIQUE, "tables_count"
integer NOT NULL)
(0.000856s) ALTER TABLE "users" ALTER COLUMN "tables_count" SET DEFAULT 0
(0.001444s) SELECT pg_attribute.attname AS pk FROM pg_class, pg_attribute,
pg_index, pg_namespace WHERE pg_class.oid = pg_attribute.attrelid AND
pg_class.relnamespace = pg_namespace.oid AND pg_class.oid = pg_index.indrelid
AND pg_index.indkey[0] = pg_attribute.attnum AND pg_index.indisprimary = 't'
AND pg_class.relname = 'schema_migrations'
(0.000957s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110117161245_users.rb') RETURNING "filename"
(0.001986s) COMMIT
Finished applying migration 20110117161245_users.rb, direction: up, took
0.026323 seconds
Begin applying migration 20110118160935_user_tables.rb, direction: up
(0.000299s) BEGIN
(0.006823s) CREATE TABLE "user_tables" ("id" serial PRIMARY KEY, "user_id"
integer NOT NULL, "name" text NOT NULL, "privacy" integer NOT NULL,
"updated_at" timestamp NOT NULL, "tags" text, "geometry_columns" text,
"rows_counted" integer, "rows_estimated" integer)
(0.002940s) CREATE INDEX "user_tables_user_id_index" ON "user_tables" (
"user_id")
(0.002800s) CREATE INDEX "user_tables_user_id_privacy_index" ON
"user_tables" ("user_id", "privacy")
(0.003215s) CREATE UNIQUE INDEX "user_tables_name_user_id_index" ON
"user_tables" ("name", "user_id")
(0.000716s) ALTER TABLE "user_tables" ALTER COLUMN "privacy" SET DEFAULT 0,
ALTER COLUMN "rows_counted" SET DEFAULT 0, ALTER COLUMN "rows_estimated"
SET DEFAULT 0
(0.000944s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110118160935_user_tables.rb') RETURNING "filename"
(0.001598s) COMMIT
Finished applying migration 20110118160935_user_tables.rb, direction: up,
took 0.022051 seconds
Begin applying migration 20110125100508_tags.rb, direction: up
(0.000360s) BEGIN
(0.007020s) CREATE TABLE "tags" ("id" serial PRIMARY KEY, "name" text NOT
NULL, "user_id" integer NOT NULL, "table_id" integer NOT NULL)
(0.002476s) CREATE INDEX "tags_user_id_index" ON "tags" ("user_id")
(0.002619s) CREATE INDEX "tags_table_id_index" ON "tags" ("table_id")
(0.002507s) CREATE UNIQUE INDEX "tags_user_id_table_id_name_index" ON "tags"
("user_id", "table_id", "name")
(0.000447s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110125100508_tags.rb') RETURNING "filename"
(0.001407s) COMMIT
Finished applying migration 20110125100508_tags.rb, direction: up, took
0.018722 seconds
Begin applying migration 20110214111010_api_keys.rb, direction: up
(0.000300s) BEGIN
(0.009550s) CREATE TABLE "api_keys" ("id" serial PRIMARY KEY, "api_key"
text NOT NULL UNIQUE, "user_id" integer NOT NULL, "domain" text NOT NULL)
(0.003040s) CREATE INDEX "api_keys_api_key_index" ON "api_keys" ("api_key")
(0.000457s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110214111010_api_keys.rb') RETURNING "filename"
(0.001529s) COMMIT
Finished applying migration 20110214111010_api_keys.rb, direction: up, took
0.016945 seconds
Begin applying migration 20110301171134_create_oauth_tables.rb, direction:
up
(0.000352s) BEGIN
(0.013852s) CREATE TABLE "client_applications" ("id" serial PRIMARY KEY,
"name" text, "url" text, "support_url" text, "callback_url" text, "key"
text UNIQUE, "secret" text, "user_id" integer, "created_at" timestamp NOT
NULL, "updated_at" timestamp NOT NULL)
(0.011730s) CREATE TABLE "oauth_tokens" ("id" serial PRIMARY KEY, "user_id"
integer, "type" text, "client_application_id" integer, "token" text UNIQUE,
"secret" text, "callback_url" text, "verifier" text, "scope" text,
"authorized_at" timestamp, "invalidated_at" timestamp, "valid_to" timestamp,
"created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
(0.006416s) CREATE TABLE "oauth_nonces" ("id" serial PRIMARY KEY, "nonce"
text, "timestamp" integer, "created_at" timestamp NOT NULL, "updated_at"
timestamp NOT NULL)
(0.003937s) CREATE UNIQUE INDEX "oauth_nonces_nonce_timestamp_index" ON
"oauth_nonces" ("nonce", "timestamp")
(0.000333s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110301171134_create_oauth_tables.rb') RETURNING "filename"
(0.001665s) COMMIT
Finished applying migration 20110301171134_create_oauth_tables.rb, direction
: up, took 0.041523 seconds
Begin applying migration 20110308151555_add_admin_flag_to_users.rb,
direction: up
(0.000506s) BEGIN
(0.001509s) ALTER TABLE "users" ADD COLUMN "admin" boolean
(0.000709s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110308151555_add_admin_flag_to_users.rb') RETURNING "filename"
(0.000719s) COMMIT
Finished applying migration 20110308151555_add_admin_flag_to_users.rb,
direction: up, took 0.004783 seconds
Begin applying migration 20110309163228_add_enabled_field_to_users.rb,
direction: up
(0.000306s) BEGIN
(0.012843s) ALTER TABLE "users" ADD COLUMN "enabled" boolean DEFAULT false
(0.000465s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110309163228_add_enabled_field_to_users.rb') RETURNING "filename"
(0.001741s) COMMIT
Finished applying migration 20110309163228_add_enabled_field_to_users.rb,
direction: up, took 0.016353 seconds
Begin applying migration 20110309181959_add_table_indexes_metadata.rb,
direction: up
(0.000421s) BEGIN
(0.000780s) ALTER TABLE "user_tables" ADD COLUMN "indexes" character varying
[]
(0.000433s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110309181959_add_table_indexes_metadata.rb') RETURNING "filename"
(0.000735s) COMMIT
Finished applying migration 20110309181959_add_table_indexes_metadata.rb,
direction: up, took 0.003346 seconds
Begin applying migration 20110322070116_add_schema_to_tables.rb, direction:
up
(0.000173s) BEGIN
(0.000371s) ALTER TABLE "user_tables" ADD COLUMN "stored_schema" character
varying[]
(0.000702s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110322070116_add_schema_to_tables.rb') RETURNING "filename"
(0.000685s) COMMIT
Finished applying migration 20110322070116_add_schema_to_tables.rb,
direction: up, took 0.002779 seconds
Begin applying migration 20110406150221_add_the_geom_type_to_tables.rb,
direction: up
(0.000233s) BEGIN
(0.000582s) ALTER TABLE "user_tables" ADD COLUMN "the_geom_type" character
varying
(0.000452s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110406150221_add_the_geom_type_to_tables.rb') RETURNING "filename"
(0.000755s) COMMIT
Finished applying migration 20110406150221_add_the_geom_type_to_tables.rb,
direction: up, took 0.002989 seconds
Begin applying migration 20110407105539_add_invite_token_to_users.rb,
direction: up
(0.000300s) BEGIN
(0.000481s) ALTER TABLE "users" ADD COLUMN "invite_token" text
(0.000491s) ALTER TABLE "users" ADD COLUMN "invite_token_date" date
(0.000603s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110407105539_add_invite_token_to_users.rb') RETURNING "filename"
(0.000707s) COMMIT
Finished applying migration 20110407105539_add_invite_token_to_users.rb,
direction: up, took 0.003879 seconds
Begin applying migration 20110412143331
_remove_stored_schema_from_user_tables.rb, direction: up
(0.000303s) BEGIN
(0.000570s) ALTER TABLE "user_tables" DROP COLUMN "stored_schema"
(0.000412s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110412143331_remove_stored_schema_from_user_tables.rb') RETURNING
"filename"
(0.001010s) COMMIT
Finished applying migration 20110412143331
_remove_stored_schema_from_user_tables.rb, direction: up, took 0.003613
seconds
Begin applying migration 20110412143448_add_database_name_to_user_tables.rb,
direction: up
(0.000365s) BEGIN
(0.000514s) ALTER TABLE "user_tables" ADD COLUMN "database_name" text
(0.000397s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110412143448_add_database_name_to_user_tables.rb') RETURNING "filename"
(0.000675s) COMMIT
Finished applying migration 20110412143448_add_database_name_to_user_tables.
rb, direction: up, took 0.002926 seconds
Begin applying migration 20110425084611_drop_colum_the_geom_type.rb,
direction: up
(0.000293s) BEGIN
(0.000525s) ALTER TABLE "user_tables" DROP COLUMN "the_geom_type"
(0.000424s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110425084611_drop_colum_the_geom_type.rb') RETURNING "filename"
(0.001220s) COMMIT
Finished applying migration 20110425084611_drop_colum_the_geom_type.rb,
direction: up, took 0.003324 seconds
Begin applying migration 20110628112715_add_subdomains.rb, direction: up
(0.000329s) BEGIN
(0.000496s) ALTER TABLE "users" ADD COLUMN "subdomain" character varying
(0.003430s) CREATE UNIQUE INDEX "users_subdomain_index" ON "users" (
"subdomain")
(0.000467s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110628112715_add_subdomains.rb') RETURNING "filename"
(0.001565s) COMMIT
Finished applying migration 20110628112715_add_subdomains.rb, direction: up,
took 0.007519 seconds
Begin applying migration 20110706134412_add_map_enabled_to_users.rb,
direction: up
(0.000330s) BEGIN
(0.015796s) ALTER TABLE "users" ADD COLUMN "map_enabled" boolean DEFAULT
true
(0.000438s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110706134412_add_map_enabled_to_users.rb') RETURNING "filename"
(0.001408s) COMMIT
Finished applying migration 20110706134412_add_map_enabled_to_users.rb,
direction: up, took 0.019088 seconds
Begin applying migration 20110712142238_change_default_enabled_in_users.rb,
direction: up
(0.000357s) BEGIN
(0.000721s) ALTER TABLE "users" ALTER COLUMN "enabled" SET DEFAULT true
(0.000435s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110712142238_change_default_enabled_in_users.rb') RETURNING "filename"
(0.000728s) COMMIT
Finished applying migration 20110712142238_change_default_enabled_in_users.
rb, direction: up, took 0.003051 seconds
Begin applying migration 20110720135459_remove_subdomain_from_users.rb,
direction: up
(0.000293s) BEGIN
(0.000596s) ALTER TABLE "users" DROP COLUMN "subdomain"
(0.000430s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20110720135459_remove_subdomain_from_users.rb') RETURNING "filename"
(0.001036s) COMMIT
Finished applying migration 20110720135459_remove_subdomain_from_users.rb,
direction: up, took 0.003236 seconds
Begin applying migration 20111012094815_add_quota_to_user.rb, direction: up
(0.000330s) BEGIN
(0.013163s) ALTER TABLE "users" ADD COLUMN "quota_in_bytes" bigint DEFAULT
104857600
(0.000486s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20111012094815_add_quota_to_user.rb') RETURNING "filename"
(0.001553s) COMMIT
Finished applying migration 20111012094815_add_quota_to_user.rb, direction:
up, took 0.016890 seconds
Begin applying migration 20120202132847
_add_table_quota_and_account_type_to_user.rb, direction: up
(0.000235s) BEGIN
(0.013954s) ALTER TABLE "users" ADD COLUMN "table_quota" bigint DEFAULT 5
(0.013173s) ALTER TABLE "users" ADD COLUMN "account_type" text DEFAULT
'FREE'
(0.000488s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120202132847_add_table_quota_and_account_type_to_user.rb') RETURNING
"filename"
(0.002602s) COMMIT
Finished applying migration 20120202132847
_add_table_quota_and_account_type_to_user.rb, direction: up, took 0.031797
seconds
Begin applying migration 20120213183707_add_private_tables_to_user.rb,
direction: up
(0.000354s) BEGIN
(0.012460s) ALTER TABLE "users" ADD COLUMN "private_tables_enabled" boolean
DEFAULT false
(0.000523s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120213183707_add_private_tables_to_user.rb') RETURNING "filename"
(0.002028s) COMMIT
Finished applying migration 20120213183707_add_private_tables_to_user.rb,
direction: up, took 0.016485 seconds
Begin applying migration 20120221165244_add_data_import_to_management_db.rb,
direction: up
(0.000349s) BEGIN
(0.007434s) CREATE TABLE "data_imports" ("id" serial PRIMARY KEY, "user_id"
integer NOT NULL, "table_id" integer, "data_source" text, "data_type" text,
"table_name" text, "state" text NOT NULL, "success" Boolean NOT NULL,
"logger" Text NOT NULL, "updated_at" timestamp NOT NULL, "created_at"
timestamp)
(0.003034s) CREATE UNIQUE INDEX "data_imports_user_id_table_id_index" ON
"data_imports" ("user_id", "table_id")
(0.004301s) CREATE INDEX "data_imports_user_id_index" ON "data_imports" (
"user_id")
(0.002276s) CREATE INDEX "data_imports_table_id_index" ON "data_imports" (
"table_id")
(0.002981s) CREATE INDEX "data_imports_state_index" ON "data_imports" (
"state")
(0.001385s) ALTER TABLE "data_imports" ALTER COLUMN "logger" SET DEFAULT
'Begin:
', ALTER COLUMN "success" SET DEFAULT false, ALTER COLUMN "created_at" SET
DEFAULT '2016-10-04 19:45:41.746254+0200'
(0.000829s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120221165244_add_data_import_to_management_db.rb') RETURNING "filename"
(0.000984s) COMMIT
Finished applying migration 20120221165244_add_data_import_to_management_db.
rb, direction: up, took 0.026951 seconds
Begin applying migration 20120308005044
_add_data_import_id_col_to_user_tables.rb, direction: up
(0.000415s) BEGIN
(0.000437s) ALTER TABLE "user_tables" ADD COLUMN "data_import_id" bigint
(0.000427s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120308005044_add_data_import_id_col_to_user_tables.rb') RETURNING
"filename"
(0.000769s) COMMIT
Finished applying migration 20120308005044
_add_data_import_id_col_to_user_tables.rb, direction: up, took 0.002933
seconds
Begin applying migration 20120315143901
_add_new_error_code_column_to_data_import.rb, direction: up
(0.000299s) BEGIN
(0.000582s) ALTER TABLE "data_imports" ADD COLUMN "error_code" integer
(0.000410s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120315143901_add_new_error_code_column_to_data_import.rb') RETURNING
"filename"
(0.000743s) COMMIT
Finished applying migration 20120315143901
_add_new_error_code_column_to_data_import.rb, direction: up, took 0.002880
seconds
Begin applying migration 20120321191228_change_data_import_timestamp_default
.rb, direction: up
(0.000345s) BEGIN
(0.001307s) ALTER TABLE "data_imports" ALTER COLUMN "created_at" SET
DEFAULT CURRENT_TIMESTAMP
(0.000436s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120321191228_change_data_import_timestamp_default.rb') RETURNING
"filename"
(0.001491s) COMMIT
Finished applying migration 20120321191228
_change_data_import_timestamp_default.rb, direction: up, took 0.004641
seconds
Begin applying migration 20120704144241_add_queue_id_to_data_imports.rb,
direction: up
(0.000303s) BEGIN
(0.000476s) ALTER TABLE "data_imports" ADD COLUMN "queue_id" text
(0.000442s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120704144241_add_queue_id_to_data_imports.rb') RETURNING "filename"
(0.000706s) COMMIT
Finished applying migration 20120704144241_add_queue_id_to_data_imports.rb,
direction: up, took 0.002863 seconds
Begin applying migration 20120719104544_maps.rb, direction: up
(0.000300s) BEGIN
(0.007639s) CREATE TABLE "maps" ("id" serial PRIMARY KEY, "user_id" integer
NOT NULL, "provider" text, "bounding_box_sw" text, "bounding_box_ne" text,
"center" text, "zoom" integer)
(0.003709s) CREATE INDEX "maps_user_id_index" ON "maps" ("user_id")
(0.000454s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120719104544_maps.rb') RETURNING "filename"
(0.001034s) COMMIT
Finished applying migration 20120719104544_maps.rb, direction: up, took
0.014758 seconds
Begin applying migration 20120719105206_layers.rb, direction: up
(0.000386s) BEGIN
(0.007578s) CREATE TABLE "layers" ("id" serial PRIMARY KEY, "options" text,
"kind" text)
(0.000439s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120719105206_layers.rb') RETURNING "filename"
(0.001670s) COMMIT
Finished applying migration 20120719105206_layers.rb, direction: up, took
0.011595 seconds
Begin applying migration 20120719112045_layers_maps.rb, direction: up
(0.000369s) BEGIN
(0.007301s) CREATE TABLE "layers_maps" ("id" serial PRIMARY KEY, "layer_id"
integer REFERENCES "layers", "map_id" integer REFERENCES "maps")
(0.000398s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120719112045_layers_maps.rb') RETURNING "filename"
(0.000840s) COMMIT
Finished applying migration 20120719112045_layers_maps.rb, direction: up,
took 0.010365 seconds
Begin applying migration 20120720160358_add_map_id_to_tables.rb, direction:
up
(0.000219s) BEGIN
(0.000623s) ALTER TABLE "user_tables" ADD COLUMN "map_id" bigint
(0.000307s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120720160358_add_map_id_to_tables.rb') RETURNING "filename"
(0.000830s) COMMIT
Finished applying migration 20120720160358_add_map_id_to_tables.rb,
direction: up, took 0.002902 seconds
Begin applying migration 20120803103512_add_description_to_tables.rb,
direction: up
(0.000302s) BEGIN
(0.000825s) ALTER TABLE "user_tables" ADD COLUMN "description" text
(0.000803s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120803103512_add_description_to_tables.rb') RETURNING "filename"
(0.000895s) COMMIT
Finished applying migration 20120803103512_add_description_to_tables.rb,
direction: up, took 0.004105 seconds
Begin applying migration 20120807101605_add_infowindow_metadata_to_layer.rb,
direction: up
(0.000317s) BEGIN
(0.000542s) ALTER TABLE "layers" ADD COLUMN "infowindow" text
(0.000430s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120807101605_add_infowindow_metadata_to_layer.rb') RETURNING "filename"
(0.000730s) COMMIT
Finished applying migration 20120807101605_add_infowindow_metadata_to_layer.
rb, direction: up, took 0.003006 seconds
Begin applying migration 20120809105200_add_default_map_and_layers_to_tables
.rb, direction: up
(0.000299s) BEGIN
(0.000421s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120809105200_add_default_map_and_layers_to_tables.rb') RETURNING
"filename"
(0.000650s) COMMIT
Finished applying migration 20120809105200
_add_default_map_and_layers_to_tables.rb, direction: up, took 0.002015
seconds
Begin applying migration 20120809105233_copy_infowindow_metadata_to_model.rb
, direction: up
(0.000323s) BEGIN
(0.000454s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120809105233_copy_infowindow_metadata_to_model.rb') RETURNING "filename"
(0.000702s) COMMIT
Finished applying migration 20120809105233_copy_infowindow_metadata_to_model
.rb, direction: up, took 0.002318 seconds
Begin applying migration 20120823114609_add_last_active_time_to_users.rb,
direction: up
(0.000305s) BEGIN
(0.000628s) ALTER TABLE "users" ADD COLUMN "last_active_time" timestamp
(0.000404s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120823114609_add_last_active_time_to_users.rb') RETURNING "filename"
(0.000741s) COMMIT
Finished applying migration 20120823114609_add_last_active_time_to_users.rb,
direction: up, took 0.002942 seconds
Begin applying migration 20120903161841_layers_users.rb, direction: up
(0.000302s) BEGIN
(0.006535s) CREATE TABLE "layers_users" ("id" serial PRIMARY KEY, "layer_id"
integer REFERENCES "layers", "user_id" integer REFERENCES "users")
(0.000450s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120903161841_layers_users.rb') RETURNING "filename"
(0.001532s) COMMIT
Finished applying migration 20120903161841_layers_users.rb, direction: up,
took 0.010204 seconds
Begin applying migration 20120912121006_add_order_to_layers.rb, direction:
up
(0.000625s) BEGIN
(0.000540s) ALTER TABLE "layers" ADD COLUMN "order" integer
(0.000491s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120912121006_add_order_to_layers.rb') RETURNING "filename"
(0.000631s) COMMIT
Finished applying migration 20120912121006_add_order_to_layers.rb, direction
: up, took 0.003333 seconds
Begin applying migration 20120914162229_add_view_bounds_to_maps.rb,
direction: up
(0.000167s) BEGIN
(0.000563s) ALTER TABLE "maps" ADD COLUMN "view_bounds_sw" text, ADD COLUMN
"view_bounds_ne" text
(0.000412s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120914162229_add_view_bounds_to_maps.rb') RETURNING "filename"
(0.000585s) COMMIT
Finished applying migration 20120914162229_add_view_bounds_to_maps.rb,
direction: up, took 0.002634 seconds
Begin applying migration 20120919095432_add_table_id_to_user_tables.rb,
direction: up
(0.000168s) BEGIN
(0.000363s) ALTER TABLE "user_tables" ADD COLUMN "table_id" integer
(0.000275s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120919095432_add_table_id_to_user_tables.rb') RETURNING "filename"
(0.002080s) COMMIT
Finished applying migration 20120919095432_add_table_id_to_user_tables.rb,
direction: up, took 0.003688 seconds
Begin applying migration 20120924165043_assets.rb, direction: up
(0.000341s) BEGIN
(0.009451s) CREATE TABLE "assets" ("id" serial PRIMARY KEY, "user_id"
integer NOT NULL, "public_url" text)
(0.002765s) CREATE INDEX "assets_user_id_index" ON "assets" ("user_id")
(0.000453s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20120924165043_assets.rb') RETURNING "filename"
(0.000773s) COMMIT
Finished applying migration 20120924165043_assets.rb, direction: up, took
0.015279 seconds
Begin applying migration 20121016113011_remove_last_active_time_to_users.rb,
direction: up
(0.000345s) BEGIN
(0.000794s) ALTER TABLE "users" DROP COLUMN "last_active_time"
(0.000387s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20121016113011_remove_last_active_time_to_users.rb') RETURNING "filename"
(0.000748s) COMMIT
Finished applying migration 20121016113011_remove_last_active_time_to_users.
rb, direction: up, took 0.003073 seconds
Begin applying migration 20121017152007_migrate_data_from_1_0_to_2_0.rb,
direction: up
(0.000255s) BEGIN
(0.000514s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20121017152007_migrate_data_from_1_0_to_2_0.rb') RETURNING "filename"
(0.000686s) COMMIT
Finished applying migration 20121017152007_migrate_data_from_1_0_to_2_0.rb,
direction: up, took 0.001974 seconds
Begin applying migration 20121110180905_remove_blank_tags.rb, direction: up
(0.000297s) BEGIN
(0.003811s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'tags') AND (
"pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY
"pg_attribute"."attnum"
(0.001007s) DELETE FROM tags where name = ''
(0.000443s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20121110180905_remove_blank_tags.rb') RETURNING "filename"
(0.000756s) COMMIT
Finished applying migration 20121110180905_remove_blank_tags.rb, direction:
up, took 0.013870 seconds
Begin applying migration 20121115155323
_add_tables_created_count_to_data_imports.rb, direction: up
(0.000293s) BEGIN
(0.000508s) ALTER TABLE "data_imports" ADD COLUMN "tables_created_count"
integer
(0.000422s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20121115155323_add_tables_created_count_to_data_imports.rb') RETURNING
"filename"
(0.000787s) COMMIT
Finished applying migration 20121115155323
_add_tables_created_count_to_data_imports.rb, direction: up, took 0.002933
seconds
Begin applying migration 20121218112426_add_table_names_to_data_imports.rb,
direction: up
(0.000295s) BEGIN
(0.000492s) ALTER TABLE "data_imports" ADD COLUMN "table_names" text
(0.000404s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20121218112426_add_table_names_to_data_imports.rb') RETURNING "filename"
(0.000600s) COMMIT
Finished applying migration 20121218112426_add_table_names_to_data_imports.
rb, direction: up, took 0.002589 seconds
Begin applying migration 20130212094523_add_updated_at_to_layers.rb,
direction: up
(0.001726s) BEGIN
(0.001539s) ALTER TABLE "layers" ADD COLUMN "updated_at" timestamp
(0.001066s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130212094523_add_updated_at_to_layers.rb') RETURNING "filename"
(0.000844s) COMMIT
Finished applying migration 20130212094523_add_updated_at_to_layers.rb,
direction: up, took 0.006649 seconds
Begin applying migration 20130212112825_add_updated_at_to_maps.rb, direction
: up
(0.000328s) BEGIN
(0.000610s) ALTER TABLE "maps" ADD COLUMN "updated_at" timestamp
(0.000414s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130212112825_add_updated_at_to_maps.rb') RETURNING "filename"
(0.000762s) COMMIT
Finished applying migration 20130212112825_add_updated_at_to_maps.rb,
direction: up, took 0.003036 seconds
Begin applying migration 20130220145819_add_default_to_layers_updated_at.rb,
direction: up
(0.000315s) BEGIN
(0.000553s) ALTER TABLE layers ALTER COLUMN updated_at SET DEFAULT NOW()
(0.000416s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130220145819_add_default_to_layers_updated_at.rb') RETURNING "filename"
(0.000679s) COMMIT
Finished applying migration 20130220145819_add_default_to_layers_updated_at.
rb, direction: up, took 0.002777 seconds
Begin applying migration 20130220153907_update_old_layers_updated_at.rb,
direction: up
(0.000314s) BEGIN
(0.000727s) UPDATE layers SET updated_at = NOW() WHERE updated_at IS NULL
(0.000410s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130220153907_update_old_layers_updated_at.rb') RETURNING "filename"
(0.000613s) COMMIT
Finished applying migration 20130220153907_update_old_layers_updated_at.rb,
direction: up, took 0.002843 seconds
Begin applying migration 20130321100037
_add_missing_attributes_to_data_imports.rb, direction: up
(0.000176s) BEGIN
(0.000662s) ALTER TABLE "data_imports" ADD COLUMN "append" boolean, ADD
COLUMN "migrate_table" text, ADD COLUMN "table_copy" text, ADD COLUMN
"from_query" text
(0.000478s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130321100037_add_missing_attributes_to_data_imports.rb') RETURNING
"filename"
(0.000721s) COMMIT
Finished applying migration 20130321100037
_add_missing_attributes_to_data_imports.rb, direction: up, took 0.003218
seconds
Begin applying migration 20130331112949_visualizations.rb, direction: up
(0.000313s) BEGIN
(0.006994s) CREATE TABLE "visualizations" ("id" text NOT NULL PRIMARY KEY,
"name" text, "description" text, "map_id" text, "type" text)
(0.002703s) CREATE INDEX "visualizations_map_id_index" ON "visualizations" (
"map_id")
(0.000463s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130331112949_visualizations.rb') RETURNING "filename"
(0.000745s) COMMIT
Finished applying migration 20130331112949_visualizations.rb, direction: up,
took 0.012646 seconds
Begin applying migration 20130331113845_overlays.rb, direction: up
(0.000406s) BEGIN
(0.006252s) CREATE TABLE "overlays" ("id" text NOT NULL PRIMARY KEY, "order"
integer NOT NULL, "options" text, "visualization_id" text)
(0.002627s) CREATE INDEX "overlays_visualization_id_index" ON "overlays" (
"visualization_id")
(0.000600s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130331113845_overlays.rb') RETURNING "filename"
(0.001792s) COMMIT
Finished applying migration 20130331113845_overlays.rb, direction: up, took
0.013642 seconds
Begin applying migration 20130412094805_visualization_tags.rb, direction: up
(0.000312s) BEGIN
(0.000463s)
ALTER TABLE "visualizations"
ADD COLUMN tags text[]

(0.001448s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130412094805_visualization_tags.rb') RETURNING "filename"
(0.000755s) COMMIT
Finished applying migration 20130412094805_visualization_tags.rb, direction:
up, took 0.003825 seconds
Begin applying migration 20130417094205_add_type_to_overlays.rb, direction:
up
(0.000924s) BEGIN
(0.001069s) ALTER TABLE "overlays" ADD COLUMN "type" text
(0.000481s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130417094205_add_type_to_overlays.rb') RETURNING "filename"
(0.000733s) COMMIT
Finished applying migration 20130417094205_add_type_to_overlays.rb,
direction: up, took 0.004543 seconds
Begin applying migration 20130424180022_visualizations.rb, direction: up
(0.000378s) BEGIN
(0.010208s)
ALTER TABLE visualizations
ALTER COLUMN map_id
TYPE integer
USING map_id::integer

(0.000454s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130424180022_visualizations.rb') RETURNING "filename"
(0.001286s) COMMIT
Finished applying migration 20130424180022_visualizations.rb, direction: up,
took 0.013196 seconds
Begin applying migration 20130503084402
_add_active_layer_id_to_visualizations.rb, direction: up
(0.000344s) BEGIN
(0.000878s) ALTER TABLE "visualizations" ADD COLUMN "active_layer_id"
integer
(0.000576s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130503084402_add_active_layer_id_to_visualizations.rb') RETURNING
"filename"
(0.000714s) COMMIT
Finished applying migration 20130503084402
_add_active_layer_id_to_visualizations.rb, direction: up, took 0.004030
seconds
Begin applying migration 20130503142207_add_privacy_to_visualizations.rb,
direction: up
(0.000298s) BEGIN
(0.000737s) ALTER TABLE "visualizations" ADD COLUMN "privacy" text
(0.000401s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130503142207_add_privacy_to_visualizations.rb') RETURNING "filename"
(0.000622s) COMMIT
Finished applying migration 20130503142207_add_privacy_to_visualizations.rb,
direction: up, took 0.002884 seconds
Begin applying migration 20130521163240_add_timestamps_to_visualization.rb,
direction: up
(0.000182s) BEGIN
(0.000736s) ALTER TABLE "visualizations" ALTER COLUMN "created_at" SET
DEFAULT CURRENT_TIMESTAMP, ALTER COLUMN "updated_at" SET DEFAULT
CURRENT_TIMESTAMP, ADD COLUMN "created_at" timestamp, ADD COLUMN
"updated_at" timestamp
(0.000501s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130521163240_add_timestamps_to_visualization.rb') RETURNING "filename"
(0.000689s) COMMIT
Finished applying migration 20130521163240_add_timestamps_to_visualization.
rb, direction: up, took 0.002979 seconds
Begin applying migration 20130524105247_layers_user_tables.rb, direction: up
(0.000298s) BEGIN
(0.006172s) CREATE TABLE "layers_user_tables" ("id" serial PRIMARY KEY,
"layer_id" integer REFERENCES "layers", "user_table_id" integer REFERENCES
"user_tables")
(0.000565s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130524105247_layers_user_tables.rb') RETURNING "filename"
(0.001850s) COMMIT
Finished applying migration 20130524105247_layers_user_tables.rb, direction:
up, took 0.010577 seconds
Begin applying migration 20130605102802_add_period_end_date_to_users.rb,
direction: up
(0.000795s) BEGIN
(0.000768s) ALTER TABLE "users" ADD COLUMN "period_end_date" timestamp,
ALTER COLUMN "period_end_date" SET DEFAULT now()
(0.000410s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130605102802_add_period_end_date_to_users.rb') RETURNING "filename"
(0.000711s) COMMIT
Finished applying migration 20130605102802_add_period_end_date_to_users.rb,
direction: up, took 0.004249 seconds
Begin applying migration 20130605112533_add_mapviews_quota_to_users.rb,
direction: up
(0.000294s) BEGIN
(0.010551s) ALTER TABLE "users" ADD COLUMN "map_view_quota" integer DEFAULT
10000
(0.000455s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130605112533_add_mapviews_quota_to_users.rb') RETURNING "filename"
(0.001531s) COMMIT
Finished applying migration 20130605112533_add_mapviews_quota_to_users.rb,
direction: up, took 0.013811 seconds
Begin applying migration 20130626093348_add_max_layers_to_users.rb,
direction: up
(0.001350s) BEGIN
(0.014113s) ALTER TABLE "users" ADD COLUMN "max_layers" integer DEFAULT 3
(0.000477s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130626093348_add_max_layers_to_users.rb') RETURNING "filename"
(0.001435s) COMMIT
Finished applying migration 20130626093348_add_max_layers_to_users.rb,
direction: up, took 0.018470 seconds
Begin applying migration 20130627164229_increase_default_user_max_layers.rb,
direction: up
(0.000423s) BEGIN
(0.000755s) ALTER TABLE "users" ALTER COLUMN "max_layers" SET DEFAULT 4
(0.001139s) UPDATE users set max_layers = 4
(0.000702s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130627164229_increase_default_user_max_layers.rb') RETURNING "filename"
(0.001222s) COMMIT
Finished applying migration 20130627164229_increase_default_user_max_layers.
rb, direction: up, took 0.006314 seconds
Begin applying migration 20130802161253_add_timeouts_to_users.rb, direction:
up
(0.000311s) BEGIN
(0.012969s) ALTER TABLE "users" ADD COLUMN "database_timeout" integer
DEFAULT 300000, ADD COLUMN "user_timeout" integer DEFAULT 300000
(0.000704s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130802161253_add_timeouts_to_users.rb') RETURNING "filename"
(0.002198s) COMMIT
Finished applying migration 20130802161253_add_timeouts_to_users.rb,
direction: up, took 0.017512 seconds
Begin applying migration 20130805121621_add_kind_to_assets.rb, direction: up
(0.000372s) BEGIN
(0.000580s) ALTER TABLE "assets" ADD COLUMN "kind" text
(0.000687s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130805121621_add_kind_to_assets.rb') RETURNING "filename"
(0.000962s) COMMIT
Finished applying migration 20130805121621_add_kind_to_assets.rb, direction:
up, took 0.003579 seconds
Begin applying migration 20130807104954_add_upgraded_at_to_users.rb,
direction: up
(0.000317s) BEGIN
(0.000556s) ALTER TABLE "users" ADD COLUMN "upgraded_at" timestamp
(0.000696s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130807104954_add_upgraded_at_to_users.rb') RETURNING "filename"
(0.001301s) COMMIT
Finished applying migration 20130807104954_add_upgraded_at_to_users.rb,
direction: up, took 0.003837 seconds
Begin applying migration 20130904130236_add_map_view_block_price_to_users.rb
, direction: up
(0.000301s) BEGIN
(0.000526s) ALTER TABLE "users" ADD COLUMN "map_view_block_price" integer
(0.000407s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130904130236_add_map_view_block_price_to_users.rb') RETURNING "filename"
(0.000586s) COMMIT
Finished applying migration 20130904130236_add_map_view_block_price_to_users
.rb, direction: up, took 0.002791 seconds
Begin applying migration 20130917144013_add_geocoding_quota_to_users.rb,
direction: up
(0.000336s) BEGIN
(0.000589s) ALTER TABLE "users" ADD COLUMN "geocoding_quota" integer
(0.000408s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130917144013_add_geocoding_quota_to_users.rb') RETURNING "filename"
(0.000705s) COMMIT
Finished applying migration 20130917144013_add_geocoding_quota_to_users.rb,
direction: up, took 0.003296 seconds
Begin applying migration 20130918091950_create_geocodings.rb, direction: up
(0.000357s) BEGIN
(0.010476s) CREATE TABLE "geocodings" ("id" serial PRIMARY KEY, "user_id"
integer, "table_name" Text, "total_rows" integer, "processed_rows" integer,
"created_at" timestamp DEFAULT CURRENT_TIMESTAMP, "updated_at" timestamp
DEFAULT CURRENT_TIMESTAMP)
(0.000901s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130918091950_create_geocodings.rb') RETURNING "filename"
(0.002383s) COMMIT
Finished applying migration 20130918091950_create_geocodings.rb, direction:
up, took 0.015437 seconds
Begin applying migration 20130918100418_add_remote_id_to_geocodings.rb,
direction: up
(0.000370s) BEGIN
(0.000497s) ALTER TABLE "geocodings" ADD COLUMN "remote_id" text
(0.000423s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130918100418_add_remote_id_to_geocodings.rb') RETURNING "filename"
(0.000677s) COMMIT
Finished applying migration 20130918100418_add_remote_id_to_geocodings.rb,
direction: up, took 0.003136 seconds
Begin applying migration 20130918100827_add_formatter_to_geocodings.rb,
direction: up
(0.000293s) BEGIN
(0.000483s) ALTER TABLE "geocodings" ADD COLUMN "formatter" text
(0.000454s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20130918100827_add_formatter_to_geocodings.rb') RETURNING "filename"
(0.000658s) COMMIT
Finished applying migration 20130918100827_add_formatter_to_geocodings.rb,
direction: up, took 0.002763 seconds
Begin applying migration 20131007133011_add_dashboard_viewed_at_to_user.rb,
direction: up
(0.000303s) BEGIN
(0.000847s) ALTER TABLE "users" ADD COLUMN "dashboard_viewed_at" timestamp
(0.001255s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131007133011_add_dashboard_viewed_at_to_user.rb') RETURNING "filename"
(0.000825s) COMMIT
Finished applying migration 20131007133011_add_dashboard_viewed_at_to_user.
rb, direction: up, took 0.004274 seconds
Begin applying migration 20131008154516_synchronizations.rb, direction: up
(0.000372s) BEGIN
(0.008069s) CREATE TABLE "synchronizations" ("id" text NOT NULL PRIMARY KEY,
"name" text, "interval" integer, "url" text, "state" text, "user_id" integer
, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "run_at"
timestamp, "runned_at" timestamp, "retried_times" integer)
(0.000440s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131008154516_synchronizations.rb') RETURNING "filename"
(0.001577s) COMMIT
Finished applying migration 20131008154516_synchronizations.rb, direction:
up, took 0.011850 seconds
Begin applying migration 20131008165405
_add_synchronization_id_to_data_import.rb, direction: up
(0.000300s) BEGIN
(0.002240s) ALTER TABLE "data_imports" ADD COLUMN "synchronization_id" text
(0.000562s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131008165405_add_synchronization_id_to_data_import.rb') RETURNING
"filename"
(0.000939s) COMMIT
Finished applying migration 20131008165405
_add_synchronization_id_to_data_import.rb, direction: up, took 0.005286
seconds
Begin applying migration 20131009094750_add_sync_tables_to_user.rb,
direction: up
(0.000305s) BEGIN
(0.015447s) ALTER TABLE "users" ADD COLUMN "sync_tables_enabled" boolean
DEFAULT false
(0.000460s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131009094750_add_sync_tables_to_user.rb') RETURNING "filename"
(0.002429s) COMMIT
Finished applying migration 20131009094750_add_sync_tables_to_user.rb,
direction: up, took 0.019682 seconds
Begin applying migration 20131009140427
_add_log_and_error_code_to_synchronization.rb, direction: up
(0.000390s) BEGIN
(0.000772s) ALTER TABLE "synchronizations" ADD COLUMN "log_id" text, ADD
COLUMN "error_code" integer, ADD COLUMN "error_message" text
(0.000418s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131009140427_add_log_and_error_code_to_synchronization.rb') RETURNING
"filename"
(0.000731s) COMMIT
Finished applying migration 20131009140427
_add_log_and_error_code_to_synchronization.rb, direction: up, took 0.003303
seconds
Begin applying migration 20131010080230
_change_synchronization_runned_at_to_ran_at.rb, direction: up
(0.000438s) BEGIN
(0.000582s) ALTER TABLE "synchronizations" DROP COLUMN "runned_at", ADD
COLUMN "ran_at" timestamp
(0.000412s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131010080230_change_synchronization_runned_at_to_ran_at.rb') RETURNING
"filename"
(0.000992s) COMMIT
Finished applying migration 20131010080230
_change_synchronization_runned_at_to_ran_at.rb, direction: up, took 0.003430
seconds
Begin applying migration 20131015033750_add_timezone_to_timestamps.rb,
direction: up
(0.000326s) BEGIN
(0.011140s)
ALTER TABLE client_applications
ALTER COLUMN created_at
TYPE timestamptz

(0.009943s)
ALTER TABLE client_applications
ALTER COLUMN updated_at
TYPE timestamptz

(0.017383s)
ALTER TABLE data_imports
ALTER COLUMN created_at
TYPE timestamptz

(0.015821s)
ALTER TABLE data_imports
ALTER COLUMN updated_at
TYPE timestamptz

(0.008315s)
ALTER TABLE geocodings
ALTER COLUMN created_at
TYPE timestamptz

(0.007218s)
ALTER TABLE geocodings
ALTER COLUMN updated_at
TYPE timestamptz

(0.009192s)
ALTER TABLE layers
ALTER COLUMN updated_at
TYPE timestamptz

(0.011904s)
ALTER TABLE maps
ALTER COLUMN updated_at
TYPE timestamptz

(0.009786s)
ALTER TABLE oauth_nonces
ALTER COLUMN created_at
TYPE timestamptz

(0.012379s)
ALTER TABLE oauth_nonces
ALTER COLUMN updated_at
TYPE timestamptz

(0.010810s)
ALTER TABLE oauth_tokens
ALTER COLUMN created_at
TYPE timestamptz

(0.009849s)
ALTER TABLE oauth_tokens
ALTER COLUMN updated_at
TYPE timestamptz

(0.010763s)
ALTER TABLE oauth_tokens
ALTER COLUMN authorized_at
TYPE timestamptz

(0.009269s)
ALTER TABLE oauth_tokens
ALTER COLUMN invalidated_at
TYPE timestamptz

(0.011196s)
ALTER TABLE oauth_tokens
ALTER COLUMN valid_to
TYPE timestamptz

(0.008015s)
ALTER TABLE synchronizations
ALTER COLUMN created_at
TYPE timestamptz

(0.007425s)
ALTER TABLE synchronizations
ALTER COLUMN updated_at
TYPE timestamptz

(0.007452s)
ALTER TABLE synchronizations
ALTER COLUMN run_at
TYPE timestamptz

(0.007049s)
ALTER TABLE synchronizations
ALTER COLUMN ran_at
TYPE timestamptz

(0.015745s)
ALTER TABLE user_tables
ALTER COLUMN updated_at
TYPE timestamptz

(0.013696s)
ALTER TABLE users
ALTER COLUMN period_end_date
TYPE timestamptz

(0.014370s)
ALTER TABLE users
ALTER COLUMN upgraded_at
TYPE timestamptz

(0.016267s)
ALTER TABLE users
ALTER COLUMN dashboard_viewed_at
TYPE timestamptz

(0.011398s)
ALTER TABLE visualizations
ALTER COLUMN created_at
TYPE timestamptz

(0.009732s)
ALTER TABLE visualizations
ALTER COLUMN updated_at
TYPE timestamptz

(0.000439s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131015033750_add_timezone_to_timestamps.rb') RETURNING "filename"
(0.010427s) COMMIT
Finished applying migration 20131015033750_add_timezone_to_timestamps.rb,
direction: up, took 0.292424 seconds
Begin applying migration 20131015092056
_add_modified_at_etag_and_checksum_to_synchronization.rb, direction: up
(0.000469s) BEGIN
(0.001353s) ALTER TABLE "synchronizations" ADD COLUMN "modified_at"
timestamp, ADD COLUMN "etag" text, ADD COLUMN "checksum" text
(0.000595s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131015092056_add_modified_at_etag_and_checksum_to_synchronization.rb')
RETURNING "filename"
(0.000842s) COMMIT
Finished applying migration 20131015092056
_add_modified_at_etag_and_checksum_to_synchronization.rb, direction: up,
took 0.004230 seconds
Begin applying migration 20131015154036_add_database_host_to_users.rb,
direction: up
(0.000283s) BEGIN
(0.000649s) ALTER TABLE "users" ADD COLUMN "database_host" text
(0.000967s)
UPDATE users
SET database_host='localhost'
WHERE database_host IS NULL

(0.000413s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131015154036_add_database_host_to_users.rb') RETURNING "filename"
(0.000694s) COMMIT
Finished applying migration 20131015154036_add_database_host_to_users.rb,
direction: up, took 0.003906 seconds
Begin applying migration 20131030112026_add_geocoding_block_price_to_users.
rb, direction: up
(0.000346s) BEGIN
(0.000552s) ALTER TABLE "users" ADD COLUMN "geocoding_block_price" integer
(0.000595s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131030112026_add_geocoding_block_price_to_users.rb') RETURNING "filename"
(0.001994s) COMMIT
Finished applying migration 20131030112026
_add_geocoding_block_price_to_users.rb, direction: up, took 0.004543 seconds
Begin applying migration 20131031152839_add_state_to_geocodings.rb,
direction: up
(0.000214s) BEGIN
(0.000509s) ALTER TABLE "geocodings" ADD COLUMN "state" text
(0.000553s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131031152839_add_state_to_geocodings.rb') RETURNING "filename"
(0.001200s) COMMIT
Finished applying migration 20131031152839_add_state_to_geocodings.rb,
direction: up, took 0.003567 seconds
Begin applying migration 20131031175232_default_values_on_geocodings.rb,
direction: up
(0.000456s) BEGIN
(0.000832s) ALTER TABLE "geocodings" ALTER COLUMN "processed_rows" SET
DEFAULT 0, ALTER COLUMN "total_rows" SET DEFAULT 0
(0.000429s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131031175232_default_values_on_geocodings.rb') RETURNING "filename"
(0.000688s) COMMIT
Finished applying migration 20131031175232_default_values_on_geocodings.rb,
direction: up, took 0.003451 seconds
Begin applying migration 20131118150048_drop_api_keys.rb, direction: up
(0.000290s) BEGIN
(0.001814s) DROP TABLE "api_keys"
(0.000439s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131118150048_drop_api_keys.rb') RETURNING "filename"
(0.001515s) COMMIT
Finished applying migration 20131118150048_drop_api_keys.rb, direction: up,
took 0.004934 seconds
Begin applying migration 20131118150752_add_api_key_to_users.rb, direction:
up
(0.000325s) BEGIN
(0.000680s) ALTER TABLE "users" ADD COLUMN "api_key" text
(0.001499s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131118150752_add_api_key_to_users.rb') RETURNING "filename"
(0.000815s) COMMIT
Finished applying migration 20131118150752_add_api_key_to_users.rb,
direction: up, took 0.004368 seconds
Begin applying migration 20131119150829_add_notification_to_users.rb,
direction: up
(0.000572s) BEGIN
(0.000775s) ALTER TABLE "users" ADD COLUMN "notification" text
(0.000701s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131119150829_add_notification_to_users.rb') RETURNING "filename"
(0.000770s) COMMIT
Finished applying migration 20131119150829_add_notification_to_users.rb,
direction: up, took 0.004557 seconds
Begin applying migration 20131120112629_create_automatic_geocoders.rb,
direction: up
(0.000319s) BEGIN
(0.008532s) CREATE TABLE "automatic_geocodings" ("id" serial PRIMARY KEY,
"table_id" integer, "state" Text, "run_at" timestamp, "created_at"
timestamp NOT NULL, "updated_at" timestamp NOT NULL, "interval" integer,
"retried_times" integer)
(0.000497s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131120112629_create_automatic_geocoders.rb') RETURNING "filename"
(0.004554s) COMMIT
Finished applying migration 20131120112629_create_automatic_geocoders.rb,
direction: up, took 0.015163 seconds
Begin applying migration 20131121121304_add_table_id_to_geocodings.rb,
direction: up
(0.000410s) BEGIN
(0.000603s) ALTER TABLE "geocodings" ADD COLUMN "table_id" integer
(0.000842s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131121121304_add_table_id_to_geocodings.rb') RETURNING "filename"
(0.000916s) COMMIT
Finished applying migration 20131121121304_add_table_id_to_geocodings.rb,
direction: up, took 0.004050 seconds
Begin applying migration 20131121121317
_add_original_geocoding_id_to_automatic_geocodings.rb, direction: up
(0.000293s) BEGIN
(0.000543s) ALTER TABLE "automatic_geocodings" ADD COLUMN
"original_geocoding_id" integer
(0.000457s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131121121317_add_original_geocoding_id_to_automatic_geocodings.rb')
RETURNING "filename"
(0.000753s) COMMIT
Finished applying migration 20131121121317
_add_original_geocoding_id_to_automatic_geocodings.rb, direction: up, took
0.002969 seconds
Begin applying migration 20131122105630_change_geocodings_association.rb,
direction: up
(0.000320s) BEGIN
(0.000492s) ALTER TABLE "automatic_geocodings" DROP COLUMN
"original_geocoding_id"
(0.002120s) ALTER TABLE "geocodings" ADD COLUMN "automatic_geocoding_id"
integer
(0.000487s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131122105630_change_geocodings_association.rb') RETURNING "filename"
(0.001488s) COMMIT
Finished applying migration 20131122105630_change_geocodings_association.rb,
direction: up, took 0.006205 seconds
Begin applying migration 20131122114738_modify_automatic_geocodings.rb,
direction: up
(0.000396s) BEGIN
(0.000675s) ALTER TABLE "automatic_geocodings" DROP COLUMN "run_at"
(0.000419s) ALTER TABLE "automatic_geocodings" DROP COLUMN "interval"
(0.000411s) ALTER TABLE "automatic_geocodings" ADD COLUMN "ran_at" timestamp
(0.000484s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131122114738_modify_automatic_geocodings.rb') RETURNING "filename"
(0.000770s) COMMIT
Finished applying migration 20131122114738_modify_automatic_geocodings.rb,
direction: up, took 0.004629 seconds
Begin applying migration 20131202142448_create_organizations.rb, direction:
up
(0.000305s) BEGIN
(0.015044s) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
(0.004242s) CREATE TABLE "organizations" ("id" Uuid DEFAULT uuid_generate_v4
() NOT NULL PRIMARY KEY, "seats" integer, "quota_in_bytes" integer,
"created_at" timestamp DEFAULT CURRENT_TIMESTAMP, "updated_at" timestamp
DEFAULT CURRENT_TIMESTAMP)
(0.000364s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131202142448_create_organizations.rb') RETURNING "filename"
(0.001457s) COMMIT
Finished applying migration 20131202142448_create_organizations.rb,
direction: up, took 0.022738 seconds
Begin applying migration 20131202154602_add_organization_id_to_users.rb,
direction: up
(0.000375s) BEGIN
(0.000718s) ALTER TABLE "users" ADD COLUMN "organization_id" uuid
(0.000429s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131202154602_add_organization_id_to_users.rb') RETURNING "filename"
(0.000767s) COMMIT
Finished applying migration 20131202154602_add_organization_id_to_users.rb,
direction: up, took 0.003429 seconds
Begin applying migration 20131204123219_add_organization_owner_to_users.rb,
direction: up
(0.000339s) BEGIN
(0.015516s) ALTER TABLE "users" ADD COLUMN "organization_owner" boolean
DEFAULT false
(0.000533s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131204123219_add_organization_owner_to_users.rb') RETURNING "filename"
(0.002281s) COMMIT
Finished applying migration 20131204123219_add_organization_owner_to_users.
rb, direction: up, took 0.019836 seconds
Begin applying migration 20131211150547_change_organization_quota.rb,
direction: up
(0.000383s) BEGIN
(0.005043s) ALTER TABLE "organizations" ALTER COLUMN "quota_in_bytes" TYPE
bigint
(0.001323s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131211150547_change_organization_quota.rb') RETURNING "filename"
(0.001196s) COMMIT
Finished applying migration 20131211150547_change_organization_quota.rb,
direction: up, took 0.008951 seconds
Begin applying migration 20131212172002_add_name_to_organizations.rb,
direction: up
(0.000211s) BEGIN
(0.005050s) ALTER TABLE "organizations" ADD COLUMN "name" text
(0.000474s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20131212172002_add_name_to_organizations.rb') RETURNING "filename"
(0.000747s) COMMIT
Finished applying migration 20131212172002_add_name_to_organizations.rb,
direction: up, took 0.007457 seconds
Begin applying migration 20140114131419_add_created_at_to_users.rb,
direction: up
(0.000392s) BEGIN
(0.016067s) ALTER TABLE "users" ADD COLUMN "created_at" timestamp DEFAULT
now()
(0.000481s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140114131419_add_created_at_to_users.rb') RETURNING "filename"
(0.002085s) COMMIT
Finished applying migration 20140114131419_add_created_at_to_users.rb,
direction: up, took 0.020234 seconds
Begin applying migration 20140122211108_add_updated_at_to_users.rb,
direction: up
(0.000401s) BEGIN
(0.014409s) ALTER TABLE "users" ADD COLUMN "updated_at" timestamp DEFAULT
now()
(0.000474s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140122211108_add_updated_at_to_users.rb') RETURNING "filename"
(0.001426s) COMMIT
Finished applying migration 20140122211108_add_updated_at_to_users.rb,
direction: up, took 0.018075 seconds
Begin applying migration 20140206145135_add_cache_hits_to_geocodings.rb,
direction: up
(0.000354s) BEGIN
(0.008759s) ALTER TABLE "geocodings" ADD COLUMN "cache_hits" integer
DEFAULT 0
(0.000543s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140206145135_add_cache_hits_to_geocodings.rb') RETURNING "filename"
(0.001921s) COMMIT
Finished applying migration 20140206145135_add_cache_hits_to_geocodings.rb,
direction: up, took 0.012687 seconds
Begin applying migration 20140214110510_add_password_to_visualizations.rb,
direction: up
(0.000360s) BEGIN
(0.000521s) ALTER TABLE "visualizations" ADD COLUMN "encrypted_password"
text
(0.000415s) ALTER TABLE "visualizations" ADD COLUMN "password_salt" text
(0.000447s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140214110510_add_password_to_visualizations.rb') RETURNING "filename"
(0.000673s) COMMIT
Finished applying migration 20140214110510_add_password_to_visualizations.rb
, direction: up, took 0.003359 seconds
Begin applying migration 20140228160605_drop_total_rows_from_geocodings.rb,
direction: up
(0.000387s) BEGIN
(0.000668s) ALTER TABLE "geocodings" DROP COLUMN "total_rows"
(0.000415s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140228160605_drop_total_rows_from_geocodings.rb') RETURNING "filename"
(0.000594s) COMMIT
Finished applying migration 20140228160605_drop_total_rows_from_geocodings.
rb, direction: up, took 0.003082 seconds
Begin applying migration 20140303120018_add_index_on_geocodings.rb,
direction: up
(0.000289s) BEGIN
(0.003324s) CREATE INDEX geocodings_user_id_created_at ON geocodings(user_id
, created_at)
(0.001144s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140303120018_add_index_on_geocodings.rb') RETURNING "filename"
(0.001091s) COMMIT
Finished applying migration 20140303120018_add_index_on_geocodings.rb,
direction: up, took 0.006955 seconds
Begin applying migration 20140304175816_add_disqus_shortname_to_users.rb,
direction: up
(0.000300s) BEGIN
(0.000835s) ALTER TABLE "users" ADD COLUMN "disqus_shortname" text
(0.000629s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140304175816_add_disqus_shortname_to_users.rb') RETURNING "filename"
(0.000798s) COMMIT
Finished applying migration 20140304175816_add_disqus_shortname_to_users.rb,
direction: up, took 0.003662 seconds
Begin applying migration 20140304180412_migrate_to_uuid.rb, direction: up
(0.000302s) BEGIN
(0.001355s) SELECT COUNT(*) AS "count" FROM "assets" LIMIT 1
(0.009903s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='assets' AND column_name='id';

(0.002935s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='assets' AND column_name='user_id';

(0.000677s) SELECT COUNT(*) AS "count" FROM "automatic_geocodings" LIMIT 1
(0.002502s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='automatic_geocodings' AND column_name='id';

(0.002921s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='automatic_geocodings' AND column_name='table_id'
;

(0.000784s) SELECT COUNT(*) AS "count" FROM "client_applications" LIMIT 1
(0.002546s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='client_applications' AND column_name='id';

(0.002686s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='client_applications' AND column_name='user_id';

(0.001046s) SELECT COUNT(*) AS "count" FROM "data_imports" LIMIT 1
(0.003297s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='data_imports' AND column_name='id';

(0.003149s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='data_imports' AND column_name='user_id';

(0.003862s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='data_imports' AND column_name='table_id';

(0.001226s) SELECT COUNT(*) AS "count" FROM "geocodings" LIMIT 1
(0.002770s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='geocodings' AND column_name='id';

(0.002555s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='geocodings' AND column_name='user_id';

(0.002602s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='geocodings' AND column_name='table_id';

(0.002594s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='geocodings' AND column_name=
'automatic_geocoding_id';

(0.000705s) SELECT COUNT(*) AS "count" FROM "layers_maps" LIMIT 1
(0.002523s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='layers_maps' AND column_name='id';

(0.004013s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='layers_maps' AND column_name='map_id';

(0.004039s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='layers_maps' AND column_name='layer_id';

(0.000765s) SELECT COUNT(*) AS "count" FROM "layers_users" LIMIT 1
(0.003981s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='layers_users' AND column_name='id';

(0.003689s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='layers_users' AND column_name='user_id';

(0.002827s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='layers_users' AND column_name='layer_id';

(0.000700s) SELECT COUNT(*) AS "count" FROM "layers_user_tables" LIMIT 1
(0.002633s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='layers_user_tables' AND column_name='id';

(0.002798s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='layers_user_tables' AND column_name=
'user_table_id';

(0.002477s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='layers_user_tables' AND column_name='layer_id';

(0.000734s) SELECT COUNT(*) AS "count" FROM "layers" LIMIT 1
(0.002585s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='layers' AND column_name='id';

(0.001028s) SELECT COUNT(*) AS "count" FROM "maps" LIMIT 1
(0.002470s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='maps' AND column_name='id';

(0.003254s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='maps' AND column_name='user_id';

(0.001059s) SELECT COUNT(*) AS "count" FROM "oauth_nonces" LIMIT 1
(0.003078s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='oauth_nonces' AND column_name='id';

(0.000802s) SELECT COUNT(*) AS "count" FROM "oauth_tokens" LIMIT 1
(0.002495s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='oauth_tokens' AND column_name='id';

(0.002671s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='oauth_tokens' AND column_name='user_id';

(0.002811s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='oauth_tokens' AND column_name=
'client_application_id';

(0.000703s) SELECT COUNT(*) AS "count" FROM "overlays" LIMIT 1
(0.003054s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='overlays' AND column_name='id';

(0.001220s) SELECT COUNT(*) AS "count" FROM "synchronizations" LIMIT 1
(0.002928s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='synchronizations' AND column_name='user_id';

(0.000927s) SELECT COUNT(*) AS "count" FROM "tags" LIMIT 1
(0.002684s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='tags' AND column_name='id';

(0.003399s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='tags' AND column_name='user_id';

(0.002631s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='tags' AND column_name='table_id';

(0.000990s) SELECT COUNT(*) AS "count" FROM "user_tables" LIMIT 1
(0.003291s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='user_tables' AND column_name='id';

(0.002894s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='user_tables' AND column_name='user_id';

(0.002754s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='user_tables' AND column_name='map_id';

(0.002484s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='user_tables' AND column_name='data_import_id';

(0.000828s) SELECT COUNT(*) AS "count" FROM "users" LIMIT 1
(0.002865s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='users' AND column_name='id';

(0.000800s) SELECT COUNT(*) AS "count" FROM "visualizations" LIMIT 1
(0.002763s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='visualizations' AND column_name='map_id';

(0.002960s)
SELECT data_type
FROM information_schema.columns
WHERE table_name='visualizations' AND column_name=
'active_layer_id';

(0.027911s)
SELECT count(*) as count
FROM pg_available_extensions
WHERE name='uuid-ossp'

(0.000534s)
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"

(0.001055s)
ALTER TABLE assets
DROP COLUMN id

(0.012835s)
ALTER TABLE assets
ADD COLUMN id uuid UNIQUE PRIMARY KEY NOT NULL DEFAULT
uuid_generate_v4()

(0.000600s)
ALTER TABLE assets
DROP COLUMN user_id

(0.000404s)
ALTER TABLE assets
ADD COLUMN user_id uuid

(0.000805s)
ALTER TABLE automatic_geocodings
DROP COLUMN id

(0.008301s)
ALTER TABLE automatic_geocodings
ADD COLUMN id uuid UNIQUE PRIMARY KEY NOT NULL DEFAULT
uuid_generate_v4()

(0.000560s)
ALTER TABLE automatic_geocodings
DROP COLUMN table_id

(0.000618s)
ALTER TABLE automatic_geocodings
ADD COLUMN table_id uuid

(0.001319s)
ALTER TABLE client_applications
DROP COLUMN id

(0.015313s)
ALTER TABLE client_applications
ADD COLUMN id uuid UNIQUE PRIMARY KEY NOT NULL DEFAULT
uuid_generate_v4()

(0.000534s)
ALTER TABLE client_applications
DROP COLUMN user_id

(0.000574s)
ALTER TABLE client_applications
ADD COLUMN user_id uuid

(0.001316s)
ALTER TABLE data_imports
DROP COLUMN id

(0.020219s)
ALTER TABLE data_imports
ADD COLUMN id uuid UNIQUE PRIMARY KEY NOT NULL DEFAULT
uuid_generate_v4()

(0.000601s)
ALTER TABLE data_imports
DROP COLUMN user_id

(0.000773s)
ALTER TABLE data_imports
ADD COLUMN user_id uuid

(0.000544s)
ALTER TABLE data_imports
DROP COLUMN table_id

(0.000342s)
ALTER TABLE data_imports
ADD COLUMN table_id uuid

(0.000798s)
ALTER TABLE geocodings
DROP COLUMN id

(0.010033s)
ALTER TABLE geocodings
ADD COLUMN id uuid UNIQUE PRIMARY KEY NOT NULL DEFAULT
uuid_generate_v4()

(0.000455s)
ALTER TABLE geocodings
DROP COLUMN user_id

(0.000585s)
ALTER TABLE geocodings
ADD COLUMN user_id uuid

(0.000685s)
ALTER TABLE geocodings
DROP COLUMN table_id

(0.000774s)
ALTER TABLE geocodings
ADD COLUMN table_id uuid

(0.000448s)
ALTER TABLE geocodings
DROP COLUMN automatic_geocoding_id

(0.000783s)
ALTER TABLE geocodings
ADD COLUMN automatic_geocoding_id uuid

(0.001639s)
ALTER TABLE layers_maps
DROP COLUMN id

(0.007201s)
ALTER TABLE layers_maps
ADD COLUMN id uuid UNIQUE PRIMARY KEY NOT NULL DEFAULT
uuid_generate_v4()

(0.001010s)
ALTER TABLE layers_maps
DROP COLUMN map_id

(0.000415s)
ALTER TABLE layers_maps
ADD COLUMN map_id uuid

(0.000680s)
ALTER TABLE layers_maps
DROP COLUMN layer_id

(0.000420s)
ALTER TABLE layers_maps
ADD COLUMN layer_id uuid

(0.000828s)
ALTER TABLE layers_users
DROP COLUMN id

(0.008212s)
ALTER TABLE layers_users
ADD COLUMN id uuid UNIQUE PRIMARY KEY NOT NULL DEFAULT
uuid_generate_v4()

(0.001589s)
ALTER TABLE layers_users
DROP COLUMN user_id

(0.000984s)
ALTER TABLE layers_users
ADD COLUMN user_id uuid

(0.001254s)
ALTER TABLE layers_users
DROP COLUMN layer_id

(0.000444s)
ALTER TABLE layers_users
ADD COLUMN layer_id uuid

(0.000859s)
ALTER TABLE layers_user_tables
DROP COLUMN id

(0.007825s)
ALTER TABLE layers_user_tables
ADD COLUMN id uuid UNIQUE PRIMARY KEY NOT NULL DEFAULT
uuid_generate_v4()

(0.001225s)
ALTER TABLE layers_user_tables
DROP COLUMN user_table_id

(0.000602s)
ALTER TABLE layers_user_tables
ADD COLUMN user_table_id uuid

(0.000775s)
ALTER TABLE layers_user_tables
DROP COLUMN layer_id

(0.000466s)
ALTER TABLE layers_user_tables
ADD COLUMN layer_id uuid

(0.000925s)
ALTER TABLE layers
DROP COLUMN id

(0.009950s)
ALTER TABLE layers
ADD COLUMN id uuid UNIQUE PRIMARY KEY NOT NULL DEFAULT
uuid_generate_v4()

(0.001007s)
ALTER TABLE maps
DROP COLUMN id

(0.012031s)
ALTER TABLE maps
ADD COLUMN id uuid UNIQUE PRIMARY KEY NOT NULL DEFAULT
uuid_generate_v4()

(0.000620s)
ALTER TABLE maps
DROP COLUMN user_id

(0.000669s)
ALTER TABLE maps
ADD COLUMN user_id uuid

(0.000835s)
ALTER TABLE oauth_nonces
DROP COLUMN id

(0.009966s)
ALTER TABLE oauth_nonces
ADD COLUMN id uuid UNIQUE PRIMARY KEY NOT NULL DEFAULT
uuid_generate_v4()

(0.001258s)
ALTER TABLE oauth_tokens
DROP COLUMN id

(0.013203s)
ALTER TABLE oauth_tokens
ADD COLUMN id uuid UNIQUE PRIMARY KEY NOT NULL DEFAULT
uuid_generate_v4()

(0.000565s)
ALTER TABLE oauth_tokens
DROP COLUMN user_id

(0.000427s)
ALTER TABLE oauth_tokens
ADD COLUMN user_id uuid

(0.000435s)
ALTER TABLE oauth_tokens
DROP COLUMN client_application_id

(0.000411s)
ALTER TABLE oauth_tokens
ADD COLUMN client_application_id uuid

(0.000649s)
ALTER TABLE overlays
DROP COLUMN id

(0.011763s)
ALTER TABLE overlays
ADD COLUMN id uuid UNIQUE PRIMARY KEY NOT NULL DEFAULT
uuid_generate_v4()

(0.001103s)
ALTER TABLE synchronizations
DROP COLUMN user_id

(0.002487s)
ALTER TABLE synchronizations
ADD COLUMN user_id uuid

(0.000975s)
ALTER TABLE tags
DROP COLUMN id

(0.017445s)
ALTER TABLE tags
ADD COLUMN id uuid UNIQUE PRIMARY KEY NOT NULL DEFAULT
uuid_generate_v4()

(0.001418s)
ALTER TABLE tags
DROP COLUMN user_id

(0.001310s)
ALTER TABLE tags
ADD COLUMN user_id uuid

(0.000972s)
ALTER TABLE tags
DROP COLUMN table_id

(0.000507s)
ALTER TABLE tags
ADD COLUMN table_id uuid

(0.001031s)
ALTER TABLE user_tables
DROP COLUMN id

(0.015382s)
ALTER TABLE user_tables
ADD COLUMN id uuid UNIQUE PRIMARY KEY NOT NULL DEFAULT
uuid_generate_v4()

(0.000757s)
ALTER TABLE user_tables
DROP COLUMN user_id

(0.001068s)
ALTER TABLE user_tables
ADD COLUMN user_id uuid

(0.000639s)
ALTER TABLE user_tables
DROP COLUMN map_id

(0.000637s)
ALTER TABLE user_tables
ADD COLUMN map_id uuid

(0.000490s)
ALTER TABLE user_tables
DROP COLUMN data_import_id

(0.000810s)
ALTER TABLE user_tables
ADD COLUMN data_import_id uuid

(0.002280s)
ALTER TABLE users
DROP COLUMN id

(0.013096s)
ALTER TABLE users
ADD COLUMN id uuid UNIQUE PRIMARY KEY NOT NULL DEFAULT
uuid_generate_v4()

(0.000686s)
ALTER TABLE visualizations
DROP COLUMN map_id

(0.000381s)
ALTER TABLE visualizations
ADD COLUMN map_id uuid

(0.000375s)
ALTER TABLE visualizations
DROP COLUMN active_layer_id

(0.000472s)
ALTER TABLE visualizations
ADD COLUMN active_layer_id uuid

(0.000955s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140304180412_migrate_to_uuid.rb') RETURNING "filename"
(0.009341s) COMMIT
Finished applying migration 20140304180412_migrate_to_uuid.rb, direction: up
, took 0.460581 seconds
Begin applying migration 20140305112732_add_extra_fields_to_geocodings.rb,
direction: up
(0.001041s) BEGIN
(0.001310s) ALTER TABLE "geocodings" ADD COLUMN "kind" text, ADD COLUMN
"country_code" text, ADD COLUMN "geometry_type" text
(0.000583s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140305112732_add_extra_fields_to_geocodings.rb') RETURNING "filename"
(0.001163s) COMMIT
Finished applying migration 20140305112732_add_extra_fields_to_geocodings.rb
, direction: up, took 0.005487 seconds
Begin applying migration 20140307123930
_add_service_name_and_service_item_id_to_synchronizations.rb, direction: up
(0.000274s) BEGIN
(0.000639s) ALTER TABLE "synchronizations" ADD COLUMN "service_name" text
(0.000556s) ALTER TABLE "synchronizations" ADD COLUMN "service_item_id" text
(0.000451s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140307123930_add_service_name_and_service_item_id_to_synchronizations.rb'
) RETURNING "filename"
(0.000768s) COMMIT
Finished applying migration 20140307123930
_add_service_name_and_service_item_id_to_synchronizations.rb, direction: up,
took 0.004174 seconds
Begin applying migration 20140314101744_create_synchronization_oauths.rb,
direction: up
(0.000298s) BEGIN
(0.008900s) CREATE TABLE "synchronization_oauths" ("id" serial PRIMARY KEY,
"user_id" Uuid, "service" Text, "token" Text, "created_at" timestamp
DEFAULT CURRENT_TIMESTAMP, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP)
(0.002316s) CREATE INDEX "synchronization_oauths_user_id_index" ON
"synchronization_oauths" ("user_id")
(0.003186s) CREATE INDEX "synchronization_oauths_service_index" ON
"synchronization_oauths" ("service")
(0.001381s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140314101744_create_synchronization_oauths.rb') RETURNING "filename"
(0.001600s) COMMIT
Finished applying migration 20140314101744_create_synchronization_oauths.rb,
direction: up, took 0.019683 seconds
Begin applying migration 20140402140602_add_service_name_to_data_import.rb,
direction: up
(0.000386s) BEGIN
(0.001496s) ALTER TABLE "data_imports" ADD COLUMN "service_name" text
(0.000588s) ALTER TABLE "data_imports" ALTER COLUMN "service_name" SET
DEFAULT 'public_url'
(0.000709s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140402140602_add_service_name_to_data_import.rb') RETURNING "filename"
(0.000889s) COMMIT
Finished applying migration 20140402140602_add_service_name_to_data_import.
rb, direction: up, took 0.005658 seconds
Begin applying migration 20140402142957_add_service_item_id_to_data_import.
rb, direction: up
(0.000328s) BEGIN
(0.000528s) ALTER TABLE "data_imports" ADD COLUMN "service_item_id" text
(0.000416s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140402142957_add_service_item_id_to_data_import.rb') RETURNING "filename"
(0.000805s) COMMIT
Finished applying migration 20140402142957
_add_service_item_id_to_data_import.rb, direction: up, took 0.002997 seconds
Begin applying migration 20140410145007_add_processable_rows_to_geocodings.
rb, direction: up
(0.001367s) BEGIN
(0.000740s) ALTER TABLE "geocodings" ADD COLUMN "processable_rows" bigint
(0.000470s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140410145007_add_processable_rows_to_geocodings.rb') RETURNING "filename"
(0.000659s) COMMIT
Finished applying migration 20140410145007
_add_processable_rows_to_geocodings.rb, direction: up, took 0.004311 seconds
Begin applying migration 20140410145024_add_real_rows_to_geocodings.rb,
direction: up
(0.000299s) BEGIN
(0.000610s) ALTER TABLE "geocodings" ADD COLUMN "real_rows" bigint
(0.000423s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140410145024_add_real_rows_to_geocodings.rb') RETURNING "filename"
(0.000699s) COMMIT
Finished applying migration 20140410145024_add_real_rows_to_geocodings.rb,
direction: up, took 0.002873 seconds
Begin applying migration 20140414132400_add_url_options_to_visualizations.rb
, direction: up
(0.000304s) BEGIN
(0.001059s) ALTER TABLE "visualizations" ADD COLUMN "url_options" text
(0.000853s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140414132400_add_url_options_to_visualizations.rb') RETURNING "filename"
(0.000904s) COMMIT
Finished applying migration 20140414132400_add_url_options_to_visualizations
.rb, direction: up, took 0.004420 seconds
Begin applying migration 20140414160500_add_used_credits_to_geocodings.rb,
direction: up
(0.000330s) BEGIN
(0.000869s) ALTER TABLE "geocodings" ADD COLUMN "used_credits" bigint
(0.000523s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140414160500_add_used_credits_to_geocodings.rb') RETURNING "filename"
(0.000688s) COMMIT
Finished applying migration 20140414160500_add_used_credits_to_geocodings.rb
, direction: up, took 0.003644 seconds
Begin applying migration 20140429104839_add_tooltip_to_layer.rb, direction:
up
(0.001533s) BEGIN
(0.000639s) ALTER TABLE "layers" ADD COLUMN "tooltip" text
(0.000421s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140429104839_add_tooltip_to_layer.rb') RETURNING "filename"
(0.000683s) COMMIT
Finished applying migration 20140429104839_add_tooltip_to_layer.rb,
direction: up, took 0.004348 seconds
Begin applying migration 20140509082703_add_twitter_username_to_users.rb,
direction: up
(0.000304s) BEGIN
(0.000581s) ALTER TABLE "users" ADD COLUMN "twitter_username" text
(0.000418s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140509082703_add_twitter_username_to_users.rb') RETURNING "filename"
(0.000610s) COMMIT
Finished applying migration 20140509082703_add_twitter_username_to_users.rb,
direction: up, took 0.002803 seconds
Begin applying migration 20140509082717_add_website_to_users.rb, direction:
up
(0.000300s) BEGIN
(0.000552s) ALTER TABLE "users" ADD COLUMN "website" text
(0.000910s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140509082717_add_website_to_users.rb') RETURNING "filename"
(0.000838s) COMMIT
Finished applying migration 20140509082717_add_website_to_users.rb,
direction: up, took 0.003611 seconds
Begin applying migration 20140509082727_add_description_to_users.rb,
direction: up
(0.000245s) BEGIN
(0.000806s) ALTER TABLE "users" ADD COLUMN "description" text
(0.000445s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140509082727_add_description_to_users.rb') RETURNING "filename"
(0.000694s) COMMIT
Finished applying migration 20140509082727_add_description_to_users.rb,
direction: up, took 0.003340 seconds
Begin applying migration 20140509132419_add_name_to_users.rb, direction: up
(0.000397s) BEGIN
(0.000601s) ALTER TABLE "users" ADD COLUMN "name" text
(0.000444s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140509132419_add_name_to_users.rb') RETURNING "filename"
(0.000777s) COMMIT
Finished applying migration 20140509132419_add_name_to_users.rb, direction:
up, took 0.003112 seconds
Begin applying migration 20140516125339_add_user_id_to_visualizations.rb,
direction: up
(0.000371s) BEGIN
(0.000515s) ALTER TABLE "visualizations" ADD COLUMN "user_id" uuid
(0.001909s)
UPDATE visualizations
SET user_id = maps.user_id FROM maps
WHERE maps.user_id IN (SELECT users.id FROM users)
AND visualizations.user_id IS NULL
AND visualizations.map_id = maps.id

(0.000435s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140516125339_add_user_id_to_visualizations.rb') RETURNING "filename"
(0.000779s) COMMIT
Finished applying migration 20140516125339_add_user_id_to_visualizations.rb,
direction: up, took 0.005289 seconds
Begin applying migration 20140604155837_add_avatar_url_to_users.rb,
direction: up
(0.000312s) BEGIN
(0.000528s) ALTER TABLE "users" ADD COLUMN "avatar_url" text
(0.000424s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140604155837_add_avatar_url_to_users.rb') RETURNING "filename"
(0.000729s) COMMIT
Finished applying migration 20140604155837_add_avatar_url_to_users.rb,
direction: up, took 0.002906 seconds
Begin applying migration 20140604161347_add_template_overlays.rb, direction:
up
(0.000304s) BEGIN
(0.000606s) ALTER TABLE "overlays" ADD COLUMN "template" text
(0.000427s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140604161347_add_template_overlays.rb') RETURNING "filename"
(0.000658s) COMMIT
Finished applying migration 20140604161347_add_template_overlays.rb,
direction: up, took 0.002803 seconds
Begin applying migration 20140609105428_create_permissions.rb, direction: up
(0.000292s) BEGIN
(0.000329s) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
(0.008263s) CREATE TABLE "permissions" ("id" Uuid DEFAULT uuid_generate_v4()
NOT NULL PRIMARY KEY, "owner_id" Uuid NOT NULL, "owner_username" Text NOT
NULL, "access_control_list" Text DEFAULT '[]' NOT NULL, "created_at"
timestamp DEFAULT CURRENT_TIMESTAMP, "updated_at" timestamp DEFAULT
CURRENT_TIMESTAMP)
(0.000623s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140609105428_create_permissions.rb') RETURNING "filename"
(0.000930s) COMMIT
Finished applying migration 20140609105428_create_permissions.rb, direction:
up, took 0.012045 seconds
Begin applying migration 20140611072144_add_permission_to_visualizations.rb,
direction: up
(0.000323s) BEGIN
(0.000566s) ALTER TABLE "visualizations" ADD COLUMN "permission_id" uuid
(0.000433s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140611072144_add_permission_to_visualizations.rb') RETURNING "filename"
(0.000671s) COMMIT
Finished applying migration 20140611072144_add_permission_to_visualizations.
rb, direction: up, took 0.002860 seconds
Begin applying migration 20140616132854_add_database_schema_to_users.rb,
direction: up
(0.000301s) BEGIN
(0.014690s) ALTER TABLE "users" ADD COLUMN "database_schema" text DEFAULT
'public'
(0.000460s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140616132854_add_database_schema_to_users.rb') RETURNING "filename"
(0.002102s) COMMIT
Finished applying migration 20140616132854_add_database_schema_to_users.rb,
direction: up, took 0.018526 seconds
Begin applying migration 20140617110548_add_avatar_url_to_organizations.rb,
direction: up
(0.000337s) BEGIN
(0.000529s) ALTER TABLE "organizations" ADD COLUMN "avatar_url" text
(0.000414s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140617110548_add_avatar_url_to_organizations.rb') RETURNING "filename"
(0.000802s) COMMIT
Finished applying migration 20140617110548_add_avatar_url_to_organizations.
rb, direction: up, took 0.003025 seconds
Begin applying migration 20140617121918_create_shared_entities.rb, direction
: up
(0.000321s) BEGIN
(0.007560s) CREATE TABLE "shared_entities" ("id" serial PRIMARY KEY,
"user_id" Uuid NOT NULL, "entity_id" Uuid NOT NULL, "type" Text NOT NULL,
"created_at" timestamp DEFAULT CURRENT_TIMESTAMP, "updated_at" timestamp
DEFAULT CURRENT_TIMESTAMP)
(0.003439s) CREATE INDEX "shared_entities_user_id_index" ON
"shared_entities" ("user_id")
(0.002332s) CREATE UNIQUE INDEX "shared_entities_user_id_entity_id_index"
ON "shared_entities" ("user_id", "entity_id")
(0.000463s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140617121918_create_shared_entities.rb') RETURNING "filename"
(0.000860s) COMMIT
Finished applying migration 20140617121918_create_shared_entities.rb,
direction: up, took 0.016869 seconds
Begin applying migration 20140617142314_add_entity_to_permissions.rb,
direction: up
(0.000342s) BEGIN
(0.000607s) ALTER TABLE "permissions" ADD COLUMN "entity_id" uuid
(0.000421s) ALTER TABLE "permissions" ADD COLUMN "entity_type" text
(0.000408s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140617142314_add_entity_to_permissions.rb') RETURNING "filename"
(0.001562s) COMMIT
Finished applying migration 20140617142314_add_entity_to_permissions.rb,
direction: up, took 0.004481 seconds
Begin applying migration 20140625140749_add_recipients_to_shared_entities.rb
, direction: up
(0.000304s) BEGIN
(0.000617s) ALTER TABLE "shared_entities" RENAME COLUMN "user_id" TO
"recipient_id"
(0.000372s) ALTER TABLE "shared_entities" RENAME COLUMN "type" TO
"entity_type"
(0.000433s) ALTER TABLE "shared_entities" ADD COLUMN "recipient_type" text
(0.000863s) ALTER TABLE shared_entities ADD CONSTRAINT recipient_type_check
CHECK (recipient_type IN ('user', 'org'));
(0.000429s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140625140749_add_recipients_to_shared_entities.rb') RETURNING "filename"
(0.000678s) COMMIT
Finished applying migration 20140625140749_add_recipients_to_shared_entities
.rb, direction: up, took 0.005085 seconds
Begin applying migration 20140625151906_add_owner_id_to_organizations.rb,
direction: up
(0.000311s) BEGIN
(0.000478s) ALTER TABLE "organizations" ADD COLUMN "owner_id" uuid
(0.003241s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" =
'organizations') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema'
)) ORDER BY "pg_attribute"."attnum"
(0.002107s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" =
'organizations') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema'
)) ORDER BY "pg_attribute"."attnum"
(0.000864s) SELECT * FROM "users" WHERE ("organization_owner" IS TRUE)
(0.000776s) ALTER TABLE "users" DROP COLUMN "organization_owner"
(0.000488s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140625151906_add_owner_id_to_organizations.rb') RETURNING "filename"
(0.000783s) COMMIT
Finished applying migration 20140625151906_add_owner_id_to_organizations.rb,
direction: up, took 0.024266 seconds
Begin applying migration 20140627102015_add_extra_fields_to_organizations.rb
, direction: up
(0.000453s) BEGIN
(0.000618s) ALTER TABLE "organizations" ADD COLUMN "website" text
(0.000429s) ALTER TABLE "organizations" ADD COLUMN "description" text
(0.000405s) ALTER TABLE "organizations" ADD COLUMN "display_name" text
(0.001422s) ALTER TABLE "organizations" ADD COLUMN "discus_shortname" text
(0.001207s) ALTER TABLE "organizations" ADD COLUMN "twitter_username" text
(0.000606s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140627102015_add_extra_fields_to_organizations.rb') RETURNING "filename"
(0.000730s) COMMIT
Finished applying migration 20140627102015_add_extra_fields_to_organizations
.rb, direction: up, took 0.008414 seconds
Begin applying migration 20140627130234_add_scroll_wheel_to_maps.rb,
direction: up
(0.000325s) BEGIN
(0.009693s) ALTER TABLE "maps" ADD COLUMN "scrollwheel" bool DEFAULT true
(0.000851s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140627130234_add_scroll_wheel_to_maps.rb') RETURNING "filename"
(0.001817s) COMMIT
Finished applying migration 20140627130234_add_scroll_wheel_to_maps.rb,
direction: up, took 0.013912 seconds
Begin applying migration 20140704120337_add_quotas_to_organizations.rb,
direction: up
(0.000364s) BEGIN
(0.000505s) ALTER TABLE "organizations" ADD COLUMN "geocoding_quota" integer
(0.000435s) ALTER TABLE "organizations" ADD COLUMN "map_view_quota" integer
(0.000427s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140704120337_add_quotas_to_organizations.rb') RETURNING "filename"
(0.000822s) COMMIT
Finished applying migration 20140704120337_add_quotas_to_organizations.rb,
direction: up, took 0.003775 seconds
Begin applying migration 20140707122338_add_soft_geocoding_limit_to_users.rb
, direction: up
(0.000280s) BEGIN
(0.000840s) ALTER TABLE "users" ADD COLUMN "soft_geocoding_limit" boolean
(0.000481s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140707122338_add_soft_geocoding_limit_to_users.rb') RETURNING "filename"
(0.000720s) COMMIT
Finished applying migration 20140707122338_add_soft_geocoding_limit_to_users
.rb, direction: up, took 0.003819 seconds
Begin applying migration 20140707145307
_add_auth_token_to_users_and_organizations.rb, direction: up
(0.000302s) BEGIN
(0.000502s) ALTER TABLE "organizations" ADD COLUMN "auth_token" text
(0.000574s) ALTER TABLE "users" ADD COLUMN "auth_token" text
(0.000415s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140707145307_add_auth_token_to_users_and_organizations.rb') RETURNING
"filename"
(0.000760s) COMMIT
Finished applying migration 20140707145307
_add_auth_token_to_users_and_organizations.rb, direction: up, took 0.003775
seconds
Begin applying migration 20140711105152_add_source_to_visualizations.rb,
direction: up
(0.000321s) BEGIN
(0.000491s) ALTER TABLE "visualizations" ADD COLUMN "source" text
(0.000546s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140711105152_add_source_to_visualizations.rb') RETURNING "filename"
(0.000721s) COMMIT
Finished applying migration 20140711105152_add_source_to_visualizations.rb,
direction: up, took 0.002939 seconds
Begin applying migration 20140718133411_add_block_prices_to_organizations.rb
, direction: up
(0.000329s) BEGIN
(0.000482s) ALTER TABLE "organizations" ADD COLUMN "geocoding_block_price"
integer
(0.000486s) ALTER TABLE "organizations" ADD COLUMN "map_view_block_price"
integer
(0.000448s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140718133411_add_block_prices_to_organizations.rb') RETURNING "filename"
(0.000613s) COMMIT
Finished applying migration 20140718133411_add_block_prices_to_organizations
.rb, direction: up, took 0.003459 seconds
Begin applying migration 20140721133136_add_legends_to_maps.rb, direction:
up
(0.000297s) BEGIN
(0.007760s) ALTER TABLE "maps" ADD COLUMN "legends" bool DEFAULT true
(0.000687s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140721133136_add_legends_to_maps.rb') RETURNING "filename"
(0.002253s) COMMIT
Finished applying migration 20140721133136_add_legends_to_maps.rb, direction
: up, took 0.012232 seconds
Begin applying migration 20140723161952_add_locked_to_visualizations.rb,
direction: up
(0.000452s) BEGIN
(0.008490s) ALTER TABLE "visualizations" ADD COLUMN "locked" boolean
DEFAULT false NOT NULL
(0.000474s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140723161952_add_locked_to_visualizations.rb') RETURNING "filename"
(0.002042s) COMMIT
Finished applying migration 20140723161952_add_locked_to_visualizations.rb,
direction: up, took 0.012682 seconds
Begin applying migration 20140801140346_create_logs.rb, direction: up
(0.000544s) BEGIN
(0.007352s) CREATE TABLE "logs" ("id" Uuid DEFAULT uuid_generate_v4() NOT
NULL PRIMARY KEY, "type" Text NOT NULL, "user_id" Uuid, "created_at"
timestamp DEFAULT CURRENT_TIMESTAMP, "updated_at" timestamp DEFAULT
CURRENT_TIMESTAMP, "entries" Text)
(0.000438s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140801140346_create_logs.rb') RETURNING "filename"
(0.000872s) COMMIT
Finished applying migration 20140801140346_create_logs.rb, direction: up,
took 0.010797 seconds
Begin applying migration 20140804151839_add_twitter_datasource_fields.rb,
direction: up
(0.001380s) BEGIN
(0.000619s) ALTER TABLE "organizations" ADD COLUMN
"twitter_datasource_enabled" boolean
(0.000419s) ALTER TABLE "organizations" ADD COLUMN
"twitter_datasource_block_price" integer
(0.000427s) ALTER TABLE "organizations" ADD COLUMN
"twitter_datasource_block_size" integer
(0.000545s) ALTER TABLE "users" ADD COLUMN "twitter_datasource_enabled"
boolean
(0.000581s) ALTER TABLE "users" ADD COLUMN "twitter_datasource_block_price"
integer
(0.001058s) ALTER TABLE "users" ADD COLUMN "twitter_datasource_block_size"
integer
(0.000789s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140804151839_add_twitter_datasource_fields.rb') RETURNING "filename"
(0.000818s) COMMIT
Finished applying migration 20140804151839_add_twitter_datasource_fields.rb,
direction: up, took 0.009431 seconds
Begin applying migration 20140806154519_add_twitter_datasource_quota.rb,
direction: up
(0.000338s) BEGIN
(0.012531s) ALTER TABLE "users" ADD COLUMN "twitter_datasource_quota"
integer DEFAULT 0
(0.007714s) ALTER TABLE "organizations" ADD COLUMN
"twitter_datasource_quota" integer DEFAULT 0
(0.001484s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140806154519_add_twitter_datasource_quota.rb') RETURNING "filename"
(0.002648s) COMMIT
Finished applying migration 20140806154519_add_twitter_datasource_quota.rb,
direction: up, took 0.026348 seconds
Begin applying migration 20140812154748_add_soft_twitter_datasource_limit.rb
, direction: up
(0.000544s) BEGIN
(0.013930s) ALTER TABLE "users" ADD COLUMN "soft_twitter_datasource_limit"
boolean DEFAULT false
(0.000440s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140812154748_add_soft_twitter_datasource_limit.rb') RETURNING "filename"
(0.002847s) COMMIT
Finished applying migration 20140812154748_add_soft_twitter_datasource_limit
.rb, direction: up, took 0.019285 seconds
Begin applying migration 20140818144705_create_search_tweets.rb, direction:
up
(0.000424s) BEGIN
(0.000343s) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
(0.006637s) CREATE TABLE "search_tweets" ("id" Uuid DEFAULT uuid_generate_v4
() NOT NULL PRIMARY KEY, "user_id" Uuid NOT NULL, "table_id" Uuid NULL,
"data_import_id" Uuid NOT NULL, "service_item_id" Text NOT NULL,
"retrieved_items" integer DEFAULT 0 NOT NULL, "state" Text NOT NULL,
"created_at" timestamp DEFAULT CURRENT_TIMESTAMP, "updated_at" timestamp
DEFAULT CURRENT_TIMESTAMP)
(0.000472s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140818144705_create_search_tweets.rb') RETURNING "filename"
(0.000856s) COMMIT
Finished applying migration 20140818144705_create_search_tweets.rb,
direction: up, took 0.010110 seconds
Begin applying migration 20140828080913_add_table_attributes.rb, direction:
up
(0.000327s) BEGIN
(0.000497s) ALTER TABLE "visualizations" ADD COLUMN "license" text
(0.000431s) ALTER TABLE "visualizations" ADD COLUMN "title" text
(0.000857s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140828080913_add_table_attributes.rb') RETURNING "filename"
(0.001264s) COMMIT
Finished applying migration 20140828080913_add_table_attributes.rb,
direction: up, took 0.004676 seconds
Begin applying migration 20140915150147_add_stats_to_data_import.rb,
direction: up
(0.000404s) BEGIN
(0.010473s) ALTER TABLE "data_imports" ADD COLUMN "stats" text DEFAULT '{}'
NOT NULL
(0.000415s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140915150147_add_stats_to_data_import.rb') RETURNING "filename"
(0.001784s) COMMIT
Finished applying migration 20140915150147_add_stats_to_data_import.rb,
direction: up, took 0.014223 seconds
Begin applying migration 20140924101304_add_country_column_to_geocoding.rb,
direction: up
(0.000361s) BEGIN
(0.000616s) ALTER TABLE "geocodings" ADD COLUMN "country_column" text
(0.000413s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20140924101304_add_country_column_to_geocoding.rb') RETURNING "filename"
(0.000628s) COMMIT
Finished applying migration 20140924101304_add_country_column_to_geocoding.
rb, direction: up, took 0.003020 seconds
Begin applying migration 20141007100712
_add_arcgis_datasource_enabled_to_users.rb, direction: up
(0.000298s) BEGIN
(0.000637s) ALTER TABLE "users" ADD COLUMN "arcgis_datasource_enabled"
boolean
(0.000437s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141007100712_add_arcgis_datasource_enabled_to_users.rb') RETURNING
"filename"
(0.000764s) COMMIT
Finished applying migration 20141007100712
_add_arcgis_datasource_enabled_to_users.rb, direction: up, took 0.003166
seconds
Begin applying migration 20141015110655_add_indexes_to_metadata_tables.rb,
direction: up
(0.001446s) BEGIN
(0.004031s) SELECT COUNT(*) AS "count" FROM (
SELECT * FROM pg_indexes WHERE indexname='tmp_user_tables_map_id' and
schemaname='public'
) AS "t1" LIMIT 1
(0.003538s)
CREATE INDEX user_tables_map_id_idx ON user_tables (map_id)

(0.001338s) SELECT COUNT(*) AS "count" FROM (
SELECT * FROM pg_indexes WHERE indexname='tmp_visualizations_map_id'
and schemaname='public'
) AS "t1" LIMIT 1
(0.003699s)
CREATE INDEX visualizations_map_id_idx ON visualizations (map_id)

(0.003802s)
CREATE INDEX visualizations_user_id_locked_idx ON visualizations (
user_id, locked)

(0.002427s)
CREATE INDEX maps_user_id_idx ON maps (user_id)

(0.001779s) SELECT COUNT(*) AS "count" FROM (
SELECT * FROM pg_indexes WHERE indexname=
'tmp_layers_maps_layer_id_map_id' and schemaname='public'
) AS "t1" LIMIT 1
(0.003359s)
CREATE INDEX layers_maps_layer_id_map_id_idx ON layers_maps (
layer_id, map_id)

(0.003191s)
CREATE INDEX permissions_entity_id_idx ON permissions (entity_id)

(0.002993s)
CREATE INDEX shared_entities_recipient_id_idx ON shared_entities (
recipient_id)

(0.010541s)
ALTER TABLE overlays
ALTER COLUMN visualization_id TYPE uuid USING visualization_id::uuid;

(0.000488s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141015110655_add_indexes_to_metadata_tables.rb') RETURNING "filename"
(0.001463s) COMMIT
Finished applying migration 20141015110655_add_indexes_to_metadata_tables.rb
, direction: up, took 0.048043 seconds
Begin applying migration 20141016100333
_add_fields_guessing_to_data_import_and_synchronizations.rb, direction: up
(0.000438s) BEGIN
(0.009780s) ALTER TABLE "data_imports" ADD COLUMN "type_guessing" boolean
DEFAULT true NOT NULL
(0.011824s) ALTER TABLE "data_imports" ADD COLUMN "quoted_fields_guessing"
boolean DEFAULT true NOT NULL
(0.007425s) ALTER TABLE "synchronizations" ADD COLUMN "type_guessing"
boolean DEFAULT true NOT NULL
(0.008968s) ALTER TABLE "synchronizations" ADD COLUMN
"quoted_fields_guessing" boolean DEFAULT true NOT NULL
(0.000573s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141016100333_add_fields_guessing_to_data_import_and_synchronizations.rb')
RETURNING "filename"
(0.003315s) COMMIT
Finished applying migration 20141016100333
_add_fields_guessing_to_data_import_and_synchronizations.rb, direction: up,
took 0.044585 seconds
Begin applying migration 20141020173508
_add_maps_flags_to_users_and_organizations.rb, direction: up
(0.000516s) BEGIN
(0.000558s) ALTER TABLE "organizations" ADD COLUMN "here_maps_enabled"
boolean
(0.000583s) ALTER TABLE "organizations" ADD COLUMN "stamen_maps_enabled"
boolean
(0.000555s) ALTER TABLE "users" ADD COLUMN "here_maps_enabled" boolean
(0.000439s) ALTER TABLE "users" ADD COLUMN "stamen_maps_enabled" boolean
(0.000430s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141020173508_add_maps_flags_to_users_and_organizations.rb') RETURNING
"filename"
(0.000679s) COMMIT
Finished applying migration 20141020173508
_add_maps_flags_to_users_and_organizations.rb, direction: up, took 0.005323
seconds
Begin applying migration 20141022172959_enable_map_flags_by_default.rb,
direction: up
(0.000185s) BEGIN
(0.000440s) ALTER TABLE organizations DROP COLUMN IF EXISTS
here_maps_enabled
(0.000402s) ALTER TABLE organizations DROP COLUMN IF EXISTS
stamen_maps_enabled
(0.000543s) ALTER TABLE users DROP COLUMN IF EXISTS here_maps_enabled
(0.000292s) ALTER TABLE users DROP COLUMN IF EXISTS stamen_maps_enabled
(0.008445s) ALTER TABLE "organizations" ADD COLUMN "here_maps_enabled"
boolean DEFAULT true
(0.007316s) ALTER TABLE "organizations" ADD COLUMN "stamen_maps_enabled"
boolean DEFAULT true
(0.013151s) ALTER TABLE "users" ADD COLUMN "here_maps_enabled" boolean
DEFAULT true
(0.015398s) ALTER TABLE "users" ADD COLUMN "stamen_maps_enabled" boolean
DEFAULT true
(0.000453s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141022172959_enable_map_flags_by_default.rb') RETURNING "filename"
(0.003554s) COMMIT
Finished applying migration 20141022172959_enable_map_flags_by_default.rb,
direction: up, took 0.053131 seconds
Begin applying migration 20141024134856_add_dynamic_cdn_user_flag.rb,
direction: up
(0.000853s) BEGIN
(0.013539s) ALTER TABLE "users" ADD COLUMN "dynamic_cdn_enabled" boolean
DEFAULT false
(0.000491s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141024134856_add_dynamic_cdn_user_flag.rb') RETURNING "filename"
(0.002275s) COMMIT
Finished applying migration 20141024134856_add_dynamic_cdn_user_flag.rb,
direction: up, took 0.018557 seconds
Begin applying migration 20141103182931_add_ghost_tables_user_flag.rb,
direction: up
(0.000432s) BEGIN
(0.013836s) ALTER TABLE "users" ADD COLUMN "ghost_tables_enabled" boolean
DEFAULT false
(0.000315s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141103182931_add_ghost_tables_user_flag.rb') RETURNING "filename"
(0.001468s) COMMIT
Finished applying migration 20141103182931_add_ghost_tables_user_flag.rb,
direction: up, took 0.017078 seconds
Begin applying migration 20141105113418_add_kind_to_visualizations.rb,
direction: up
(0.000412s) BEGIN
(0.015630s) ALTER TABLE "visualizations" ADD COLUMN "kind" text DEFAULT
'geom' NOT NULL
(0.000528s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141105113418_add_kind_to_visualizations.rb') RETURNING "filename"
(0.001551s) COMMIT
Finished applying migration 20141105113418_add_kind_to_visualizations.rb,
direction: up, took 0.019338 seconds
Begin applying migration 20141106131135
_add_rainbow_flag_to_users_and_organizations.rb, direction: up
(0.000388s) BEGIN
(0.008460s) ALTER TABLE "organizations" ADD COLUMN "rainbow_maps_enabled"
boolean DEFAULT false
(0.013928s) ALTER TABLE "users" ADD COLUMN "rainbow_maps_enabled" boolean
DEFAULT false
(0.000602s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141106131135_add_rainbow_flag_to_users_and_organizations.rb') RETURNING
"filename"
(0.002633s) COMMIT
Finished applying migration 20141106131135
_add_rainbow_flag_to_users_and_organizations.rb, direction: up, took
0.027489 seconds
Begin applying migration 20141107102826_add_available_for_hire_to_users.rb,
direction: up
(0.000706s) BEGIN
(0.015709s) ALTER TABLE "users" ADD COLUMN "available_for_hire" boolean
DEFAULT false
(0.000473s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141107102826_add_available_for_hire_to_users.rb') RETURNING "filename"
(0.002035s) COMMIT
Finished applying migration 20141107102826_add_available_for_hire_to_users.
rb, direction: up, took 0.020157 seconds
Begin applying migration 20141111185500
_add_organization_id_index_to_users_table.rb, direction: up
(0.000384s) BEGIN
(0.003474s)
CREATE INDEX users_organization_id_idx ON users (organization_id)

(0.000519s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141111185500_add_organization_id_index_to_users_table.rb') RETURNING
"filename"
(0.000684s) COMMIT
Finished applying migration 20141111185500
_add_organization_id_index_to_users_table.rb, direction: up, took 0.006942
seconds
Begin applying migration 20141118101138
_add_content_guessing_param_to_imports.rb, direction: up
(0.000316s) BEGIN
(0.011863s) ALTER TABLE "data_imports" ADD COLUMN "content_guessing" boolean
DEFAULT false NOT NULL
(0.000436s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141118101138_add_content_guessing_param_to_imports.rb') RETURNING
"filename"
(0.001412s) COMMIT
Finished applying migration 20141118101138
_add_content_guessing_param_to_imports.rb, direction: up, took 0.015027
seconds
Begin applying migration 20141119173820_add_content_guessing_param_to_syncs.
rb, direction: up
(0.000374s) BEGIN
(0.008470s) ALTER TABLE "synchronizations" ADD COLUMN "content_guessing"
boolean DEFAULT false NOT NULL
(0.000447s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141119173820_add_content_guessing_param_to_syncs.rb') RETURNING
"filename"
(0.001846s) COMMIT
Finished applying migration 20141119173820
_add_content_guessing_param_to_syncs.rb, direction: up, took 0.012058
seconds
Begin applying migration 20141121091557
_add_new_dashboard_flag_to_users_and_organizations.rb, direction: up
(0.000240s) BEGIN
(0.009488s) ALTER TABLE "organizations" ADD COLUMN "new_dashboard_enabled"
boolean DEFAULT false
(0.015910s) ALTER TABLE "users" ADD COLUMN "new_dashboard_enabled" boolean
DEFAULT false
(0.000475s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141121091557_add_new_dashboard_flag_to_users_and_organizations.rb')
RETURNING "filename"
(0.002806s) COMMIT
Finished applying migration 20141121091557
_add_new_dashboard_flag_to_users_and_organizations.rb, direction: up, took
0.031333 seconds
Begin applying migration 20141126190000_add_server_and_host_to_data_import.
rb, direction: up
(0.000429s) BEGIN
(0.000730s) ALTER TABLE "data_imports" ADD COLUMN "server" text
(0.000465s) ALTER TABLE "data_imports" ADD COLUMN "host" text
(0.000680s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141126190000_add_server_and_host_to_data_import.rb') RETURNING "filename"
(0.000831s) COMMIT
Finished applying migration 20141126190000
_add_server_and_host_to_data_import.rb, direction: up, took 0.004278 seconds
Begin applying migration 20141202092936_create_likes.rb, direction: up
(0.000348s) BEGIN
(0.000379s) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
(0.004602s)
CREATE TABLE likes(
actor uuid NOT NULL,
subject uuid NOT NULL,
created_at timestamp without time zone DEFAULT now(),
PRIMARY KEY(actor, subject)
)

(0.000553s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141202092936_create_likes.rb') RETURNING "filename"
(0.000860s) COMMIT
Finished applying migration 20141202092936_create_likes.rb, direction: up,
took 0.007777 seconds
Begin applying migration 20141203111728_feature_flags.rb, direction: up
(0.000326s) BEGIN
(0.010540s) CREATE TABLE "feature_flags" ("id" integer PRIMARY KEY, "name"
Text NOT NULL UNIQUE, "restricted" boolean DEFAULT true NOT NULL,
"created_at" timestamp DEFAULT CURRENT_TIMESTAMP, "updated_at" timestamp
DEFAULT CURRENT_TIMESTAMP)
(0.007483s) CREATE TABLE "feature_flags_users" ("id" serial PRIMARY KEY,
"feature_flag_id" integer NOT NULL REFERENCES "feature_flags", "user_id"
uuid NOT NULL REFERENCES "users", "created_at" timestamp DEFAULT
CURRENT_TIMESTAMP, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP)
(0.002568s) CREATE UNIQUE INDEX
"feature_flags_users_user_id_feature_flag_id_index" ON "feature_flags_users"
("user_id", "feature_flag_id")
(0.001026s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141203111728_feature_flags.rb') RETURNING "filename"
(0.002027s) COMMIT
Finished applying migration 20141203111728_feature_flags.rb, direction: up,
took 0.026675 seconds
Begin applying migration 20141217135102_add_upload_host_to_data_import.rb,
direction: up
(0.000773s) BEGIN
(0.000989s) ALTER TABLE "data_imports" ADD COLUMN "upload_host" text
(0.000607s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141217135102_add_upload_host_to_data_import.rb') RETURNING "filename"
(0.000718s) COMMIT
Finished applying migration 20141217135102_add_upload_host_to_data_import.rb
, direction: up, took 0.004120 seconds
Begin applying migration 20141218140844_add_resque_ppid_to_data_import.rb,
direction: up
(0.000349s) BEGIN
(0.000838s) ALTER TABLE "data_imports" ADD COLUMN "resque_ppid" integer
(0.000505s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141218140844_add_resque_ppid_to_data_import.rb') RETURNING "filename"
(0.000672s) COMMIT
Finished applying migration 20141218140844_add_resque_ppid_to_data_import.rb
, direction: up, took 0.003298 seconds
Begin applying migration 20141218175200_add_user_id_index_to_data_imports.rb
, direction: up
(0.000299s) BEGIN
(0.002999s)
CREATE INDEX data_imports_users_id_idx ON data_imports (user_id)

(0.002447s)
CREATE INDEX data_imports_users_id_state_idx ON data_imports (user_id,
state)

(0.000459s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141218175200_add_user_id_index_to_data_imports.rb') RETURNING "filename"
(0.000586s) COMMIT
Finished applying migration 20141218175200_add_user_id_index_to_data_imports
.rb, direction: up, took 0.007802 seconds
Begin applying migration 20141229083623
_remove_ghost_tables_enabled_from_users.rb, direction: up
(0.000330s) BEGIN
(0.000764s) ALTER TABLE "users" DROP COLUMN "ghost_tables_enabled"
(0.000485s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20141229083623_remove_ghost_tables_enabled_from_users.rb') RETURNING
"filename"
(0.000678s) COMMIT
Finished applying migration 20141229083623
_remove_ghost_tables_enabled_from_users.rb, direction: up, took 0.003063
seconds
Begin applying migration 20150119141635_add_private_maps_enabled_to_users.rb
, direction: up
(0.000293s) BEGIN
(0.016832s) ALTER TABLE "users" ADD COLUMN "private_maps_enabled" boolean
DEFAULT false
(0.000523s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150119141635_add_private_maps_enabled_to_users.rb') RETURNING "filename"
(0.002733s) COMMIT
Finished applying migration 20150119141635_add_private_maps_enabled_to_users
.rb, direction: up, took 0.021420 seconds
Begin applying migration 20150119142000_add_parent_id_to_visualizations.rb,
direction: up
(0.000512s) BEGIN
(0.000602s) ALTER TABLE "visualizations" ADD COLUMN "parent_id" uuid
(0.000428s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150119142000_add_parent_id_to_visualizations.rb') RETURNING "filename"
(0.000761s) COMMIT
Finished applying migration 20150119142000_add_parent_id_to_visualizations.
rb, direction: up, took 0.003105 seconds
Begin applying migration 20150119142001_add_parent_id_to_layers.rb,
direction: up
(0.000339s) BEGIN
(0.000479s) ALTER TABLE "layers" ADD COLUMN "parent_id" uuid
(0.000406s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150119142001_add_parent_id_to_layers.rb') RETURNING "filename"
(0.000724s) COMMIT
Finished applying migration 20150119142001_add_parent_id_to_layers.rb,
direction: up, took 0.002808 seconds
Begin applying migration 20150119142002_add_prev_and_next_to_visualizations.
rb, direction: up
(0.000315s) BEGIN
(0.000254s) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
(0.000467s) ALTER TABLE "visualizations" ADD COLUMN "prev_id" uuid NULL
(0.000285s) ALTER TABLE "visualizations" ADD COLUMN "next_id" uuid NULL
(0.000328s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150119142002_add_prev_and_next_to_visualizations.rb') RETURNING
"filename"
(0.000580s) COMMIT
Finished applying migration 20150119142002
_add_prev_and_next_to_visualizations.rb, direction: up, took 0.003355
seconds
Begin applying migration 20150119142003
_add_transition_options_to_visualizations.rb, direction: up
(0.000300s) BEGIN
(0.013294s) ALTER TABLE "visualizations" ADD COLUMN
"slide_transition_options" text DEFAULT '{}' NOT NULL
(0.000328s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150119142003_add_transition_options_to_visualizations.rb') RETURNING
"filename"
(0.002378s) COMMIT
Finished applying migration 20150119142003
_add_transition_options_to_visualizations.rb, direction: up, took 0.017455
seconds
Begin applying migration 20150119142004_add_active_child_to_visualizations.
rb, direction: up
(0.000329s) BEGIN
(0.000253s) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
(0.001206s) ALTER TABLE "visualizations" ADD COLUMN "active_child" uuid NULL
(0.000487s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150119142004_add_active_child_to_visualizations.rb') RETURNING "filename"
(0.000870s) COMMIT
Finished applying migration 20150119142004
_add_active_child_to_visualizations.rb, direction: up, took 0.004324 seconds
Begin applying migration 20150121135500_add_data_import_id_fk_to_geocodings.
rb, direction: up
(0.000325s) BEGIN
(0.002264s) ALTER TABLE "geocodings" ADD COLUMN "data_import_id" uuid NULL
REFERENCES "data_imports"
(0.000675s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150121135500_add_data_import_id_fk_to_geocodings.rb') RETURNING
"filename"
(0.000884s) COMMIT
Finished applying migration 20150121135500
_add_data_import_id_fk_to_geocodings.rb, direction: up, took 0.005319
seconds
Begin applying migration 20150125201100_drop_basemap_options.rb, direction:
up
(0.000312s) BEGIN
(0.000636s) ALTER TABLE organizations DROP COLUMN IF EXISTS
here_maps_enabled
(0.000461s) ALTER TABLE organizations DROP COLUMN IF EXISTS
stamen_maps_enabled
(0.000499s) ALTER TABLE organizations DROP COLUMN IF EXISTS
rainbow_maps_enabled
(0.000699s) ALTER TABLE users DROP COLUMN IF EXISTS here_maps_enabled
(0.000590s) ALTER TABLE users DROP COLUMN IF EXISTS stamen_maps_enabled
(0.000563s) ALTER TABLE users DROP COLUMN IF EXISTS rainbow_maps_enabled
(0.000440s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150125201100_drop_basemap_options.rb') RETURNING "filename"
(0.000773s) COMMIT
Finished applying migration 20150125201100_drop_basemap_options.rb,
direction: up, took 0.006062 seconds
Begin applying migration 20150128161955_add_indexes_to_layers_tables.rb,
direction: up
(0.000309s) BEGIN
(0.002917s)
CREATE INDEX layers_maps_map_id_idx ON layers_maps (map_id)

(0.003940s)
CREATE INDEX layers_kind_idx ON layers (kind)

(0.000464s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150128161955_add_indexes_to_layers_tables.rb') RETURNING "filename"
(0.000925s) COMMIT
Finished applying migration 20150128161955_add_indexes_to_layers_tables.rb,
direction: up, took 0.009469 seconds
Begin applying migration 20150203081925_add_google_sign_in_to_users.rb,
direction: up
(0.000318s) BEGIN
(0.023880s) ALTER TABLE "users" ADD COLUMN "google_sign_in" boolean DEFAULT
false
(0.000450s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150203081925_add_google_sign_in_to_users.rb') RETURNING "filename"
(0.002902s) COMMIT
Finished applying migration 20150203081925_add_google_sign_in_to_users.rb,
direction: up, took 0.028447 seconds
Begin applying migration 20150205202100_common_data.rb, direction: up
(0.000411s) BEGIN
(0.000317s) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
(0.008966s) CREATE TABLE "external_sources" ("id" Uuid DEFAULT
uuid_generate_v4() NOT NULL PRIMARY KEY, "visualization_id" text NOT NULL
REFERENCES "visualizations", "import_url" text NOT NULL, "created_at"
timestamp DEFAULT CURRENT_TIMESTAMP, "updated_at" timestamp DEFAULT
CURRENT_TIMESTAMP, "rows_counted" integer NOT NULL, "size" integer NOT NULL,
"username" text)
(0.000860s)
ALTER TABLE "external_sources"
ADD COLUMN geometry_types text[]

(0.005146s) CREATE TABLE "external_data_imports" ("id" Uuid DEFAULT
uuid_generate_v4() NOT NULL PRIMARY KEY, "data_import_id" uuid NOT NULL
REFERENCES "data_imports", "external_source_id" uuid NOT NULL REFERENCES
"external_sources", "created_at" timestamp DEFAULT CURRENT_TIMESTAMP,
"updated_at" timestamp DEFAULT CURRENT_TIMESTAMP)
(0.000597s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150205202100_common_data.rb') RETURNING "filename"
(0.001130s) COMMIT
Finished applying migration 20150205202100_common_data.rb, direction: up,
took 0.019902 seconds
Begin applying migration 20150210100500
_add_last_password_change_date_to_users.rb, direction: up
(0.000351s) BEGIN
(0.000602s) ALTER TABLE "users" ADD COLUMN "last_password_change_date"
timestamp
(0.000303s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150210100500_add_last_password_change_date_to_users.rb') RETURNING
"filename"
(0.000612s) COMMIT
Finished applying migration 20150210100500
_add_last_password_change_date_to_users.rb, direction: up, took 0.002748
seconds
Begin applying migration 20150210154301_add_max_import_file_size_to_users.rb
, direction: up
(0.000190s) BEGIN
(0.018737s) ALTER TABLE "users" ADD COLUMN "max_import_file_size" integer
DEFAULT 157286400 NOT NULL
(0.001146s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150210154301_add_max_import_file_size_to_users.rb') RETURNING "filename"
(0.001493s) COMMIT
Finished applying migration 20150210154301_add_max_import_file_size_to_users
.rb, direction: up, took 0.022891 seconds
Begin applying migration 20150213110405
_add_max_import_table_row_count_to_users.rb, direction: up
(0.000418s) BEGIN
(0.016420s) ALTER TABLE "users" ADD COLUMN "max_import_table_row_count"
integer DEFAULT 500000 NOT NULL
(0.000468s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150213110405_add_max_import_table_row_count_to_users.rb') RETURNING
"filename"
(0.002265s) COMMIT
Finished applying migration 20150213110405
_add_max_import_table_row_count_to_users.rb, direction: up, took 0.020545
seconds
Begin applying migration 20150216111020
_add_max_concurrent_import_count_to_users.rb, direction: up
(0.000479s) BEGIN
(0.019266s) ALTER TABLE "users" ADD COLUMN "max_concurrent_import_count"
integer DEFAULT 3 NOT NULL
(0.000425s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150216111020_add_max_concurrent_import_count_to_users.rb') RETURNING
"filename"
(0.002433s) COMMIT
Finished applying migration 20150216111020
_add_max_concurrent_import_count_to_users.rb, direction: up, took 0.023500
seconds
Begin applying migration 20150219161453
_change_limit_ints_to_bigints_from_users.rb, direction: up
(0.000410s) BEGIN
(0.015144s)
ALTER TABLE users ALTER COLUMN max_import_table_row_count TYPE bigint

(0.018134s)
ALTER TABLE users ALTER COLUMN max_import_file_size TYPE bigint

(0.000505s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150219161453_change_limit_ints_to_bigints_from_users.rb') RETURNING
"filename"
(0.002842s) COMMIT
Finished applying migration 20150219161453
_change_limit_ints_to_bigints_from_users.rb, direction: up, took 0.037961
seconds
Begin applying migration 20150223213800_scrollwheeltofalse.rb, direction: up
(0.000488s) BEGIN
(0.000673s)
ALTER TABLE maps ALTER COLUMN scrollwheel SET DEFAULT false;

(0.000465s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150223213800_scrollwheeltofalse.rb') RETURNING "filename"
(0.000662s) COMMIT
Finished applying migration 20150223213800_scrollwheeltofalse.rb, direction:
up, took 0.003005 seconds
Begin applying migration 20150224135012
_add_create_visualization_to_data_imports.rb, direction: up
(0.000302s) BEGIN
(0.015205s) ALTER TABLE "data_imports" ADD COLUMN "create_visualization"
boolean DEFAULT false
(0.000846s) ALTER TABLE "data_imports" ADD COLUMN "visualization_id" uuid
DEFAULT NULL
(0.000503s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150224135012_add_create_visualization_to_data_imports.rb') RETURNING
"filename"
(0.002292s) COMMIT
Finished applying migration 20150224135012
_add_create_visualization_to_data_imports.rb, direction: up, took 0.020678
seconds
Begin applying migration 20150226105153
_add_user_defined_limits_to_data_imports.rb, direction: up
(0.000464s) BEGIN
(0.017035s) ALTER TABLE "data_imports" ADD COLUMN "user_defined_limits"
text DEFAULT '{}'
(0.000719s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150226105153_add_user_defined_limits_to_data_imports.rb') RETURNING
"filename"
(0.001637s) COMMIT
Finished applying migration 20150226105153
_add_user_defined_limits_to_data_imports.rb, direction: up, took 0.021136
seconds
Begin applying migration 20150311170544
_change_logger_default_value_from_data_imports.rb, direction: up
(0.000390s) BEGIN
(0.000528s)
ALTER TABLE data_imports ALTER COLUMN logger DROP NOT NULL

(0.000398s)
ALTER TABLE data_imports ALTER COLUMN logger DROP DEFAULT

(0.000420s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150311170544_change_logger_default_value_from_data_imports.rb')
RETURNING "filename"
(0.000815s) COMMIT
Finished applying migration 20150311170544
_change_logger_default_value_from_data_imports.rb, direction: up, took
0.003436 seconds
Begin applying migration 20150318102400_add_last_common_data_update_to_users
.rb, direction: up
(0.000309s) BEGIN
(0.000640s) ALTER TABLE "users" ADD COLUMN "last_common_data_update_date"
timestamp
(0.000846s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150318102400_add_last_common_data_update_to_users.rb') RETURNING
"filename"
(0.000678s) COMMIT
Finished applying migration 20150318102400
_add_last_common_data_update_to_users.rb, direction: up, took 0.003761
seconds
Begin applying migration 20150323161349
_add_import_extra_options_to_data_import.rb, direction: up
(0.001376s) BEGIN
(0.000595s) ALTER TABLE "data_imports" ADD COLUMN "import_extra_options"
text
(0.000473s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150323161349_add_import_extra_options_to_data_import.rb') RETURNING
"filename"
(0.000739s) COMMIT
Finished applying migration 20150323161349
_add_import_extra_options_to_data_import.rb, direction: up, took 0.004166
seconds
Begin applying migration 20150401160252_add_index_to_visualizations_parent.
rb, direction: up
(0.000286s) BEGIN
(0.003219s)
CREATE INDEX visualizations_parent_id_idx ON visualizations (parent_id
)

(0.000564s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150401160252_add_index_to_visualizations_parent.rb') RETURNING "filename"
(0.000705s) COMMIT
Finished applying migration 20150401160252
_add_index_to_visualizations_parent.rb, direction: up, took 0.005772 seconds
Begin applying migration 20150407094700_alter_visualization_id_type_uuid.rb,
direction: up
(0.000195s) BEGIN
(0.000807s) ALTER TABLE external_sources drop constraint if exists
external_sources_visualization_id_fkey;
(0.007257s) ALTER TABLE external_sources ALTER COLUMN visualization_id
TYPE uuid USING (visualization_id::uuid);
(0.016811s) ALTER TABLE visualizations ALTER COLUMN id TYPE uuid USING (id
::uuid);
(0.002104s) ALTER TABLE "external_sources" ADD FOREIGN KEY (
"visualization_id") REFERENCES "visualizations"
(0.000467s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150407094700_alter_visualization_id_type_uuid.rb') RETURNING "filename"
(0.002319s) COMMIT
Finished applying migration 20150407094700_alter_visualization_id_type_uuid.
rb, direction: up, took 0.031574 seconds
Begin applying migration 20150414093434_add_more_dashboard_indices.rb,
direction: up
(0.000447s) BEGIN
(0.003945s)
CREATE INDEX external_sources_visualization_id_idx ON
external_sources (visualization_id)

(0.005132s)
CREATE INDEX visualizations_permission_id_idx ON visualizations (
permission_id)

(0.000595s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150414093434_add_more_dashboard_indices.rb') RETURNING "filename"
(0.000828s) COMMIT
Finished applying migration 20150414093434_add_more_dashboard_indices.rb,
direction: up, took 0.011983 seconds
Begin applying migration 20150420131158_add_region_columns_to_geocodings.rb,
direction: up
(0.000264s) BEGIN
(0.000668s) ALTER TABLE "geocodings" ADD COLUMN "region_code" text
(0.000449s) ALTER TABLE "geocodings" ADD COLUMN "region_column" text
(0.000846s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150420131158_add_region_columns_to_geocodings.rb') RETURNING "filename"
(0.001053s) COMMIT
Finished applying migration 20150420131158_add_region_columns_to_geocodings.
rb, direction: up, took 0.004853 seconds
Begin applying migration 20150423103535
_add_google_maps_key_to_users_and_organizations.rb, direction: up
(0.000606s) BEGIN
(0.001528s) ALTER TABLE "organizations" ADD COLUMN "google_maps_key" text
(0.000888s) ALTER TABLE "users" ADD COLUMN "google_maps_key" text
(0.000455s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150423103535_add_google_maps_key_to_users_and_organizations.rb')
RETURNING "filename"
(0.000680s) COMMIT
Finished applying migration 20150423103535
_add_google_maps_key_to_users_and_organizations.rb, direction: up, took
0.006131 seconds
Begin applying migration 20150505103504_new_dashboard_for_everybody.rb,
direction: up
(0.000306s) BEGIN
(0.000475s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150505103504_new_dashboard_for_everybody.rb') RETURNING "filename"
(0.000792s) COMMIT
Finished applying migration 20150505103504_new_dashboard_for_everybody.rb,
direction: up, took 0.002314 seconds
Begin applying migration 20150507103715_sequence_for_automated_feature_flags
.rb, direction: up
(0.000286s) BEGIN
(0.001573s)
CREATE SEQUENCE machine_added_feature_flags_id_seq INCREMENT BY -1
START WITH -1000
OWNED BY feature_flags.id;

(0.000450s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150507103715_sequence_for_automated_feature_flags.rb') RETURNING
"filename"
(0.001662s) COMMIT
Finished applying migration 20150507103715
_sequence_for_automated_feature_flags.rb, direction: up, took 0.004792
seconds
Begin applying migration 20150507103757_feature_flags_for_new_dashboard.rb,
direction: up
(0.000436s) BEGIN
(0.000886s)
UPDATE feature_flags SET restricted = FALSE WHERE name IN (
'new_public_dashboard','new_dashboard','new_public_dashboard_global') AND
restricted = TRUE;

(0.001986s)
INSERT INTO feature_flags (id, name, restricted)
WITH flags_to_add as (
SELECT * FROM (SELECT unnest(array['new_public_dashboard',
'new_dashboard','new_public_dashboard_global']) as name) as flag EXCEPT (SELECT
name from feature_flags)
)
SELECT nextval('machine_added_feature_flags_id_seq'), name, FALSE
FROM flags_to_add;

(0.000468s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150507103757_feature_flags_for_new_dashboard.rb') RETURNING "filename"
(0.000728s) COMMIT
Finished applying migration 20150507103757_feature_flags_for_new_dashboard.
rb, direction: up, took 0.005390 seconds
Begin applying migration 20150514141720_add_missing_default_values.rb,
direction: up
(0.000281s) BEGIN
(0.000701s) ALTER TABLE "layers" ALTER COLUMN "options" SET DEFAULT '{}'
(0.002029s) ALTER TABLE "overlays" ALTER COLUMN "options" SET DEFAULT '{}',
ALTER COLUMN "order" SET DEFAULT 0
(0.000479s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150514141720_add_missing_default_values.rb') RETURNING "filename"
(0.001328s) COMMIT
Finished applying migration 20150514141720_add_missing_default_values.rb,
direction: up, took 0.006488 seconds
Begin applying migration 20150518151555_add_geocoding_batching.rb, direction
: up
(0.000370s) BEGIN
(0.000771s) ALTER TABLE "geocodings" ADD COLUMN "batched" boolean
(0.000475s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150518151555_add_geocoding_batching.rb') RETURNING "filename"
(0.000679s) COMMIT
Finished applying migration 20150518151555_add_geocoding_batching.rb,
direction: up, took 0.003372 seconds
Begin applying migration 20150608074328_create_layers_parent_id_index.rb,
direction: up
(0.000352s) BEGIN
(0.003771s)
CREATE INDEX layers_parent_id_idx ON layers (parent_id)

(0.000965s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150608074328_create_layers_parent_id_index.rb') RETURNING "filename"
(0.000840s) COMMIT
Finished applying migration 20150608074328_create_layers_parent_id_index.rb,
direction: up, took 0.007020 seconds
Begin applying migration 20150608132000
_remove_new_dashboard_flag_from_users_and_organizations.rb, direction: up
(0.000320s) BEGIN
(0.000653s) ALTER TABLE "organizations" DROP COLUMN "new_dashboard_enabled"
(0.000720s) ALTER TABLE "users" DROP COLUMN "new_dashboard_enabled"
(0.000448s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150608132000_remove_new_dashboard_flag_from_users_and_organizations.rb')
RETURNING "filename"
(0.000704s) COMMIT
Finished applying migration 20150608132000
_remove_new_dashboard_flag_from_users_and_organizations.rb, direction: up,
took 0.003913 seconds
Begin applying migration 20150609083856
_add_google_maps_private_key_to_users_and_orgs.rb, direction: up
(0.000272s) BEGIN
(0.000595s) ALTER TABLE "organizations" ADD COLUMN "google_maps_private_key"
text DEFAULT NULL
(0.001344s) ALTER TABLE "users" ADD COLUMN "google_maps_private_key" text
DEFAULT NULL
(0.000519s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150609083856_add_google_maps_private_key_to_users_and_orgs.rb')
RETURNING "filename"
(0.000663s) COMMIT
Finished applying migration 20150609083856
_add_google_maps_private_key_to_users_and_orgs.rb, direction: up, took
0.004779 seconds
Begin applying migration 20150615094200_add_color_to_organizations.rb,
direction: up
(0.000252s) BEGIN
(0.000668s) ALTER TABLE "organizations" ADD COLUMN "color" text
(0.000980s)
update organizations set color = '#227dbd' where name = 'team';

(0.000504s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150615094200_add_color_to_organizations.rb') RETURNING "filename"
(0.001892s) COMMIT
Finished applying migration 20150615094200_add_color_to_organizations.rb,
direction: up, took 0.005448 seconds
Begin applying migration 20150616131813_add_error_code_to_geocodings.rb,
direction: up
(0.000253s) BEGIN
(0.000549s) ALTER TABLE "geocodings" ADD COLUMN "error_code" integer
(0.000452s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150616131813_add_error_code_to_geocodings.rb') RETURNING "filename"
(0.000729s) COMMIT
Finished applying migration 20150616131813_add_error_code_to_geocodings.rb,
direction: up, took 0.002943 seconds
Begin applying migration 20150619141200_organization_signup_migration.rb,
direction: up
(0.000312s) BEGIN
(0.000274s) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
(0.000517s) ALTER TABLE "organizations" ADD COLUMN "default_quota_in_bytes"
bigint
(0.008878s)
ALTER TABLE "organizations"
ADD COLUMN whitelisted_email_domains text[] NOT NULL DEFAULT ARRAY[]::
text[]

(0.000602s) ALTER TABLE "users" ADD COLUMN "enable_account_token" text
(0.007201s) CREATE TABLE "user_creations" ("id" Uuid DEFAULT
uuid_generate_v4() PRIMARY KEY, "username" text NOT NULL, "email" text NOT
NULL, "crypted_password" text NOT NULL, "salt" text NOT NULL,
"organization_id" Uuid, "google_sign_in" Boolean DEFAULT false,
"quota_in_bytes" Bigint, "state" text, "log_id" Uuid, "user_id" Uuid,
"created_at" timestamp DEFAULT CURRENT_TIMESTAMP, "updated_at" timestamp
DEFAULT CURRENT_TIMESTAMP)
(0.003168s) CREATE INDEX "user_creations_username_index" ON "user_creations"
("username")
(0.000519s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150619141200_organization_signup_migration.rb') RETURNING "filename"
(0.002393s) COMMIT
Finished applying migration 20150619141200_organization_signup_migration.rb,
direction: up, took 0.026551 seconds
Begin applying migration 20150710091458_add_force_all_rows_to_geocodings.rb,
direction: up
(0.001696s) BEGIN
(0.008945s) ALTER TABLE "geocodings" ADD COLUMN "force_all_rows" boolean
DEFAULT false
(0.001116s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150710091458_add_force_all_rows_to_geocodings.rb') RETURNING "filename"
(0.001363s) COMMIT
Finished applying migration 20150710091458_add_force_all_rows_to_geocodings.
rb, direction: up, took 0.014374 seconds
Begin applying migration 20150715133959_remove_dynamic_enable_field.rb,
direction: up
(0.000373s) BEGIN
(0.000918s) ALTER TABLE "users" DROP COLUMN "dynamic_cdn_enabled"
(0.000450s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150715133959_remove_dynamic_enable_field.rb') RETURNING "filename"
(0.000774s) COMMIT
Finished applying migration 20150715133959_remove_dynamic_enable_field.rb,
direction: up, took 0.003441 seconds
Begin applying migration 20150720093340_add_original_url_to_data_imports.rb,
direction: up
(0.000313s) BEGIN
(0.015750s) ALTER TABLE "data_imports" ADD COLUMN "original_url" text
DEFAULT ''
(0.000527s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150720093340_add_original_url_to_data_imports.rb') RETURNING "filename"
(0.002499s) COMMIT
Finished applying migration 20150720093340_add_original_url_to_data_imports.
rb, direction: up, took 0.020196 seconds
Begin applying migration 20150722102858_add_log_to_geocodings.rb, direction:
up
(0.000834s) BEGIN
(0.000855s) ALTER TABLE "geocodings" ADD COLUMN "log_id" uuid
(0.000454s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150722102858_add_log_to_geocodings.rb') RETURNING "filename"
(0.000776s) COMMIT
Finished applying migration 20150722102858_add_log_to_geocodings.rb,
direction: up, took 0.004032 seconds
Begin applying migration 20150724121847_remove_table_count_from_users.rb,
direction: up
(0.000299s) BEGIN
(0.000772s) ALTER TABLE "users" DROP COLUMN "tables_count"
(0.000418s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150724121847_remove_table_count_from_users.rb') RETURNING "filename"
(0.000704s) COMMIT
Finished applying migration 20150724121847_remove_table_count_from_users.rb,
direction: up, took 0.002997 seconds
Begin applying migration 20150727105500_add_admin_email_to_organizations.rb,
direction: up
(0.000294s) BEGIN
(0.000600s) ALTER TABLE "organizations" ADD COLUMN "admin_email" text
(0.001298s)
update organizations o set admin_email = (select email from users u
where o.owner_id = u.id);

(0.000425s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150727105500_add_admin_email_to_organizations.rb') RETURNING "filename"
(0.000772s) COMMIT
Finished applying migration 20150727105500_add_admin_email_to_organizations.
rb, direction: up, took 0.004454 seconds
Begin applying migration 20150729102936_create_ldap_configuration.rb,
direction: up
(0.000330s) BEGIN
(0.000441s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150729102936_create_ldap_configuration.rb') RETURNING "filename"
(0.000775s) COMMIT
Finished applying migration 20150729102936_create_ldap_configuration.rb,
direction: up, took 0.002276 seconds
Begin applying migration 20150731082651_create_templates_table.rb, direction
: up
(0.000417s) BEGIN
(0.002053s) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
(0.011425s) CREATE TABLE "templates" ("id" Uuid DEFAULT uuid_generate_v4()
NOT NULL PRIMARY KEY, "source_visualization_id" Uuid NOT NULL, "title" text
NOT NULL, "description" text DEFAULT '' NOT NULL, "min_supported_version"
text DEFAULT '' NOT NULL, "max_supported_version" text DEFAULT '' NOT NULL,
"code" text DEFAULT '' NOT NULL, "organization_id" Uuid NOT NULL,
"required_tables_list" text DEFAULT '' NOT NULL, "created_at" timestamp
DEFAULT CURRENT_TIMESTAMP NOT NULL)
(0.001974s)
ALTER TABLE "templates"
ADD CONSTRAINT source_visualization_id_fkey_cascade_del
FOREIGN KEY (source_visualization_id)
REFERENCES visualizations(id)
ON DELETE CASCADE

(0.002297s)
ALTER TABLE "templates"
ADD CONSTRAINT organization_id_fkey_cascade_del
FOREIGN KEY (organization_id)
REFERENCES organizations(id)
ON DELETE CASCADE

(0.002589s)
CREATE INDEX organization_id_idx ON templates(organization_id)

(0.002833s)
CREATE INDEX source_visualization_id_idx ON templates(
source_visualization_id)

(0.000448s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150731082651_create_templates_table.rb') RETURNING "filename"
(0.000983s) COMMIT
Finished applying migration 20150731082651_create_templates_table.rb,
direction: up, took 0.027731 seconds
Begin applying migration 20150731082652
_add_default_geocoding_quota_for_users.rb, direction: up
(0.000389s) BEGIN
(0.000482s)
UPDATE users SET geocoding_quota = 0 WHERE geocoding_quota IS NULL

(0.000724s) ALTER TABLE "users" ALTER COLUMN "geocoding_quota" SET NOT NULL,
ALTER COLUMN "geocoding_quota" SET DEFAULT 0
(0.000603s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150731082652_add_default_geocoding_quota_for_users.rb') RETURNING
"filename"
(0.000834s) COMMIT
Finished applying migration 20150731082652
_add_default_geocoding_quota_for_users.rb, direction: up, took 0.004412
seconds
Begin applying migration 20150805144800_add_bbox_to_visualizations.rb,
direction: up
(0.000566s) BEGIN
(0.000476s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150805144800_add_bbox_to_visualizations.rb') RETURNING "filename"
(0.000694s) COMMIT
Finished applying migration 20150805144800_add_bbox_to_visualizations.rb,
direction: up, took 0.002515 seconds
Begin applying migration 20150811104517_new_visualizations_meta_data.rb,
direction: up
(0.000306s) BEGIN
(0.000620s) ALTER TABLE "visualizations" ADD COLUMN "attributions" text
(0.001731s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150811104517_new_visualizations_meta_data.rb') RETURNING "filename"
(0.000843s) COMMIT
Finished applying migration 20150811104517_new_visualizations_meta_data.rb,
direction: up, took 0.004462 seconds
Begin applying migration 20150811141941
_add_synchronization_id_to_external_data_imports.rb, direction: up
(0.000741s) BEGIN
(0.004520s) ALTER TABLE "external_data_imports" ADD COLUMN
"synchronization_id" text
(0.001561s)
ALTER TABLE "external_data_imports"
ADD CONSTRAINT synchronization_id_fkey
FOREIGN KEY (synchronization_id)
REFERENCES synchronizations(id)
ON DELETE CASCADE

(0.000660s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150811141941_add_synchronization_id_to_external_data_imports.rb')
RETURNING "filename"
(0.001675s) COMMIT
Finished applying migration 20150811141941
_add_synchronization_id_to_external_data_imports.rb, direction: up, took
0.010446 seconds
Begin applying migration 20150812080306_add_bbox_to_visualizations_at_import
.rb, direction: up
(0.001240s) BEGIN
(1.853302s)
CREATE EXTENSION IF NOT EXISTS "postgis"

(0.000800s)
ALTER TABLE visualizations ADD COLUMN bbox geometry;

(0.001072s)
CREATE INDEX visualizations_bbox_idx ON visualizations USING GIST (
bbox);

(0.000444s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150812080306_add_bbox_to_visualizations_at_import.rb') RETURNING
"filename"
(0.002518s) COMMIT
Finished applying migration 20150812080306
_add_bbox_to_visualizations_at_import.rb, direction: up, took 1.860369
seconds
Begin applying migration 20150812120815
_add_visualization_id_to_synchronizations.rb, direction: up
(0.000818s) BEGIN
(0.000532s) ALTER TABLE "synchronizations" ADD COLUMN "visualization_id"
uuid
(0.001562s)
ALTER TABLE "synchronizations"
ADD CONSTRAINT visualization_id_fkey
FOREIGN KEY (visualization_id)
REFERENCES visualizations(id)
ON DELETE CASCADE

(0.000467s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150812120815_add_visualization_id_to_synchronizations.rb') RETURNING
"filename"
(0.000770s) COMMIT
Finished applying migration 20150812120815
_add_visualization_id_to_synchronizations.rb, direction: up, took 0.005187
seconds
Begin applying migration 20150813102733
_add_visualization_id_index_to_synchronizations.rb, direction: up
(0.000208s) BEGIN
(0.003724s)
CREATE INDEX synchronizations_visualization_id_idx ON
synchronizations (visualization_id)

(0.001036s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150813102733_add_visualization_id_index_to_synchronizations.rb')
RETURNING "filename"
(0.000824s) COMMIT
Finished applying migration 20150813102733
_add_visualization_id_index_to_synchronizations.rb, direction: up, took
0.006855 seconds
Begin applying migration 20150814103121
_add_external_data_import_sync_id_index_and_visualizations_type_index.rb,
direction: up
(0.000349s) BEGIN
(0.002395s)
CREATE INDEX external_data_imports_synchronization_id_idx
ON external_data_imports
(synchronization_id)

(0.003019s)
CREATE INDEX visualizations_type_idx ON visualizations (type)

(0.000528s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150814103121_add_external_data_import_sync_id_index_and_visualizations_type_index.rb'
) RETURNING "filename"
(0.000824s) COMMIT
Finished applying migration 20150814103121
_add_external_data_import_sync_id_index_and_visualizations_type_index.rb,
direction: up, took 0.008059 seconds
Begin applying migration 20150814133226_add_visualizations_display_name.rb,
direction: up
(0.000218s) BEGIN
(0.000421s) ALTER TABLE "visualizations" ADD COLUMN "display_name" text
(0.000479s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150814133226_add_visualizations_display_name.rb') RETURNING "filename"
(0.000727s) COMMIT
Finished applying migration 20150814133226_add_visualizations_display_name.
rb, direction: up, took 0.002816 seconds
Begin applying migration 20150817094748
_change_modified_at_to_be_tz_at_synchronizations.rb, direction: up
(0.000337s) BEGIN
(0.009309s)
ALTER TABLE synchronizations ALTER COLUMN modified_at TYPE timestamp
with time zone

(0.000515s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150817094748_change_modified_at_to_be_tz_at_synchronizations.rb')
RETURNING "filename"
(0.001319s) COMMIT
Finished applying migration 20150817094748
_change_modified_at_to_be_tz_at_synchronizations.rb, direction: up, took
0.012282 seconds
Begin applying migration 20150817155219_add_privacy_to_data_import.rb,
direction: up
(0.000422s) BEGIN
(0.000742s) ALTER TABLE "data_imports" ADD COLUMN "privacy" integer
(0.000536s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150817155219_add_privacy_to_data_import.rb') RETURNING "filename"
(0.000716s) COMMIT
Finished applying migration 20150817155219_add_privacy_to_data_import.rb,
direction: up, took 0.003393 seconds
Begin applying migration 20150825121806_add_cartodbfy_time_to_data_imports.
rb, direction: up
(0.000457s) BEGIN
(0.014969s) ALTER TABLE "data_imports" ADD COLUMN "cartodbfy_time" float
DEFAULT 0.0
(0.000465s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150825121806_add_cartodbfy_time_to_data_imports.rb') RETURNING "filename"
(0.002507s) COMMIT
Finished applying migration 20150825121806
_add_cartodbfy_time_to_data_imports.rb, direction: up, took 0.019487 seconds
Begin applying migration 20150901074943_create_ldap_configuration.rb,
direction: up
(0.000452s) BEGIN
(0.000350s) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
(0.008457s) CREATE TABLE "ldap_configurations" ("id" Uuid DEFAULT
uuid_generate_v4() PRIMARY KEY, "organization_id" uuid NOT NULL REFERENCES
"organizations", "host" text NOT NULL, "port" integer NOT NULL, "encryption"
text, "ca_file" text, "ssl_version" text, "connection_user" text NOT NULL,
"connection_password" text NOT NULL, "user_id_field" text NOT NULL,
"username_field" text NOT NULL, "email_field" text NOT NULL, "domain_bases"
text NOT NULL, "user_object_class" text NOT NULL, "group_object_class" text
NOT NULL, "created_at" timestamp DEFAULT CURRENT_TIMESTAMP, "updated_at"
timestamp DEFAULT CURRENT_TIMESTAMP)
(0.000473s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150901074943_create_ldap_configuration.rb') RETURNING "filename"
(0.001032s) COMMIT
Finished applying migration 20150901074943_create_ldap_configuration.rb,
direction: up, took 0.012129 seconds
Begin applying migration 20150902152721_add_auth_options_to_organizations.rb
, direction: up
(0.000369s) BEGIN
(0.008374s) ALTER TABLE "organizations" ADD COLUMN
"auth_username_password_enabled" boolean DEFAULT true NOT NULL, ADD COLUMN
"auth_google_enabled" boolean DEFAULT true NOT NULL
(0.000439s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150902152721_add_auth_options_to_organizations.rb') RETURNING "filename"
(0.003082s) COMMIT
Finished applying migration 20150902152721_add_auth_options_to_organizations
.rb, direction: up, took 0.013338 seconds
Begin applying migration 20150910064152
_set_default_default_quota_to_organizations.rb, direction: up
(0.000474s) BEGIN
(0.000755s) update organizations set default_quota_in_bytes = '104857600'
where default_quota_in_bytes is null
(0.000773s) ALTER TABLE "organizations" ALTER COLUMN
"default_quota_in_bytes" SET DEFAULT 104857600, ALTER COLUMN
"default_quota_in_bytes" SET NOT NULL
(0.000834s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150910064152_set_default_default_quota_to_organizations.rb') RETURNING
"filename"
(0.001481s) COMMIT
Finished applying migration 20150910064152
_set_default_default_quota_to_organizations.rb, direction: up, took 0.005690
seconds
Begin applying migration 20150914151349
_add_location_field_to_user_and_organizations.rb, direction: up
(0.000439s) BEGIN
(0.000985s) ALTER TABLE "users" ADD COLUMN "location" text
(0.000670s) ALTER TABLE "organizations" ADD COLUMN "location" text
(0.000504s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150914151349_add_location_field_to_user_and_organizations.rb') RETURNING
"filename"
(0.000678s) COMMIT
Finished applying migration 20150914151349
_add_location_field_to_user_and_organizations.rb, direction: up, took
0.004879 seconds
Begin applying migration 20150915141325_change_synchronization_id_to_uuid.rb
, direction: up
(0.000342s) BEGIN
(0.013915s)
ALTER TABLE data_imports ALTER COLUMN synchronization_id TYPE uuid
USING synchronization_id ::uuid;

(0.000776s)
ALTER TABLE external_data_imports DROP CONSTRAINT
synchronization_id_fkey;

(0.009676s)
ALTER TABLE external_data_imports ALTER COLUMN synchronization_id
TYPE uuid USING synchronization_id ::uuid;

(0.012284s)
ALTER TABLE synchronizations ALTER COLUMN id TYPE uuid USING id ::uuid
;

(0.001563s)
ALTER TABLE external_data_imports
ADD CONSTRAINT synchronization_id_fkey FOREIGN KEY (
synchronization_id)
REFERENCES synchronizations (id) MATCH SIMPLE ON UPDATE NO ACTION
ON DELETE CASCADE;

(0.000456s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150915141325_change_synchronization_id_to_uuid.rb') RETURNING "filename"
(0.004271s) COMMIT
Finished applying migration 20150915141325_change_synchronization_id_to_uuid
.rb, direction: up, took 0.044586 seconds
Begin applying migration 20150917074433_groups.rb, direction: up
(0.000614s) BEGIN
(0.000329s) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
(0.007120s) CREATE TABLE "groups" ("id" Uuid DEFAULT uuid_generate_v4()
PRIMARY KEY, "name" text NOT NULL, "display_name" text NOT NULL,
"database_role" text NOT NULL, "organization_id" Uuid NOT NULL, "created_at"
timestamp DEFAULT CURRENT_TIMESTAMP, "updated_at" timestamp DEFAULT
CURRENT_TIMESTAMP)
(0.002105s)
ALTER TABLE "groups"
ADD CONSTRAINT groups_organization_id_fk
FOREIGN KEY (organization_id)
REFERENCES organizations(id)
ON DELETE CASCADE

(0.003625s)
ALTER TABLE "groups"
ADD CONSTRAINT groups_organization_id_name_uq
UNIQUE (organization_id, name)

(0.002704s)
ALTER TABLE "groups"
ADD CONSTRAINT groups_organization_id_display_name_uq
UNIQUE (organization_id, display_name)

(0.004381s)
ALTER TABLE "groups"
ADD CONSTRAINT groups_organization_id_database_role_uq
UNIQUE (organization_id, database_role)

(0.003883s) CREATE TABLE "users_groups" ("id" Uuid DEFAULT uuid_generate_v4
() PRIMARY KEY, "user_id" Uuid NOT NULL, "group_id" Uuid NOT NULL)
(0.002369s)
ALTER TABLE "users_groups"
ADD CONSTRAINT users_groups_user_id_fk
FOREIGN KEY (user_id)
REFERENCES users(id)
ON DELETE CASCADE

(0.001391s)
ALTER TABLE "users_groups"
ADD CONSTRAINT users_groups_group_id_fk
FOREIGN KEY (group_id)
REFERENCES groups(id)
ON DELETE CASCADE

(0.003170s)
ALTER TABLE "users_groups"
ADD CONSTRAINT users_groups_user_id_group_id_uq
UNIQUE (user_id, group_id)

(0.000560s) ALTER TABLE shared_entities DROP CONSTRAINT recipient_type_check
;
(0.000651s) ALTER TABLE shared_entities ADD CONSTRAINT recipient_type_check
CHECK (recipient_type IN ('user', 'org', 'group'));
(0.000435s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150917074433_groups.rb') RETURNING "filename"
(0.001364s) COMMIT
Finished applying migration 20150917074433_groups.rb, direction: up, took
0.038145 seconds
Begin applying migration 20150928100216_create_visualization_backups.rb,
direction: up
(0.000359s) BEGIN
(0.000233s) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
(0.003802s) CREATE TABLE "visualization_backups" ("username" text NOT NULL,
"visualization" Uuid NOT NULL, "export_vizjson" text NOT NULL, "created_at"
timestamp DEFAULT CURRENT_TIMESTAMP)
(0.000590s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150928100216_create_visualization_backups.rb') RETURNING "filename"
(0.002094s) COMMIT
Finished applying migration 20150928100216_create_visualization_backups.rb,
direction: up, took 0.008447 seconds
Begin applying migration 20150929082455_add_pk_to_visualization_backups.rb,
direction: up
(0.000441s) BEGIN
(0.004168s) ALTER TABLE visualization_backups ADD PRIMARY KEY (visualization
)
(0.000568s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150929082455_add_pk_to_visualization_backups.rb') RETURNING "filename"
(0.000734s) COMMIT
Finished applying migration 20150929082455_add_pk_to_visualization_backups.
rb, direction: up, took 0.006659 seconds
Begin applying migration 20150930105157_invitations.rb, direction: up
(0.000379s) BEGIN
(0.000406s) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
(0.006872s) CREATE TABLE "invitations" ("id" Uuid DEFAULT uuid_generate_v4()
PRIMARY KEY, "organization_id" Uuid NOT NULL, "inviter_user_id" Uuid NOT
NULL, "users_emails" text[] NULL, "used_emails" text[] NULL, "welcome_text"
text NOT NULL, "seed" text NOT NULL, "created_at" timestamp DEFAULT
CURRENT_TIMESTAMP, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP)
(0.001453s)
ALTER TABLE "invitations"
ADD CONSTRAINT invitations_organization_id_fk
FOREIGN KEY (organization_id)
REFERENCES organizations(id)
ON DELETE CASCADE

(0.001939s)
ALTER TABLE "invitations"
ADD CONSTRAINT invitations_inviter_user_id_fk
FOREIGN KEY (inviter_user_id)
REFERENCES users(id)
ON DELETE CASCADE

(0.000544s) ALTER TABLE "user_creations" ADD COLUMN "invitation_token" text
NULL
(0.000401s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20150930105157_invitations.rb') RETURNING "filename"
(0.000912s) COMMIT
Finished applying migration 20150930105157_invitations.rb, direction: up,
took 0.014635 seconds
Begin applying migration 20151002104452_remove_parent_id_from_layers.rb,
direction: up
(0.002003s) BEGIN
(0.000855s) ALTER TABLE "layers" DROP COLUMN "parent_id"
(0.000447s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20151002104452_remove_parent_id_from_layers.rb') RETURNING "filename"
(0.001294s) COMMIT
Finished applying migration 20151002104452_remove_parent_id_from_layers.rb,
direction: up, took 0.005765 seconds
Begin applying migration 20151002105834
_add_http_response_code_to_data_imports.rb, direction: up
(0.000370s) BEGIN
(0.000670s) ALTER TABLE "data_imports" ADD COLUMN "http_response_code" text
(0.000442s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20151002105834_add_http_response_code_to_data_imports.rb') RETURNING
"filename"
(0.000742s) COMMIT
Finished applying migration 20151002105834
_add_http_response_code_to_data_imports.rb, direction: up, took 0.003225
seconds
Begin applying migration 20151006120423_remove_shared_entities_numeric_pk.rb
, direction: up
(0.000337s) BEGIN
(0.000581s)
ALTER TABLE shared_entities DROP CONSTRAINT shared_entities_pkey;

(0.002796s)
ALTER TABLE shared_entities ADD PRIMARY KEY (recipient_id, entity_id
);

(0.002688s)
ALTER TABLE shared_entities DROP COLUMN id;

(0.000432s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20151006120423_remove_shared_entities_numeric_pk.rb') RETURNING "filename"
(0.001115s) COMMIT
Finished applying migration 20151006120423_remove_shared_entities_numeric_pk
.rb, direction: up, took 0.008918 seconds
Begin applying migration 20151014085055_add_rejected_layers_to_data_imports.
rb, direction: up
(0.000384s) BEGIN
(0.000694s) ALTER TABLE "data_imports" ADD COLUMN "rejected_layers" text
(0.000421s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20151014085055_add_rejected_layers_to_data_imports.rb') RETURNING
"filename"
(0.001058s) COMMIT
Finished applying migration 20151014085055
_add_rejected_layers_to_data_imports.rb, direction: up, took 0.003355
seconds
Begin applying migration 20151016130937_add_uuid_to_shared_entities.rb,
direction: up
(0.000635s) BEGIN
(0.000930s)
ALTER TABLE shared_entities DROP CONSTRAINT shared_entities_pkey;

(0.013161s)
ALTER TABLE shared_entities ADD COLUMN id uuid NOT NULL default
uuid_generate_v4();

(0.002146s)
ALTER TABLE shared_entities ADD PRIMARY KEY (id);

(0.000567s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20151016130937_add_uuid_to_shared_entities.rb') RETURNING "filename"
(0.001636s) COMMIT
Finished applying migration 20151016130937_add_uuid_to_shared_entities.rb,
direction: up, took 0.020326 seconds
Begin applying migration 20151022141441
_change_id_to_uuid_from_synchronization_oauths.rb, direction: up
(0.000441s) BEGIN
(0.011672s)
ALTER TABLE synchronization_oauths DROP COLUMN id;
ALTER TABLE synchronization_oauths ADD COLUMN id uuid NOT NULL
default uuid_generate_v4();
ALTER TABLE synchronization_oauths ADD PRIMARY KEY (id);

(0.000530s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20151022141441_change_id_to_uuid_from_synchronization_oauths.rb')
RETURNING "filename"
(0.001758s) COMMIT
Finished applying migration 20151022141441
_change_id_to_uuid_from_synchronization_oauths.rb, direction: up, took
0.015233 seconds
Begin applying migration 20151026134723_add_runner_warnings_to_data_imports.
rb, direction: up
(0.000441s) BEGIN
(0.000641s) ALTER TABLE "data_imports" ADD COLUMN "runner_warnings" text
(0.000455s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20151026134723_add_runner_warnings_to_data_imports.rb') RETURNING
"filename"
(0.000743s) COMMIT
Finished applying migration 20151026134723
_add_runner_warnings_to_data_imports.rb, direction: up, took 0.003041
seconds
Begin applying migration 20151028094000_add_country_codes_to_visualizations.
rb, direction: up
(0.000352s) BEGIN
(0.000567s)
ALTER TABLE "visualizations" ADD COLUMN country_codes text[]

(0.001106s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20151028094000_add_country_codes_to_visualizations.rb') RETURNING
"filename"
(0.000713s) COMMIT
Finished applying migration 20151028094000
_add_country_codes_to_visualizations.rb, direction: up, took 0.003439
seconds
Begin applying migration 20151028114700
_remove_country_codes_to_visualizations.rb, direction: up
(0.000280s) BEGIN
(0.000589s) ALTER TABLE "visualizations" DROP COLUMN "country_codes"
(0.000409s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20151028114700_remove_country_codes_to_visualizations.rb') RETURNING
"filename"
(0.000683s) COMMIT
Finished applying migration 20151028114700
_remove_country_codes_to_visualizations.rb, direction: up, took 0.003024
seconds
Begin applying migration 20151029102351_add_likes_uuidpk.rb, direction: up
(0.000429s) BEGIN
(0.000721s)
ALTER TABLE likes DROP CONSTRAINT likes_pkey;

(0.003665s)
ALTER TABLE likes ADD COLUMN id uuid NOT NULL default
uuid_generate_v4();

(0.002232s)
ALTER TABLE likes ADD PRIMARY KEY (id);

(0.004562s)
ALTER TABLE likes ADD CONSTRAINT actor_subject_unique UNIQUE (actor,
subject);

(0.000631s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20151029102351_add_likes_uuidpk.rb') RETURNING "filename"
(0.001286s) COMMIT
Finished applying migration 20151029102351_add_likes_uuidpk.rb, direction:
up, took 0.014992 seconds
Begin applying migration 20151118174316
_create_bi_visualizations_and_bi_datasets.rb, direction: up
(0.000534s) BEGIN
(0.000208s) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
(0.009922s) CREATE TABLE "bi_datasets" ("id" Uuid DEFAULT uuid_generate_v4()
PRIMARY KEY, "import_config" json NOT NULL, "state" text NOT NULL, "user_id"
uuid NOT NULL REFERENCES "users", "import_source" text NOT NULL,
"import_credentials" json NOT NULL, "created_at" timestamp DEFAULT
CURRENT_TIMESTAMP, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP)
(0.006958s) CREATE TABLE "bi_visualizations" ("id" Uuid DEFAULT
uuid_generate_v4() PRIMARY KEY, "viz_json" json NOT NULL, "bi_dataset_id"
uuid NOT NULL REFERENCES "bi_datasets", "created_at" timestamp DEFAULT
CURRENT_TIMESTAMP, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP)
(0.000902s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20151118174316_create_bi_visualizations_and_bi_datasets.rb') RETURNING
"filename"
(0.001404s) COMMIT
Finished applying migration 20151118174316
_create_bi_visualizations_and_bi_datasets.rb, direction: up, took 0.021889
seconds
Begin applying migration 20151127111900_invert_actor_subject_constraint.rb,
direction: up
(0.000405s) BEGIN
(0.000607s)
ALTER TABLE likes DROP CONSTRAINT IF EXISTS actor_subject_unique;

(0.002552s)
ALTER TABLE likes ADD CONSTRAINT subject_actor_unique UNIQUE (
subject, actor);

(0.000465s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20151127111900_invert_actor_subject_constraint.rb') RETURNING "filename"
(0.000901s) COMMIT
Finished applying migration 20151127111900_invert_actor_subject_constraint.
rb, direction: up, took 0.005720 seconds
Begin applying migration 20151204101429
_add_geocoding_quota_default_to_organizations.rb, direction: up
(0.000320s) BEGIN
(0.000583s) UPDATE organizations SET geocoding_quota = 0 WHERE
geocoding_quota IS NULL
(0.000693s) ALTER TABLE "organizations" ALTER COLUMN "geocoding_quota" SET
DEFAULT 0, ALTER COLUMN "geocoding_quota" SET NOT NULL
(0.000434s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20151204101429_add_geocoding_quota_default_to_organizations.rb') RETURNING
"filename"
(0.000730s) COMMIT
Finished applying migration 20151204101429
_add_geocoding_quota_default_to_organizations.rb, direction: up, took
0.003587 seconds
Begin applying migration 20151211103229_add_geocoding_type_to_geocodings.rb,
direction: up
(0.000444s) BEGIN
(0.000828s) ALTER TABLE "geocodings" ADD COLUMN "geocoder_type" text
(0.000481s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20151211103229_add_geocoding_type_to_geocodings.rb') RETURNING "filename"
(0.000782s) COMMIT
Finished applying migration 20151211103229_add_geocoding_type_to_geocodings.
rb, direction: up, took 0.003802 seconds
Begin applying migration 20151221152601
_add_soft_geocoding_limit_to_user_creation.rb, direction: up
(0.000327s) BEGIN
(0.010170s) ALTER TABLE "user_creations" ADD COLUMN "soft_geocoding_limit"
boolean DEFAULT true
(0.000778s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20151221152601_add_soft_geocoding_limit_to_user_creation.rb') RETURNING
"filename"
(0.002134s) COMMIT
Finished applying migration 20151221152601
_add_soft_geocoding_limit_to_user_creation.rb, direction: up, took 0.014589
seconds
Begin applying migration 20160108122849
_add_created_via_api_to_user_creations.rb, direction: up
(0.000476s) BEGIN
(0.012227s) ALTER TABLE "user_creations" ADD COLUMN "created_via_api"
boolean DEFAULT false NOT NULL
(0.000642s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160108122849_add_created_via_api_to_user_creations.rb') RETURNING
"filename"
(0.001525s) COMMIT
Finished applying migration 20160108122849
_add_created_via_api_to_user_creations.rb, direction: up, took 0.016116
seconds
Begin applying migration 20160114082200_add_created_via_to_user_creations.rb
, direction: up
(0.000491s) BEGIN
(0.009623s) ALTER TABLE "user_creations" ADD COLUMN "created_via" text
DEFAULT 'org_signup' NOT NULL
(0.000764s) update user_creations set created_via = 'api' where
created_via_api = 'true'
(0.000485s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160114082200_add_created_via_to_user_creations.rb') RETURNING "filename"
(0.002276s) COMMIT
Finished applying migration 20160114082200_add_created_via_to_user_creations
.rb, direction: up, took 0.014597 seconds
Begin applying migration 20160118144200
_remove_created_via_api_from_user_creations.rb, direction: up
(0.000672s) BEGIN
(0.000714s) ALTER TABLE "user_creations" DROP COLUMN "created_via_api"
(0.000424s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160118144200_remove_created_via_api_from_user_creations.rb') RETURNING
"filename"
(0.000717s) COMMIT
Finished applying migration 20160118144200
_remove_created_via_api_from_user_creations.rb, direction: up, took 0.003370
seconds
Begin applying migration 20160120094316_create_widgets.rb, direction: up
(0.000246s) BEGIN
(0.000247s) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
(0.007141s) CREATE TABLE "widgets" ("id" Uuid DEFAULT uuid_generate_v4()
PRIMARY KEY, "layer_id" uuid NOT NULL REFERENCES "layers" ON DELETE CASCADE,
"order" integer NOT NULL, "type" text NOT NULL, "title" text, "options"
json NOT NULL, "created_at" timestamp DEFAULT CURRENT_TIMESTAMP,
"updated_at" timestamp DEFAULT CURRENT_TIMESTAMP)
(0.000466s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160120094316_create_widgets.rb') RETURNING "filename"
(0.006902s) COMMIT
Finished applying migration 20160120094316_create_widgets.rb, direction: up,
took 0.016283 seconds
Begin applying migration 20160212170700
_add_routing_quota_and_block_price_fields.rb, direction: up
(0.000445s) BEGIN
(0.015596s) ALTER TABLE "users" ADD COLUMN "here_isolines_quota" integer
DEFAULT 0 NOT NULL
(0.000668s) ALTER TABLE "users" ADD COLUMN "here_isolines_block_price"
integer
(0.000570s) ALTER TABLE "users" ADD COLUMN "soft_here_isolines_limit"
boolean
(0.008730s) ALTER TABLE "organizations" ADD COLUMN "here_isolines_quota"
integer DEFAULT 0 NOT NULL
(0.000495s) ALTER TABLE "organizations" ADD COLUMN
"here_isolines_block_price" integer
(0.000343s) ALTER TABLE "user_creations" ADD COLUMN
"soft_here_isolines_limit" boolean
(0.000633s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160212170700_add_routing_quota_and_block_price_fields.rb') RETURNING
"filename"
(0.002619s) COMMIT
Finished applying migration 20160212170700
_add_routing_quota_and_block_price_fields.rb, direction: up, took 0.032239
seconds
Begin applying migration 20160307094600_analysis.rb, direction: up
(0.000885s) BEGIN
(0.008067s) CREATE TABLE "analyses" ("id" Uuid DEFAULT uuid_generate_v4()
PRIMARY KEY, "visualization_id" uuid NOT NULL REFERENCES "visualizations"
ON DELETE CASCADE, "user_id" uuid NOT NULL REFERENCES "users" ON DELETE
CASCADE, "params" json NOT NULL, "created_at" timestamp DEFAULT
CURRENT_TIMESTAMP, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP)
(0.003049s) CREATE INDEX "analyses_visualization_id_index" ON "analyses" (
"visualization_id")
(0.002767s)
create index analysis_params_id on analyses ((params->>'id'))

(0.000775s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160307094600_analysis.rb') RETURNING "filename"
(0.001706s) COMMIT
Finished applying migration 20160307094600_analysis.rb, direction: up, took
0.019267 seconds
Begin applying migration 20160309173100_analysis_params_to_analysis.rb,
direction: up
(0.000534s) BEGIN
(0.000537s) ALTER TABLE "analyses" RENAME COLUMN "params" TO
"analysis_definition"
(0.000443s)
alter index analysis_params_id rename to analyses_analisis_id

(0.000524s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160309173100_analysis_params_to_analysis.rb') RETURNING "filename"
(0.000724s) COMMIT
Finished applying migration 20160309173100_analysis_params_to_analysis.rb,
direction: up, took 0.003570 seconds
Begin applying migration 20160310163800_user_creation_soft_limits.rb,
direction: up
(0.000335s) BEGIN
(0.010684s) ALTER TABLE "user_creations" ADD COLUMN
"soft_twitter_datasource_limit" boolean DEFAULT false NOT NULL
(0.000544s) ALTER TABLE user_creations ALTER COLUMN soft_geocoding_limit set
default false;
(0.000387s) ALTER TABLE user_creations ALTER COLUMN soft_geocoding_limit set
not null;
(0.000414s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160310163800_user_creation_soft_limits.rb') RETURNING "filename"
(0.001362s) COMMIT
Finished applying migration 20160310163800_user_creation_soft_limits.rb,
direction: up, took 0.014970 seconds
Begin applying migration 20160318114518
_add_strong_passwords_enabled_to_organizations.rb, direction: up
(0.000453s) BEGIN
(0.008321s) ALTER TABLE "organizations" ADD COLUMN
"strong_passwords_enabled" boolean DEFAULT false NOT NULL
(0.000612s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160318114518_add_strong_passwords_enabled_to_organizations.rb')
RETURNING "filename"
(0.002375s) COMMIT
Finished applying migration 20160318114518
_add_strong_passwords_enabled_to_organizations.rb, direction: up, took
0.013235 seconds
Begin applying migration 20160321102600_add_pid_field_to_geocodings.rb,
direction: up
(0.000585s) BEGIN
(0.000650s) ALTER TABLE "geocodings" ADD COLUMN "pid" text
(0.000481s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160321102600_add_pid_field_to_geocodings.rb') RETURNING "filename"
(0.000759s) COMMIT
Finished applying migration 20160321102600_add_pid_field_to_geocodings.rb,
direction: up, took 0.003234 seconds
Begin applying migration 20160322165836
_add_not_null_constraint_to_layers_kind.rb, direction: up
(0.000368s) BEGIN
(0.000654s) UPDATE layers SET kind = 'carto' WHERE kind IS NULL;
(0.000446s) ALTER TABLE "layers" ALTER COLUMN "kind" SET NOT NULL
(0.000418s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160322165836_add_not_null_constraint_to_layers_kind.rb') RETURNING
"filename"
(0.000618s) COMMIT
Finished applying migration 20160322165836
_add_not_null_constraint_to_layers_kind.rb, direction: up, took 0.003356
seconds
Begin applying migration 20160329121128
_add_permission_id_fk_to_visualization.rb, direction: up
(0.000338s) BEGIN
(1.6ms) SELECT COUNT(*) FROM "visualizations"
(0.001993s) ALTER TABLE "visualizations" ALTER COLUMN "permission_id" SET
NOT NULL, ADD FOREIGN KEY ("permission_id") REFERENCES "permissions"
(0.000445s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160329121128_add_permission_id_fk_to_visualization.rb') RETURNING
"filename"
(0.000792s) COMMIT
Finished applying migration 20160329121128
_add_permission_id_fk_to_visualization.rb, direction: up, took 0.039217
seconds
Begin applying migration 20160407150453_drop_permission_entity_fields.rb,
direction: up
(0.000331s) BEGIN
(0.000714s) ALTER TABLE "permissions" DROP COLUMN "entity_id", DROP COLUMN
"entity_type"
(0.000443s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160407150453_drop_permission_entity_fields.rb') RETURNING "filename"
(0.000987s) COMMIT
Finished applying migration 20160407150453_drop_permission_entity_fields.rb,
direction: up, took 0.003468 seconds
Begin applying migration 20160412144305
_add_unique_constraint_to_permission_id.rb, direction: up
(0.000342s) BEGIN
(0.003310s) ALTER TABLE "visualizations" ADD UNIQUE ("permission_id")
(0.000398s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160412144305_add_unique_constraint_to_permission_id.rb') RETURNING
"filename"
(0.000520s) COMMIT
Finished applying migration 20160412144305
_add_unique_constraint_to_permission_id.rb, direction: up, took 0.005429
seconds
Begin applying migration 20160418142809_drop_url_options_from_visualizations
.rb, direction: up
(0.000166s) BEGIN
(0.000653s) ALTER TABLE "visualizations" DROP COLUMN "url_options"
(0.000404s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160418142809_drop_url_options_from_visualizations.rb') RETURNING
"filename"
(0.000870s) COMMIT
Finished applying migration 20160418142809
_drop_url_options_from_visualizations.rb, direction: up, took 0.003361
seconds
Begin applying migration 20160420182800_add_data_observatory_fields.rb,
direction: up
(0.000312s) BEGIN
(0.015376s) ALTER TABLE "users" ADD COLUMN "obs_snapshot_quota" integer
DEFAULT 0 NOT NULL
(0.000821s) ALTER TABLE "users" ADD COLUMN "obs_snapshot_block_price"
integer
(0.000720s) ALTER TABLE "users" ADD COLUMN "soft_obs_snapshot_limit" boolean
(0.009455s) ALTER TABLE "organizations" ADD COLUMN "obs_snapshot_quota"
integer DEFAULT 0 NOT NULL
(0.000538s) ALTER TABLE "organizations" ADD COLUMN
"obs_snapshot_block_price" integer
(0.000479s) ALTER TABLE "user_creations" ADD COLUMN
"soft_obs_snapshot_limit" boolean
(0.000466s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160420182800_add_data_observatory_fields.rb') RETURNING "filename"
(0.002133s) COMMIT
Finished applying migration 20160420182800_add_data_observatory_fields.rb,
direction: up, took 0.033167 seconds
Begin applying migration 20160425083000_widgets_source_id.rb, direction: up
(0.000575s) BEGIN
(0.001025s) ALTER TABLE "widgets" ADD COLUMN "source_id" text
(0.000619s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160425083000_widgets_source_id.rb') RETURNING "filename"
(0.000698s) COMMIT
Finished applying migration 20160425083000_widgets_source_id.rb, direction:
up, took 0.004124 seconds
Begin applying migration 20160429180000_visualization_exports.rb, direction:
up
(0.000263s) BEGIN
(0.006589s) CREATE TABLE "visualization_exports" ("id" Uuid DEFAULT
uuid_generate_v4() PRIMARY KEY, "visualization_id" uuid NOT NULL, "user_id"
uuid NOT NULL, "user_tables_ids" text, "state" text DEFAULT 'pending' NOT
NULL, "file" text, "url" text, "log_id" uuid NULL, "created_at" timestamp
DEFAULT CURRENT_TIMESTAMP, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP)
(0.000891s)
ALTER TABLE visualization_exports
ADD CONSTRAINT visualization_exports_visualization_id_fkey FOREIGN
KEY (visualization_id)
REFERENCES visualizations (id) ON DELETE CASCADE NOT VALID;

(0.001846s)
ALTER TABLE visualization_exports
ADD CONSTRAINT visualization_exports_user_id_fkey FOREIGN KEY (
user_id)
REFERENCES users (id) ON DELETE CASCADE;

(0.001370s)
ALTER TABLE visualization_exports
ADD CONSTRAINT visualization_exports_log_id_fkey FOREIGN KEY (log_id
)
REFERENCES logs (id) ON DELETE CASCADE;

(0.000480s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160429180000_visualization_exports.rb') RETURNING "filename"
(0.001516s) COMMIT
Finished applying migration 20160429180000_visualization_exports.rb,
direction: up, took 0.014604 seconds
Begin applying migration 20160506152932_add_mobile_sdk_features_to_user.rb,
direction: up
(0.000456s) BEGIN
(0.018235s) ALTER TABLE "users" ADD COLUMN "mobile_xamarin" boolean DEFAULT
false NOT NULL, ADD COLUMN "mobile_custom_watermark" boolean DEFAULT false
NOT NULL, ADD COLUMN "mobile_offline_maps" boolean DEFAULT false NOT NULL,
ADD COLUMN "mobile_gis_extension" boolean DEFAULT false NOT NULL, ADD
COLUMN "mobile_max_open_users" integer DEFAULT 0 NOT NULL, ADD COLUMN
"mobile_max_private_users" integer DEFAULT 0 NOT NULL
(0.000427s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160506152932_add_mobile_sdk_features_to_user.rb') RETURNING "filename"
(0.002139s) COMMIT
Finished applying migration 20160506152932_add_mobile_sdk_features_to_user.
rb, direction: up, took 0.022322 seconds
Begin applying migration 20160512103225_add_observatory_general_fields.rb,
direction: up
(0.000545s) BEGIN
(0.016162s) ALTER TABLE "users" ADD COLUMN "obs_general_quota" integer
DEFAULT 0 NOT NULL
(0.000880s) ALTER TABLE "users" ADD COLUMN "obs_general_block_price" integer
(0.000714s) ALTER TABLE "users" ADD COLUMN "soft_obs_general_limit" boolean
(0.008676s) ALTER TABLE "organizations" ADD COLUMN "obs_general_quota"
integer DEFAULT 0 NOT NULL
(0.001931s) ALTER TABLE "organizations" ADD COLUMN "obs_general_block_price"
integer
(0.000812s) ALTER TABLE "user_creations" ADD COLUMN "soft_obs_general_limit"
boolean
(0.000545s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160512103225_add_observatory_general_fields.rb') RETURNING "filename"
(0.002733s) COMMIT
Finished applying migration 20160512103225_add_observatory_general_fields.rb
, direction: up, took 0.035797 seconds
Begin applying migration 20160516103200
_drop_visualization_exports_user_id_null_constraint.rb, direction: up
(0.000637s) BEGIN
(0.000502s)
ALTER TABLE visualization_exports alter column user_id drop not null;

(0.000407s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160516103200_drop_visualization_exports_user_id_null_constraint.rb')
RETURNING "filename"
(0.000620s) COMMIT
Finished applying migration 20160516103200
_drop_visualization_exports_user_id_null_constraint.rb, direction: up, took
0.002961 seconds
Begin applying migration 20160608165132_add_viewer_to_users.rb, direction:
up
(0.000304s) BEGIN
(0.019880s) ALTER TABLE "users" ADD COLUMN "viewer" boolean DEFAULT false
NOT NULL
(0.000354s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160608165132_add_viewer_to_users.rb') RETURNING "filename"
(0.002078s) COMMIT
Finished applying migration 20160608165132_add_viewer_to_users.rb, direction
: up, took 0.023620 seconds
Begin applying migration 20160616122125_add_salesforce_connector.rb,
direction: up
(0.000582s) BEGIN
(0.022321s) ALTER TABLE "users" ADD COLUMN "salesforce_datasource_enabled"
boolean DEFAULT false NOT NULL
(0.008343s) ALTER TABLE "organizations" ADD COLUMN
"salesforce_datasource_enabled" boolean DEFAULT false NOT NULL
(0.000495s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160616122125_add_salesforce_connector.rb') RETURNING "filename"
(0.003135s) COMMIT
Finished applying migration 20160616122125_add_salesforce_connector.rb,
direction: up, took 0.036349 seconds
Begin applying migration 20160622115500_add_viewer_quota_to_organizations.rb
, direction: up
(0.000700s) BEGIN
(0.008685s) ALTER TABLE "organizations" ADD COLUMN "viewer_seats" integer
DEFAULT 0 NOT NULL
(0.000847s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160622115500_add_viewer_quota_to_organizations.rb') RETURNING "filename"
(0.002109s) COMMIT
Finished applying migration 20160622115500_add_viewer_quota_to_organizations
.rb, direction: up, took 0.013307 seconds
Begin applying migration 20160622141618_add_index_to_widgets_layer_id.rb,
direction: up
(0.000560s) BEGIN
(0.003242s) CREATE INDEX "widgets_layer_id_index" ON "widgets" ("layer_id")
(0.000559s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160622141618_add_index_to_widgets_layer_id.rb') RETURNING "filename"
(0.000740s) COMMIT
Finished applying migration 20160622141618_add_index_to_widgets_layer_id.rb,
direction: up, took 0.006023 seconds
Begin applying migration 20160624101145_add_builder_enabled_to_users.rb,
direction: up
(0.000308s) BEGIN
(0.016792s) ALTER TABLE "users" ADD COLUMN "builder_enabled" boolean
DEFAULT true NULL
(0.000451s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160624101145_add_builder_enabled_to_users.rb') RETURNING "filename"
(0.002669s) COMMIT
Finished applying migration 20160624101145_add_builder_enabled_to_users.rb,
direction: up, took 0.021247 seconds
Begin applying migration 20160628105307_create_mapcaps.rb, direction: up
(0.000595s) BEGIN
(0.007374s) CREATE TABLE "mapcaps" ("visualization_id" uuid NOT NULL
REFERENCES "visualizations" ON DELETE CASCADE, "id" Uuid DEFAULT
uuid_generate_v4() PRIMARY KEY, "export_json" json NOT NULL, "ids_json"
json NOT NULL, "created_at" timestamp DEFAULT CURRENT_TIMESTAMP)
(0.003899s) CREATE INDEX "mapcaps_visualization_id_index" ON "mapcaps" (
"visualization_id")
(0.000526s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160628105307_create_mapcaps.rb') RETURNING "filename"
(0.000903s) COMMIT
Finished applying migration 20160628105307_create_mapcaps.rb, direction: up,
took 0.014614 seconds
Begin applying migration 20160629133441
_drop_arcgis_datasource_enabled_from_users.rb, direction: up
(0.000393s) BEGIN
(0.000700s) ALTER TABLE "users" DROP COLUMN "arcgis_datasource_enabled"
(0.000417s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160629133441_drop_arcgis_datasource_enabled_from_users.rb') RETURNING
"filename"
(0.000781s) COMMIT
Finished applying migration 20160629133441
_drop_arcgis_datasource_enabled_from_users.rb, direction: up, took 0.003079
seconds
Begin applying migration 20160701125000_add_viewer_to_invitations.rb,
direction: up
(0.000339s) BEGIN
(0.007344s) ALTER TABLE "invitations" ADD COLUMN "viewer" boolean DEFAULT
false NOT NULL
(0.000477s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160701125000_add_viewer_to_invitations.rb') RETURNING "filename"
(0.001266s) COMMIT
Finished applying migration 20160701125000_add_viewer_to_invitations.rb,
direction: up, took 0.010365 seconds
Begin applying migration 20160718095625_change_user_max_layers_default.rb,
direction: up
(0.000274s) BEGIN
(0.001089s) ALTER TABLE "users" ALTER COLUMN "max_layers" SET DEFAULT 8
(0.000414s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160718095625_change_user_max_layers_default.rb') RETURNING "filename"
(0.000651s) COMMIT
Finished applying migration 20160718095625_change_user_max_layers_default.rb
, direction: up, took 0.003514 seconds
Begin applying migration 20160718154742_create_user_migration_exports.rb,
direction: up
(0.000370s) BEGIN
(0.010910s) CREATE TABLE "user_migration_exports" ("id" Uuid DEFAULT
uuid_generate_v4() PRIMARY KEY, "state" text NOT NULL, "exported_file" text
NULL, "json_file" text NULL, "created_at" timestamp DEFAULT
CURRENT_TIMESTAMP, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP,
"user_id" uuid NULL REFERENCES "users" ON DELETE CASCADE, "organization_id"
uuid NULL REFERENCES "organizations" ON DELETE CASCADE, "log_id" uuid NOT
NULL REFERENCES "logs")
(0.008975s) CREATE TABLE "user_migration_imports" ("id" Uuid DEFAULT
uuid_generate_v4() PRIMARY KEY, "state" text NOT NULL, "exported_file" text
NOT NULL, "json_file" text NOT NULL, "database_host" text NOT NULL,
"org_import" Boolean NOT NULL, "created_at" timestamp DEFAULT
CURRENT_TIMESTAMP, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP,
"user_id" uuid NULL REFERENCES "users" ON DELETE CASCADE, "organization_id"
uuid NULL REFERENCES "organizations" ON DELETE CASCADE, "log_id" uuid NOT
NULL REFERENCES "logs")
(0.000481s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160718154742_create_user_migration_exports.rb') RETURNING "filename"
(0.001885s) COMMIT
Finished applying migration 20160718154742_create_user_migration_exports.rb,
direction: up, took 0.024892 seconds
Begin applying migration 20160720152600_add_service_providers.rb, direction:
up
(0.002801s) BEGIN
(0.001116s) ALTER TABLE "users" ADD COLUMN "geocoder_provider" text, ADD
COLUMN "isolines_provider" text, ADD COLUMN "routing_provider" text
(0.000916s) ALTER TABLE "organizations" ADD COLUMN "geocoder_provider" text,
ADD COLUMN "isolines_provider" text, ADD COLUMN "routing_provider" text
(0.000366s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160720152600_add_service_providers.rb') RETURNING "filename"
(0.001060s) COMMIT
Finished applying migration 20160720152600_add_service_providers.rb,
direction: up, took 0.007586 seconds
Begin applying migration 20160802075029_create_user_notifications.rb,
direction: up
(0.000567s) BEGIN
(0.010220s) CREATE TABLE "user_notifications" ("user_id" uuid NOT NULL
PRIMARY KEY REFERENCES "users" ON DELETE CASCADE, "notifications" json
DEFAULT '{}' NOT NULL)
(0.000532s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160802075029_create_user_notifications.rb') RETURNING "filename"
(0.000937s) COMMIT
Finished applying migration 20160802075029_create_user_notifications.rb,
direction: up, took 0.013330 seconds
Begin applying migration 20160803125905_add_auth_token_to_groups.rb,
direction: up
(0.000379s) BEGIN
(0.000558s) ALTER TABLE "groups" ADD COLUMN "auth_token" text
(0.000475s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160803125905_add_auth_token_to_groups.rb') RETURNING "filename"
(0.000686s) COMMIT
Finished applying migration 20160803125905_add_auth_token_to_groups.rb,
direction: up, took 0.002800 seconds
Begin applying migration 20160808114840_add_auth_token_to_visualization.rb,
direction: up
(0.000302s) BEGIN
(0.000534s) ALTER TABLE "visualizations" ADD COLUMN "auth_token" text
(0.000416s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160808114840_add_auth_token_to_visualization.rb') RETURNING "filename"
(0.000682s) COMMIT
Finished applying migration 20160808114840_add_auth_token_to_visualization.
rb, direction: up, took 0.002772 seconds
Begin applying migration 20160808114841_create_states.rb, direction: up
(0.000312s) BEGIN
(0.010124s) CREATE TABLE "states" ("id" Uuid DEFAULT uuid_generate_v4()
PRIMARY KEY, "created_at" timestamp DEFAULT CURRENT_TIMESTAMP, "updated_at"
timestamp DEFAULT CURRENT_TIMESTAMP, "json" json DEFAULT '{}' NOT NULL,
"user_id" uuid NOT NULL REFERENCES "users" ON DELETE CASCADE,
"visualization_id" uuid NOT NULL REFERENCES "visualizations" ON DELETE
CASCADE)
(0.003177s) CREATE INDEX "states_visualization_id_user_id_index" ON "states"
("visualization_id", "user_id")
(0.000522s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160808114841_create_states.rb') RETURNING "filename"
(0.000992s) COMMIT
Finished applying migration 20160808114841_create_states.rb, direction: up,
took 0.016662 seconds
Begin applying migration 20160808114842_add_state_id_to_visualizations.rb,
direction: up
(0.000369s) BEGIN
(0.001139s) ALTER TABLE "visualizations" ADD COLUMN "state_id" uuid NULL
REFERENCES "states"
(0.000477s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160808114842_add_state_id_to_visualizations.rb') RETURNING "filename"
(0.001661s) COMMIT
Finished applying migration 20160808114842_add_state_id_to_visualizations.rb
, direction: up, took 0.004549 seconds
Begin applying migration 20160819090641_add_github_user_id_to_users.rb,
direction: up
(0.001319s) BEGIN
(0.000712s) ALTER TABLE "users" ADD COLUMN "github_user_id" bigint
(0.003091s) CREATE INDEX "users_github_user_id_index" ON "users" (
"github_user_id")
(0.000473s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160819090641_add_github_user_id_to_users.rb') RETURNING "filename"
(0.001371s) COMMIT
Finished applying migration 20160819090641_add_github_user_id_to_users.rb,
direction: up, took 0.008408 seconds
Begin applying migration 20160819121416_add_github_auth_to_organizations.rb,
direction: up
(0.000460s) BEGIN
(0.008023s) ALTER TABLE "organizations" ADD COLUMN "auth_github_enabled"
boolean DEFAULT false NOT NULL
(0.000556s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160819121416_add_github_auth_to_organizations.rb') RETURNING "filename"
(0.001528s) COMMIT
Finished applying migration 20160819121416_add_github_auth_to_organizations.
rb, direction: up, took 0.012329 seconds
Begin applying migration 20160822093606_add_github_user_id_to_user_creations
.rb, direction: up
(0.000616s) BEGIN
(0.000540s) ALTER TABLE "user_creations" ADD COLUMN "github_user_id" bigint
(0.000924s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160822093606_add_github_user_id_to_user_creations.rb') RETURNING
"filename"
(0.001087s) COMMIT
Finished applying migration 20160822093606
_add_github_user_id_to_user_creations.rb, direction: up, took 0.004924
seconds
Begin applying migration 20160824084904_add_state_id_index_to_visualizations
.rb, direction: up
(0.005281s)
CREATE INDEX CONCURRENTLY "visualizations_state_id_index" ON
"visualizations" ("state_id");

(0.000910s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160824084904_add_state_id_index_to_visualizations.rb') RETURNING
"filename"
Finished applying migration 20160824084904
_add_state_id_index_to_visualizations.rb, direction: up, took 0.006901
seconds
Begin applying migration 20160916073130
_add_additional_search_filter_to_ldap_configurations.rb, direction: up
(0.000298s) BEGIN
(0.000547s) ALTER TABLE "ldap_configurations" ADD COLUMN
"additional_search_filter" text
(0.000424s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160916073130_add_additional_search_filter_to_ldap_configurations.rb')
RETURNING "filename"
(0.000742s) COMMIT
Finished applying migration 20160916073130
_add_additional_search_filter_to_ldap_configurations.rb, direction: up,
took 0.002992 seconds
Begin applying migration 20160916073131_create_legends.rb, direction: up
(0.000303s) BEGIN
(0.006851s) CREATE TABLE "legends" ("id" Uuid DEFAULT uuid_generate_v4()
PRIMARY KEY, "created_at" timestamp DEFAULT CURRENT_TIMESTAMP, "updated_at"
timestamp DEFAULT CURRENT_TIMESTAMP, "layer_id" uuid NOT NULL, "title" text,
"pre_html" text, "post_html" text, "type" text NOT NULL, "definition" json
NOT NULL)
(0.000463s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160916073131_create_legends.rb') RETURNING "filename"
(0.001863s) COMMIT
Finished applying migration 20160916073131_create_legends.rb, direction: up,
took 0.010741 seconds
Begin applying migration 20160916131013
_create_connector_providers_configurations.rb, direction: up
(0.000319s) BEGIN
(0.008035s) CREATE TABLE "connector_providers" ("id" Uuid DEFAULT
uuid_generate_v4() PRIMARY KEY, "created_at" timestamp DEFAULT
CURRENT_TIMESTAMP, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP, "name"
text NOT NULL)
(0.002611s) CREATE INDEX "connector_providers_name_index" ON
"connector_providers" ("name")
(0.005978s) CREATE TABLE "connector_configurations" ("id" Uuid DEFAULT
uuid_generate_v4() PRIMARY KEY, "created_at" timestamp DEFAULT
CURRENT_TIMESTAMP, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP,
"enabled" Boolean NOT NULL, "max_rows" integer NULL, "user_id" uuid NULL
REFERENCES "users" ON DELETE CASCADE, "organization_id" uuid NULL
REFERENCES "organizations" ON DELETE CASCADE, "connector_provider_id" uuid
NOT NULL REFERENCES "connector_providers" ON DELETE RESTRICT)
(0.004131s) CREATE INDEX "connector_configurations_user_id_index" ON
"connector_configurations" ("user_id")
(0.002701s) CREATE INDEX "connector_configurations_organization_id_index"
ON "connector_configurations" ("organization_id")
(0.003465s) CREATE INDEX
"connector_configurations_connector_provider_id_index" ON
"connector_configurations" ("connector_provider_id")
(0.000529s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160916131013_create_connector_providers_configurations.rb') RETURNING
"filename"
(0.001068s) COMMIT
Finished applying migration 20160916131013
_create_connector_providers_configurations.rb, direction: up, took 0.031988
seconds
Begin applying migration 20160920104742
_drop_log_id_fk_from_migration_exports.rb, direction: up
(0.000451s) BEGIN
(0.000852s) ALTER TABLE "user_migration_exports" DROP CONSTRAINT
"user_migration_exports_log_id_fkey"
(0.000658s) ALTER TABLE "user_migration_imports" DROP CONSTRAINT
"user_migration_imports_log_id_fkey"
(0.000448s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160920104742_drop_log_id_fk_from_migration_exports.rb') RETURNING
"filename"
(0.001985s) COMMIT
Finished applying migration 20160920104742
_drop_log_id_fk_from_migration_exports.rb, direction: up, took 0.005524
seconds
Begin applying migration 20160926140426_add_viewer_to_user_creations.rb,
direction: up
(0.000342s) BEGIN
(0.009956s) ALTER TABLE "user_creations" ADD COLUMN "viewer" boolean
DEFAULT false NOT NULL
(0.000436s) INSERT INTO "schema_migrations" ("filename") VALUES (
'20160926140426_add_viewer_to_user_creations.rb') RETURNING "filename"
(0.002032s) COMMIT
Finished applying migration 20160926140426_add_viewer_to_user_creations.rb,
direction: up, took 0.013757 seconds



and after that if write

RAILS_ENV=development bundle exec rake cartodb:db:setup_user



it give me


(0.000622s) SET standard_conforming_strings = ON
(0.000337s) SET client_min_messages = 'WARNING'
(0.000360s) SET DateStyle = 'ISO'
(0.009907s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" =
'external_sources') AND ("pg_namespace"."nspname" !~*
'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.006241s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" =
'shared_entities') AND ("pg_namespace"."nspname" !~*
'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.004303s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'permissions')
AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY
"pg_attribute"."attnum"
(0.007185s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'user_tables')
AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY
"pg_attribute"."attnum"
(0.004659s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'maps') AND (
"pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY
"pg_attribute"."attnum"
(0.002308s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'layers') AND
("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY
"pg_attribute"."attnum"
(0.004600s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'likes') AND (
"pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY
"pg_attribute"."attnum"
(0.002687s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" =
'synchronization_oauths') AND ("pg_namespace"."nspname" !~*
'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.002865s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'logs') AND (
"pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY
"pg_attribute"."attnum"
(0.003530s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'data_imports'
) AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY
"pg_attribute"."attnum"
(0.004135s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" =
'external_data_imports') AND ("pg_namespace"."nspname" !~*
'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.002692s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" =
'feature_flags') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema'
)) ORDER BY "pg_attribute"."attnum"
(0.007068s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute".
"atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"
."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class".
"oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null",
COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS
"primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN
"pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN
"pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN
"pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT
OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND
("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index"
ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index".
"indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE)
AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'users') AND (
"pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY
"pg_attribute"."attnum"
Ignoring statsd, because there were a error loading the config
rake aborted!
You should provide a valid e-mail


Tasks: TOP => cartodb:db:setup_user
(See full trace by running task with --trace)

what's wrong? where is the mistake?

Best regards

Claudio



Il giorno martedì 4 ottobre 2016 17:32:32 UTC+2, Nacho Sanchez ha scritto:
>
> It is. Please write here if you find any problem.
>
> On Tue, Oct 4, 2016 at 5:25 PM, Claudio Pellegrino <cla.p...@gmail.com
> <javascript:>> wrote:
>
>> Is the installation guide updated? Can someone helps me? Can I find a
>> script sh?
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "cartodb" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to cartodb+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> *Juan Ignacio Sánchez Lara*
> CARTO Backend Engineer
> Twitter: @juanignaciosl <https://twitter.com/juanignaciosl>
>
> *CARTO <http://www.carto.com> — Predict Through Location*
>
> Live sessions to learn CARTO <http://carto.com/webinars/>
>

Nacho Sanchez

unread,
Oct 5, 2016, 3:15:50 AM10/5/16
to car...@googlegroups.com
1.- Please post the python requirements error trace so we can have a look.

2.- We recently had some discussion about the best order for those actions
<https://github.com/CartoDB/cartodb/pull/7506>. Please try this instead:
RAILS_ENV=development bundle exec rake db:setup
RAILS_ENV=development bundle exec rake db:migrate

On Tue, Oct 4, 2016 at 8:07 PM, Claudio Pellegrino <cla.p...@gmail.com>
wrote:
> name_to_user_tables.rb, direction: up, took 0.002926 seconds
> .rb, direction: up, took 0.003051 seconds
> import_to_management_db.rb, direction: up, took 0.026951 seconds
> metadata_to_layer.rb, direction: up, took 0.003006 seconds
> Begin applying migration 20120809105200_add_default_
> map_and_layers_to_tables.rb, direction: up
> (0.000299s) BEGIN
> (0.000421s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20120809105200_add_default_map_and_layers_to_tables.rb') RETURNING
> "filename"
> (0.000650s) COMMIT
> Finished applying migration 20120809105200_add_default_
> map_and_layers_to_tables.rb, direction: up, took 0.002015 seconds
> Begin applying migration 20120809105233_copy_infowindow_metadata_to_model.
> rb, direction: up
> (0.000323s) BEGIN
> (0.000454s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20120809105233_copy_infowindow_metadata_to_model.rb') RETURNING
> "filename"
> (0.000702s) COMMIT
> Finished applying migration 20120809105233_copy_
> infowindow_metadata_to_model.rb, direction: up, took 0.002318 seconds
> active_time_to_users.rb, direction: up, took 0.003073 seconds
> created_count_to_data_imports.rb, direction: up, took 0.002933 seconds
> Begin applying migration 20121218112426_add_table_names_to_data_imports.rb
> , direction: up
> (0.000295s) BEGIN
> (0.000492s) ALTER TABLE "data_imports" ADD COLUMN "table_names" text
> (0.000404s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20121218112426_add_table_names_to_data_imports.rb') RETURNING "filename"
> (0.000600s) COMMIT
> Finished applying migration 20121218112426_add_table_names_to_data_imports
> .rb, direction: up, took 0.002589 seconds
> Begin applying migration 20130212094523_add_updated_at_to_layers.rb,
> direction: up
> (0.001726s) BEGIN
> (0.001539s) ALTER TABLE "layers" ADD COLUMN "updated_at" timestamp
> (0.001066s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20130212094523_add_updated_at_to_layers.rb') RETURNING "filename"
> (0.000844s) COMMIT
> Finished applying migration 20130212094523_add_updated_at_to_layers.rb,
> direction: up, took 0.006649 seconds
> Begin applying migration 20130212112825_add_updated_at_to_maps.rb,
> direction: up
> (0.000328s) BEGIN
> (0.000610s) ALTER TABLE "maps" ADD COLUMN "updated_at" timestamp
> (0.000414s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20130212112825_add_updated_at_to_maps.rb') RETURNING "filename"
> (0.000762s) COMMIT
> Finished applying migration 20130212112825_add_updated_at_to_maps.rb,
> direction: up, took 0.003036 seconds
> Begin applying migration 20130220145819_add_default_to_layers_updated_at.
> rb, direction: up
> (0.000315s) BEGIN
> (0.000553s) ALTER TABLE layers ALTER COLUMN updated_at SET DEFAULT NOW()
> (0.000416s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20130220145819_add_default_to_layers_updated_at.rb') RETURNING "filename"
> (0.000679s) COMMIT
> Finished applying migration 20130220145819_add_default_to_
> layers_updated_at.rb, direction: up, took 0.002777 seconds
> .rb, direction: up, took 0.002979 seconds
> default_user_max_layers.rb, direction: up, took 0.006314 seconds
> block_price_to_users.rb, direction: up, took 0.002791 seconds
> Begin applying migration 20130917144013_add_geocoding_quota_to_users.rb,
> direction: up
> (0.000336s) BEGIN
> (0.000589s) ALTER TABLE "users" ADD COLUMN "geocoding_quota" integer
> (0.000408s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20130917144013_add_geocoding_quota_to_users.rb') RETURNING "filename"
> (0.000705s) COMMIT
> Finished applying migration 20130917144013_add_geocoding_quota_to_users.rb
> , direction: up, took 0.003296 seconds
> Begin applying migration 20130918091950_create_geocodings.rb, direction:
> up
> (0.000357s) BEGIN
> (0.010476s) CREATE TABLE "geocodings" ("id" serial PRIMARY KEY, "user_id"
> integer, "table_name" Text, "total_rows" integer, "processed_rows" integer
> , "created_at" timestamp DEFAULT CURRENT_TIMESTAMP, "updated_at"
> timestamp DEFAULT CURRENT_TIMESTAMP)
> .rb, direction: up, took 0.004274 seconds
> Begin applying migration 20131008154516_synchronizations.rb, direction: up
> (0.000372s) BEGIN
> (0.008069s) CREATE TABLE "synchronizations" ("id" text NOT NULL PRIMARY
> KEY, "name" text, "interval" integer, "url" text, "state" text, "user_id"
> integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL,
> uuid_generate_v4() NOT NULL PRIMARY KEY, "seats" integer, "quota_in_bytes"
> .rb, direction: up, took 0.019836 seconds
> rb, direction: up, took 0.003359 seconds
> Begin applying migration 20140228160605_drop_total_rows_from_geocodings.rb
> , direction: up
> (0.000387s) BEGIN
> (0.000668s) ALTER TABLE "geocodings" DROP COLUMN "total_rows"
> (0.000415s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20140228160605_drop_total_rows_from_geocodings.rb') RETURNING "filename"
> (0.000594s) COMMIT
> Finished applying migration 20140228160605_drop_total_rows_from_geocodings
> .rb, direction: up, took 0.003082 seconds
> up, took 0.460581 seconds
> Begin applying migration 20140305112732_add_extra_fields_to_geocodings.rb,
> direction: up
> (0.001041s) BEGIN
> (0.001310s) ALTER TABLE "geocodings" ADD COLUMN "kind" text, ADD COLUMN
> "country_code" text, ADD COLUMN "geometry_type" text
> (0.000583s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20140305112732_add_extra_fields_to_geocodings.rb') RETURNING "filename"
> (0.001163s) COMMIT
> Finished applying migration 20140305112732_add_extra_fields_to_geocodings.
> rb, direction: up, took 0.005487 seconds
> Begin applying migration 20140307123930_add_service_
> name_and_service_item_id_to_synchronizations.rb, direction: up
> (0.000274s) BEGIN
> (0.000639s) ALTER TABLE "synchronizations" ADD COLUMN "service_name" text
> (0.000556s) ALTER TABLE "synchronizations" ADD COLUMN "service_item_id"
> text
> (0.000451s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20140307123930_add_service_name_and_service_item_id_to_
> synchronizations.rb') RETURNING "filename"
> .rb, direction: up, took 0.005658 seconds
> options_to_visualizations.rb, direction: up, took 0.004420 seconds
> Begin applying migration 20140414160500_add_used_credits_to_geocodings.rb,
> direction: up
> (0.000330s) BEGIN
> (0.000869s) ALTER TABLE "geocodings" ADD COLUMN "used_credits" bigint
> (0.000523s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20140414160500_add_used_credits_to_geocodings.rb') RETURNING "filename"
> (0.000688s) COMMIT
> Finished applying migration 20140414160500_add_used_credits_to_geocodings.
> rb, direction: up, took 0.003644 seconds
> (0.008263s) CREATE TABLE "permissions" ("id" Uuid DEFAULT uuid_generate_v4
> () NOT NULL PRIMARY KEY, "owner_id" Uuid NOT NULL, "owner_username" Text
> NOT NULL, "access_control_list" Text DEFAULT '[]' NOT NULL, "created_at"
> timestamp DEFAULT CURRENT_TIMESTAMP, "updated_at" timestamp DEFAULT
> CURRENT_TIMESTAMP)
> (0.000623s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20140609105428_create_permissions.rb') RETURNING "filename"
> (0.000930s) COMMIT
> Finished applying migration 20140609105428_create_permissions.rb,
> direction: up, took 0.012045 seconds
> Begin applying migration 20140611072144_add_permission_to_visualizations.
> rb, direction: up
> (0.000323s) BEGIN
> (0.000566s) ALTER TABLE "visualizations" ADD COLUMN "permission_id" uuid
> (0.000433s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20140611072144_add_permission_to_visualizations.rb') RETURNING "filename"
> (0.000671s) COMMIT
> Finished applying migration 20140611072144_add_permission_
> to_visualizations.rb, direction: up, took 0.002860 seconds
> Begin applying migration 20140616132854_add_database_schema_to_users.rb,
> direction: up
> (0.000301s) BEGIN
> (0.014690s) ALTER TABLE "users" ADD COLUMN "database_schema" text DEFAULT
> 'public'
> (0.000460s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20140616132854_add_database_schema_to_users.rb') RETURNING "filename"
> (0.002102s) COMMIT
> Finished applying migration 20140616132854_add_database_schema_to_users.rb
> , direction: up, took 0.018526 seconds
> Begin applying migration 20140617110548_add_avatar_url_to_organizations.rb
> , direction: up
> (0.000337s) BEGIN
> (0.000529s) ALTER TABLE "organizations" ADD COLUMN "avatar_url" text
> (0.000414s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20140617110548_add_avatar_url_to_organizations.rb') RETURNING "filename"
> (0.000802s) COMMIT
> Finished applying migration 20140617110548_add_avatar_url_to_organizations
> .rb, direction: up, took 0.003025 seconds
> to_shared_entities.rb, direction: up, took 0.005085 seconds
> rb, direction: up, took 0.024266 seconds
> Begin applying migration 20140627102015_add_extra_fields_to_organizations.
> rb, direction: up
> (0.000453s) BEGIN
> (0.000618s) ALTER TABLE "organizations" ADD COLUMN "website" text
> (0.000429s) ALTER TABLE "organizations" ADD COLUMN "description" text
> (0.000405s) ALTER TABLE "organizations" ADD COLUMN "display_name" text
> (0.001422s) ALTER TABLE "organizations" ADD COLUMN "discus_shortname" text
> (0.001207s) ALTER TABLE "organizations" ADD COLUMN "twitter_username" text
> (0.000606s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20140627102015_add_extra_fields_to_organizations.rb') RETURNING
> "filename"
> (0.000730s) COMMIT
> Finished applying migration 20140627102015_add_extra_
> fields_to_organizations.rb, direction: up, took 0.008414 seconds
> geocoding_limit_to_users.rb, direction: up, took 0.003819 seconds
> Begin applying migration 20140707145307_add_auth_token_
> to_users_and_organizations.rb, direction: up
> (0.000302s) BEGIN
> (0.000502s) ALTER TABLE "organizations" ADD COLUMN "auth_token" text
> (0.000574s) ALTER TABLE "users" ADD COLUMN "auth_token" text
> (0.000415s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20140707145307_add_auth_token_to_users_and_organizations.rb') RETURNING
> "filename"
> (0.000760s) COMMIT
> Finished applying migration 20140707145307_add_auth_token_
> to_users_and_organizations.rb, direction: up, took 0.003775 seconds
> Begin applying migration 20140711105152_add_source_to_visualizations.rb,
> direction: up
> (0.000321s) BEGIN
> (0.000491s) ALTER TABLE "visualizations" ADD COLUMN "source" text
> (0.000546s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20140711105152_add_source_to_visualizations.rb') RETURNING "filename"
> (0.000721s) COMMIT
> Finished applying migration 20140711105152_add_source_to_visualizations.rb
> , direction: up, took 0.002939 seconds
> Begin applying migration 20140718133411_add_block_prices_to_organizations.
> rb, direction: up
> (0.000329s) BEGIN
> (0.000482s) ALTER TABLE "organizations" ADD COLUMN "geocoding_block_price"
> integer
> (0.000486s) ALTER TABLE "organizations" ADD COLUMN "map_view_block_price"
> integer
> (0.000448s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20140718133411_add_block_prices_to_organizations.rb') RETURNING
> "filename"
> (0.000613s) COMMIT
> Finished applying migration 20140718133411_add_block_
> prices_to_organizations.rb, direction: up, took 0.003459 seconds
> twitter_datasource_limit.rb, direction: up, took 0.019285 seconds
> Begin applying migration 20140818144705_create_search_tweets.rb, direction
> : up
> (0.000424s) BEGIN
> (0.000343s) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
> (0.006637s) CREATE TABLE "search_tweets" ("id" Uuid DEFAULT
> uuid_generate_v4() NOT NULL PRIMARY KEY, "user_id" Uuid NOT NULL,
> , direction: up
> (0.000361s) BEGIN
> (0.000616s) ALTER TABLE "geocodings" ADD COLUMN "country_column" text
> (0.000413s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20140924101304_add_country_column_to_geocoding.rb') RETURNING "filename"
> (0.000628s) COMMIT
> Finished applying migration 20140924101304_add_country_column_to_geocoding
> .rb, direction: up, took 0.003020 seconds
> rb, direction: up, took 0.048043 seconds
> , direction: up
> (0.000706s) BEGIN
> (0.015709s) ALTER TABLE "users" ADD COLUMN "available_for_hire" boolean
> DEFAULT false
> (0.000473s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20141107102826_add_available_for_hire_to_users.rb') RETURNING "filename"
> (0.002035s) COMMIT
> Finished applying migration 20141107102826_add_available_for_hire_to_users
> .rb, direction: up, took 0.020157 seconds
> dashboard_flag_to_users_and_organizations.rb, direction: up, took 0.031333
> seconds
> rb, direction: up, took 0.004120 seconds
> Begin applying migration 20141218140844_add_resque_ppid_to_data_import.rb,
> direction: up
> (0.000349s) BEGIN
> (0.000838s) ALTER TABLE "data_imports" ADD COLUMN "resque_ppid" integer
> (0.000505s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20141218140844_add_resque_ppid_to_data_import.rb') RETURNING "filename"
> (0.000672s) COMMIT
> Finished applying migration 20141218140844_add_resque_ppid_to_data_import.
> rb, direction: up, took 0.003298 seconds
> Begin applying migration 20141218175200_add_user_id_index_to_data_imports.
> rb, direction: up
> (0.000299s) BEGIN
> (0.002999s)
> CREATE INDEX data_imports_users_id_idx ON data_imports (user_id)
>
> (0.002447s)
> CREATE INDEX data_imports_users_id_state_idx ON data_imports (
> user_id, state)
>
> (0.000459s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20141218175200_add_user_id_index_to_data_imports.rb') RETURNING
> "filename"
> (0.000586s) COMMIT
> Finished applying migration 20141218175200_add_user_id_
> index_to_data_imports.rb, direction: up, took 0.007802 seconds
> Begin applying migration 20141229083623_remove_ghost_
> tables_enabled_from_users.rb, direction: up
> (0.000330s) BEGIN
> (0.000764s) ALTER TABLE "users" DROP COLUMN "ghost_tables_enabled"
> (0.000485s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20141229083623_remove_ghost_tables_enabled_from_users.rb') RETURNING
> "filename"
> (0.000678s) COMMIT
> Finished applying migration 20141229083623_remove_ghost_
> tables_enabled_from_users.rb, direction: up, took 0.003063 seconds
> Begin applying migration 20150119141635_add_private_maps_enabled_to_users.
> rb, direction: up
> (0.000293s) BEGIN
> (0.016832s) ALTER TABLE "users" ADD COLUMN "private_maps_enabled" boolean
> DEFAULT false
> (0.000523s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20150119141635_add_private_maps_enabled_to_users.rb') RETURNING
> "filename"
> (0.002733s) COMMIT
> Finished applying migration 20150119141635_add_private_
> maps_enabled_to_users.rb, direction: up, took 0.021420 seconds
> Begin applying migration 20150119142000_add_parent_id_to_visualizations.rb
> , direction: up
> (0.000512s) BEGIN
> (0.000602s) ALTER TABLE "visualizations" ADD COLUMN "parent_id" uuid
> (0.000428s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20150119142000_add_parent_id_to_visualizations.rb') RETURNING "filename"
> (0.000761s) COMMIT
> Finished applying migration 20150119142000_add_parent_id_to_visualizations
> .rb, direction: up, took 0.003105 seconds
> file_size_to_users.rb, direction: up, took 0.022891 seconds
> id::uuid);
> (0.002104s) ALTER TABLE "external_sources" ADD FOREIGN KEY (
> "visualization_id") REFERENCES "visualizations"
> (0.000467s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20150407094700_alter_visualization_id_type_uuid.rb') RETURNING "filename"
> (0.002319s) COMMIT
> Finished applying migration 20150407094700_alter_
> visualization_id_type_uuid.rb, direction: up, took 0.031574 seconds
> Begin applying migration 20150414093434_add_more_dashboard_indices.rb,
> direction: up
> (0.000447s) BEGIN
> (0.003945s)
> CREATE INDEX external_sources_visualization_id_idx ON
> external_sources (visualization_id)
>
> (0.005132s)
> CREATE INDEX visualizations_permission_id_idx ON visualizations (
> permission_id)
>
> (0.000595s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20150414093434_add_more_dashboard_indices.rb') RETURNING "filename"
> (0.000828s) COMMIT
> Finished applying migration 20150414093434_add_more_dashboard_indices.rb,
> direction: up, took 0.011983 seconds
> Begin applying migration 20150420131158_add_region_columns_to_geocodings.
> rb, direction: up
> (0.000264s) BEGIN
> (0.000668s) ALTER TABLE "geocodings" ADD COLUMN "region_code" text
> (0.000449s) ALTER TABLE "geocodings" ADD COLUMN "region_column" text
> (0.000846s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20150420131158_add_region_columns_to_geocodings.rb') RETURNING "filename"
> (0.001053s) COMMIT
> Finished applying migration 20150420131158_add_region_
> columns_to_geocodings.rb, direction: up, took 0.004853 seconds
> .rb, direction: up, took 0.005390 seconds
> 0.003913 seconds
> rows_to_geocodings.rb, direction: up, took 0.014374 seconds
> Begin applying migration 20150715133959_remove_dynamic_enable_field.rb,
> direction: up
> (0.000373s) BEGIN
> (0.000918s) ALTER TABLE "users" DROP COLUMN "dynamic_cdn_enabled"
> (0.000450s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20150715133959_remove_dynamic_enable_field.rb') RETURNING "filename"
> (0.000774s) COMMIT
> Finished applying migration 20150715133959_remove_dynamic_enable_field.rb,
> direction: up, took 0.003441 seconds
> Begin applying migration 20150720093340_add_original_url_to_data_imports.
> rb, direction: up
> (0.000313s) BEGIN
> (0.015750s) ALTER TABLE "data_imports" ADD COLUMN "original_url" text
> DEFAULT ''
> (0.000527s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20150720093340_add_original_url_to_data_imports.rb') RETURNING "filename"
> (0.002499s) COMMIT
> Finished applying migration 20150720093340_add_original_
> url_to_data_imports.rb, direction: up, took 0.020196 seconds
> Begin applying migration 20150722102858_add_log_to_geocodings.rb,
> direction: up
> (0.000834s) BEGIN
> (0.000855s) ALTER TABLE "geocodings" ADD COLUMN "log_id" uuid
> (0.000454s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20150722102858_add_log_to_geocodings.rb') RETURNING "filename"
> (0.000776s) COMMIT
> Finished applying migration 20150722102858_add_log_to_geocodings.rb,
> direction: up, took 0.004032 seconds
> Begin applying migration 20150724121847_remove_table_count_from_users.rb,
> direction: up
> (0.000299s) BEGIN
> (0.000772s) ALTER TABLE "users" DROP COLUMN "tables_count"
> (0.000418s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20150724121847_remove_table_count_from_users.rb') RETURNING "filename"
> (0.000704s) COMMIT
> Finished applying migration 20150724121847_remove_table_count_from_users.
> rb, direction: up, took 0.002997 seconds
> Begin applying migration 20150727105500_add_admin_email_to_organizations.
> rb, direction: up
> (0.000294s) BEGIN
> (0.000600s) ALTER TABLE "organizations" ADD COLUMN "admin_email" text
> (0.001298s)
> update organizations o set admin_email = (select email from users u
> where o.owner_id = u.id);
>
> (0.000425s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20150727105500_add_admin_email_to_organizations.rb') RETURNING "filename"
> (0.000772s) COMMIT
> Finished applying migration 20150727105500_add_admin_
> email_to_organizations.rb, direction: up, took 0.004454 seconds
> , direction: up, took 0.004462 seconds
> visualizations_type_index.rb') RETURNING "filename"
> (0.000824s) COMMIT
> Finished applying migration 20150814103121_add_external_
> data_import_sync_id_index_and_visualizations_type_index.rb, direction: up,
> took 0.008059 seconds
> Begin applying migration 20150814133226_add_visualizations_display_name.rb
> , direction: up
> (0.000218s) BEGIN
> (0.000421s) ALTER TABLE "visualizations" ADD COLUMN "display_name" text
> (0.000479s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20150814133226_add_visualizations_display_name.rb') RETURNING "filename"
> (0.000727s) COMMIT
> Finished applying migration 20150814133226_add_visualizations_display_name
> .rb, direction: up, took 0.002816 seconds
> options_to_organizations.rb, direction: up, took 0.013338 seconds
> synchronization_id_to_uuid.rb, direction: up, took 0.044586 seconds
> uuid_generate_v4() PRIMARY KEY, "user_id" Uuid NOT NULL, "group_id" Uuid
> , direction: up, took 0.008447 seconds
> Begin applying migration 20150929082455_add_pk_to_visualization_backups.rb
> , direction: up
> (0.000441s) BEGIN
> (0.004168s) ALTER TABLE visualization_backups ADD PRIMARY KEY (
> visualization)
> (0.000568s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20150929082455_add_pk_to_visualization_backups.rb') RETURNING "filename"
> (0.000734s) COMMIT
> Finished applying migration 20150929082455_add_pk_to_visualization_backups
> .rb, direction: up, took 0.006659 seconds
> entities_numeric_pk.rb, direction: up, took 0.008918 seconds
> visualizations_and_bi_datasets.rb, direction: up, took 0.021889 seconds
> Begin applying migration 20151127111900_invert_actor_subject_constraint.rb
> , direction: up
> (0.000405s) BEGIN
> (0.000607s)
> ALTER TABLE likes DROP CONSTRAINT IF EXISTS actor_subject_unique;
>
> (0.002552s)
> ALTER TABLE likes ADD CONSTRAINT subject_actor_unique UNIQUE (
> subject, actor);
>
> (0.000465s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20151127111900_invert_actor_subject_constraint.rb') RETURNING "filename"
> (0.000901s) COMMIT
> Finished applying migration 20151127111900_invert_actor_subject_constraint
> .rb, direction: up, took 0.005720 seconds
> Begin applying migration 20151204101429_add_geocoding_
> quota_default_to_organizations.rb, direction: up
> (0.000320s) BEGIN
> (0.000583s) UPDATE organizations SET geocoding_quota = 0 WHERE
> geocoding_quota IS NULL
> (0.000693s) ALTER TABLE "organizations" ALTER COLUMN "geocoding_quota"
> SET DEFAULT 0, ALTER COLUMN "geocoding_quota" SET NOT NULL
> (0.000434s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20151204101429_add_geocoding_quota_default_to_organizations.rb')
> RETURNING "filename"
> (0.000730s) COMMIT
> Finished applying migration 20151204101429_add_geocoding_
> quota_default_to_organizations.rb, direction: up, took 0.003587 seconds
> Begin applying migration 20151211103229_add_geocoding_type_to_geocodings.
> rb, direction: up
> (0.000444s) BEGIN
> (0.000828s) ALTER TABLE "geocodings" ADD COLUMN "geocoder_type" text
> (0.000481s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20151211103229_add_geocoding_type_to_geocodings.rb') RETURNING "filename"
> (0.000782s) COMMIT
> Finished applying migration 20151211103229_add_geocoding_
> type_to_geocodings.rb, direction: up, took 0.003802 seconds
> via_to_user_creations.rb, direction: up, took 0.014597 seconds
> rb, direction: up, took 0.003468 seconds
> .rb, direction: up, took 0.022322 seconds
> Begin applying migration 20160512103225_add_observatory_general_fields.rb,
> direction: up
> (0.000545s) BEGIN
> (0.016162s) ALTER TABLE "users" ADD COLUMN "obs_general_quota" integer
> DEFAULT 0 NOT NULL
> (0.000880s) ALTER TABLE "users" ADD COLUMN "obs_general_block_price"
> integer
> (0.000714s) ALTER TABLE "users" ADD COLUMN "soft_obs_general_limit"
> boolean
> (0.008676s) ALTER TABLE "organizations" ADD COLUMN "obs_general_quota"
> integer DEFAULT 0 NOT NULL
> (0.001931s) ALTER TABLE "organizations" ADD COLUMN
> "obs_general_block_price" integer
> (0.000812s) ALTER TABLE "user_creations" ADD COLUMN
> "soft_obs_general_limit" boolean
> (0.000545s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20160512103225_add_observatory_general_fields.rb') RETURNING "filename"
> (0.002733s) COMMIT
> Finished applying migration 20160512103225_add_observatory_general_fields.
> rb, direction: up, took 0.035797 seconds
> quota_to_organizations.rb, direction: up, took 0.013307 seconds
> rb, direction: up, took 0.003514 seconds
> .rb, direction: up, took 0.002772 seconds
> Begin applying migration 20160808114841_create_states.rb, direction: up
> (0.000312s) BEGIN
> (0.010124s) CREATE TABLE "states" ("id" Uuid DEFAULT uuid_generate_v4()
> PRIMARY KEY, "created_at" timestamp DEFAULT CURRENT_TIMESTAMP,
> "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP, "json" json DEFAULT '{}'
> NOT NULL, "user_id" uuid NOT NULL REFERENCES "users" ON DELETE CASCADE,
> "visualization_id" uuid NOT NULL REFERENCES "visualizations" ON DELETE
> CASCADE)
> (0.003177s) CREATE INDEX "states_visualization_id_user_id_index" ON
> "states" ("visualization_id", "user_id")
> (0.000522s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20160808114841_create_states.rb') RETURNING "filename"
> (0.000992s) COMMIT
> Finished applying migration 20160808114841_create_states.rb, direction: up
> , took 0.016662 seconds
> Begin applying migration 20160808114842_add_state_id_to_visualizations.rb,
> direction: up
> (0.000369s) BEGIN
> (0.001139s) ALTER TABLE "visualizations" ADD COLUMN "state_id" uuid NULL
> REFERENCES "states"
> (0.000477s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20160808114842_add_state_id_to_visualizations.rb') RETURNING "filename"
> (0.001661s) COMMIT
> Finished applying migration 20160808114842_add_state_id_to_visualizations.
> rb, direction: up, took 0.004549 seconds
> Begin applying migration 20160819090641_add_github_user_id_to_users.rb,
> direction: up
> (0.001319s) BEGIN
> (0.000712s) ALTER TABLE "users" ADD COLUMN "github_user_id" bigint
> (0.003091s) CREATE INDEX "users_github_user_id_index" ON "users" (
> "github_user_id")
> (0.000473s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20160819090641_add_github_user_id_to_users.rb') RETURNING "filename"
> (0.001371s) COMMIT
> Finished applying migration 20160819090641_add_github_user_id_to_users.rb,
> direction: up, took 0.008408 seconds
> Begin applying migration 20160819121416_add_github_auth_to_organizations.
> rb, direction: up
> (0.000460s) BEGIN
> (0.008023s) ALTER TABLE "organizations" ADD COLUMN "auth_github_enabled"
> boolean DEFAULT false NOT NULL
> (0.000556s) INSERT INTO "schema_migrations" ("filename") VALUES (
> '20160819121416_add_github_auth_to_organizations.rb') RETURNING "filename"
> (0.001528s) COMMIT
> Finished applying migration 20160819121416_add_github_
> auth_to_organizations.rb, direction: up, took 0.012329 seconds
>> wrote:
>>
>>> Is the installation guide updated? Can someone helps me? Can I find a
>>> script sh?
>>>
>>> --
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "cartodb" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to cartodb+u...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> *Juan Ignacio Sánchez Lara*
>> CARTO Backend Engineer
>> Twitter: @juanignaciosl <https://twitter.com/juanignaciosl>
>>
>> *CARTO <http://www.carto.com> — Predict Through Location*
>>
>> Live sessions to learn CARTO <http://carto.com/webinars/>
>>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "cartodb" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cartodb+u...@googlegroups.com.

Claudio Pellegrino

unread,
Oct 5, 2016, 4:26:11 AM10/5/16
to cartodb
thanks for the very quickly reply :-)

another doubt: after the windshaft installation i Started the service (node app.js development).
is it necessary to leave running for continue the installation of ruby and editor?


Windshaft-cartodb$ node app.js development
Using configuration file "/home/cartodbvm/CartoDB-SQL-API/Windshaft-cartodb/config/environments/development.js"
Windshaft tileserver 2.78.1 started on 127.0.0.1:8181 PID=68648 (development)
[2016-09-30 15:09:19.387] [INFO] [default] - undefined GET 127.0.0.1:8181/ 200 12 ms -> text/html; charset=utf-8 (undefined)
[2016-09-30 15:09:19.516] [INFO] [default] - undefined GET 127.0.0.1:8181/favicon.ico 404 4 ms -> text/html; charset=utf-8 (undefined)
[2016-09-30 15:09:19.536] [INFO] [default] - undefined GET 127.0.0.1:8181/favicon.ico 404 1 ms -> text/html; charset=utf-8 (undefined)



Message has been deleted

Claudio Pellegrino

unread,
Oct 5, 2016, 5:27:57 AM10/5/16
to cartodb
my python requirements error trace is in the txt file

thanks
error.txt

Nacho Sanchez

unread,
Oct 5, 2016, 5:35:20 AM10/5/16
to car...@googlegroups.com
Keeping Windshaft running will do no harm ;-)

About Python, please do this and retry:

export CPLUS_INCLUDE_PATH=/usr/include/gdal
export C_INCLUDE_PATH=/usr/include/gdal
export PATH=$PATH:/usr/include/gdal
(it's commented in the installation instructions, although not with that same error)



On Wed, Oct 5, 2016 at 11:23 AM, Claudio Pellegrino <cla.p...@gmail.com> wrote:
my python requirements error trace:


sudo pip install
--no-use-wheel -r python_requirements.
txt
DEPRECATION
: --no-use-wheel is deprecated and will be removed in the future.  Please use --no-binary :all: instead.
The directory '/home/cartodbvm/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '
/home/cartodbvm/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting chardet==2.3.0 (from -r python_requirements.txt (line 1))
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
 
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
 
InsecurePlatformWarning
 
Downloading chardet-2.3.0.tar.gz (164kB)
   
100% |████████████████████████████████| 174kB 889kB/s
Requirement already satisfied (use --upgrade to upgrade): argparse==1.2.1 in /usr/lib/python2.7 (from -r python_requirements.txt (line 2))
Collecting brewery==0.6 (from -r python_requirements.txt (line 3))
 
Downloading brewery-0.6.0.tar.gz (50kB)
   
100% |████████████████████████████████| 51kB 3.4MB/s
Collecting redis==2.4.9 (from -r python_requirements.txt (line 4))
 
Downloading redis-2.4.9.tar.gz
Collecting python-varnish==0.1.2 (from -r python_requirements.txt (line 5))
 
Downloading python-varnish-0.1.2.tar.gz
Collecting gdal==1.10.0 (from -r python_requirements.txt (line 6))
 
Downloading GDAL-1.10.0.tar.gz (449kB)
   
100% |████████████████████████████████| 450kB 695kB/s
Collecting csvkit==0.9.0 (from -r python_requirements.txt (line 7))
 
Downloading csvkit-0.9.0.tar.gz
Collecting openpyxl==2.1.3 (from -r python_requirements.txt (line 8))
 
Downloading openpyxl-2.1.3.tar.gz (96kB)
   
100% |████████████████████████████████| 102kB 1.3MB/s
Collecting xlrd>=0.7.1 (from csvkit==0.9.0->-r python_requirements.txt (line 7))
 
Downloading xlrd-1.0.0.tar.gz (2.6MB)
   
100% |████████████████████████████████| 2.6MB 234kB/s
Collecting sqlalchemy>=0.6.6 (from csvkit==0.9.0->-r python_requirements.txt (line 7))
 
Downloading SQLAlchemy-1.0.15.tar.gz (4.8MB)
   
100% |████████████████████████████████| 4.8MB 182kB/s
Collecting six>=1.6.1 (from csvkit==0.9.0->-r python_requirements.txt (line 7))
 
Downloading six-1.10.0.tar.gz
Collecting python-dateutil==2.2 (from csvkit==0.9.0->-r python_requirements.txt (line 7))
 
Downloading python-dateutil-2.2.tar.gz (259kB)
   
100% |████████████████████████████████| 266kB 483kB/s
Collecting dbf==0.94.003 (from csvkit==0.9.0->-r python_requirements.txt (line 7))
 
Downloading dbf-0.94.003.tar.gz (79kB)
   
100% |████████████████████████████████| 81kB 869kB/s
Collecting jdcal (from openpyxl==2.1.3->-r python_requirements.txt (line 8))
 
Downloading jdcal-1.3.tar.gz
Installing collected packages: chardet, brewery, redis, python-varnish, gdal, xlrd, sqlalchemy, jdcal, openpyxl, six, python-dateutil, dbf, csvkit
 
Found existing installation: chardet 2.0.1
    DEPRECATION
: Uninstalling a distutils installed project (chardet) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
   
Uninstalling chardet-2.0.1:
     
Successfully uninstalled chardet-2.0.1
 
Running setup.py install for chardet ... done
 
Running setup.py install for brewery ... done
 
Running setup.py install for redis ... done
 
Running setup.py install for python-varnish ... done
 
Running setup.py install for gdal ... error
   
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8iDtde/gdal/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-02m8J2-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build
/lib.linux-x86_64-2.7
    copying gdal
.py -> build/lib.linux-x86_64-2.7
    copying ogr
.py -> build/lib.linux-x86_64-2.7
    copying osr
.py -> build/lib.linux-x86_64-2.7
    copying gdalconst
.py -> build/lib.linux-x86_64-2.7
    copying gdalnumeric
.py -> build/lib.linux-x86_64-2.7
    creating build
/lib.linux-x86_64-2.7/osgeo
    copying osgeo
/osr.py -> build/lib.linux-x86_64-2.7/osgeo
    copying osgeo
/gdal_array.py -> build/lib.linux-x86_64-2.7/osgeo
    copying osgeo
/ogr.py -> build/lib.linux-x86_64-2.7/osgeo
    copying osgeo
/__init__.py -> build/lib.linux-x86_64-2.7/osgeo
    copying osgeo
/gdal.py -> build/lib.linux-x86_64-2.7/osgeo
    copying osgeo
/gdalnumeric.py -> build/lib.linux-x86_64-2.7/osgeo
    copying osgeo
/gdalconst.py -> build/lib.linux-x86_64-2.7/osgeo
    running build_ext
    building
'osgeo._gdal' extension
    creating build
/temp.linux-x86_64-2.7
    creating build
/temp.linux-x86_64-2.7/extensions
    gcc
-pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include -c extensions/gdal_wrap.cpp -o build/temp.linux-x86_64-2.7/extensions/gdal_wrap.o
    cc1plus
: warning: command line option ‘-Wstrict-prototypes is valid for Ada/C/ObjC but not for C++ [enabled by default]
    extensions
/gdal_wrap.cpp:2853:22: fatal error: cpl_port.h: No such file or directory
    compilation terminated
.
    error
: command 'gcc' failed with exit status 1
   
   
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8iDtde/gdal/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-02m8J2-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-8iDtde/gdal/
/
usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
 
InsecurePlatformWarning








Il giorno mercoledì 5 ottobre 2016 09:15:50 UTC+2, Nacho Sanchez ha scritto:
1.- Please post the python requirements error trace so we can have a look.

2.- We recently had some discussion about the best order for those actions
<https://github.com/CartoDB/cartodb/pull/7506>. Please try this instead:
RAILS_ENV=development bundle exec rake db:setup
RAILS_ENV=development bundle exec rake db:migrate

--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Juan Ignacio Sánchez Lara
CARTO Backend Engineer
Twitter: @juanignaciosl

CARTO — Predict Through Location

Claudio Pellegrino

unread,
Oct 5, 2016, 5:41:56 AM10/5/16
to cartodb
export CPLUS_INCLUDE_PATH=/usr/include/gdal
cartodbvm@cartodbvm
:~/cartodb$ export C_INCLUDE_PATH=/usr/include/gdal
cartodbvm@cartodbvm
:~/cartodb$ export PATH=$PATH:/usr/include/gdal
cartodbvm@cartodbvm
:~/cartodb$ sudo pip install --no-use-wheel -r python_requirements.txt
DEPRECATION
: --no-use-wheel is deprecated and will be removed in the future.  Please use --no-binary :all: instead.

The directory '/home/cartodbvm/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '
/home/cartodbvm/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied (use --upgrade to upgrade): chardet==2.3.0 in /usr/local/lib/python2.7/dist-packages (from -r python_requirements.txt (line 1))

Requirement already satisfied (use --upgrade to upgrade): argparse==1.2.1 in /usr/lib/python2.7 (from -r python_requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): brewery==0.6 in /usr/local/lib/python2.7/dist-packages (from -r python_requirements.txt (line 3))
Requirement already satisfied (use --upgrade to upgrade): redis==2.4.9 in /usr/local/lib/python2.7/dist-packages (from -r python_requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): python-varnish==0.1.2 in /usr/local/lib/python2.7/dist-packages (from -r python_requirements.txt (line 5))

Collecting gdal==1.10.0 (from -r python_requirements.txt (line 6))
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
 
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
 
InsecurePlatformWarning

 
Downloading GDAL-1.10.0.tar.gz (449kB)
   
100% |████████████████████████████████| 450kB 558kB/s
Collecting csvkit==0.9.0 (from -r python_requirements.txt (line 7))
 
Downloading csvkit-0.9.0.tar.gz
Collecting openpyxl==2.1.3 (from -r python_requirements.txt (line 8))
 
Downloading openpyxl-2.1.3.tar.gz (96kB)

   
100% |████████████████████████████████| 102kB 1.8MB/s
Collecting xlrd>=0.7.1 (from csvkit==0.9.0->-r python_requirements.txt (line 7))
 
Downloading xlrd-1.0.0.tar.gz (2.6MB)

   
100% |████████████████████████████████| 2.6MB 232kB/s
Collecting sqlalchemy>=0.6.6 (from csvkit==0.9.0->-r python_requirements.txt (line 7))
 
Downloading SQLAlchemy-1.0.15.tar.gz (4.8MB)

   
100% |████████████████████████████████| 4.8MB 155kB/s
Collecting six>=1.6.1 (from csvkit==0.9.0->-r python_requirements.txt (line 7))
 
Downloading six-1.10.0.tar.gz
Collecting python-dateutil==2.2 (from csvkit==0.9.0->-r python_requirements.txt (line 7))
 
Downloading python-dateutil-2.2.tar.gz (259kB)

   
100% |████████████████████████████████| 266kB 539kB/s
Collecting dbf==0.94.003 (from csvkit==0.9.0->-r python_requirements.txt (line 7))
 
Downloading dbf-0.94.003.tar.gz (79kB)

   
100% |████████████████████████████████| 81kB 537kB/s
Collecting jdcal (from openpyxl==2.1.3->-r python_requirements.txt (line 8))
 
Downloading jdcal-1.3.tar.gz
Installing collected packages: gdal, xlrd, sqlalchemy, jdcal, openpyxl, six, python-dateutil, dbf, csvkit
 
Running setup.py install for gdal ... error
   
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-M6LbM0/gdal/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-w1FOQN-record/install-record.txt --single-version-externally-managed --compile:
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-M6LbM0/gdal/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-w1FOQN-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-M6LbM0/gdal/
/
usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
 
InsecurePlatformWarning

Nacho Sanchez

unread,
Oct 5, 2016, 10:27:20 AM10/5/16
to car...@googlegroups.com
That header missing probably means that you're missing libgdal-dev. Could you double check that you went through that during the installation?

Also, in this thread some fixed are proposed, please check whether it works for you.

--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Claudio Pellegrino

unread,
Oct 5, 2016, 11:21:37 AM10/5/16
to cartodb
thanks

I'm started again with a clean install of Ubuntu 12.04, but same problem..

installing gdal like this

wget http://download.osgeo.org/gdal/1.10.0/gdal-1.10.0.tar.gz
tar xvfz gdal
-1.10.0.tar.gz
cd gdal
-1.10.0
./configure --with-python
make
sudo make install
i have no errors..

is it correct? can i continue the installation?






Il giorno mercoledì 5 ottobre 2016 16:27:20 UTC+2, Nacho Sanchez ha scritto:
That header missing probably means that you're missing libgdal-dev. Could you double check that you went through that during the installation?

Also, in this thread some fixed are proposed, please check whether it works for you.

Nacho Sanchez

unread,
Oct 5, 2016, 11:33:44 AM10/5/16
to car...@googlegroups.com
Uhm. How come are you not following the installation instructions for GDAL? Is that what you did before?

As you see, here are the steps for GDAL:

sudo apt-get install gdal-bin libgdal1-dev libgdal-dev
sudo apt-get install gdal2.1-static-bin

--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Claudio Pellegrino

unread,
Oct 5, 2016, 11:42:09 AM10/5/16
to cartodb
I almost forgot, I tried before your fixes proposed. here the result:

 sudo apt-get install libgdal-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
libgdal
-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
claudio@cartovm
:~/cartodb$ pip install GDAL
Collecting GDAL
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
 
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
 
InsecurePlatformWarning

 
Downloading GDAL-2.1.0.tar.gz (619kB)
   
100% |████████████████████████████████| 624kB 743kB/s
Building wheels for collected packages: GDAL
 
Running setup.py bdist_wheel for GDAL ... error
 
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-yswRfs/GDAL/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp_z42y_pip-wheel- --python-tag cp27:
  running bdist_wheel

  running build
  running build_py
  creating build
  creating build
/lib.linux-x86_64-2.7

  copying gdal
.py -> build/lib.linux-x86_64-2.7
  copying ogr
.py -> build/lib.linux-x86_64-2.7
  copying osr
.py -> build/lib.linux-x86_64-2.7
  copying gdalconst
.py -> build/lib.linux-x86_64-2.7
  copying gdalnumeric
.py -> build/lib.linux-x86_64-2.7
  creating build
/lib.linux-x86_64-2.7/
osgeo
  copying osgeo
/ogr.py -> build/lib.linux-x86_64-2.7/osgeo
  copying osgeo
/gdalnumeric.py -> build/lib.linux-x86_64-2.7/osgeo
  copying osgeo
/__init__.py -> build/lib.linux-x86_64-2.7/osgeo
  copying osgeo
/gnm.py -> build/lib.linux-x86_64-2.7/osgeo
  copying osgeo
/gdal.py -> build/lib.linux-x86_64-2.7/osgeo
  copying osgeo
/gdalconst.py -> build/lib.linux-x86_64-2.7/osgeo
  copying osgeo
/osr.py -> build/lib.linux-x86_64-2.7/osgeo
  copying osgeo
/gdal_array.py -> build/lib.linux-x86_64-2.7/osgeo
  running build_ext
  building
'osgeo._gdal' extension
  creating build
/temp.linux-x86_64-2.7
  creating build
/temp.linux-x86_64-2.7/extensions
  gcc
-pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include -c extensions/gdal_wrap.cpp -o build/temp.linux-x86_64-2.7/extensions/gdal_wrap.o
  cc1plus
: warning: command line option ‘-Wstrict-prototypes is valid for Ada/C/ObjC but not for C++ [enabled by default]
  extensions
/gdal_wrap.cpp:3089:27: fatal error: cpl_vsi_error.h: No such file or directory
  compilation terminated
.

  error
: command 'gcc' failed with exit status 1
 
 
----------------------------------------

 
Failed building wheel for GDAL
 
Running setup.py clean for GDAL
Failed to build GDAL
Installing collected packages: GDAL
 
Running setup.py install for GDAL ... error
   
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-yswRfs/GDAL/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-RpaV1q-record/install-record.txt --single-version-externally-managed --compile:

    running install
    running build
    running build_py
    creating build
    creating build
/lib.linux-x86_64-2.7
    copying gdal
.py -> build/lib.linux-x86_64-2.7
    copying ogr
.py -> build/lib.linux-x86_64-2.7
    copying osr
.py -> build/lib.linux-x86_64-2.7
    copying gdalconst
.py -> build/lib.linux-x86_64-2.7
    copying gdalnumeric
.py -> build/lib.linux-x86_64-2.7
    creating build
/lib.linux-x86_64-2.7/
osgeo
    copying osgeo
/ogr.py -> build/lib.linux-x86_64-2.7/osgeo
    copying osgeo
/gdalnumeric.py -> build/lib.linux-x86_64-2.7/osgeo
    copying osgeo
/__init__.py -> build/lib.linux-x86_64-2.7/osgeo
    copying osgeo
/gnm.py -> build/lib.linux-x86_64-2.7/osgeo
    copying osgeo
/gdal.py -> build/lib.linux-x86_64-2.7/osgeo
    copying osgeo
/gdalconst.py -> build/lib.linux-x86_64-2.7/osgeo
    copying osgeo
/osr.py -> build/lib.linux-x86_64-2.7/osgeo
    copying osgeo
/gdal_array.py -> build/lib.linux-x86_64-2.7/osgeo
    running build_ext
    building
'osgeo._gdal' extension
    creating build
/temp.linux-x86_64-2.7
    creating build
/temp.linux-x86_64-2.7/extensions
    gcc
-pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include -c extensions/gdal_wrap.cpp -o build/temp.linux-x86_64-2.7/extensions/gdal_wrap.o
    cc1plus
: warning: command line option ‘-Wstrict-prototypes is valid for Ada/C/ObjC but not for C++ [enabled by default]
    extensions
/gdal_wrap.cpp:3089:27: fatal error: cpl_vsi_error.h: No such file or directory
    compilation terminated
.

    error
: command 'gcc' failed with exit status 1
   
   
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-yswRfs/GDAL/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-RpaV1q-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-yswRfs/GDAL/
/
usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
 
InsecurePlatformWarning



Il giorno mercoledì 5 ottobre 2016 16:27:20 UTC+2, Nacho Sanchez ha scritto:
That header missing probably means that you're missing libgdal-dev. Could you double check that you went through that during the installation?

Also, in this thread some fixed are proposed, please check whether it works for you.

Claudio Pellegrino

unread,
Oct 5, 2016, 11:51:23 AM10/5/16
to cartodb
i'm following the installaion instructions ( http://cartodb.readthedocs.io/en/latest/install.html ) step by step with a clean ubuntu 12.04 ( for 2days , 2 times)

Where am I doing wrong?

really thanks for your advices


PS

why in python_requirements.txt file is s
pecified  1.10.0 version of gdal?

chardet==2.3.0
argparse
==1.2.1
brewery
==0.6
redis
==2.4.9
python
-varnish==0.1.2
gdal
==1.10.0
csvkit
==0.9.0
openpyxl
==2.1.3



To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Nacho Sanchez

unread,
Oct 6, 2016, 2:49:18 AM10/6/16
to car...@googlegroups.com
Try passing the environment variables directly to sudo:

sudo CPLUS_INCLUDE_PATH=/usr/include/gdal C_INCLUDE_PATH=/usr/include/gdal PATH=$PATH:/usr/include/gdal pip install --no-use-wheel -r python_requirements.txt

To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Nacho Sanchez

unread,
Oct 6, 2016, 3:55:53 AM10/6/16
to car...@googlegroups.com
PS: I mean, I've reproduced your issue and this worked for me ;-) I'll improve the docs with this.

Claudio Pellegrino

unread,
Oct 6, 2016, 7:10:55 AM10/6/16
to cartodb

OH YEAH! IT WORKS!!!

:-D

I'm continuing with the next steps..

Claudio Pellegrino

unread,
Oct 6, 2016, 8:00:48 AM10/6/16
to cartodb
so after

cp config/app_config.yml.sample config/app_config.yml
cp config
/database.yml.sample config/database.yml

i have to do

RAILS_ENV=development bundle exec rake db:setup
RAILS_ENV
=development bundle exec rake db:migrate

instead of

RAILS_ENV=development bundle exec rake db:create
RAILS_ENV=development bundle exec rake db:migrate

is it right?

Claudio Pellegrino

unread,
Oct 6, 2016, 8:33:45 AM10/6/16
to cartodb
i try:

RAILS_ENV=development bundle exec rake db:setup
RAILS_ENV
=development bundle exec rake db:
migrate
RAILS_ENV
=development bundle exec rake cartodb:db:setup_user

but at the end it writes:

rake aborted!
You should provide a valid e-mail

in the file errors.txt you can see all the lines
errors.txt

Nacho Sanchez

unread,
Oct 6, 2016, 8:40:13 AM10/6/16
to car...@googlegroups.com
Glad to know that it worked :-) A better explanation about pip step workaround is going to be released in some minutes indeed.

About those steps, it's been changed recently, so I was probably wrong about what I said. Please try the installation guide actions first:

RAILS_ENV=development bundle exec rake db:create
RAILS_ENV=development bundle exec rake db:migrate

Please let us know whether everything worked ok!



--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Juan Ignacio Sánchez Lara
CARTO Backend Engineer
Twitter: @juanignaciosl

CARTO — Predict Through Location

Claudio Pellegrino

unread,
Oct 6, 2016, 8:42:45 AM10/6/16
to cartodb
i tried also:

RAILS_ENV=development bundle exec rake db:create
RAILS_ENV
=development bundle exec rake db:migrate
RAILS_ENV=development bundle exec rake cartodb:db:setup_user
but at the end it writes:

rake aborted!
You should provide a valid e-mail

in the file errors2.txt you can see all the lines



Il giorno giovedì 6 ottobre 2016 14:00:48 UTC+2, Claudio Pellegrino ha scritto:
errors2.txt
Message has been deleted

Nacho Sanchez

unread,
Oct 6, 2016, 9:50:56 AM10/6/16
to car...@googlegroups.com
The migration log, despite the initial errors, looks fine: the schema is created. It's failing because of the setup_user task. Try, instead of that task, the next one, which is linked under "Running CartoDB".

Sorry about that. cartodb:db:setup_user is based on environment variables, that's why it fails. create_dev_user is more user friendly.

On Thu, Oct 6, 2016 at 3:32 PM, Claudio Pellegrino <cla.p...@gmail.com> wrote:
I am not able to continue now .. I'm still studying the code..
thanks for your time and patience ..
do not leave me alone
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Juan Ignacio Sánchez Lara
CARTO Backend Engineer
Twitter: @juanignaciosl

CARTO — Predict Through Location

Live sessions to learn CARTO

--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Claudio Pellegrino

unread,
Oct 6, 2016, 12:56:02 PM10/6/16
to cartodb
sh script/create_dev_user ${SUBDOMAIN}
instead of
RAILS_ENV=development bundle exec rake cartodb:db:setup_user
it works.. thanks!!

Nacho Sanchez

unread,
Oct 6, 2016, 1:15:11 PM10/6/16
to car...@googlegroups.com
\o/

I'll fix the documentation for that as well. Sorry for the inconvenience!

To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Nico Aliotta

unread,
Oct 6, 2016, 2:21:36 PM10/6/16
to cartodb
This documentation is ok also for Ubuntu Ubuntu 16.04 x64 ?

i've a lot of problems installing on it.
Because ppas are not good for it.

Is it better for me to install ubuntu 12.04?

Thanks


@Claudio Pellegrino Are you italian? is it working now carto on your server?

Jorge Sanz

unread,
Oct 6, 2016, 4:17:22 PM10/6/16
to car...@googlegroups.com

No, documentation is only valid for 12.04

Cheers

--
Jorge Sanz
CARTO - Predict through location

Sent from my phone, excuse my brevity.


--

Sridhar

unread,
Oct 7, 2016, 2:54:52 AM10/7/16
to cartodb
Hi,

12.04 will be EOLed in about six months time. Can we expect support and documentation for 16.04 (which will be one year old) by that time?

Thanks,
Sridhar


On Friday, 7 October 2016 01:47:22 UTC+5:30, Jorge Sanz wrote:

No, documentation is only valid for 12.04

Cheers

--
Jorge Sanz
CARTO - Predict through location

Sent from my phone, excuse my brevity.

El 6 oct. 2016 20:21, "Nico Aliotta" <nicoa...@gmail.com> escribió:
This documentation is ok also for Ubuntu Ubuntu 16.04 x64 ?

i've a lot of problems installing on it.
Because ppas are not good for it.

Is it better for me to install ubuntu 12.04?

Thanks


@Claudio Pellegrino Are you italian? is it working now carto on your server?

--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+u...@googlegroups.com.

Nico Aliotta

unread,
Oct 7, 2016, 9:44:21 AM10/7/16
to cartodb
I think that carto works fine on Ubuntu 16.04 with some workaround. Maybe only documentation is missing. I think that the staff of Carto don't  uses ubuntu 12.04 as server.

But it's only my thought.

Sridhar ha scritto:

kire.sc...@googlemail.com

unread,
Oct 9, 2016, 9:39:49 AM10/9/16
to cartodb
Do not get me wrong, but the cartoDB installation is a pain - all these dependencies are awful. I wish you would make an official and solid installation script for e.g. Ubuntu 14.04 and a manual/wiki which explains the main configuration files. I know you want to sell your cartoDB service, but for private experiments it is much too expensive - and no I do not want to show the whole world my private maps.

This youtube video helped me to avoid some mistakes - maybe it can help you too.
Sadly in the end I ran into a problem, when I opened the login page the first time - the page is broken:

At the moment I am pretty clueless - maybe someone can help me.



Nacho Sanchez

unread,
Oct 10, 2016, 4:23:22 AM10/10/16
to car...@googlegroups.com
Hi, Kire,

Just try again. Your download is referring to an assets version that wasn't released yet, 4.3.14. It's fixed now, sorry for the inconvenience.

--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

kire.sc...@googlemail.com

unread,
Oct 10, 2016, 7:42:28 AM10/10/16
to cartodb
Thank you Juan for this information, I am looking forward to try it again. 

Claudio Pellegrino

unread,
Oct 11, 2016, 7:15:01 AM10/11/16
to cartodb
Ciao Nico sono di Roma, tu Napoli?
Sei riuscito a farlo girare?

Claudio Pellegrino

unread,
Oct 11, 2016, 7:17:47 AM10/11/16
to cartodb
I can't login.. how can i create an user? My user table in postgres is empty..
Nacho can you help me?

Nacho Sanchez

unread,
Oct 11, 2016, 7:21:40 AM10/11/16
to car...@googlegroups.com
Claudio, have you tried create_dev_user?

On Tue, Oct 11, 2016 at 1:17 PM, Claudio Pellegrino <cla.p...@gmail.com> wrote:
I can't login.. how can i create an user? My user table in postgres is empty..
Nacho can you help me?
--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Claudio Pellegrino

unread,
Oct 11, 2016, 7:49:56 AM10/11/16
to cartodb
it does not work..

Il giorno martedì 11 ottobre 2016 13:21:40 UTC+2, Nacho Sanchez ha scritto:
Claudio, have you tried create_dev_user?
On Tue, Oct 11, 2016 at 1:17 PM, Claudio Pellegrino <cla.p...@gmail.com> wrote:
I can't login.. how can i create an user? My user table in postgres is empty..
Nacho can you help me?

--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Nacho Sanchez

unread,
Oct 11, 2016, 8:06:21 AM10/11/16
to car...@googlegroups.com
It seemed to work, previously:

Inline image 1

Could you send the full trace of your command and any error, please?

To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Claudio Pellegrino

unread,
Oct 11, 2016, 8:12:13 AM10/11/16
to cartodb
no :-( 
sorry

where can i read what this line do?
bundle exec rake cartodb:db:create_dev_user

Nacho Sanchez

unread,
Oct 11, 2016, 8:16:54 AM10/11/16
to car...@googlegroups.com
It's documented here and code is here.

To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Claudio Pellegrino

unread,
Oct 11, 2016, 8:33:17 AM10/11/16
to cartodb
if i try 
sudo ./script/create_dev_user

it can't found bundle install:
Enter a subdomain: claudio
Enter a password (cleartext!): password
Enter an email: email8@mail.com
--- Creating dev user
https
://github.com/kuldeepaggarwal/fake_net_ldap.git (at fix-responder@d99f2fc) is not yet checked out. Run `bundle install` first.



is this the reason of the login error? 






without sudo this is the result :

ubuntu@ip-172-31-12-146:~/cartodb$ ./script/create_dev_user
Enter a subdomain: user
Enter a password (cleartext!): password
Enter an email: e...@email.com
--- Creating dev user
** Invoke cartodb:db:create_dev_user (first_time)
** Invoke db:create (first_time)
** Invoke environment (first_time)
** Execute environment
(0.000261s) SET standard_conforming_strings = ON
(0.000318s) SET client_min_messages = 'WARNING'
(0.000291s) SET DateStyle = 'ISO'
(0.008540s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute"."atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class"."oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null", COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS "primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN "pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN "pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN "pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND ("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index" ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index"."indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE) AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'external_sources') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.003238s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute"."atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class"."oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null", COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS "primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN "pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN "pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN "pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND ("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index" ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index"."indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE) AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'shared_entities') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.002716s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute"."atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class"."oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null", COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS "primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN "pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN "pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN "pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND ("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index" ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index"."indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE) AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'permissions') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.002890s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute"."atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class"."oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null", COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS "primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN "pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN "pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN "pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND ("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index" ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index"."indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE) AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'user_tables') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.002733s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute"."atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class"."oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null", COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS "primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN "pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN "pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN "pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND ("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index" ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index"."indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE) AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'maps') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.003636s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute"."atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class"."oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null", COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS "primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN "pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN "pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN "pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND ("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index" ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index"."indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE) AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'layers') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.002659s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute"."atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class"."oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null", COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS "primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN "pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN "pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN "pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND ("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index" ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index"."indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE) AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'likes') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.002651s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute"."atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class"."oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null", COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS "primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN "pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN "pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN "pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND ("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index" ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index"."indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE) AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'synchronization_oauths') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.002810s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute"."atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class"."oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null", COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS "primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN "pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN "pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN "pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND ("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index" ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index"."indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE) AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'logs') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.003404s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute"."atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class"."oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null", COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS "primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN "pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN "pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN "pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND ("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index" ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index"."indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE) AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'data_imports') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.002554s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute"."atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class"."oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null", COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS "primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN "pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN "pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN "pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND ("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index" ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index"."indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE) AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'external_data_imports') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.002526s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute"."atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class"."oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null", COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS "primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN "pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN "pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN "pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND ("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index" ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index"."indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE) AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'feature_flags') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.005725s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute"."atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class"."oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null", COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS "primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN "pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN "pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN "pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND ("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index" ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index"."indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE) AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'users') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
Ignoring statsd, because there were a error loading the config
** Execute db:create
createdb: database creation failed: ERROR:  database "carto_db_development" already exists
[sequel] Created database 'carto_db_development'
createdb: database creation failed: ERROR:  database "carto_db_test" already exists
[sequel] Created database 'carto_db_test'
** Invoke db:migrate (first_time)
** Invoke db:migrate:load (first_time)
** Invoke environment
** Execute db:migrate:load
** Execute db:migrate
(0.001011s) SELECT NULL FROM "schema_migrations" LIMIT 1
(0.000298s) SELECT * FROM "schema_migrations" LIMIT 1
(0.001461s) SELECT "filename" FROM "schema_migrations" ORDER BY "filename"
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
** Invoke cartodb:db:create_publicuser (first_time)
** Invoke environment
** Execute cartodb:db:create_publicuser
Creating user publicuser
(0.003638s) DO $$
        BEGIN
          IF NOT EXISTS ( SELECT * FROM pg_user WHERE usename = 'publicuser') THEN
            CREATE USER publicuser; -- TODO: with password '...'
          ELSE
            RAISE NOTICE 'User publicuser already exists';
          END IF;
          RETURN;
        END;
        $$ LANGUAGE 'plpgsql';
Creating user tileuser
(0.000670s) DO $$
        BEGIN
          IF NOT EXISTS ( SELECT * FROM pg_user WHERE usename = 'tileuser') THEN
            CREATE USER tileuser; -- TODO: with password '...'
          ELSE
            RAISE NOTICE 'User tileuser already exists';
          END IF;
          RETURN;
        END;
        $$ LANGUAGE 'plpgsql';
** Execute cartodb:db:create_dev_user
  Carto::Ldap::Configuration Load (0.8ms)  SELECT "ldap_configurations".* FROM "ldap_configurations" LIMIT 1
(0.001619s) SELECT COUNT(*) AS "count" FROM "users" WHERE ("username" = 'user') LIMIT 1
(0.005188s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute"."atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class"."oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null", COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS "primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN "pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN "pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN "pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND ("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index" ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index"."indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE) AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'organizations') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.001380s) SELECT * FROM "organizations" WHERE ("name" = 'user') LIMIT 1
(0.000510s) SELECT COUNT(*) AS "count" FROM "users" WHERE ("email" = 'e...@email.com') LIMIT 1
(0.000183s) BEGIN
(0.002095s) INSERT INTO "users" ("email", "salt", "crypted_password", "username", "database_host", "geocoding_quota", "here_isolines_quota", "obs_snapshot_quota", "obs_general_quota", "updated_at", "api_key") VALUES ('e...@email.com', '3c785ee3ebf76898319dabbf67d687f33acca525', 'c063d6b5f29c49adcacaf2508bbd230c88aa606b', 'user', 'localhost', 0, 0, 0, 0, '2016-10-11 12:28:59.389204+0000', '1dd5c05d84abe2bcd2fc539bd825e225e365e60c') RETURNING *
(0.000221s) SET standard_conforming_strings = ON
(0.000286s) SET client_min_messages = 'WARNING'
(0.000277s) SET DateStyle = 'ISO'
[pool] Creating a new connection for localhost:postgres:5432:postgres:sequel (1)
(0.002544s) SELECT * FROM "pg_database" WHERE ("datname" = 'cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db')
(0.001192s) UPDATE "users" SET "database_name" = 'cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db' WHERE ("id" = 'dbd59d4b-2ee4-4c05-87d3-4d229a47246f')
(0.005357s) SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute"."atttypid" AS integer) AS "oid", format_type("pg_type"."oid", "pg_attribute"."atttypmod") AS "db_type", pg_get_expr("pg_attrdef"."adbin", "pg_class"."oid") AS "default", NOT "pg_attribute"."attnotnull" AS "allow_null", COALESCE(("pg_attribute"."attnum" = ANY("pg_index"."indkey")), false) AS "primary_key", "pg_namespace"."nspname" FROM "pg_class" INNER JOIN "pg_attribute" ON ("pg_attribute"."attrelid" = "pg_class"."oid") INNER JOIN "pg_type" ON ("pg_type"."oid" = "pg_attribute"."atttypid") INNER JOIN "pg_namespace" ON ("pg_namespace"."oid" = "pg_class"."relnamespace") LEFT OUTER JOIN "pg_attrdef" ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND ("pg_attrdef"."adnum" = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index" ON (("pg_index"."indrelid" = "pg_class"."oid") AND ("pg_index"."indisprimary" IS TRUE)) WHERE (("pg_attribute"."attisdropped" IS FALSE) AND ("pg_attribute"."attnum" > 0) AND ("pg_class"."relname" = 'client_applications') AND ("pg_namespace"."nspname" !~* 'pg_*|information_schema')) ORDER BY "pg_attribute"."attnum"
(0.000990s) INSERT INTO "client_applications" ("user_id", "updated_at", "key", "secret", "created_at") VALUES ('dbd59d4b-2ee4-4c05-87d3-4d229a47246f', '2016-10-11 12:28:59.437403+0000', 'mD1UADKCSkRCHsNYp4nfSQmpQ7mOseqPD6GHCdup', 'Qp8CffqjlMPHi3L0BhqgJBZMi7fCshVARD2dl6qU', '2016-10-11 12:28:59.437618+0000') RETURNING *
[pool] Found a connection for localhost:postgres:5432:postgres:sequel (1)
(0.000218s) BEGIN
(0.000587s) CREATE USER "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f" PASSWORD 'c063d6b5f29c49adcacaf2508bbd230c88aa606bdevelopment_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f'
(0.000488s) GRANT publicuser to "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.002383s) COMMIT
[pool] Found a connection for localhost:postgres:5432:postgres:sequel (1)
(0.571089s) CREATE DATABASE "cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db"
          WITH TEMPLATE = template_postgis
          OWNER = postgres
          ENCODING = 'UTF8'
          CONNECTION LIMIT=-1
(0.000212s) SET standard_conforming_strings = ON
(0.000278s) SET client_min_messages = 'WARNING'
(0.000290s) SET DateStyle = 'ISO'
(0.000326s)  SET search_path TO "public", cartodb, cdb_dataservices_client, public
[pool] Creating a new connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (2)
(0.000266s) BEGIN
(0.002318s) GRANT ALL ON DATABASE "cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db" TO "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.003535s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (2)
(0.006025s) CREATE SCHEMA "cdb_importer"
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (2)
(0.009327s) CREATE SCHEMA "cdb"
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (2)
(0.056608s) CREATE OR REPLACE PROCEDURAL LANGUAGE 'plpythonu' HANDLER plpython_call_handler;
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (2)
(0.000320s) BEGIN
(0.002857s)
                SELECT count(*) FROM pg_extension WHERE extname='plpythonu'

(0.004977s) CREATE EXTENSION plpythonu FROM unpackaged
(0.000417s)
                SELECT count(*) FROM pg_extension WHERE extname='postgis'

(0.005949s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (2)
(0.000233s) BEGIN
(0.339563s)
              DO LANGUAGE 'plpgsql' $$
              DECLARE
                ver TEXT;
              BEGIN
                BEGIN
                  SELECT cartodb.cdb_version() INTO ver;
                EXCEPTION WHEN undefined_function OR invalid_schema_name THEN
                  RAISE NOTICE 'Got % (%)', SQLERRM, SQLSTATE;
                  BEGIN
                    CREATE EXTENSION cartodb VERSION '0.17.1' FROM unpackaged;
                  EXCEPTION WHEN undefined_table THEN
                    RAISE NOTICE 'Got % (%)', SQLERRM, SQLSTATE;
                    CREATE EXTENSION cartodb VERSION '0.17.1';
                    RETURN;
                  END;
                  RETURN;
                END;
                ver := '0.17.1';
                IF position('dev' in ver) > 0 THEN
                  EXECUTE 'ALTER EXTENSION cartodb UPDATE TO ''' || ver || 'next''';
                  EXECUTE 'ALTER EXTENSION cartodb UPDATE TO ''' || ver || '''';
                ELSE
                  EXECUTE 'ALTER EXTENSION cartodb UPDATE TO ''' || ver || '''';
                END IF;
              END;
              $$;

(0.000544s) SELECT cartodb.cdb_version() as v
(0.034896s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (2)
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (2)
(0.000606s) SELECT cartodb.cdb_version() AS v
(0.000249s) BEGIN
(0.000264s) SHOW search_path;
(0.000255s) SET search_path TO cartodb, public;
(0.001401s) SELECT CDB_SetUserQuotaInBytes('public', 104857600);
(0.000261s) SET search_path TO "$user", public, cartodb;
(0.003761s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (2)
(0.000250s) BEGIN
PG::Error: ERROR:  could not open extension control file "/usr/share/postgresql/9.3/extension/odbc_fdw.control": No such file or directory: CREATE EXTENSION IF NOT EXISTS odbc_fdw SCHEMA public
(0.000247s) ROLLBACK
[pool] Not dropping connection localhost:postgres:5432:postgres:sequel
[pool] Not dropping connection localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (2)
(0.000254s) BEGIN
(0.000601s) SELECT 1 FROM pg_roles WHERE rolname='PUBLIC'
(0.000218s) REVOKE ALL ON SCHEMA "public" FROM PUBLIC CASCADE
(0.000304s) REVOKE ALL ON ALL SEQUENCES IN SCHEMA "public" FROM PUBLIC CASCADE
(0.053723s) REVOKE ALL ON ALL FUNCTIONS IN SCHEMA "public" FROM PUBLIC CASCADE
(0.001203s) REVOKE ALL ON ALL TABLES IN SCHEMA "public" FROM PUBLIC CASCADE
(0.000303s) REVOKE ALL ON SCHEMA "cdb_importer" FROM PUBLIC CASCADE
(0.000292s) REVOKE ALL ON ALL SEQUENCES IN SCHEMA "cdb_importer" FROM PUBLIC CASCADE
(0.000635s) REVOKE ALL ON ALL FUNCTIONS IN SCHEMA "cdb_importer" FROM PUBLIC CASCADE
(0.000332s) REVOKE ALL ON ALL TABLES IN SCHEMA "cdb_importer" FROM PUBLIC CASCADE
(0.000268s) REVOKE ALL ON SCHEMA "cdb" FROM PUBLIC CASCADE
(0.000271s) REVOKE ALL ON ALL SEQUENCES IN SCHEMA "cdb" FROM PUBLIC CASCADE
(0.000557s) REVOKE ALL ON ALL FUNCTIONS IN SCHEMA "cdb" FROM PUBLIC CASCADE
(0.000322s) REVOKE ALL ON ALL TABLES IN SCHEMA "cdb" FROM PUBLIC CASCADE
(0.000259s) REVOKE ALL ON SCHEMA "cartodb" FROM PUBLIC CASCADE
(0.000273s) REVOKE ALL ON ALL SEQUENCES IN SCHEMA "cartodb" FROM PUBLIC CASCADE
(0.007576s) REVOKE ALL ON ALL FUNCTIONS IN SCHEMA "cartodb" FROM PUBLIC CASCADE
(0.000703s) REVOKE ALL ON ALL TABLES IN SCHEMA "cartodb" FROM PUBLIC CASCADE
(0.000530s) SELECT 1 FROM pg_roles WHERE rolname='publicuser'
(0.000298s) REVOKE ALL ON DATABASE "cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db" FROM "publicuser" CASCADE
(0.000277s) REVOKE ALL ON SCHEMA "public" FROM publicuser CASCADE
(0.000284s) REVOKE ALL ON ALL SEQUENCES IN SCHEMA "public" FROM publicuser CASCADE
(0.047793s) REVOKE ALL ON ALL FUNCTIONS IN SCHEMA "public" FROM publicuser CASCADE
(0.000661s) REVOKE ALL ON ALL TABLES IN SCHEMA "public" FROM publicuser CASCADE
(0.000285s) REVOKE ALL ON SCHEMA "cdb_importer" FROM publicuser CASCADE
(0.000289s) REVOKE ALL ON ALL SEQUENCES IN SCHEMA "cdb_importer" FROM publicuser CASCADE
(0.000872s) REVOKE ALL ON ALL FUNCTIONS IN SCHEMA "cdb_importer" FROM publicuser CASCADE
(0.000338s) REVOKE ALL ON ALL TABLES IN SCHEMA "cdb_importer" FROM publicuser CASCADE
(0.000288s) REVOKE ALL ON SCHEMA "cdb" FROM publicuser CASCADE
(0.000283s) REVOKE ALL ON ALL SEQUENCES IN SCHEMA "cdb" FROM publicuser CASCADE
(0.000647s) REVOKE ALL ON ALL FUNCTIONS IN SCHEMA "cdb" FROM publicuser CASCADE
(0.000329s) REVOKE ALL ON ALL TABLES IN SCHEMA "cdb" FROM publicuser CASCADE
(0.000263s) REVOKE ALL ON SCHEMA "cartodb" FROM publicuser CASCADE
(0.000274s) REVOKE ALL ON ALL SEQUENCES IN SCHEMA "cartodb" FROM publicuser CASCADE
(0.008290s) REVOKE ALL ON ALL FUNCTIONS IN SCHEMA "cartodb" FROM publicuser CASCADE
(0.000566s) REVOKE ALL ON ALL TABLES IN SCHEMA "cartodb" FROM publicuser CASCADE
(0.092653s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (2)
(0.001388s) BEGIN
(0.000675s) REVOKE ALL ON SCHEMA "public" FROM PUBLIC CASCADE
(0.000341s) REVOKE ALL ON ALL SEQUENCES IN SCHEMA "public" FROM PUBLIC CASCADE
(0.046163s) REVOKE ALL ON ALL FUNCTIONS IN SCHEMA "public" FROM PUBLIC CASCADE
(0.000975s) REVOKE ALL ON ALL TABLES IN SCHEMA "public" FROM PUBLIC CASCADE
(0.045931s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (2)
(0.001888s)
            ALTER USER "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
              SET search_path = "public", cartodb, cdb_dataservices_client, public

[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (2)
(0.000269s) BEGIN
(0.000357s) GRANT CONNECT ON DATABASE "cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db" TO "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.000990s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (2)
(0.001044s) ALTER ROLE "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f" SET statement_timeout to 300000
(0.001047s) ALTER DATABASE "cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db" SET statement_timeout to 300000
(0.000223s) SET standard_conforming_strings = ON
(0.000314s) SET client_min_messages = 'WARNING'
(0.000293s) SET DateStyle = 'ISO'
(0.000320s)  SET search_path TO "public", cartodb, cdb_dataservices_client, public
[pool] Creating a new connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f:sequel (3)
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f:sequel (3)
(0.000223s) SET standard_conforming_strings = ON
(0.000260s) SET client_min_messages = 'WARNING'
(0.000263s) SET DateStyle = 'ISO'
(0.000207s) SET standard_conforming_strings = ON
(0.000271s) SET client_min_messages = 'WARNING'
(0.000296s) SET DateStyle = 'ISO'
(0.000320s)  SET search_path TO "public", cartodb, cdb_dataservices_client, public
[pool] Creating a new connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:publicuser:sequel (4)
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:publicuser:sequel (4)
(0.000208s) SET standard_conforming_strings = ON
(0.000263s) SET client_min_messages = 'WARNING'
(0.000270s) SET DateStyle = 'ISO'
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.000278s) BEGIN
(0.005546s) SELECT cartodb.CDB_Organization_Create_Member('development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f');
(0.004717s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.000243s) BEGIN
(0.000439s) GRANT USAGE ON SCHEMA "cartodb" TO "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.012065s) GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA "cartodb" TO "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.000642s) GRANT SELECT ON ALL TABLES IN SCHEMA "cartodb" TO "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.000380s) REVOKE ALL ON TABLE cartodb.CDB_CONF FROM "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.000298s) GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE cartodb.cdb_tablemetadata TO "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.000332s) GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE cartodb.cdb_analysis_catalog TO "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.017247s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.000392s) BEGIN
(0.000417s) GRANT USAGE ON SCHEMA "public" TO "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.086576s) GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA "public" TO "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.000853s) GRANT SELECT ON ALL TABLES IN SCHEMA "public" TO "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.041036s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.000646s) BEGIN
(0.000380s) GRANT ALL ON SCHEMA "public" TO "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.000373s) GRANT ALL ON ALL SEQUENCES IN SCHEMA  "public" TO "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.050598s) GRANT ALL ON ALL FUNCTIONS IN SCHEMA  "public" TO "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.000648s) GRANT ALL ON ALL TABLES IN SCHEMA  "public" TO "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.044957s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.000676s) BEGIN
(0.000540s) GRANT USAGE ON SCHEMA "public" TO "publicuser"
(0.005774s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.000257s) BEGIN
(0.000357s) GRANT ALL ON SCHEMA "cdb_importer" TO "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.000999s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.000297s) BEGIN
(0.000412s) GRANT ALL ON SCHEMA "cdb" TO "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
(0.001154s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.000229s) BEGIN
(0.000425s)  GRANT SELECT ON "public"."geometry_columns" TO "publicuser"
(0.000345s)  GRANT SELECT ON "public"."geography_columns" TO "publicuser"
(0.001186s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.000235s) BEGIN
(0.000512s) GRANT SELECT ON TABLE "public"."raster_overviews" TO "publicuser"
(0.000331s) GRANT SELECT ON TABLE "public"."raster_columns" TO "publicuser"
(0.003650s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.000233s) BEGIN
(0.000267s) SHOW search_path;
(0.000185s) SET search_path TO cartodb, public;
(0.002739s) SELECT CDB_SetUserQuotaInBytes('public', 104857600);
(0.000258s) SET search_path TO "$user", public, cartodb;
(0.013007s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.001799s) CREATE OR REPLACE PROCEDURAL LANGUAGE 'plpythonu' HANDLER plpython_call_handler;
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.007314s)             BEGIN;
            CREATE OR REPLACE FUNCTION public.cdb_invalidate_varnish(table_name text) RETURNS void AS
            $$
                critical = 0
                timeout = 5
                retry = 5
                trigger_verbose = 1

                client = GD.get('varnish', None)
                for i in ('base64', 'hashlib'):
                  if not i in GD:
                    GD[i] = __import__(i)

                while True:

                  if not client:
                      try:
                        import varnish
                        client = GD['varnish'] = varnish.VarnishHandler(('127.0.0.1', 6082, timeout))
                      except Exception as err:
                        # NOTE: we won't retry on connection error
                        if critical:
                          plpy.error('Varnish connection error: ' +  str(err))
                        break

                  try:
                    cache_key = "t:" + GD['base64'].b64encode(GD['hashlib'].sha256('cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:%s' % table_name).digest())[0:6]
                    # We want to say here, but the Varnish telnet interface expects \b, we have to escape that on Python to \\b and double that for SQL
                    client.fetch('purge obj.http.Surrogate-Key ~ "\\\\b%s\\\\b"' % cache_key)
                    break
                  except Exception as err:
                    if trigger_verbose:
                      plpy.warning('Varnish fetch error: ' + str(err))
                    client = GD['varnish'] = None # force reconnect
                    if not retry:
                      if critical:
                        plpy.error('Varnish fetch error: ' +  str(err))
                      break
                    retry -= 1 # try reconnecting
            $$
            LANGUAGE 'plpythonu' VOLATILE;
            REVOKE ALL ON FUNCTION public.cdb_invalidate_varnish(TEXT) FROM PUBLIC;
            COMMIT;

[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.000352s) BEGIN
(0.000358s) GRANT CONNECT ON DATABASE "cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db" TO "publicuser"
(0.001055s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.000219s) BEGIN
(0.000373s) GRANT USAGE ON SCHEMA "cartodb" TO "publicuser"
(0.018796s) GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA "cartodb" TO "publicuser"
(0.000745s) GRANT SELECT ON ALL TABLES IN SCHEMA "cartodb" TO "publicuser"
(0.000388s) REVOKE ALL ON TABLE cartodb.CDB_CONF FROM "publicuser"
(0.017513s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.000413s) BEGIN
(0.000520s) REVOKE SELECT ON cartodb.cdb_tablemetadata FROM publicuser CASCADE
(0.000644s) REVOKE SELECT ON cartodb.cdb_analysis_catalog FROM publicuser CASCADE
(0.001275s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.000237s) BEGIN
(0.000287s) GRANT USAGE ON SCHEMA public TO publicuser
(0.114193s) GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA public TO publicuser
(0.000524s) GRANT SELECT ON spatial_ref_sys TO publicuser
(0.041765s) COMMIT
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.001755s) REVOKE ALL ON TABLE cartodb.CDB_CONF FROM "development_cartodb_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f"
[pool] Found a connection for localhost:cartodb_dev_user_dbd59d4b-2ee4-4c05-87d3-4d229a47246f_db:5432:postgres:sequel (4)
(0.003290s) REVOKE ALL ON TABLE cartodb.CDB_CONF FROM "publicuser"
ETHON: Libcurl initialized
ETHON: performed EASY effective_url=http://gravatar.com/avatar/8eda75669884f7a9ec4d168119d5171f?s=128&d=http://404 response_code=302 return_code=ok total_time=0.083015
(0.000672s) ROLLBACK
rake aborted!
No such file or directory @ rb_sysopen - /home/ubuntu/cartodb/log/http_client.log
/opt/rubies/ruby-2.2.3/lib/ruby/2.2.0/open-uri.rb:36:in `initialize'
/opt/rubies/ruby-2.2.3/lib/ruby/2.2.0/open-uri.rb:36:in `open'
/opt/rubies/ruby-2.2.3/lib/ruby/2.2.0/open-uri.rb:36:in `open'
/opt/rubies/ruby-2.2.3/lib/ruby/2.2.0/logger.rb:636:in `create_logfile'
/opt/rubies/ruby-2.2.3/lib/ruby/2.2.0/logger.rb:630:in `rescue in open_logfile'
/opt/rubies/ruby-2.2.3/lib/ruby/2.2.0/logger.rb:627:in `open_logfile'
/opt/rubies/ruby-2.2.3/lib/ruby/2.2.0/logger.rb:584:in `initialize'
/opt/rubies/ruby-2.2.3/lib/ruby/2.2.0/logger.rb:318:in `new'
/opt/rubies/ruby-2.2.3/lib/ruby/2.2.0/logger.rb:318:in `initialize'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-3.2.22/lib/active_support/core_ext/logger.rb:72:in `initialize'
/home/ubuntu/cartodb/lib/carto/http/response_logger.rb:35:in `new'
/home/ubuntu/cartodb/lib/carto/http/response_logger.rb:35:in `logger'
/home/ubuntu/cartodb/lib/carto/http/response_logger.rb:31:in `log'
/home/ubuntu/cartodb/lib/carto/http/request.rb:24:in `run'
/home/ubuntu/cartodb/app/models/user.rb:718:in `reload_avatar'
/home/ubuntu/cartodb/app/models/user.rb:708:in `load_avatar'
/home/ubuntu/cartodb/app/models/user.rb:250:in `after_create'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/sequel-3.42.0/lib/sequel/model/base.rb:1585:in `block (2 levels) in _save'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/sequel-3.42.0/lib/sequel/model/base.rb:867:in `around_create'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/sequel-3.42.0/lib/sequel/model/base.rb:1578:in `block in _save'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/sequel-3.42.0/lib/sequel/model/base.rb:867:in `around_save'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/sequel-3.42.0/lib/sequel/model/base.rb:1573:in `_save'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/sequel-3.42.0/lib/sequel/model/base.rb:1254:in `block (2 levels) in save'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/sequel-3.42.0/lib/sequel/model/base.rb:1722:in `block in checked_transaction'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/sequel-3.42.0/lib/sequel/database/query.rb:323:in `_transaction'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/sequel-3.42.0/lib/sequel/database/query.rb:285:in `block in transaction'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/sequel-3.42.0/lib/sequel/database/connecting.rb:236:in `block in synchronize'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/sequel-3.42.0/lib/sequel/connection_pool/threaded.rb:104:in `hold'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/sequel-3.42.0/lib/sequel/database/connecting.rb:236:in `synchronize'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/sequel-3.42.0/lib/sequel/database/query.rb:278:in `transaction'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/sequel-3.42.0/lib/sequel/model/base.rb:1722:in `checked_transaction'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/sequel-3.42.0/lib/sequel/model/base.rb:1254:in `block in save'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/sequel-3.42.0/lib/sequel/model/base.rb:1713:in `checked_save_failure'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/sequel-3.42.0/lib/sequel/model/base.rb:1254:in `save'
/home/ubuntu/cartodb/lib/tasks/setup.rake:74:in `block (3 levels) in <top (required)>'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/opt/rubies/ruby-2.2.3/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/opt/rubies/ruby-2.2.3/bin/rake:23:in `load'
/opt/rubies/ruby-2.2.3/bin/rake:23:in `<top (required)>'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.3/lib/bundler/cli/exec.rb:74:in `load'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.3/lib/bundler/cli/exec.rb:74:in `kernel_load'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.3/lib/bundler/cli/exec.rb:27:in `run'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.3/lib/bundler/cli.rb:332:in `exec'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.3/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.3/lib/bundler/cli.rb:20:in `dispatch'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.3/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.3/lib/bundler/cli.rb:11:in `start'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.3/exe/bundle:34:in `block in <top (required)>'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.3/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.3/exe/bundle:26:in `<top (required)>'
/opt/rubies/ruby-2.2.3/bin/bundle:23:in `load'
/opt/rubies/ruby-2.2.3/bin/bundle:23:in `<main>'
Tasks: TOP => cartodb:db:create_dev_user

Nacho Sanchez

unread,
Oct 11, 2016, 8:44:40 AM10/11/16
to car...@googlegroups.com
I think that if you create `/home/ubuntu/cartodb/log/` folder and grant the needed permissions for the user that you run the script with, it will work.

To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Claudio Pellegrino

unread,
Oct 11, 2016, 9:12:09 AM10/11/16
to cartodb
\o/
yesssssss!!

thank you

Nacho Sanchez

unread,
Oct 11, 2016, 9:31:50 AM10/11/16
to car...@googlegroups.com
My pleasure :-)

--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kire.sc...@googlemail.com

unread,
Oct 11, 2016, 10:38:22 AM10/11/16
to cartodb
I got a similar problem, I cannot login neither, but I cannot find any error message. I could create the admin user without any problem,
but if I try to login I get an error message wrong password/user does not exist. The console does not show any obvious error during
the login process. I am running CartoDB in a VM and access the login page via IP address. I have done little configuration modification
as recommended in my linked youtube video (see above) e.g. subdomainless true and I have replaced  session_domain:  '.localhost.lan'   and
all domain: 'localhost.lan'  in app_config.yml  with the IP of my VM (btw., does the user creation script use the app_config.yml  configuration in any way?)
I strongly suspect my login problem has something to do with the database permissions of the admin user - because he try to access the database
remotely - maybe the access is restricted to "localhost" or "localhost.lan" by default - just an idea.

Can you give me a hint how to figure out what's wrong ?

Thanks in advance

Nico Aliotta

unread,
Oct 11, 2016, 3:12:28 PM10/11/16
to cartodb
I've another problem:

root@26605:~/cartodb# bundle exec grunt --environment development
Running "clean:src" (clean) task
>> 0 paths cleaned.
Task 'clean:src' took 6ms

Running "config" task

Running "cdb" task
installed npm version does not match with required one /2.14.[0-9]+/ installed: 3.10.8

############### /!\ CAUTION /!\ #################
PLEASE installed required versions to build CARTO:
- npm: /2.14.[0-9]+/
- node: /0.10.[0-9]+/
#################################################
Task 'cdb' took 9ms
All tasks took 15ms

but when i do:

root@26605:~/cartodb# nodejs -v
v0.10.26
root@26605:~/cartodb# npm -v
3.10.8

so seems that are updated

kire.sc...@googlemail.com

unread,
Oct 11, 2016, 5:48:50 PM10/11/16
to cartodb
This should solve your problem:

sudo npm install npm@2.14.0 -g

Nico Aliotta

unread,
Oct 12, 2016, 2:12:56 AM10/12/16
to cartodb
Thanks for the answer,

but after sudo npm install npm@2.14.0 -g

i've

root@26605:~/cartodb# bundle exec grunt --environment development
 bundle: command not found


kire.sc...@googlemail.com

unread,
Oct 12, 2016, 4:30:20 AM10/12/16
to cartodb
There can be two reasons for that either you have to export the path again because you have closed the console:

export PATH=$PATH:/opt/rubies/ruby-2.2.3/bin

...or it is a sudo problem (securepath):

sudo visudo

Comment out these lines


#Defaults       env_reset
#Defaults       secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"


Add this line


Defaults        env_keep += "PATH CPLUS_INCLUDE_PATH C_INCLUDE_PATH"

I hope it helps.

Nico Aliotta

unread,
Oct 12, 2016, 10:48:37 AM10/12/16
to cartodb
Yes, thanks i closed the console :)

Now i've another problem.

I've edited the app_config.yml
in this way

changing localost.lan with ip of the server

but root@26605:~/cartodb# bundle exec script/resque &
[1] 12409
root@26605:~/cartodb# rake aborted!
(/root/cartodb/config/app_config.yml): did not find expected key while parsing a block mapping at line 1 column 1

i've also to change other stuff in it? 

Nico Aliotta

unread,
Oct 12, 2016, 2:29:49 PM10/12/16
to car...@googlegroups.com
root@26605:~/cartodb# bundle exec thin start --threaded -p 3000 --threadpool-size 5
Using rack adapter
(0.000128s) SET standard_conforming_strings = ON
(0.000081s) SET client_min_messages = 'WARNING'
(0.000087s) SET DateStyle = 'ISO'
(0.003466s) SELECT "pg_attribute"."attname" AS "name"..
.....
......
Processing by Admin::PagesController#index as HTML
(0.001126s) SELECT * FROM "users" WHERE ("username" = 'MYIPSERVER') LIMIT 1
(0.000345s) SELECT * FROM "users" WHERE ("username" = 'MYIPSERVER') LIMIT 1
Completed 302 Found in 4.3ms

but on firefox i've Impossible to reach website
ERR_NAME_NOT_RESOLVED


--

---
You received this message because you are subscribed to a topic in the Google Groups "cartodb" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cartodb/fwkuFRMIHPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cartodb+unsubscribe@googlegroups.com.

Nico Aliotta

unread,
Oct 12, 2016, 4:06:26 PM10/12/16
to car...@googlegroups.com
Ok seems that i've solved other problems.. i can see the wbpage now but i cannot login with username and password that i create
with sh script/create_dev_user ${SUBDOMAIN}
 :(

any help?

Thanks

2016-10-11 13:15 GMT+02:00 Claudio Pellegrino <cla.p...@gmail.com>:
Ciao Nico sono di Roma, tu Napoli?
Sei riuscito a farlo girare?

kire.sc...@googlemail.com

unread,
Oct 13, 2016, 4:22:39 AM10/13/16
to cartodb
It seem we got the same problem now ;-)


Am Mittwoch, 12. Oktober 2016 22:06:26 UTC+2 schrieb Nico Aliotta:
Ok seems that i've solved other problems.. i can see the wbpage now but i cannot login with username and password that i create
with sh script/create_dev_user ${SUBDOMAIN}
 :(

any help?

Thanks
2016-10-11 13:15 GMT+02:00 Claudio Pellegrino <cla.p...@gmail.com>:
Ciao Nico sono di Roma, tu Napoli?
Sei riuscito a farlo girare?

--

---
You received this message because you are subscribed to a topic in the Google Groups "cartodb" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cartodb/fwkuFRMIHPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cartodb+u...@googlegroups.com.

Nico Aliotta

unread,
Oct 13, 2016, 9:36:43 AM10/13/16
to car...@googlegroups.com
kire i solved! Now i can login

dont execute sh script/create_dev_user ${SUBDOMAIN}

but from the folder cartodb execute:
./script/create_dev_user

then you can choice also username and not only email and password

and try to login

Nico



To unsubscribe from this group and all its topics, send an email to cartodb+unsubscribe@googlegroups.com.

kire.sc...@googlemail.com

unread,
Oct 13, 2016, 10:24:59 AM10/13/16
to cartodb
Hi Nico,

now it is working here too, but the reason for the problem was different. After your post I check the whole output
of the create_dev_user script and found three errors:

Ignoring statsd, because there were a error loading the config
** Execute db:create
createdb
: database creation failed: ERROR:  database "carto_db_development" already exists
[sequel] Created database 'carto_db_development'
createdb
: database creation failed: ERROR:  database "carto_db_test" already exists
[sequel] Created database 'carto_db_test'

This is not nice, but not a big deal.

PG::Error: ERROR:  could not open extension control file "/usr/share/postgresql/9.3/extension/odbc_fdw.control": No such file or directory: CREATE EXTENSION IF NOT EXISTS odbc_fdw SCHEMA public
(0.000322s) ROLLBACK

This one is bad, I have solved it with this command:

sudo -u postgres psql -c 'create extension postgis;'

(0.000434s) ROLLBACK
rake aborted
!
No such file or directory @ rb_sysopen - /home/carto/cartodb/log/http_client.log

And another ugly one, I have created the missing directory 

mkdir /home/carto/cartodb/log

Hard work, but now it is running ;-)

Thank your for your feedback Nico.

kire.sc...@googlemail.com

unread,
Oct 13, 2016, 10:36:53 AM10/13/16
to cartodb
Maybe it would be a good idea to throw an error at the end of  the create_dev_user script and not just silently rollback all commands when something went wrong. Because of the missing error message at the end I thought that everything is OK, but it wasn't, now I know it better ;-)

Nacho Sanchez

unread,
Oct 13, 2016, 10:39:14 AM10/13/16
to car...@googlegroups.com
Hi!

I'm sorry about not having realized the `${SUBDOMAIN}` after `create_dev_user` in your logs. At least, this time documentation is right.

About the log dir, it's a recently known issue that we'll address ASAP, sorry.

Thank you both!

You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Nico Aliotta

unread,
Oct 13, 2016, 10:51:13 AM10/13/16
to car...@googlegroups.com
Here i found ${SUBDOMAIN} after create_dev_user command

# Create a development user
sh script/create_dev_user ${SUBDOMAIN}
i don't know now if it's correct but without  ${SUBDOMAIN} all works fine for me. 
With  ${SUBDOMAIN} don't work.

To unsubscribe from this group and all its topics, send an email to cartodb+unsubscribe@googlegroups.com.

Nacho Sanchez

unread,
Oct 13, 2016, 10:53:10 AM10/13/16
to car...@googlegroups.com
Oh, thank you for pointing that out! Removal in progress...
Message has been deleted
Message has been deleted

Nacho Sanchez

unread,
Oct 13, 2016, 11:39:16 AM10/13/16
to car...@googlegroups.com
Yes, thank you both :_) FYI we've just begun a discussion in this PR.

On Thu, Oct 13, 2016 at 5:03 PM, kire.schumacher via cartodb <car...@googlegroups.com> wrote:
Ups, Nico was quicker ;-D


--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kire.sc...@googlemail.com

unread,
Oct 13, 2016, 12:12:05 PM10/13/16
to cartodb
I run into another issue and I am not sure, if it is my fault or a bug - some icons can not be found. After the login I see that:


If I inspect the element I find this error:



What can I do to fix it ?





Nico Aliotta

unread,
Oct 13, 2016, 12:42:43 PM10/13/16
to cartodb
This happens also to me. I tryed also to change my avatar (128 pixel x 128 pixel) but didn't work

I've also another problem if i close the terminal i cannot see anymore the webpage of carto :(

i  tryed to run in terminal
bundle exec thin start --threaded -p 3000 --threadpool-size 5 &

but when i close the terminal all go offline. Any solution?

Thanks for your help

kire.sc...@googlemail.com

unread,
Oct 13, 2016, 1:21:35 PM10/13/16
to cartodb
You can use screen - explanation 

Nico Aliotta

unread,
Oct 13, 2016, 1:42:12 PM10/13/16
to car...@googlegroups.com
kire thank you so much. Now all is fine.

If i solve the issue of image missing i'll let you know. It's strange that also if i try to change image with an avatar of 128 pixel x 128 pixel and smaller then 1 MB it don't change.

Maybe is wrong the "url" 

--

---
You received this message because you are subscribed to a topic in the Google Groups "cartodb" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cartodb/fwkuFRMIHPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cartodb+unsubscribe@googlegroups.com.

Nacho Sanchez

unread,
Oct 13, 2016, 2:10:19 PM10/13/16
to car...@googlegroups.com
There's some problem with default avatars currently. I've explained it in this issue: https://github.com/CartoDB/cartodb/issues/10181 .

Nevertheless, uploading it works. You're probably not clicking "Save" at the bottom of your account page after uploading the avatar.

--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Nico Aliotta

unread,
Oct 13, 2016, 2:13:18 PM10/13/16
to car...@googlegroups.com
No when i choice my file it says 
There was an error uploading your avatar. Check the height and size (max 1MB) of the image

but i'm tryng to upload the avatar in attachment that is 25 kb and 128x128 pixel

albero-con-viso-natura-il-bosco-dipinto-da-luca-1058129.jpg
Message has been deleted

kire.sc...@googlemail.com

unread,
Oct 13, 2016, 2:40:10 PM10/13/16
to cartodb
Cute Avatar image ;-) I will try to upload an avatar image too, when the process to stock up my data library was finished -
I am just wondering that it takes so long - hopefully it is not an endless loop.

it is so annoying that is not possible to edit a post in google groups ;-(

kire.sc...@googlemail.com

unread,
Oct 13, 2016, 3:03:20 PM10/13/16
to cartodb
Ok, I cannot upload an image neither. It seems CartoDB tries to upload the the image into the Amazon S3 cloud, but got no valid access token and fails. I have added the console output. I am not sure how to change the config/app_config.yml, maybe it helps to comment out the Amazon part.


Upload error avatar.txt

Nico Aliotta

unread,
Oct 14, 2016, 3:26:15 AM10/14/16
to cartodb
Unable to load data (2001)

Don’t panic, here's some info that might help
1
We couldn't load data from your file into the database. Please contact us and we will help you to load your data.
!
Persisting error? Please send us the following code:
54c24df9-b3e0-4607-a833-f5ccbd3f831a
i

Nacho Sanchez

unread,
Oct 14, 2016, 3:34:32 AM10/14/16
to car...@googlegroups.com
I guess that it's an import error. Please open a Rails console (bundle exec rails c development) and run `DataImports['54c24df9-b3e0-4607-a833-f5ccbd3f831a'].log.entries`, or a database session and run `select entries from logs l join data_imports di on l.id::text = di.logger where di.id = '54c24df9-b3e0-4607-a833-f5ccbd3f831a';`

--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nico Aliotta

unread,
Oct 14, 2016, 9:18:14 AM10/14/16
to car...@googlegroups.com
wher i do bundle exec rails c development

Loading development environment (Rails 3.2.22)
irb(main):001:0> `DataImports['54c24df9-b3e0-4607-a833-f5ccbd3f831a'].log.entries`,
irb(main):002:0* 




---
You received this message because you are subscribed to a topic in the Google Groups "cartodb" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cartodb/fwkuFRMIHPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cartodb+unsubscribe@googlegroups.com.

Nico Aliotta

unread,
Oct 14, 2016, 9:28:06 AM10/14/16
to car...@googlegroups.com
wher i do bundle exec rails c development

Loading development environment (Rails 3.2.22)
irb(main):001:0> `DataImports['54c24df9-b3e0-4607-a833-f5ccbd3f831a'].log.entries`,
irb(main):002:0* 

while the /root/CartoDB-SQL-API/logs/cartodb-sql-api.log

[2016-10-14 16:20:56.279] [ERROR] [default] - Uncaught exception: Error: listen EADDRINUSE
    at errnoException (net.js:904:11)
    at Server._listen2 (net.js:1042:14)
    at listen (net.js:1064:10)
    at net.js:1146:9
    at dns.js:72:18
    at process._tickCallback (node.js:415:13)
    at Function.Module.runMain (module.js:499:11)
    at startup (node.js:119:16)
    at node.js:902:3



---
You received this message because you are subscribed to a topic in the Google Groups "cartodb" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cartodb/fwkuFRMIHPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cartodb+unsubscribe@googlegroups.com.

Nico Aliotta

unread,
Oct 14, 2016, 9:34:55 AM10/14/16
to car...@googlegroups.com
while about database session:

postgres=# select entries from logs l join data_imports di on l.id::text = di.logger where di.id = '54c24df9-b3e0-4607-a833-f5ccbd3f831a';
ERROR:  relation "logs" does not exist
LINE 1: select entries from logs l join data_imports di on l.id::tex...

Nacho Sanchez

unread,
Oct 14, 2016, 9:44:28 AM10/14/16
to car...@googlegroups.com
Inside bundler: do it without quotes, please

[2016-10-14 16:20:56.279] [ERROR] [default] - Uncaught exception: Error: listen EADDRINUSE: it looks like you're running several SQL API instances, which will probably make CartoDB not work.

database session: please connect to the database first: \c carto_db_development

Nico Aliotta

unread,
Oct 14, 2016, 9:53:38 AM10/14/16
to car...@googlegroups.com

Nacho Sanchez

unread,
Oct 14, 2016, 9:58:37 AM10/14/16
to car...@googlegroups.com
That error is quite strange (and not detailed enough, as it doesn't say what method is missing from which class). Could you please restart resque and retry? Maybe you run it before running the database migrations.

Nico Aliotta

unread,
Oct 14, 2016, 10:34:46 AM10/14/16
to car...@googlegroups.com
ok i did
killall resque

then:
RAILS_ENV=development bundle exec ./script/resque
tryed to uplaod the same zip files and i recieve:
Persisting error? Please send us the following code: 
53e702e4-cc91-4d71-a322-edf0dd06b04e
so 
  1. postgres=# \c carto_db_development
  2. You are now connected to database "carto_db_development" as user "postgres".
  3. carto_db_development=# select entries from logs l join data_imports di on l.id::                                                      text = di.logger where di.id = '53e702e4-cc91-4d71-a322-edf0dd06b04e';
this is the result:
postgres=# \c carto_db_development
You are now connected to database "carto_db_development" as user "postgres".
carto_db_development=# select entries from logs l join data_imports di on l.id::text = di.logger where di.id = '53e702e4-cc91-4d71-a322-edf0dd06b04e';

 2016-10-14 14:16:06 UTC: Running on server 26605.s.t4vps.eu with PID: 2919 
 2016-10-14 14:16:06 UTC: new_importer() 
  2016-10-14 14:16:06 UTC: Fetching datasource public_url metadata for item id public/uploads/0831e5634012b3dc23b8/uso_suolo_napoli.zip  
  2016-10-14 14:16:06 UTC: File will be downloaded from public/uploads/0831e56340
12b3dc23b8/uso_suolo_napoli.zip
2016-10-14 14:16:06 UTC: Before importer run
2016-10-14 14:16:06 UTC: Starting import for public/uploads/0831e5634012b3dc23b
8/uso_suolo_napoli.zip
2016-10-14 14:16:06 UTC: Unpacking public/uploads/0831e5634012b3dc23b8/uso_suol
o_napoli.zip
2016-10-14 14:16:06 UTC: Filename: /tmp/imports/20161014-2919-128t9nb/uso_suolo
_napoli.shp Size (bytes): 4414584
2016-10-14 14:16:06 UTC: Importing data from /tmp/imports/20161014-2919-128t9nb
/uso_suolo_napoli.shp
2016-10-14 14:16:06 UTC: File-based import load
2016-10-14 14:16:09 UTC: Detected encoding UTF-8
2016-10-14 14:16:09 UTC: Using database connection with {:adapter=>"postgres",
:encoding=>"unicode", :host=>"localhost", :port=>5432, :direct_port=>5432, :database=>"cartodb_dev_user_37dc962f-28ab-4644-94dc-e5c0ffbb71f4_db", :username=>"development_cartodb_user_37dc962f-28ab-4644- 
2016-10-14 14:16:11 UTC: ogr2ogr call:            OSM_USE_CUSTOM_INDEXING=NO PG
_USE_COPY=YES PGCLIENTENCODING=UTF-8  /usr/bin/ogr2ogr2.1 -f PostgreSQL  PG:"host=localhost port=5432 user=development_cartodb_user_37dc962f-28ab-4644-94dc-e5c0ffbb71f4 dbname=cartodb_dev_user_37dc962f-28ab-4644-94dc-e5c0ffbb71f4_db password=b8b0fcfb49ed5a97bd6aa90927a12d59ac1530f8development_cartodb_user_37dc962f-28ab-4644-94dc-e5c0ffbb71f4" -t_srs EPSG:4326  -lco DIM=2 -lco PRECISION=NO /tmp/imports/20161014-2919-128t9nb/uso_suolo_napoli.shp  -nln cdb_importer.importer_bf387122921811e6ab79000000000000 -nlt PROMOTE_TO_MULTI  -doo PRELUDE_STATEMENTS="SET statement_timeout TO '1h'" -doo CLOSING_STATEMENTS='SET statement_timeout TO DEFAULT' -update   
 2016-10-14 14:16:11 UTC: ogr2ogr output:          ERROR 4: Unable to open EPSG
support file gcs.csv.   
 Try setting the GDAL_DATA environment variable to point to the   directory containing EPSG csv files.
  ERROR 1: Failed to process SRS definition: EPSG:4326
  
   2016-10-14 14:16:11 UTC: ogr2ogr exit code:       256  
   
 2016-10-14 14:16:11 UTC: Ogr2ogr FAILED!
  2016-10-14 14:16:11 UTC: ogr2ogr.exit_code = 256
  
   2016-10-14 14:16:11 UTC: ogr2ogr.command = OSM_USE_CUSTOM_INDEXING=NO PG_USE_CO
PY=YES PGCLIENTENCODING=UTF-8  /usr/bin/ogr2ogr2.1 -f PostgreSQL  PG:"host=local
host port=5432 user=development_cartodb_user_37dc962f-28ab-4644-94dc-e5c0ffbb71f
4 dbname=cartodb_dev_user_37dc962f-28ab-4644-94dc-e5c0ffbb71f4_db password=b8b0fcfb49ed5a97bd6aa90927a12d59ac1530f8development_cartodb_user_37dc962f-28ab-4644-94dc-e5c0ffbb71f4" -t_srs EPSG:4326  -lco DIM=2 -lco PRECISION=NO /tmp/imports/20161014-2919-128t9nb/uso_suolo_napoli.shp  -nln cdb_importer.importer_bf387122921811e6ab79000000000000 -nlt PROMOTE_TO_MULTI  -doo PRELUDE_STATEMENTS="SET statement_timeout TO '1h'" -doo CLOSING_STATEMENTS='SET statement_timeout TO DEFAULT' -update    

 2016-10-14 14:16:11 UTC: ogr2ogr.command_output = ERROR 4: Unable to open EPSG
support file gcs.csv.

Maybe it continue but i don't know how to copy and paste all the content of the terminal!

';

kire.sc...@googlemail.com

unread,
Oct 14, 2016, 3:39:08 PM10/14/16
to cartodb
If I change the base_url: 'example.com/avatars'  to  base_url:  '/assets/unversioned/images/avatars/'  - nothing happens the console still shows: ActionController::RoutingError (No route matches [GET] "/user/erik/example.com/avatars/avatar_stars_red.png")

Am Donnerstag, 13. Oktober 2016 20:10:19 UTC+2 schrieb Nacho Sanchez:
There's some problem with default avatars currently. I've explained it in this issue: https://github.com/CartoDB/cartodb/issues/10181 .

Nevertheless, uploading it works. You're probably not clicking "Save" at the bottom of your account page after uploading the avatar.
On Thu, Oct 13, 2016 at 7:42 PM, Nico Aliotta <nicoa...@gmail.com> wrote:
kire thank you so much. Now all is fine.

If i solve the issue of image missing i'll let you know. It's strange that also if i try to change image with an avatar of 128 pixel x 128 pixel and smaller then 1 MB it don't change.

Maybe is wrong the "url" 
2016-10-13 19:21 GMT+02:00 kire.schumacher via cartodb <car...@googlegroups.com>:
You can use screen - explanation 


Am Donnerstag, 13. Oktober 2016 18:42:43 UTC+2 schrieb Nico Aliotta:
This happens also to me. I tryed also to change my avatar (128 pixel x 128 pixel) but didn't work

I've also another problem if i close the terminal i cannot see anymore the webpage of carto :(

i  tryed to run in terminal
bundle exec thin start --threaded -p 3000 --threadpool-size 5 &

but when i close the terminal all go offline. Any solution?

Thanks for your help

--

---
You received this message because you are subscribed to a topic in the Google Groups "cartodb" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cartodb/fwkuFRMIHPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cartodb+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Nico Aliotta

unread,
Oct 15, 2016, 12:46:28 PM10/15/16
to cartodb
This is the complete answer about the error code:

kire.sc...@googlemail.com

unread,
Oct 15, 2016, 1:53:22 PM10/15/16
to cartodb
Now we have found out that the GDAL_DATA environment variable was not set. The CSV file is processed now, but after that 
we run into a SQL and/or connection error, which needs further investigation.

kire.sc...@googlemail.com

unread,
Oct 15, 2016, 1:55:42 PM10/15/16
to cartodb
I forgot to say, that:

export GDAL_DATA=/usr/share/gdal/2.1
is the way to go.

Nico Aliotta

unread,
Oct 16, 2016, 11:41:15 AM10/16/16
to car...@googlegroups.com
if i go to http://ip:3000/diagnosis
i can see:

CARTO diagnosis

This page displays information about your installation of CARTO and dependencies. If any of the checks displays an error please follow instructions and install supported versions.

If you have any problem with your installation please write to CARTO Google Group including this information.

Configuration
 
 
Operating Systemok
 
  • Installed version: Description: Ubuntu 12.04.5 LTS
 
Rubyok
  • Installed version: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
 
Nodeok
 
  • Installed version: v0.10.26
 
PostgreSQLerror
  • Installed version: PostgreSQL 9.3.4 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3, 64-bit
  • Current supported version: PostgreSQL 9.5.
 
PostGISok
 
  • Installed version: 2.2.0
CartoDB extensionok
 
  • Installed version: 0.17.1
 
Database connectionok
 
Redisok
 
  • Installed version: 3.0.2
 
Redis connectionok
 
Windshafterror
  • Service url: http://212.24.111.95:8181
  • Full config: {"filter"=>"mapnik", "internal"=>{"protocol"=>"http", "domain"=>"212.24.111.95", "port"=>"8181", "host"=>"127.0.0.1", "verifycert"=>false}, "private"=>{"protocol"=>"http", "domain"=>"212.24.111.95", "port"=>"8181", "verifycert"=>false}, "public"=>{"protocol"=>"http", "domain"=>"212.24.111.95", "port"=>"8181", "verifycert"=>false}}
  • camshaft: 0.45.0
  • grainstore: 1.2.0
  • mapnik: 2.3.0
  • node_mapnik: 1.4.15-cdb10
  • turbo-carto: 0.18.0
  • windshaft: 2.5.0
  • windshaft_cartodb: 2.79.1
SQL APIerror
  • Service url: http://212.24.111.95:8080
  • Full config: {"private"=>{"protocol"=>"http", "domain"=>"212.24.111.95", "endpoint"=>"/api/v1/sql", "port"=>8080}, "public"=>{"protocol"=>"http", "domain"=>"212.24.111.95", "endpoint"=>"/api/v2/sql", "port"=>8080}}
  • cartodb_sql_api: 1.38.1
Resqueerror
 
  • Run Resque: bundle exec script/resque
 
GEOSok
 
  • Installed version: 3.5.0
 
GDALok
 
  • Installed version: 1.11.0





--

Nico Aliotta

unread,
Oct 16, 2016, 11:45:52 AM10/16/16
to car...@googlegroups.com
if i go on http://ipofserver:3000/diagnosis

i can see this:

Resque ok 
5047 pts/4 S+ 0:00 /bin/sh script/resque
Running pids: ["a883cd4b-9174-4cc2-8744-6869225f35c0"]
 GEOS ok 
Installed version: 3.5.0
 GDAL ok 
Installed version: 1.11.0

What can i do?

Thanks in advance for your help

--

Nico Aliotta

unread,
Oct 17, 2016, 10:29:49 AM10/17/16
to cartodb
About the missing avatar

this is the error:

Routing Error

No route matches [GET] "/user/nico/example.com/avatars/avatar_stars_red.png"

Try running rake routes for more information on available routes.


 


Nacho Sanchez

unread,
Oct 17, 2016, 10:58:07 AM10/17/16
to car...@googlegroups.com
There are some issues with default avatars. If you change avatars.base_url at app_config to `base_url: '/assets/unversioned/images/avatars/'` some of them will work, but not all of them. Please let me know if you can't upload your own avatars though.

--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Nico Aliotta

unread,
Oct 17, 2016, 11:11:37 AM10/17/16
to car...@googlegroups.com
i've changed in this way:

  avatars:
    gravatar_enabled: true
    base_url: '/assets/unversioned/images/avatars/'
    kinds: ['stars', 'mountains']
    colors: ['red', 'blue']

But still no work.

And i cannot upload avatar

says
There was an error uploading your avatar. Check the height and size (max 1MB) of the image

But image is 128x128 pixel and only 5kb

while firebug :

400 Bad Request
1552ms
{"error":["The AWS Access Key Id you provided does not exist in our records."]}

i don't know if it's related


---
You received this message because you are subscribed to a topic in the Google Groups "cartodb" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cartodb/fwkuFRMIHPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cartodb+unsubscribe@googlegroups.com.

Nacho Sanchez

unread,
Oct 17, 2016, 11:19:49 AM10/17/16
to car...@googlegroups.com
Probably. Please check that importer S3 options at app_config has no keys, and remove these:

  aws:
    s3:
      access_key_id: "test"
      secret_access_key: "test"

(Maybe you kept it but it's probably not the configuration that you want)

Nico Aliotta

unread,
Oct 17, 2016, 11:27:15 AM10/17/16
to car...@googlegroups.com
yes seems like you sayd. Was # commented that part that you reported.
But still no work

this is my config.yml

Reply all
Reply to author
Forward
0 new messages