Hi,
I have been struggling a couple of days now.
Home assistant seams to have a database corrupted, as all date before 1-SEPT-2024 is gone.
I was lucky to have a backup made on 31-8-2024 (before and after updates installed)
Now, the issue, google drive backup wont start.
Opening the web UI, gets the message the add on has not been started.
After starting it (pressing the button) gets me this:
The add-on seems to not be ready, it might still be starting. Do you want to try again?
in the background I see this:
502: Bad Gateway
Here is the logging of Home Assistant Google Drive Backup Current version: 0.112.1
File "/app/backup/__main__.py", line 1, in <module> import platform File "/usr/lib/python3.11/platform.py", line 139, in <module> _component_re = re.compile(r'([0-9]+|[._+-])') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/__init__.py", line 294, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 747, in compile code = _code(p, flags) ^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 577, in _code _compile_info(code, p, flags) File "/usr/lib/python3.11/re/_compiler.py", line 525, in _compile_info prefix, prefix_skip, got_all = _get_literal_prefix(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 450, in _get_literal_prefix prefix1, prefix_skip1, got_all = _get_literal_prefix(p, flagq1) ^^^^^^ NameError: name 'flagq1' is not defined. Did you mean: 'flags1'? Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/app/backup/__main__.py", line 1, in <module> import platform File "/usr/lib/python3.11/platform.py", line 139, in <module> _component_re = re.compile(r'([0-9]+|[._+-])') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/__init__.py", line 294, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 747, in compile code = _code(p, flags) ^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 577, in _code _compile_info(code, p, flags) File "/usr/lib/python3.11/re/_compiler.py", line 525, in _compile_info prefix, prefix_skip, got_all = _get_literal_prefix(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 450, in _get_literal_prefix prefix1, prefix_skip1, got_all = _get_literal_prefix(p, flagq1) ^^^^^^ NameError: name 'flagq1' is not defined. Did you mean: 'flags1'? Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/app/backup/__main__.py", line 1, in <module> import platform File "/usr/lib/python3.11/platform.py", line 139, in <module> _component_re = re.compile(r'([0-9]+|[._+-])') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/__init__.py", line 294, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 747, in compile code = _code(p, flags) ^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 577, in _code _compile_info(code, p, flags) File "/usr/lib/python3.11/re/_compiler.py", line 525, in _compile_info prefix, prefix_skip, got_all = _get_literal_prefix(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 450, in _get_literal_prefix prefix1, prefix_skip1, got_all = _get_literal_prefix(p, flagq1) ^^^^^^ NameError: name 'flagq1' is not defined. Did you mean: 'flags1'? Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/app/backup/__main__.py", line 1, in <module> import platform File "/usr/lib/python3.11/platform.py", line 139, in <module> _component_re = re.compile(r'([0-9]+|[._+-])') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/__init__.py", line 294, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 747, in compile code = _code(p, flags) ^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 577, in _code _compile_info(code, p, flags) File "/usr/lib/python3.11/re/_compiler.py", line 525, in _compile_info prefix, prefix_skip, got_all = _get_literal_prefix(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 450, in _get_literal_prefix prefix1, prefix_skip1, got_all = _get_literal_prefix(p, flagq1) ^^^^^^ NameError: name 'flagq1' is not defined. Did you mean: 'flags1'?
I would like to restore my latest backup, to avoid reinstalling the complete system.
Can anyone point me out what to do, to have the google Drive Backup working again?
Hi, I have been struggling a couple of days now. Home assistant seams to have a database corrupted, as all date before 1-SEPT-2024 is gone. I was lucky to have a backup made on 31-8-2024 (before and after updates installed)
Now, the issue, google drive backup wont start. Opening the web UI, gets the message the add on has not been started. After starting it (pressing the button) gets me this:
The add-on seems to not be ready, it might still be starting. Do you want to try again?
in the background I see this:
502: Bad Gateway
Here is the logging of Home Assistant Google Drive Backup Current version: 0.112.1
File "/app/backup/__main__.py", line 1, in <module> import platform File "/usr/lib/python3.11/platform.py", line 139, in <module> _component_re = re.compile(r'([0-9]+|[._+-])') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/__init__.py", line 294, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 747, in compile code = _code(p, flags) ^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 577, in _code _compile_info(code, p, flags) File "/usr/lib/python3.11/re/_compiler.py", line 525, in _compile_info prefix, prefix_skip, got_all = _get_literal_prefix(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 450, in _get_literal_prefix prefix1, prefix_skip1, got_all = _get_literal_prefix(p, flagq1) ^^^^^^ NameError: name 'flagq1' is not defined. Did you mean: 'flags1'? Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/app/backup/__main__.py", line 1, in <module> import platform File "/usr/lib/python3.11/platform.py", line 139, in <module> _component_re = re.compile(r'([0-9]+|[._+-])') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/__init__.py", line 294, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 747, in compile code = _code(p, flags) ^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 577, in _code _compile_info(code, p, flags) File "/usr/lib/python3.11/re/_compiler.py", line 525, in _compile_info prefix, prefix_skip, got_all = _get_literal_prefix(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 450, in _get_literal_prefix prefix1, prefix_skip1, got_all = _get_literal_prefix(p, flagq1) ^^^^^^ NameError: name 'flagq1' is not defined. Did you mean: 'flags1'? Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/app/backup/__main__.py", line 1, in <module> import platform File "/usr/lib/python3.11/platform.py", line 139, in <module> _component_re = re.compile(r'([0-9]+|[._+-])') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/__init__.py", line 294, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 747, in compile code = _code(p, flags) ^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 577, in _code _compile_info(code, p, flags) File "/usr/lib/python3.11/re/_compiler.py", line 525, in _compile_info prefix, prefix_skip, got_all = _get_literal_prefix(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 450, in _get_literal_prefix prefix1, prefix_skip1, got_all = _get_literal_prefix(p, flagq1) ^^^^^^ NameError: name 'flagq1' is not defined. Did you mean: 'flags1'? Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/app/backup/__main__.py", line 1, in <module> import platform File "/usr/lib/python3.11/platform.py", line 139, in <module> _component_re = re.compile(r'([0-9]+|[._+-])') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/__init__.py", line 294, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 747, in compile code = _code(p, flags) ^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 577, in _code _compile_info(code, p, flags) File "/usr/lib/python3.11/re/_compiler.py", line 525, in _compile_info prefix, prefix_skip, got_all = _get_literal_prefix(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/_compiler.py", line 450, in _get_literal_prefix prefix1, prefix_skip1, got_all = _get_literal_prefix(p, flagq1) ^^^^^^ NameError: name 'flagq1' is not defined. Did you mean: 'flags1'?
I would like to restore my latest backup, to avoid reinstalling the complete system. Can anyone point me out what to do, to have the google Drive Backup working again?
Let me know if you need additional information.