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.

Google Drive Backup does not start

See original GitHub issue

Dear all,

I’m having the issue that the plugin does not start. I can press start but as soon as I try to open I get a “bad gateway” message and “Add-on is not running. Please start it first”.

Before the plugin was working since months without an issue. I don’t really know when the issue started. I observed it after an upgrade to supervisor version 238. Now I’m at version 242 but the issue persists.

To troubleshoot I uninstalled the plugin and re-installed (after reboot). The issue remains.

Any idea how I can fix it? Thanks a lot!

In the google drive backup logs I have following information:

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/app/backup/__main__.py", line 3, in <module>
    import ptvsd
  File "/usr/lib/python3.8/site-packages/ptvsd/__init__.py", line 13, in <module>
    from ._vendored import force_pydevd
  File "/usr/lib/python3.8/site-packages/ptvsd/_vendored/force_pydevd.py", line 18, in <module>
    pydevd_constants = import_module('_pydevd_bundle.pydevd_constants')
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib/python3.8/site-packages/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_constants.py", line 205, in <module>
    from _pydev_imps._pydev_saved_modules import thread
  File "/usr/lib/python3.8/site-packages/ptvsd/_vendored/pydevd/_pydev_imps/_pydev_saved_modules.py", line 22, in <module>
    import xmlrpc.server as _pydev_SimpleXMLRPCServer
ValueError: source code string cannot contain null bytes

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sabeechencommented, Sep 9, 2020

Weird, never seen that before. That error suggest that one of the libraries the addon depends on has the wrong encoding, which really shouldn’t happen. I would have suggested reinstalling it, but you already did that.

What platform/environment are you running this on, and do you know if you’re running the 32 or 64 bit version of Home Assistant? (eg a raspberry pi3, in a VM, on top of ubuntu, etc)

0reactions
phit2000commented, Oct 12, 2020

So - it is solved.

  1. reinstallation HASS.IO on a blank SD card and restoring from a backup did NOT work - Google Drive backup was still not there.
  2. What worked was to install HASS.IO on a blank SD Card, installing the google drive backup addon and then doing a restore from the backup.

Now everything works as expected again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix problems in Drive for desktop - Computer - Google Support
On your computer, open Drive for desktop. · Click Settings Settings and then · Click Settings Settings · Click Disconnect account. · If...
Read more >
Top 10 Ways to Google Backup and Sync Not Working
In order to fix the error of Google Backup and Sync not working, you can also choose to restart the Google Drive Backup...
Read more >
How to Fix Google Backup Not Working In 2022 - TechUntold
If you're in an emergency and your Google Backup is somehow not working, you can usually fix the issue using six methods: disabling...
Read more >
5 Fixes to Can't Launch Drive for Desktop on Windows and Mac
Solution 1. Uninstall and Reinstall Drive for Desktop. You may have installed the wrong version of the Google Drive desktop app. You can ......
Read more >
How to Fix Google Drive Backup and Sync Not Working
Is Google Drive's Backup and Sync client taking too long to upload or download files and folders? Or does it appear to be...
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