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.

[Support]: ValueError: bad marshal data (unknown type code)

See original GitHub issue

Describe the problem you are having

Frigate was working fine yesterday, woke up today to the Add-on not running with the following log output:

Version

0.10.1

Frigate config file

mqtt:
  host: core-mosquitto
  user: frigate
  password: x
rtmp:
  enabled: False
objects:
  track:
    - person
    - car
    - motorcycle
    - dog
    - cat
cameras:
  front_porch:
    ffmpeg:
      inputs:
        - path: rtsp://admin:x@10.0.3.6:554/h264Preview_01_sub
          roles:
            - detect
            - rtmp
            - record
    detect:
      width: 640
      height: 480
      fps: 5
  driveway:
    ffmpeg:
      inputs:
        - path: rtsp://admin:x@10.0.3.7:554/h264Preview_01_sub
          roles:
            - detect
            - rtmp
            - record
    detect:
      width: 640
      height: 480
      fps: 5
  back_driveway:
    ffmpeg:
      inputs:
        - path: rtsp://admin:x@10.0.3.8:554/h264Preview_01_sub
          roles:
            - detect
            - rtmp
            - record
    detect:
      width: 640
      height: 480
      fps: 5
  garage:
    ffmpeg:
      inputs:
        - path: rtsp://admin:x@10.0.50.119:8554/unicast
          roles:
            - detect
            - rtmp
    detect:
      width: 1280
      height: 720
      fps: 5
    objects:
      track:
        - person
        - motorcycle
        - dog
        - cat
snapshots:
  enabled: True
detectors:
  coral:
    type: edgetpu
    device: usb
ffmpeg:
  hwaccel_args:
    - -hwaccel
    - vaapi
    - -hwaccel_device
    - /dev/dri/renderD128
    - -hwaccel_output_format
    - yuv420p

Relevant log output

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
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 "/opt/frigate/frigate/__main__.py", line 9, in <module>
    from frigate.app import FrigateApp
  File "/opt/frigate/frigate/app.py", line 13, in <module>
    from peewee_migrate import Router
  File "/usr/local/lib/python3.8/dist-packages/peewee_migrate/__init__.py", line 6, in <module>
    import peewee as pw
  File "/usr/local/lib/python3.8/dist-packages/peewee.py", line 7, in <module>
    import calendar
  File "/usr/lib/python3.8/calendar.py", line 10, in <module>
    import locale as _locale
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 844, in exec_module
  File "<frozen importlib._bootstrap_external>", line 976, in get_code
  File "<frozen importlib._bootstrap_external>", line 640, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

FFprobe output from your camera

N/A

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Network connection

Wired

Camera make and model

Reolink/Wyze

Any other information that may be helpful

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
NickM-27commented, Sep 22, 2022

Glad that worked. Going to close and if something else comes up feel free to create a new issue.

0reactions
mcn18commented, Sep 22, 2022

Running in Proxmox on an Intel NUC.

Just rebooted my HassOS host and it seems to be working again. Weird.

I guess I forgot the first rule of IT

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix Python ValueError:bad marshal data?
In my case I was using awscli on Debian 9 and the error was "ValueError: bad marshal data (set size out of range)"....
Read more >
"bad marshal data" when loading model that was saved with ...
The marshal module exists mainly to support reading and writing the “pseudo-compiled” ... ValueError: bad marshal data (unknown type code) ...
Read more >
Error: ValueError: Bad marshal data when running Python script
Cause. A . pyc file ('compiled' Python file) in the Python install folder has become corrupt. These files are used by Python to...
Read more >
Solved: Desktop error when importing python package
<pi>ValueError: bad marshal data (unknown type code) </pi> Details: DataSourceKind=Python DataSourcePath=Python Message=Python script error.
Read more >
ValueError: bad marshal data (unknown type code)
I'm running weewx version 4.5.1, using Python 3.7.3, platform Linux-5.10.11-v7l+-armv7l-with-debian-10.8 and locale is 'nb_NO.UTF-8'.
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