bioatlas / ala-docker

Dockerized version of Atlas of Living Australia components
GNU Affero General Public License v3.0
12 stars 12 forks source link

Image Service losing image id data. #39

Open IuriGarcia opened 5 years ago

IuriGarcia commented 5 years ago

Me again, gentlemen.

So, if the data inside the /data/images/store/* is lost the image service will only show empty thumbnails e the meta data of the image files. There is a way, like a backend command, to recreate or reload all info into the image service again without creating duplicate artifacts?

shahmanash commented 5 years ago

Maybe you could try the download-media from biocache CLI

biocache> download-media --help

Usage: download-media [options] 

  -dr <value> | --data-resource-uid <value>
        The resource to page over and download the media for
  -rowkey <value> | --row-key-record <value>
        The rowkey for record
IuriGarcia commented 5 years ago

I've already tried that command, besides i'm not sure if i am inputting the correct rowkey parameter, or if it is really an optional parameter. I'm always getting this:

biocache> download-media -dr dr0 -rowkey Br:MNRJ:Mollusca:1128
biocache-backend-768475b54d-2gmnf 2019-07-03 14:36:03,089 INFO : [Cassandra3PersistenceManager] - cassandradb/172.20.82.31 allocated ranges: 257
biocache-backend-768475b54d-2gmnf 2019-07-03 14:36:03,090 INFO : [Cassandra3PersistenceManager] - Logging to token range checkpoint file /tmp/token-range-checkpoint.txt
biocache-backend-768475b54d-2gmnf 2019-07-03 14:36:03,090 INFO : [Cassandra3PersistenceManager] - Starting at token range 0
biocache-backend-768475b54d-2gmnf 2019-07-03 14:36:03,090 INFO : [Cassandra3PersistenceManager] - Starting threads...number of callables 0
biocache-backend-768475b54d-2gmnf 2019-07-03 14:36:03,090 INFO : [Cassandra3PersistenceManager] - All threads have completed paging