New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rsync error in load-raster #854
Comments
The problem with the rsync line triggering this exception is that the file being copied does not exist. This file should be created by Steps to reproduce for a test object in stage using the bad data: https://argo-stage.stanford.edu/view/druid:mj707mv2580 Walking manually through what is happening with the raster normalizer being triggered by the
|
So I don't think this is an rsync issue, but rather an issue with computing statistics in this line with this particular object's tif when it is compressed: https://github.com/sul-dlss/gis-robot-suite/blob/main/lib/gis_robot_suite/raster_normalizer.rb#L81 I did leave the PR up that adjusts the rsync call, even though both styles work (original and the one in my PR)... i think maybe it looks cleaner to me. #857 |
Maybe I'm reading it wrong but I think if |
Oh, you are correct, but I had it wrong and will fix in my comment. For that TIFF |
Since load_raster expects to be able to rsync the statistics file that is generated during the normalization step, we should have the normalizer raise an error if it didn't get generated. Refs #854
I can reproduce this problem with gdal. Download the data from Google Drive (it hasn't hit preservation yet so it's not available in Argo) and then:
It doesn't create the This is weird because running the same command on the uncompressed original tif does generate work:
will generate @kimdurante do you remember any issues where |
If a stats file has not been generated (which can happen) don't try to copy it. Refs #854
@kimdurante I've got a branch which simply skips trying to copy the stats file if it's not there, instead of blowing up. I accessioned an the problematic data here using Preassembly. Here is the object:
It seems to display just fine which makes me wonder if GeoServer really needs these stats files? |
* Skip copying stats file if it isn't there If a stats file has not been generated (which can happen) don't try to copy it. Refs #854 * Remove stats generation Since it didn't seem to make a difference to GeoServer per Kim we can remove generating and copying the stats file altogether.
This error popped up when testing remediation in stage. I'm not sure what's going wrong with this one, but maybe the stray single quote is causing a problem?
If you want to try accessioning the files again into stage you can find them in the "Difficult Data" folder as
002.zip
: https://drive.google.com/file/d/14IjHTgerzRh0G8lM_DF9QkXnU8luI4o7/view?usp=drive_linkThe text was updated successfully, but these errors were encountered: