Skip to content
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

Fix_missing_blocks script error #95

Open
bensig opened this issue Apr 2, 2022 · 0 comments
Open

Fix_missing_blocks script error #95

bensig opened this issue Apr 2, 2022 · 0 comments

Comments

@bensig
Copy link

bensig commented Apr 2, 2022

This fails with "UnicodeEncodeError: 'latin-1' codec can't encode characters in position 43-44: ordinal not in range(256)"

====================================================================================================
Searching for missing Blocks  
scripts/fix_missing_blocks/fix-missing-blocks.py:131: DeprecationWarning: The 'body' parameter is deprecated for the 'search' API and will be removed in a future version. Instead use API parameters directly. See https://github.com/elastic/elasticsearch-py/issues/1698 for more information
 result = es.search(index="proton-block-*", body=query)
scripts/fix_missing_blocks/fix-missing-blocks.py:247: DeprecationWarning: The 'body' parameter is deprecated for the 'search' API and will be removed in a future version. Instead use API parameters directly. See https://github.com/elastic/elasticsearch-py/issues/1698 for more information
 result = es.search(index="proton-block-*", body=query_body2(gte,lte,1000))
====================================================================================================
Completed Search  
====================================================================================================
1.Building replacement text for config file  
====================================================================================================
2.Updating the config file  
====================================================================================================
3.Config file is now updated for:  0 - 1000 
====================================================================================================
4.Running Re-indexing for:  0 - 1000 

2022-04-02T16:45:30: [2051214 - 00_master] Last indexed block (deltas): 121070391

2022-04-02T16:45:30: [2051214 - 00_master]  |>> First Block: 0

2022-04-02T16:45:30: [2051214 - 00_master]  >>| Last  Block: 1000

2022-04-02T16:45:30: [2051214 - 00_master] Setting parallel reader [1] from block 0 to 1000

2022-04-02T16:45:30: [2051214 - 00_master] Loading indices...

2022-04-02T16:45:31: [2051214 - 00_master] ActionIndex: proton-action-v1-000002 | First: 10000001 | Last: 20000000

2022-04-02T16:45:32: [2051214 - 00_master] ActionIndex: proton-action-v1-000003 | First: 20000001 | Last: 30000000

2022-04-02T16:45:32: [2051214 - 00_master] ActionIndex: proton-action-v1-000004 | First: 30000001 | Last: 40000000

2022-04-02T16:45:38: [2051214 - 00_master] ActionIndex: proton-action-v1-000005 | First: 40000001 | Last: 50000000

2022-04-02T16:45:39: [2051214 - 00_master] ActionIndex: proton-action-v1-000001 | First: 2 | Last: 10000000

2022-04-02T16:45:45: [2051214 - 00_master] ActionIndex: proton-action-v1-000006 | First: 50000001 | Last: 60000000

2022-04-02T16:45:51: [2051214 - 00_master] ActionIndex: proton-action-v1-000007 | First: 60000001 | Last: 70000000

2022-04-02T16:45:51: [2051214 - 00_master] ActionIndex: proton-action-v1-000008 | First: 70000001 | Last: 80000000

2022-04-02T16:45:51: [2051214 - 00_master] ActionIndex: proton-action-v1-000009 | First: 80000001 | Last: 80635816

2022-04-02T16:45:52: [2051214 - 00_master] ActionIndex: proton-action-v1-000013 | First: 120000001 | Last: 121070391

2022-04-02T16:45:52: [2051214 - 00_master] ActionIndex: proton-action-v1-000010 | First: 100000000 | Last: 100000000

2022-04-02T16:45:52: [2051214 - 00_master] ActionIndex: proton-action-v1-000011 | First: 100000001 | Last: 100005113

2022-04-02T16:45:52: [2051214 - 00_master] ActionIndex: proton-action-v1-000012 | First: 117308394 | Last: 120000000

2022-04-02T16:45:54: [2051214 - 00_master] DeltaIndex: proton-delta-v1-000008 | First: 70000001 | Last: 80000000

2022-04-02T16:45:54: [2051214 - 00_master] DeltaIndex: proton-delta-v1-000009 | First: 80000001 | Last: 80635816

2022-04-02T16:45:56: [2051214 - 00_master] DeltaIndex: proton-delta-v1-000006 | First: 50000001 | Last: 60000000

2022-04-02T16:45:59: [2051214 - 00_master] DeltaIndex: proton-delta-v1-000007 | First: 60000001 | Last: 70000000

2022-04-02T16:45:59: [2051214 - 00_master] DeltaIndex: proton-delta-v1-000004 | First: 30000001 | Last: 40000000

2022-04-02T16:46:01: [2051214 - 00_master] DeltaIndex: proton-delta-v1-000005 | First: 40000001 | Last: 50000000

2022-04-02T16:46:03: [2051214 - 00_master] DeltaIndex: proton-delta-v1-000002 | First: 10000001 | Last: 20000000

2022-04-02T16:46:05: [2051214 - 00_master] DeltaIndex: proton-delta-v1-000003 | First: 20000001 | Last: 30000000

2022-04-02T16:46:07: [2051214 - 00_master] DeltaIndex: proton-delta-v1-000001 | First: 9 | Last: 10000000

2022-04-02T16:46:07: [2051214 - 00_master] DeltaIndex: proton-delta-v1-000013 | First: 120000001 | Last: 121070391

2022-04-02T16:46:07: [2051214 - 00_master] DeltaIndex: proton-delta-v1-000011 | First: 100000001 | Last: 100005113

2022-04-02T16:46:08: [2051214 - 00_master] DeltaIndex: proton-delta-v1-000012 | First: 117308394 | Last: 120000000

2022-04-02T16:46:08: [2051214 - 00_master] DeltaIndex: proton-delta-v1-000010 | First: 100000000 | Last: 100000000

2022-04-02T16:46:08: [2051214 - 00_master] Indexer rewrite enabled (0 - 1000)

2022-04-02T16:46:08: [2051214 - 00_master] Delta streaming enabled!

2022-04-02T16:46:08: [2051214 - 00_master] Action trace streaming enabled!

Traceback (most recent call last):
 File "scripts/fix_missing_blocks/fix-missing-blocks.py", line 284, in <module>
   MagicFuzz(gt_lt_list)
 File "scripts/fix_missing_blocks/fix-missing-blocks.py", line 188, in MagicFuzz
   startRewrite(gt,lt)
 File "scripts/fix_missing_blocks/fix-missing-blocks.py", line 213, in startRewrite
   print(line)
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 43-44: ordinal not in range(256)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant