defaults: &defaultsdebug_assets: falsemandatory_keys: [layer_opts, tiler_domain, tiler_port, sql_api_domain, sql_api_endpoint, sql_api_port, varnish_management, redis]session_domain: '.mydomain.com'tiler_protocol: 'http'tiler_domain: 'mydomain.com'tiler_port: '8181'sql_api_protocol: 'http'sql_api_domain: 'mydomain.com'sql_api_endpoint: '/api/v1/sql'sql_api_port: 8080api_requests_service_url: ''developers_host: 'http://dev.mydomain.com'layer_opts:...data:kind: "carto"options:query: ""opacity: 0.99auto_bound: falseinteractivity: "cartodb_id"debug: truevisible: truetiler_domain: "mydomain.com"tiler_port: "8181"tiler_protocol: "http"sql_domain: "mydomain.com"sql_port: "8080"sql_protocol: "http"extra_params: { cache_policy: 'persist' }cdn_url: ""
--
---
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/groups/opt_out.
git checkout developgit submodule foreach git checkout developgit merge --ff-only origin/developgit submodule foreach git merge --ff-only origin/developrvm use 1.9.2@cartodb --create && bundle installbundle exec rake db:migratebundle exec rake cartodb:db:load_functionsbundle exec rake assets:cleanbundle exec rake tmp:clearforeman export upstart /etc/init -u root -a cartodb-stack -p 80start cartodb-stack
{"error":["You must indicate a sql query"],"stack":"Error: You must indicate a sql query\n at handleQuery (/root/CartoDB-SQL-API/app/controllers/app.js:151:37)\n at /root/CartoDB-SQL-API/app/controllers/app.js:73:67\n at callbacks (/root/CartoDB-SQL-API/node_modules/express/lib/router/index.js:272:11)\n at param (/root/CartoDB-SQL-API/node_modules/express/lib/router/index.js:246:11)\n at param (/root/CartoDB-SQL-API/node_modules/express/lib/router/index.js:243:11)\n at pass (/root/CartoDB-SQL-API/node_modules/express/lib/router/index.js:253:5)\n at Router._dispatch (/root/CartoDB-SQL-API/node_modules/express/lib/router/index.js:280:5)\n at Object.middleware [as handle] (/root/CartoDB-SQL-API/node_modules/express/lib/router/index.js:45:10)\n at next (/root/CartoDB-SQL-API/node_modules/express/node_modules/connect/lib/http.js:204:15)\n at Object.bodyParser [as handle] (/root/CartoDB-SQL-API/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:88:61)"}i can log into the page and upload file, but when i click MapView i get "There is a Problem with your Connection".
127.0.0.1 localhost192.168.3.43 cartodb.steve.van cartodb
defaults: &defaults
debug_assets: true
mandatory_keys: [layer_opts, sql_api_domain, sql_api_endpoint, sql_api_port, varnish_management, redis, session_domain]
session_domain: '.steve.van'
secret_token: '71c2b25921b84a1cb21c71503ab8fb23'
account_host: 'cartodb.steve.van:3000'
account_path: '/account'
tiler:
private:
protocol: 'http'
domain: 'steve.van'
port: '8181'
public:
protocol: 'http'
domain: 'steve.van'
port: '8181'
sql_api_protocol: 'http'
sql_api_domain: 'steve.van'
sql_api_endpoint: '/api/v1/sql'
sql_api_port: 8080
api_requests_service_url: ''
developers_host: 'cartodb.steve.van:3000'
google_analytics:
primary: ''
embeds: ''
domain: ''
varnish_management:
critical: true
host: '127.0.0.1'
port: 6082
purge_command: 'purge'
retries: 5
timeout: 5
redis:
host: '127.0.0.1'
port: 6379
mixpanel:
api_key: xxx
api_secret: xxx
token: xxx
superadmin:
username: "superadmin"
password: "monkey"
importer:
# OSM imports require osm2pgsql and this tool doesn't
# play well with pgbouncer.
osm2pgsql_port: 5432
layer_opts:
public_opts: ["type", "active", "query", "opacity", "auto_bound",
"interactivity", "debug", "visible", "tiler_domain",
"tiler_port", "tiler_protocol", "sql_domain", "sql_port",
"sql_protocol", "extra_params", "cdn_url", "table_name",
"user_name", "style_version", "tile_style", "query_wrapper"]
default_tile_styles:
point: "{\n marker-fill: #FF6600;\n marker-opacity: 0.9;\n marker-width: 12;\n marker-line-color: white;\n marker-line-width: 3;\n marker-line-opacity: 0.9;\n marker-placement: point;\n marker-type: ellipse;\n marker-allow-overlap: true;\n}"
geometry: "{\n // points\n [mapnik-geometry-type=point] {\n   marker-fill: #FF6600;\n   marker-opacity: 1;\n   marker-width: 12;\n   marker-line-color: white;\n   marker-line-width: 3;\n   marker-line-opacity: 0.9;\n   marker-placement: point;\n   marker-type: ellipse;marker-allow-overlap: true;\n  }\n\n //lines\n [mapnik-geometry-type=linestring] {\n   line-color: #FF6600; \n   line-width: 2; \n   line-opacity: 0.7;\n  }\n\n //polygons\n [mapnik-geometry-type=polygon] {\n   polygon-fill:#FF6600;\n   polygon-opacity: 0.7;\n   line-opacity:1;\n   line-color: #FFFFFF;\n  }\n }"
polygon: "{\n polygon-fill:#FF6600;\n polygon-opacity: 0.7;\n line-opacity:1;\n line-color: #FFFFFF;\n}"
multipolygon: "{\n polygon-fill:#FF6600;\n polygon-opacity: 0.7;\n line-opacity:1;\n line-color: #FFFFFF;\n}"
multilinestring: "{\n line-color:#FF6600;\n line-width:1;\n line-opacity: 0.7;\n}"
data:
kind: "carto"
options:
query: ""
opacity: 0.99
auto_bound: false
interactivity: "cartodb_id"
debug: false
visible: true
tiler_domain: "steve.van"
tiler_port: "8181"
tiler_protocol: "http"
sql_domain: "steve.van"
sql_port: "8080"
sql_protocol: "http"
extra_params: { cache_policy: 'persist' }
cdn_url: ""
tile_style_history: []
style_version: "2.1.1"
infowindow:
template_name: "table/views/infowindow_light"
background:
kind: "background"
options: { color: '#ffffff' }
base:
kind: "tiled"
options:
visible: true
type: "Tiled"
urlTemplate: "https://maps.nlp.nokia.com/maptiler/v2/maptile/newest/normal.day/{z}/{x}/{y}/256/png8?lg=eng&token=A7tBPacePg9Mj_zghvKt9Q&app_id=KuYppsdXZznpffJsKT24"
name: 'Nokia Day'
className: "nokia_day"
attribution: "©2012 Nokia <a href='http://here.net/services/terms' target='_blank'>Terms of use</a>"
gmaps:
kind: "gmapsbase"
options:
base_type: "roadmap"
style: ""
cartodb_com_hosted: true
cartodb_central_domain_name: 'cartodb.com'
aws:
s3:
access_key_id: "test"
secret_access_key: "test"
assets:
s3_bucket_name: "tests"
max_file_size: 10485760 # 10.megabytes
development:
<<: *defaults
varnish_management:
critical: false
host: '127.0.0.1'
port: 6082
purge_command: 'purge'
url_purge_command: 'url.purge'
retries: 5
timeout: 5
test:
<<: *defaults
staging:
<<: *defaults
production:
<<: *defaults
var config = {
environment: 'development'
,port: 8181
,host: '0.0.0.0'
,maxConnections:128
,socket_timeout: 600000
,enable_cors: true
,cache_enabled: false
,log_format: '[:date] :req[X-Real-IP] :method :req[Host]:url :status :response-time ms -> :res[Content-Type] (:res[X-Tiler-Profiler])'
,postgres_auth_user: 'development_cartodb_user_<%= user_id %>'
,postgres: {
type: "postgis",
user: "postgres",
host: '127.0.0.1',
port: 5432,
extent: "-20037508.3,-20037508.3,20037508.3,20037508.3",
/* experimental
geometry_field: "the_geom",
extent: "-180,-90,180,90",
srid: 4326,
*/
row_limit: 65535,
simplify_geometries: true,
max_size: 500
}
,mapnik_version: '2.1.0'
,renderer: {
// Milliseconds since last access before renderer cache item expires
cache_ttl: 60000,
metatile: 4,
bufferSize: 64
}
,millstone: {
cache_basedir: '/tmp/cdb-tiler-dev/millstone-dev'
}
,redis: {
host: '127.0.0.1',
port: 6379,
max: 50,
idleTimeoutMillis: 1, // idle time before dropping connection
reapIntervalMillis: 1 // time between cleanups
}
,sqlapi: {
protocol: 'http',
host: '127.0.0.1',
port: 8080,
version: 'v1'
}
,varnish: {
host: '127.0.0.1',
port: 6082,
ttl: 86400
}
,useProfiler:true
};
module.exports = config;
module.exports.base_url = '/api/:version';
module.exports.node_port = 8080;
module.exports.node_host = '0.0.0.0';
// idle socket timeout, in miliseconds
module.exports.node_socket_timeout = 600000;
module.exports.environment = 'development';
module.exports.db_base_name = 'cartodb_dev_user_<%= user_id %>_db';
module.exports.db_user = 'development_cartodb_user_<%= user_id %>';
module.exports.db_host = '127.0.0.1';
module.exports.db_port = '6432';
// Max database connections in the pool
// Subsequent connections will wait for a free slot.
// NOTE: not used by OGR-mediated accesses
module.exports.db_pool_size = 500;
// Milliseconds before a connection is removed from pool
module.exports.db_pool_idleTimeout = 30000;
// Milliseconds between idle client checking
module.exports.db_pool_reapInterval = 1000;
module.exports.redis_host = '127.0.0.1';
module.exports.redis_port = 6379;
module.exports.redisPool = 50;
module.exports.redisIdleTimeoutMillis = 100;
module.exports.redisReapIntervalMillis = 10;
module.exports.redisLog = false;
// Max number of entries in the query tables cache
module.exports.tableCacheMax = 8192;
// Max age of query table cache items, in milliseconds
module.exports.tableCacheMaxAge = 1000*60*10;
// Temporary directory
module.exports.tmpDir = '/tmp';
Started GET "/assets/layout/wizard-density-hex.png" for 192.168.63.135 at 2013-08-20 09:06:41 -0700
Served asset /layout/wizard-density-hex.png - 304 Not Modified (0ms)
[Tue, 20 Aug 2013 16:06:41 GMT] - OPTIONS cartodb.steve.van:8181/tiles/layergroup?map_key=70e04d6c109b41352830a869c0c2b1d7e11d68d4 200 - ms -> text/html; charset=utf-8 (-)
[Tue, 20 Aug 2013 16:06:41 GMT] - POST cartodb.steve.van:8181/tiles/layergroup?map_key=70e04d6c109b41352830a869c0c2b1d7e11d68d4 400 6 ms -> application/json; charset=utf-8 (TOT:6;cors:1;cartoData.authorize:1;cartoData.getDatabase:1;cartoData.getGeometryType:2;createLayergroup:1)
{"errors":["Error: could not fetch source tables: getaddrinfo ENOENT"]}
sqlapi: {
protocol: 'http',
host: 'cartodb.steve.van',
port: 8080,
version: 'v1'
}
In Windshaft development.js
,millstone: {
cache_basedir: '/tmp/cdb-tiler-dev/millstone-dev'
}
&
In CartoDB-SQL-API development.js
// Temporary directory
module.exports.tmpDir = '/tmp';