<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div>I can use criu successfully dump/restore my application. For some reason, I need to change vma&amp;opened files to support restore on another computer.<div><br></div><div>I can use CIRT decode mm.img but met following error when tried to decode files.img:</div><div><br></div><div># crit-python3 decode -i backup_dir/files.img --pretty</div><div>.....................</div><div><div>        {</div><div>            &quot;type&quot;: &quot;UNIXSK&quot;,</div><div>            &quot;id&quot;: 31,</div><div>            &quot;usk&quot;: {</div><div>                &quot;id&quot;: 31,</div><div>                &quot;ino&quot;: 265331349,</div><div>                &quot;type&quot;: &quot;STREAM&quot;,</div><div>                &quot;state&quot;: &quot;LISTEN&quot;,</div><div>                &quot;flags&quot;: &quot;0x80002&quot;,</div><div>                &quot;uflags&quot;: &quot;0x0&quot;,</div><div>                &quot;backlog&quot;: 128,</div><div>                &quot;peer&quot;: 0,</div><div>                &quot;fown&quot;: {</div><div>                    &quot;uid&quot;: 0,</div><div>                    &quot;euid&quot;: 0,</div><div>                    &quot;signum&quot;: 0,</div><div>                    &quot;pid_type&quot;: 0,</div><div>                    &quot;pid&quot;: 0</div><div>                },</div><div>                &quot;opts&quot;: {</div><div>                    &quot;so_sndbuf&quot;: 212992,</div><div>                    &quot;so_rcvbuf&quot;: 212992,</div><div>                    &quot;so_snd_tmo_sec&quot;: 0,</div><div>                    &quot;so_snd_tmo_usec&quot;: 0,</div><div>                    &quot;so_rcv_tmo_sec&quot;: 0,</div><div>                    &quot;so_rcv_tmo_usec&quot;: 0,</div><div>                    &quot;reuseaddr&quot;: false,</div><div>                    &quot;so_priority&quot;: 0,</div><div>                    &quot;so_rcvlowat&quot;: 1,</div><div>                    &quot;so_mark&quot;: 0,</div><div>                    &quot;so_passcred&quot;: false,</div><div>                    &quot;so_passsec&quot;: false,</div><div>                    &quot;so_dontroute&quot;: false,</div><div>                    &quot;so_no_check&quot;: false,</div><div>                    &quot;so_reuseport&quot;: false,</div><div>                    &quot;so_broadcast&quot;: false</div><div>                },</div><div>                &quot;name&quot;: Traceback (most recent call last):</div><div>  File &quot;crit/crit-python3&quot;, line 6, in &lt;module&gt;</div><div>    cli.main()</div><div>  File &quot;crit/pycriu/cli.py&quot;, line 410, in main</div><div>    opts[&quot;func&quot;](opts)</div><div>  File &quot;crit/pycriu/cli.py&quot;, line 43, in decode</div><div>    json.dump(img, f, indent=indent)</div><div>  File &quot;/usr/lib64/python3.6/json/__init__.py&quot;, line 179, in dump</div><div>    for chunk in iterable:</div><div>  File &quot;/usr/lib64/python3.6/json/encoder.py&quot;, line 430, in _iterencode</div><div>    yield from _iterencode_dict(o, _current_indent_level)</div><div>  File &quot;/usr/lib64/python3.6/json/encoder.py&quot;, line 404, in _iterencode_dict</div><div>    yield from chunks</div><div>  File &quot;/usr/lib64/python3.6/json/encoder.py&quot;, line 325, in _iterencode_list</div><div>    yield from chunks</div><div>  File &quot;/usr/lib64/python3.6/json/encoder.py&quot;, line 404, in _iterencode_dict</div><div>    yield from chunks</div><div>  File &quot;/usr/lib64/python3.6/json/encoder.py&quot;, line 404, in _iterencode_dict</div><div>    yield from chunks</div><div>  File &quot;/usr/lib64/python3.6/json/encoder.py&quot;, line 437, in _iterencode</div><div>    o = _default(o)</div><div>  File &quot;/usr/lib64/python3.6/json/encoder.py&quot;, line 180, in default</div><div>    o.__class__.__name__)</div><div>TypeError: Object of type &#39;bytes&#39; is not JSON serializable</div><div><br></div><div><br></div><div><div>It looks like something about json format, I&#39;m not familiar with python, can someone help me how to figure out what&#39;s wrong here?</div><div><br></div><div>I&#39;m using CRIU 3.13 and Python 3.6.8</div><div><br></div><div>Thank you very much!!!!</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Jun Gan</div></div></div></div></div></div></div>