grufocom/vee-mail

0.5.17: Execution as Post-Script does not work anymore

Closed this issue ยท 13 comments

If i run the script as Post-Job-Script, i get the following result: (No Warning/Success/Failure)

Screenshot 2020-09-14 194657

If i run the Script manually i get a normal result.

Hi, could you please execute the following command and post the details:

sqlite3 /var/lib/veeam/veeam_db.sqlite "select start_time, end_time, state, progress_details, job_id from JobSessions order by start_time DESC limit 1;"
Regards,
Manfred

Hi Manfred,

result:

1600146001|1600147902|6|<ProgressDetails total_size="1000202043392" total_used_size="291418083328" processed_data_size_bytes="311159382016" read_data_size_bytes="311159382016" transferred_data_size_bytes="186537806" processing_speed="165977341" source_read_load="88" source_processing_load="20" network_load="0" target_write_load="20" network_throttling_enabled="false" repository_throttling_enabled="false" />|{0c651a8e-1a62-48dc-9c44-bbdd316928eb}

State 6 (3rd field) is SUCCESS so that's ok.
I added more debugging in version 0.5.18 - please download and install this version.
Then set DEBUG=1 in the config file and start the backup process again.

Could you post the output of
grep vee-mail /var/log/syslog
after the script has run!?

Backup is working fine. I suggest, the job has no "really finished" at the execution time of the script as post-job-script. Maybe the data above from the sqlite-database is not complete at execution time. Is that possible?

Could you post the output of
grep vee-mail /var/log/syslog
after the script has run!?

Do you mean after the post-job-execution or a manual run?

If DEBUG is set to 0 then the script goes into background and waits for 30 seconds - the backup process should have finished during this time.
if DEBUG was set to 1 then the script skips those 30 seconds and it is possible that the backup job status was not written into the sqlite database.
Yes I meant after the post-job-execution - not in manual mode.

Ok, i thinks thats my problem. Ill deactivate the debug-mode and try it again. Iยดll post a sitrep tomorrow.

perfect - thank you!

version 0.5.19 got another important change, it will check if it is started from veeam and pause for 30 seconds.

Faster update schedule than Mozilla Firefox ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚

the script is one track smaller than firefox :-)

But only one little track...

Script works fine with disabled debug-Mode. Great!

Thank you for your time!

Great work btw! ๐Ÿ’–

nice to hear, thanks for testing and reporting the problem! :-)