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.

What happened?

I checked it three times and on different computers, there is always an error on phase 5. Python 3.7 and 3.9 OS: Ubuntu 18.04 and Slackware 15.0

Version

1.3.0

What platform are you using?

Linux

What ui mode are you using?

CLI

Relevant log output

[1/5] converting full_blocks
      25195.98 seconds                             
[2/5] converting sub_epoch_segments_v3
      101.57 seconds                             
[3/5] converting hint_store
      6495.97 seconds                             
[4/5] converting coin_store
     32202k coins 2509.2 coins/s  Traceback (most recent call last):
  File "chia-blockchain/venv/bin/chia", line 33, in <module>
    sys.exit(load_entry_point('chia-blockchain', 'console_scripts', 'chia')())
  File "chia-blockchain/chia/cmds/chia.py", line 148, in main
    cli()  # pylint: disable=no-value-for-parameter
  File "chia-blockchain/venv/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "chia-blockchain/venv/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "chia-blockchain/venv/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "chia-blockchain/venv/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "chia-blockchain/venv/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "chia-blockchain/venv/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "chia-blockchain/venv/lib/python3.7/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "chia-blockchain/chia/cmds/db.py", line 32, in db_upgrade_cmd
    no_update_config,
  File "chia-blockchain/chia/cmds/db_upgrade_func.py", line 43, in db_upgrade_func
    convert_v1_to_v2(in_db_path, out_db_path)
  File "chia-blockchain/chia/cmds/db_upgrade_func.py", line 317, in convert_v1_to_v2
    bytes.fromhex(row[0]),
ValueError: non-hexadecimal number found in fromhex() arg at position 4

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Liimpcommented, Mar 14, 2022

also, if you’re syncing a new DB from scratch, chia init will create a v2 database by default

it’s incredible. Same PC, same db, same size of tmpfs, same sdd and I did it 😃 But I did full DB check. I don’t know how, but it works)))

initializing v2 version initializing v2 block store height: 1689665 [1/5] converting full_blocks 587.28 seconds
[2/5] converting sub_epoch_segments_v3 8.30 seconds
[3/5] converting hint_store 12.69 seconds
[4/5] converting coin_store 1720.70 seconds
[5/5] build indices block store coin store hint store 411.11 seconds
updating config.yaml database_path: db/blockchain_v2_CHALLENGE.sqlite

LEAVING PREVIOUS DB FILE UNTOUCHED blockchain_v1_mainnet.sqlite

0reactions
Liimpcommented, Mar 14, 2022

also, if you’re syncing a new DB from scratch, chia init will create a v2 database by default

I’l check it. TY

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixed: potential windows update database error detected
What causes the “potential windows update database error detected” · Corrupt system resgistires · Malware or virus infection · Software bugs · Outdated...
Read more >
Fix potential Windows Update database error detected
How do I fix potential Windows Update database error detected? · 1. Delete folders · 2. Use third-party repairing software · 3. Run...
Read more >
Potential Windows Update Database Error Detected
The error that you have encountered means your operating system is trying to install updates on your PC.
Read more >
Fix: Potential Windows Update Database Error Detected
Database Error during Windows Update · Solution 1: Use the SFC Scan · Solution 2: Use the DISM Tool · Solution 3: Resetting...
Read more >
Solved: Potential windows update database error detected on ...
This error “Potential Windows update database error detected” mostly occurs if the windows update database (software distribution folder, Where ...
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