Closed akzagain closed 10 months ago
Would you please attach the debug log?
20231015-092235 DBG 2075: --- Logfiles used: /tmp/raspiBackup.log and /tmp/raspiBackup.msg 20231015-092235 DBG 2086: --- raspiBackup.sh 0.6.8, 2023-08-22/17:50:31 - 7c4a713 20231015-092235 DBG 2089: --- +================================================================================================================================================+ 20231015-092235 DBG 2090: --- | ===> A lot of sensitive information is masqueraded in this log file. Nevertheless please check the log carefully before you distribute it <=== | 20231015-092235 DBG 2091: --- +================================================================================================================================================+ 20231015-092235 DBG 1917: --> trapWithArg cleanupStartup SIGINT SIGTERM EXIT 20231015-092235 DBG 1922: <-- trapWithArg 20231015-092235 DBG 3712: --> readConfigParameters 20231015-092235 DBG 3727: --- Read config /usr/local/etc/raspiBackup.conf : 0.1.7 20231015-092235 DBG 3727: --- VERSION_CONFIG="0.1.7" 20231015-092235 DBG 3727: --- DEFAULT_BACKUPPATH="/media/usb0/backup" 20231015-092235 DBG 3727: --- DEFAULT_BACKUPTYPE="dd" 20231015-092235 DBG 3727: --- DEFAULT_ZIP_BACKUP=0 20231015-092235 DBG 3727: --- DEFAULT_DD_BACKUP_SAVE_USED_PARTITIONS_ONLY=0 20231015-092235 DBG 3727: --- DEFAULT_KEEPBACKUPS=3 20231015-092235 DBG 3727: --- DEFAULT_KEEPBACKUPS_DD=0 20231015-092235 DBG 3727: --- DEFAULT_KEEPBACKUPS_DDZ=0 20231015-092235 DBG 3727: --- DEFAULT_KEEPBACKUPS_TAR=0 20231015-092235 DBG 3727: --- DEFAULT_KEEPBACKUPS_TGZ=0 20231015-092235 DBG 3727: --- DEFAULT_KEEPBACKUPS_RSYNC=0 20231015-092235 DBG 3727: --- DEFAULT_SMART_RECYCLE=0 20231015-092235 DBG 3727: --- DEFAULT_SMART_RECYCLE_DRYRUN=1 20231015-092235 DBG 3727: --- DEFAULT_SMART_RECYCLE_OPTIONS="7 4 12 1" 20231015-092235 DBG 3727: --- DEFAULT_STOPSERVICES="" 20231015-092235 DBG 3727: --- DEFAULT_STARTSERVICES="" 20231015-092235 DBG 3727: --- DEFAULT_BEFORE_STOPSERVICES="" 20231015-092235 DBG 3727: --- DEFAULT_AFTER_STARTSERVICES="" 20231015-092235 DBG 3727: --- DEFAULT_EMAIL="" 20231015-092235 DBG 3727: --- DEFAULT_SENDER_EMAIL="" 20231015-092235 DBG 3727: --- DEFAULT_EMAIL_PARMS="" 20231015-092235 DBG 3727: --- DEFAULT_MAIL_PROGRAM="mail" 20231015-092235 DBG 3727: --- DEFAULT_TELEGRAM_TOKEN="2@@@@s(45)" 20231015-092235 DBG 3727: --- DEFAULT_TELEGRAM_CHATID="1@@@@@@@3" 20231015-092235 DBG 3727: --- DEFAULT_TELEGRAM_NOTIFICATIONS="FM" 20231015-092235 DBG 3727: --- DEFAULT_PUSHOVER_TOKEN="" 20231015-092235 DBG 3727: --- DEFAULT_PUSHOVER_USER="" 20231015-092235 DBG 3727: --- DEFAULT_PUSHOVER_NOTIFICATIONS="F" 20231015-092235 DBG 3727: --- DEFAULT_PUSHOVER_SOUND_SUCCESS="" 20231015-092235 DBG 3727: --- DEFAULT_PUSHOVER_SOUND_FAILURE="" 20231015-092235 DBG 3727: --- DEFAULT_PUSHOVER_PRIORITY_SUCCESS="0" 20231015-092235 DBG 3727: --- DEFAULT_PUSHOVER_PRIORITY_FAILURE="1" 20231015-092235 DBG 3727: --- DEFAULT_SLACK_WEBHOOK_URL="" 20231015-092235 DBG 3727: --- DEFAULT_SLACK_NOTIFICATIONS="" 20231015-092235 DBG 3727: --- DEFAULT_NOTIFY_START=0 20231015-092235 DBG 3727: --- DEFAULT_MAIL_ON_ERROR_ONLY=0 20231015-092235 DBG 3727: --- DEFAULT_MSG_LEVEL=0 20231015-092235 DBG 3727: --- DEFAULT_COLORING="CM" 20231015-092235 DBG 3727: --- DEFAULT_COLOR_CODES=("#FF8000 33" "#FF0000 31") 20231015-092235 DBG 3727: --- DEFAULT_EMAIL_COLORING="SUBJECT" 20231015-092235 DBG 3727: --- DEFAULT_RESTORE_DEVICE="" 20231015-092235 DBG 3727: --- DEFAULT_VERBOSE=0 20231015-092235 DBG 3727: --- DEFAULT_SKIPLOCALCHECK=0 20231015-092235 DBG 3727: --- DEFAULT_DD_BLOCKSIZE=1MB 20231015-092235 DBG 3727: --- DEFAULT_DD_PARMS="" 20231015-092235 DBG 3727: --- DEFAULT_EXCLUDE_LIST="" 20231015-092235 DBG 3727: --- DEFAULT_NOTIFY_UPDATE=1 20231015-092235 DBG 3727: --- DEFAULT_EXTENSIONS="" 20231015-092235 DBG 3727: --- DEFAULT_RESTORE_EXTENSIONS="" 20231015-092235 DBG 3727: --- DEFAULT_LANGUAGE="" 20231015-092235 DBG 3727: --- DEFAULT_DEPLOYMENT_HOSTS="" 20231015-092235 DBG 3727: --- DEFAULT_YES_NO_RESTORE_DEVICE="loop" 20231015-092235 DBG 3727: --- DEFAULT_RESIZE_ROOTFS=1 20231015-092235 DBG 3727: --- DEFAULT_LINK_BOOTPARTITIONFILES=0 20231015-092235 DBG 3727: --- DEFAULT_TAR_BOOT_PARTITION_ENABLED=0 20231015-092235 DBG 3727: --- DEFAULT_SKIP_DEPRECATED="" 20231015-092235 DBG 3727: --- DEFAULT_CHECK_FOR_BAD_BLOCKS=0 20231015-092235 DBG 3727: --- DEFAULT_TIMESTAMPS=0 20231015-092235 DBG 3727: --- DEFAULT_SYSTEMSTATUS=0 20231015-092235 DBG 3727: --- DEFAULT_REBOOT_SYSTEM=0 20231015-092235 DBG 3727: --- DEFAULT_RESTORE_REMINDER_INTERVAL=6 20231015-092235 DBG 3727: --- DEFAULT_RESTORE_REMINDER_REPEAT=3 20231015-092235 DBG 3727: --- DEFAULT_PARTITIONBASED_BACKUP=0 20231015-092235 DBG 3727: --- DEFAULT_PARTITIONS_TO_BACKUP="" 20231015-092235 DBG 3727: --- DEFAULT_DYNAMIC_MOUNT="" 20231015-092235 DBG 3757: <-- readConfigParameters 20231015-092235 DBG 2585: --> logOptions Standard option files 20231015-092235 DBG 2587: --- Options: -o systemctl stop cron -a systemctl start cron -p /media/usb1/backup -t rsync -k 3 -u --exclude=/mnt/ -L /var/log/raspiBackup/raspiBackup.log 20231015-092235 DBG 2588: --- AFTER_STARTSERVICES= 20231015-092235 DBG 2589: --- APPEND_LOG=0 20231015-092235 DBG 2590: --- APPEND_LOG_OPTION=-a 20231015-092235 DBG 2591: --- BACKUPPATH=/media/usb0/backup 20231015-092235 DBG 2592: --- BACKUPTYPE=dd 20231015-092236 DBG 2593: --- BEFORE_STOPSERVICES= 20231015-092236 DBG 2594: --- BOOT_DEVICE= 20231015-092236 DBG 2595: --- CHECK_FOR_BAD_BLOCKS=0 20231015-092236 DBG 2596: --- COLOR_CODES=#FF8000 33 #FF0000 31 20231015-092236 DBG 2597: --- COLORING=CM 20231015-092236 DBG 2598: --- CONFIG_FILE= 20231015-092236 DBG 2599: --- DD_BACKUP_SAVE_USED_PARTITIONS_ONLY=0 20231015-092236 DBG 2600: --- DD_BLOCKSIZE=1MB 20231015-092236 DBG 2601: --- DD_PARMS= 20231015-092236 DBG 2602: --- DD_WARNING=0 20231015-092236 DBG 2603: --- DEPLOYMENT_HOSTS= 20231015-092236 DBG 2604: --- DYNAMIC_MOUNT= 20231015-092236 DBG 2605: --- EMAIL= 20231015-092236 DBG 2606: --- EMAIL_COLORING=SUBJECT 20231015-092236 DBG 2607: --- EMAIL_PARMS= 20231015-092236 DBG 2608: --- EXCLUDE_LIST= 20231015-092236 DBG 2609: --- EXTENSIONS= 20231015-092236 DBG 2610: --- RESTORE_EXTENSIONS= 20231015-092236 DBG 2611: --- FAKE=0 20231015-092236 DBG 2612: --- FINAL_COMMAND= 20231015-092236 DBG 2613: --- HANDLE_DEPRECATED= 20231015-092236 DBG 2614: --- IGNORE_ADDITIONAL_PARTITIONS=0 20231015-092236 DBG 2615: --- KEEPBACKUPS=3 20231015-092236 DBG 2616: --- KEEPBACKUPS_DD=0 20231015-092236 DBG 2617: --- KEEPBACKUPS_DDZ=0 20231015-092236 DBG 2618: --- KEEPBACKUPS_TAR=0 20231015-092236 DBG 2619: --- KEEPBACKUPS_TGZ=0 20231015-092236 DBG 2620: --- KEEPBACKUPS_RSYNC=0 20231015-092236 DBG 2621: --- LANGUAGE=EN 20231015-092236 DBG 2622: --- LINK_BOOTPARTITIONFILES=0 20231015-092236 DBG 2623: --- LOG_LEVEL=1 20231015-092236 DBG 2624: --- LOG_OUTPUT=2 20231015-092236 DBG 2625: --- MAIL_ON_ERROR_ONLY=0 20231015-092236 DBG 2626: --- MAIL_PROGRAM=mail 20231015-092236 DBG 2627: --- MSG_LEVEL=0 20231015-092236 DBG 2628: --- NOTIFY_START=0 20231015-092236 DBG 2629: --- NOTIFY_UPDATE=1 20231015-092236 DBG 2630: --- PARTITIONBASED_BACKUP=0 20231015-092236 DBG 2631: --- PARTITIONS_TO_BACKUP= 20231015-092236 DBG 2632: --- PUSHOVER_TOKEN= 20231015-092236 DBG 2633: --- PUSHOVER_USER= 20231015-092237 DBG 2634: --- PUSHOVER_NOTIFICATIONS=F 20231015-092237 DBG 2635: --- PUSHOVER_SOUND_SUCCESS= 20231015-092237 DBG 2636: --- PUSHOVER_SOUND_FAILURE= 20231015-092237 DBG 2637: --- PUSHOVER_PRIORITY_SUCCESS=0 20231015-092237 DBG 2638: --- PUSHOVER_PRIORITY_FAILURE=1 20231015-092237 DBG 2639: --- REBOOT_SYSTEM=0 20231015-092237 DBG 2640: --- RESIZE_ROOTFS=1 20231015-092237 DBG 2641: --- RESTORE_DEVICE= 20231015-092237 DBG 2642: --- ROOT_PARTITION= 20231015-092237 DBG 2643: --- RSYNC_BACKUP_ADDITIONAL_OPTIONS= 20231015-092237 DBG 2644: --- RSYNC_BACKUP_OPTIONS=-aHAx --delete 20231015-092237 DBG 2645: --- RSYNC_IGNORE_ERRORS= 20231015-092237 DBG 2646: --- SENDER_EMAIL= 20231015-092237 DBG 2647: --- SKIP_DEPRECATED= 20231015-092237 DBG 2648: --- SKIPLOCALCHECK=0 20231015-092237 DBG 2649: --- SLACK_WEBHOOK_URL= 20231015-092237 DBG 2650: --- SLACK_NOTIFICATIONS= 20231015-092237 DBG 2651: --- SMART_RECYCLE=0 20231015-092237 DBG 2652: --- SMART_RECYCLE_DRYRUN=1 20231015-092237 DBG 2653: --- SMART_RECYCLE_OPTIONS=7 4 12 1 20231015-092237 DBG 2654: --- STARTSERVICES= 20231015-092237 DBG 2655: --- STOPSERVICES= 20231015-092237 DBG 2656: --- SYSTEMSTATUS=0 20231015-092237 DBG 2657: --- TAR_BACKUP_ADDITIONAL_OPTIONS= 20231015-092237 DBG 2658: --- TAR_BACKUP_OPTIONS=-cpi --one-file-system 20231015-092237 DBG 2659: --- TAR_BOOT_PARTITION_ENABLED=0 20231015-092237 DBG 2660: --- TAR_IGNORE_ERRORS= 20231015-092237 DBG 2661: --- TAR_RESTORE_ADDITIONAL_OPTIONS= 20231015-092237 DBG 2662: --- TELEGRAM_TOKEN=2@@@@s(45) 20231015-092237 DBG 2663: --- TELEGRAM_CHATID=1@@@@@@@3 20231015-092237 DBG 2664: --- TELEGRAM_NOTIFICATIONS=FM 20231015-092237 DBG 2665: --- TIMESTAMPS=0 20231015-092237 DBG 2666: --- UPDATE_UUIDS=0 20231015-092237 DBG 2667: --- VERBOSE=0 20231015-092237 DBG 2668: --- YES_NO_RESTORE_DEVICE=loop 20231015-092237 DBG 2669: --- ZIP_BACKUP=0 20231015-092237 DBG 2671: <-- logOptions 20231015-092237 DBG 8772: --> checkOptionParameter -o systemctl stop cron 20231015-092237 DBG 8777: <-- checkOptionParameter systemctl stop cron 20231015-092237 DBG 8772: --> checkOptionParameter -a systemctl start cron 20231015-092237 DBG 8777: <-- checkOptionParameter systemctl start cron 20231015-092237 DBG 8772: --> checkOptionParameter -p /media/usb1/backup 20231015-092237 DBG 8793: <-- checkOptionParameter /media/usb1/backup 20231015-092237 DBG 8772: --> checkOptionParameter -t rsync 20231015-092238 DBG 8793: <-- checkOptionParameter rsync 20231015-092238 DBG 8772: --> checkOptionParameter -k 3 20231015-092238 DBG 8793: <-- checkOptionParameter 3 20231015-092238 DBG 8772: --> checkOptionParameter -u --exclude=/mnt/ 20231015-092238 DBG 8783: <-- checkOptionParameter --exclude=/mnt/* 20231015-092238 DBG 8772: --> checkOptionParameter -L /var/log/raspiBackup/raspiBackup.log 20231015-092238 DBG 8793: <-- checkOptionParameter /var/log/raspiBackup/raspiBackup.log 20231015-092238 DBG 2340: cat /etc/os-release 20231015-092238 DBG 2340: PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" 20231015-092238 DBG 2340: NAME="Raspbian GNU/Linux" 20231015-092238 DBG 2340: VERSION_ID="11" 20231015-092238 DBG 2340: VERSION="11 (bullseye)" 20231015-092238 DBG 2340: VERSION_CODENAME=bullseye 20231015-092238 DBG 2340: ID=raspbian 20231015-092238 DBG 2340: ID_LIKE=debian 20231015-092238 DBG 2340: HOME_URL="http://www.raspbian.org/" 20231015-092238 DBG 2340: SUPPORT_URL="http://www.raspbian.org/RaspbianForums" 20231015-092238 DBG 2340: BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" 20231015-092238 DBG 2347: --- Modelpath: Raspberry Pi 2 Model B Rev 1.1 20231015-092238 DBG 2355: --- /etc/rpi-issue: Raspberry Pi reference 2015-01-31 (armhf) 20231015-092238 DBG 2355: --- Generated using spindle, http://asbradbury.org/projects/spindle/, 56db930, stage4-lxde-edu.qed 20231015-092238 DBG 8562: --> check4RequiredCommands 20231015-092238 DBG 3950: --> colorAnnotation 1 20231015-092238 DBG 3974: <-- colorAnnotation ??? RBK0193E: Missing required commands 'fdisk sfdisk'. 20231015-092238 DBG 3950: --> colorAnnotation 1 20231015-092238 DBG 3974: <-- colorAnnotation ??? RBK0194E: Missing required packages. Install them with 'sudo apt-get install util-linux util-linux'. 20231015-092238 DBG 2454: --> exitError 120 20231015-092238 DBG 2461: <-- exitError 120 20231015-092238 DBG 4592: --> cleanupStartup 20231015-092238 DBG 4924: --> cleanupTempFiles 20231015-092238 DBG 4931: <-- cleanupTempFiles 20231015-092238 DBG 4491: --- Masquerading some mount options 20231015-092239 DBG 4498: --- Masquerading telegram token 20231015-092239 DBG 4503: --- Masquerading telegram chatid 20231015-092239 DBG 4521: --- Masquerading home directory name 20231015-092239 DBG 4526: --- Masquerading hostname 20231015-092239 DBG 4531: --- Masquerading sensitive non local IPs 20231015-092239 DBG 2097: --> logFinish 20231015-092239 DBG 2117: --- LOG_OUTPUT: /var/log/raspiBackup/raspiBackup.log 20231015-092239 DBG 2144: --- DEST_LOGFILE: /var/log/raspiBackup/raspiBackup.log.log 20231015-092239 DBG 2145: --- DEST_MSGFILE: /var/log/raspiBackup/raspiBackup.log.msg 20231015-092239 DBG 2150: --- Logfiles used: /var/log/raspiBackup/raspiBackup.log.log and /tmp/raspiBackup.msg 20231015-092239 DBG 2155: --- Logfiles used: /var/log/raspiBackup/raspiBackup.log.log and /var/log/raspiBackup/raspiBackup.log.msg 20231015-092239 DBG 2162: cat /tmp/raspiBackup.logf 20231015-092239 DBG 2162: 20231015-092240 DBG 3950: --> colorAnnotation 1 20231015-092240 DBG 3974: <-- colorAnnotation 20231015-092240 DBG 2177: <-- logFinish 20231015-092240 DBG 4611: <-- cleanupStartup
Please attach the file and don't copy the contents because that's difficult to read for me :-)
Like this? raspiBackup.log
Perfect :-)
Why was an error message never sent? Seems a failure, right?
Yes. I have to create a fix.
You need to run "sudo apt-get install fdisk" to solve the problem
Yes. I have to fix the message.
@akzagain Please verify the fix.
1) Execute curl -s https://raw.githubusercontent.com/framps/raspiBackup/master/scripts/raspiBackupDownloadFromGit.sh | bash -s -- issue-688
to download the fix into current directory
2) Uninstall fdisk
3) Execute sudo ./raspiBackup.sh
- You should get a telegram notification about a failure
4) Install fdisk
5) Execute sudo ./raspiBackup.sh
- Backup should succeed
@akzagain Please verify the fix :wink:
Thanks for the heads-up. I've verified it and works fine, thanks! But the advice have twice fdisk. The command should be: sudo apt-get install fdisk
But the advice have twice fdisk. The command should be: sudo apt-get install fdisk
I'm sorry. I don't get your point. Would you please elaborate on this a bit more?
When the scripts detects the missing fdisk command, it advises to install it. That advice tells that the command to execute is "sudo apt-get install fdisk fdisk" instead of "sudo apt-get install fdisk".
Got it now. Thank you
Merged into master
Fix undone in 0.6.9 because option -U et al caused faiures.
Hi,
I am using raspiBackup with DEFAULT_TELEGRAM_NOTIFICATIONS="FM".
Recently I discovered that backups were missing. Manually running the script gave me an error message. RBK0193E: Missing required command 'fdisk sfdisk' and the advice to execute "????". RBK0194E: Required packages are missing. Install them with 'sudo apt-get install util-linux'."
Two things:
Cheers!