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.

Issue with user mover and raster data

See original GitHub issue

During #4960, we discovered the following issue withg pg_restore and rasters: http://trac.osgeo.org/postgis/ticket/2485

Note: this error looks like this for us:

pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 4715; 0 697887 TABLE DATA o_2_q37866 cartodb_user_9be99c95-2fa3-4c2a-9e64-60282a40874d
pg_restore: [archiver (db)] COPY failed for table "o_2_q37866": ERROR:  function st_bandmetadata(public.raster, integer[]) does not exist
LINE 1: ...(round(nodatavalue::numeric, 10))::numeric[] FROM st_bandmet...
^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

It was solved in postgis 2.3.0 (changelog), but in postgis 2.2.2 (changelog) there is a hacky script to fix this, see section 10.1 in http://postgis.net/docs/manual-2.2/RT_FAQ.html#faq_raster_data_not_restore- #3426, failing POINT EMPTY tests on fun architectures

For the migration, I ran the following script after creating the database and extension, but before importing the data:

ALTER FUNCTION _raster_constraint_pixel_types(raster) SET search_path=pg_catalog,public,postgis;
ALTER FUNCTION _raster_constraint_nodata_values(raster) SET search_path=pg_catalog,public,postgis;
ALTER FUNCTION _raster_constraint_out_db(raster) SET search_path=pg_catalog,public,postgis;
ALTER FUNCTION _raster_constraint_info_regular_blocking(name, name, name) SET search_path=pg_catalog,public,postgis;
ALTER FUNCTION _overview_constraint(raster, integer, name, name, name) SET search_path=pg_catalog,public,postgis;

Although this works, it would be great if we could use the official script.

In order to be able to run that script “after creating the database and extension, but before importing the data” you can add a sleep(10) between those steps (after line 513).

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
javitoninocommented, Jan 9, 2018

I wrote https://github.com/CartoDB/cartodb-management/issues/5080 as a more generic ticket for user mover problems, since it turns our many of them are related.

0reactions
javitoninocommented, Jul 17, 2018

This was already solved

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to add a raster dataset in ArcMap or ArcGIS Pro
Solution or Workaround · Move or save the desired raster dataset to a folder in the local disk (C:). · Launch ArcGIS Pro....
Read more >
Move or copy a mosaic dataset—ArcGIS Pro | Documentation
The easiest way to move a mosaic dataset is by creating a copy in the desired location. After you verify that the mosaic...
Read more >
Transferring files and projects in Fusion 360 | Autodesk
Issue : Fusion 360 data/information (projects, folders, and files, ... To move projects from single-user storage to a team hub, use the same ......
Read more >
Using the move package
With the move package movement data associated with individual animals ... If the public or a registered user has permission to see a...
Read more >
Raster Data — MapServer 8.0.0 documentation
Though not shown rasters can have PROJECTION , METADATA , PROCESSING , MINSCALE , and MAXSCALE information. It cannot have labels, ...
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