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

Trying to use dbsake to recover some table structures, worked on first few now gives me encoding errors. #139

Open
dennis-1g opened this issue Jul 30, 2024 · 2 comments

Comments

@dennis-1g
Copy link

I'm trying to recover some table structures with dbsake and it worked fine on first couple files but now its giving me errors on the last two tables.
This is the full error log.

       Uncaught exception!Error in sys.excepthook:
    Traceback (most recent call last):
      File "./dbsake/dbsake/cli/__init__.py", line 106, in handle_uncaught_exception
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 8: ordinal not in range(128)
    
    Original exception was:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
        "__main__", fname, loader, pkg_name)
      File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
        exec code in run_globals
      File "./dbsake/__main__.py", line 22, in <module>
      File "./dbsake/__main__.py", line 18, in main
      File "./dbsake/dbsake/cli/__init__.py", line 123, in main
      File "./dbsake/click/core.py", line 722, in __call__
      File "./dbsake/click/core.py", line 697, in main
      File "./dbsake/click/core.py", line 1066, in invoke
      File "./dbsake/click/core.py", line 895, in invoke
      File "./dbsake/click/core.py", line 535, in invoke
      File "./dbsake/click/decorators.py", line 17, in new_func
      File "./dbsake/dbsake/cli/cmd/frm.py", line 71, in frmdump
      File "./dbsake/dbsake/cli/cmd/frm.py", line 26, in parse_and_print
      File "./dbsake/dbsake/core/mysql/frm/__init__.py", line 41, in parse
      File "./dbsake/dbsake/core/mysql/frm/binaryfrm.py", line 402, in parse
      File "./dbsake/dbsake/core/mysql/frm/binaryfrm.py", line 314, in unpack_columns
      File "./dbsake/dbsake/core/mysql/frm/charsets.py", line 1151, in lookup
    LookupError: Charset id '0' not found

I've tried looking up online but can't find anything related to dbsake and how to fix it just .csv/xml files and such.
Any Idea on how to fix it?

@Gcuje
Copy link

Gcuje commented Sep 23, 2024

Hello,
Have you solved this problem? I have exactly the same error message when trying to repair a MariaDB database.

@neteor
Copy link

neteor commented Sep 23, 2024

Hello, Have you solved this problem? I have exactly the same error message when trying to repair a MariaDB database.

Likewise, I also need a solution.

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

3 participants