question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run CDB_CartodbfyTable

See original GitHub issue

Context

Unable to run cdb_cartodbfytable.

version: commit 727ec0c13b3d14a35cb7103d925988dda2d5d06b (HEAD, tag: v4.32.0)

Steps to Reproduce

❯ curl -X GET -k "https://localhost.lan/user/rasul/api/v2/sql?api_key=${api_key}&q=CREATE+TABLE+rasul.upload_example2+(the_geom+geometry,name+text,age+integer)"

❯ curl -X GET -k "https://localhost.lan/user/rasul/api/v2/sql?api_key=${api_key}&q=SELECT+CDB_CartodbfyTable('rasul','upload_example2')" | jq                   
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   372    0   372    0     0    279      0 --:--:--  0:00:01 --:--:--   279
{
  "rows": [
    {
      "cdb_cartodbfytable": "upload_example2"
    }
  ],
  "time": 0.169,
  "fields": {
    "cdb_cartodbfytable": {
      "type": "regclass",
      "pgtype": "regclass"
    }
  },
  "total_rows": 1,
  "warnings": [
    "Error calling Invalidation Service to link Ghost Tables: Error 111 connecting to 127.0.0.1:3142. Connection refused."
  ],
  "notices": [
    "_CDB_LinkGhostTables() called with username=rasul, event_name=DROP TRIGGER"
  ]
}

Current Result

"Error calling Invalidation Service to link Ghost Tables: Error 111 connecting to 127.0.0.1:3142. Connection refused." and table isn't showing up on dashboard.

Expected result

Table should be registered and show up in dashboard

Browser and version

commit 727ec0c13b3d14a35cb7103d925988dda2d5d06b (HEAD, tag: v4.32.0)

Additional info

Needed to use the copyfrom API

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
sabmancommented, Nov 16, 2022

Trick is to add the feature flag to the database first. Give this a try.

# Add Feature Flag and Eable GhostTables:
bundle exec rake cartodb:features:add_feature_flag[ghost_tables,false]
bundle exec rake cartodb:features:enable_feature_for_all_users[ghost_tables]

– CoFounder https://getgeodb.com

1reaction
gonzaloriestracommented, Jan 28, 2020

Most of the users don’t need this feature because they create their maps directly from the dashboard, and enabling it by default could affect the performance.

Anyway, I’m glad it’s working for you now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found