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.

Submodule for cartodb-postgresql out of sync with versions in code

See original GitHub issue

As of now (at commit a7366989811321929858c4fbbf9a4cd4c96e7df7), the master branch includes two places where the cartodb postgres extension version is hardcoded:

https://github.com/CartoDB/cartodb/blob/a7366989811321929858c4fbbf9a4cd4c96e7df7/app/models/user/db_service.rb#L658-L660

and

https://github.com/CartoDB/cartodb/blob/a7366989811321929858c4fbbf9a4cd4c96e7df7/app/controllers/home_controller.rb#L13-L14

However, the submodule reference at lib/sql is pointing at

https://github.com/CartoDB/cartodb-postgresql/tree/32db4fd81efcba0be0686a0bf67f8cdb62f1133c

Which is the hash for the extension’s 0.29.0 release.

It’s causing this error on user creation:

#<Sequel::DatabaseError: PG::InvalidParameterValue: ERROR:  extension "cartodb" has no update path from version "unpackaged" to version "0.30.0"
CONTEXT:  SQL statement "CREATE EXTENSION cartodb VERSION '0.30.0' FROM unpackaged"
PL/pgSQL function inline_code_block line 10 at SQL statement

@rafatower - Looks like this is from your commit 580b16befba999d24723daa5e2ed2a0c547faa43 – Can you update the submodule version target for lib/sql to match the hard-coded version strings?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
rafatowercommented, Aug 13, 2019

Finally fixed in parallel here: https://github.com/CartoDB/cartodb/pull/15052

Closing this.

Thanks, Nick for reporting.

1reaction
nballengercommented, Aug 13, 2019

Thanks for the fix, @rafatower!

Read more comments on GitHub >

github_iconTop Results From Across the Web

git submodule update vs git submodule sync - Stack Overflow
update is basically doing git pull in each submodule (except without a branch, since the main repo specifies a commit directly).
Read more >
git-submodule Documentation - Git
If --recursive is specified, this command will recurse into the registered submodules, and sync any nested submodules within.
Read more >
How to update Git submodules - TheServerSide.com
If your Git submodule is out of sync with the server, we can help. This git submodule update example shows you how to...
Read more >
Git submodule - Atlassian
A git submodule is a record within a host git repository that points to a specific commit in another external repository. Learn more...
Read more >
Mastering Git submodules - Medium
However, it can happen that submodule code cannot be tested, or even compiled, outside container code. Many themes and plugins have such ...
Read more >

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