digital-guard / preserv

Digital Preservation Project
http://git.digital-guard.org/preserv
Apache License 2.0
0 stars 0 forks source link

Alteração de sha256 #122

Closed crebollobr closed 1 year ago

crebollobr commented 1 year ago

Tive que alterar a chave sha256 de um arquivo e agora o make me não funciona. Link: https://github.com/digital-guard/preserv-BR/tree/main/data/DF/Brasilia/_pk0068.01

carlos@addressforall:/var/gits/_dg/preserv-BR/data/DF/Brasilia/_pk0068.01$ make me pg_db=ingest20
-- Generating makefile --
cd /var/gits/_dg/preserv/src; make generate_makefile country=BR pack_id=68.1 baseSrcPack=/var/gits/_dg/preserv-BR/data/DF/Brasilia/_pk0068.01 baseSrc=/var/gits/_dg output=/tmp/pg_io/tmpfile_BR68.1
make[1]: Entering directory '/var/gits/_dg/preserv/src'
-- Generating makefile in /tmp/pg_io/tmpfile_BR68.1 --
NOTICE:  codec_desc_global : {"srid": "31983"}
NOTICE:  layer : parcel, method: shp2sql
NOTICE:  codec resultante : {"srid": "31983"}
NOTICE:  codec_extension from method: <NULL>
NOTICE:  layer : building, method: <NULL>
NOTICE:  codec resultante : {"srid": "31983"}
NOTICE:  codec_extension from method: <NULL>
ERROR:  TypeError: the JSON object must be str, bytes or bytearray, not NoneType
CONTEXT:  Traceback (most recent call last):
  PL/Python function "jsonb_mustache_render", line 4, in <module>
    j = json.loads(i)
  PL/Python function "jsonb_mustache_render", line 338, in loads
PL/Python function "jsonb_mustache_render"
SQL statement "SELECT replace(jsonb_mustache_render(mkme_tpl, optim.jsonb_mustache_prepare(p_yaml)),E'\u130C9',$$\"$$)"
PL/pgSQL function optim.generate_makefile(text,text,text,text,text) line 16 at SQL statement
make[1]: *** [makefile:212: generate_makefile] Error 1
make[1]: Leaving directory '/var/gits/_dg/preserv/src'
make: *** [makefile:281: me] Error 2
crebollobr commented 1 year ago

Já foi feito o procedimento: https://github.com/digital-guard/preserv/blob/main/docs/pt/man-diversos.md

0e1 commented 1 year ago

Com key errada, não adianta executar https://github.com/digital-guard/preserv/blob/main/docs/pt/man-diversos.md#atualizar-tabelas-de-optim-atualmente-em-dl03t_main.

Ver: https://github.com/digital-guard/preserv-BR/commit/01d718624a625c9aabf289e3219cc004729e8a93

Já atualizei o banco. make me está funcionando.