linuxmint / timeshift

System restore tool for Linux. Creates filesystem snapshots using rsync+hardlinks, or BTRFS snapshots. Supports scheduled snapshots, multiple backup levels, and exclude filters. Snapshots can be restored while system is running or from Live CD/USB.
2.27k stars 81 forks source link

Core dump in /etc/timeshift/timeshift.json doesnt exist #127

Open JeremyLaurenson opened 1 year ago

JeremyLaurenson commented 1 year ago

If there is no config file, timeshft exits rather messily:

root@basementserver:/home/jeremy# timeshift --create --tags D
E: Failed to open file “/etc/timeshift/timeshift.json”: No such file or directory

(process:1846): Json-CRITICAL **: 09:43:11.673: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed

** (process:1846): CRITICAL **: 09:43:11.673: tee_jee_json_helper_json_get_bool: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.673: tee_jee_json_helper_json_get_bool: assertion 'jobj != NULL' failed

(process:1846): Json-CRITICAL **: 09:43:11.673: json_object_has_member: assertion 'object != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.673: tee_jee_json_helper_json_get_bool: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.673: tee_jee_json_helper_json_get_bool: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.673: tee_jee_json_helper_json_get_bool: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.674: tee_jee_json_helper_json_get_bool: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.674: tee_jee_json_helper_json_get_string: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.674: tee_jee_json_helper_json_get_string: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.674: tee_jee_json_helper_json_get_bool: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.674: tee_jee_json_helper_json_get_bool: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.674: tee_jee_json_helper_json_get_bool: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.674: tee_jee_json_helper_json_get_bool: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.674: tee_jee_json_helper_json_get_bool: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.674: tee_jee_json_helper_json_get_int: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.674: tee_jee_json_helper_json_get_int: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.674: tee_jee_json_helper_json_get_int: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.674: tee_jee_json_helper_json_get_int: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.674: tee_jee_json_helper_json_get_int: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.674: tee_jee_json_helper_json_get_string: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.674: tee_jee_json_helper_json_get_uint64: assertion 'jobj != NULL' failed

** (process:1846): CRITICAL **: 09:43:11.674: tee_jee_json_helper_json_get_uint64: assertion 'jobj != NULL' failed

(process:1846): Json-CRITICAL **: 09:43:11.674: json_object_has_member: assertion 'object != NULL' failed

(process:1846): Json-CRITICAL **: 09:43:11.674: json_object_has_member: assertion 'object != NULL' failed
Segmentation fault (core dumped)

It should rather at least ask if you want to set up an empty config.

yegorich commented 1 year ago

This is partly fixed via #169 for console. But it requires a clean solution in the end.