Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V0.6.4.1-beta Sample Extensions need updating #78

Closed
pchristod opened this issue Oct 19, 2018 · 20 comments
Closed

V0.6.4.1-beta Sample Extensions need updating #78

pchristod opened this issue Oct 19, 2018 · 20 comments
Assignees
Labels
beta Issues on any beta code bug Issue accepted as a bug

Comments

@pchristod
Copy link

Hi,

I've been testing the Beta since it was released. I haven't had any Problems apart from the outdated Sample Extensions. I'm guessing the Code has changes somehow? The output in the E-Mail looks like this:

10-19-2018 03:39:43 --- RBK1000I: CPU Temperatur vor und nach dem Backup: %1 - %2
10-19-2018 03:39:43 --- RBK1001I: Speicherauslastung - Vor dem Backup: Belegt: %1 Frei: %2 - Nach dem Backup: Belegt: %3 Frei: %4
10-19-2018 03:39:43 --- RBK1002I: Partitionsauslastung vor dem Backup: Belegt: %1 Frei: %2
10-19-2018 03:39:43 --- RBK1003I: Partitionsauslastung nach dem Backup: Belegt: %1 Frei: %2
10-19-2018 03:39:43 --- RBK1004I: Änderung freier Platz: %1 (%2 %)

OS is Raspbian Stretch.
Thanks!

@framps framps self-assigned this Oct 19, 2018
@framps
Copy link
Owner

framps commented Oct 19, 2018

Thank you very much for testing the beta and reporting the issue.

Good catch 👍 👍 👍

The message format for the parameters changed. I missed to update the messages in the extensions 😢 😢 😢

I updated the message used in the extensions in the beta branch. Would be great if you grab the updated extensions from there and test again. But please save the old extensions. There is no supported way to revert to previous extensions with raspiBackup.

@framps framps added the bug Issue accepted as a bug label Oct 19, 2018
@framps
Copy link
Owner

framps commented Oct 19, 2018

Just noticed this is another issue I have to handle somehow.Upgrading of raspiBackup with option -U will not upgrade the extensions 😞

@pchristod
Copy link
Author

Thanks, I will update the Extensions and will report back after my next automatic Backup run.
About the other Issue, I remember the same thing happened to the Config File, this was also not updated, I think you changes that? Why not do it the same way?
Or maybe add an Message by the end of the Upgrade Process so the User can to it himself?

@framps
Copy link
Owner

framps commented Oct 19, 2018

Thank you very much for testing the fix.

You are right - upgrade of the the config and extension is not handled by raspiBackup. Actually it's because the config usually will be updated on your system and an update shouldn't overwrite the current config.
The sample extensions are are just samples and not considered to be handled by the upgrade process.
There was already an issue created regarding config merge during upgrade. That's not easy to handle because the config file has no structured format.

I'll create an issue on this to handle upgrade of samples and configs in next release.

@framps framps added fixed Issue fixed to be verified Request was accepted and implemented and waiting for requestor verification of fix labels Oct 19, 2018
@pchristod
Copy link
Author

Hi, good morning,

I remembered I could test via -F so I did that, unfortunately there is still something missing (probably small). Here's the Output, the Message has changed a little bit:

10-21-2018 09:44:41 --- RBK1000I: CPU Temperatur vor und nach dem Backup: %s - %s
10-21-2018 09:44:41 --- RBK1001I: Speicherauslastung - Vor dem Backup - Belegt: %s MB Frei: %s MB - Nach dem Backup: Belegt: %s MB Frei: %s MB
10-21-2018 09:44:41 --- RBK1002I: Partitionsauslastung vor dem Backup: Belegt: %s Frei: %s
10-21-2018 09:44:42 --- RBK1003I: Partitionsauslastung nach dem Backup: Belegt: %s Frei: %s
10-21-2018 09:44:42 --- RBK1004I: Änderung freier Platz: %s (%s %)

I saw the Issue you opened for the Upgrade Process. Good Luck on that task 👍

@framps
Copy link
Owner

framps commented Oct 21, 2018

Thank you very much for verifying even it failed. I though it's a low hanging fruit. Will check the code now in detail.

@pchristod
Copy link
Author

Thank you very much. Take your time, I know it's low priority because they are just samples. However I find them quite handy to see the free space :) So thanks for keeping them alive.
I'll receive updates on this Issue so I will test again if there's something to test!

@framps framps added fixed Issue fixed and removed to be verified Request was accepted and implemented and waiting for requestor verification of fix fixed Issue fixed labels Oct 23, 2018
@framps
Copy link
Owner

framps commented Oct 23, 2018

@pchristod Is fixed now 😃

@framps framps added the to be verified Request was accepted and implemented and waiting for requestor verification of fix label Oct 23, 2018
@pchristod
Copy link
Author

Thanks, just downloaded them, applied Permissions and tested. Everythin is fixed now. Output is now correct :)

10-23-2018 20:41:05 --- RBK0085I: Backuperstellung vom Typ rsync gestartet. Bitte Geduld.
10-23-2018 20:41:06 --- RBK1000I: CPU Temperatur vor und nach dem Backup: 43.3'C - 43.3'C
10-23-2018 20:41:06 --- RBK1001I: Speicherauslastung - Vor dem Backup - Belegt:  MB Frei:  MB - Nach dem Backup: Belegt:  MB Frei:  MB
10-23-2018 20:41:07 --- RBK1002I: Partitionsauslastung vor dem Backup: Belegt: 14.32 GiB Frei: 13.39 GiB
10-23-2018 20:41:07 --- RBK1003I: Partitionsauslastung nach dem Backup: Belegt: 14.32 GiB Frei: 13.39 GiB
10-23-2018 20:41:07 --- RBK1004I: Änderung freier Platz: 0 Bytes (0.00 )

@framps
Copy link
Owner

framps commented Oct 23, 2018

Memory utilization field is empty 😢 .

I just detected the format for free command depends on the raspbian version. I tested the extension on Wheezy but on Stretch I get the same empty result as you. I just changed the extension to work on Stretch 😃

@pchristod
Copy link
Author

Ah damn, didn't even see it. It was quite a long day. Used the latest files and checked again. Now everything is as it should be :)

10-23-2018 22:13:36 --- RBK0085I: Backuperstellung vom Typ rsync gestartet. Bitte Geduld.
10-23-2018 22:13:36 --- RBK1000I: CPU Temperatur vor und nach dem Backup: 44.4'C - 44.4'C
10-23-2018 22:13:36 --- RBK1001I: Speicherauslastung - Vor dem Backup - Belegt: 939 MB Frei: 206 MB - Nach dem Backup: Belegt: 939 MB Frei: 206 MB
10-23-2018 22:13:37 --- RBK1002I: Partitionsauslastung vor dem Backup: Belegt: 14.32 GiB Frei: 13.39 GiB
10-23-2018 22:13:37 --- RBK1003I: Partitionsauslastung nach dem Backup: Belegt: 14.32 GiB Frei: 13.39 GiB
10-23-2018 22:13:37 --- RBK1004I: Änderung freier Platz: 0 Bytes (0.00 )

@framps
Copy link
Owner

framps commented Oct 24, 2018

Great. Thank you very much for verifying.
Actually you revealed 3 issues I fixed now:

  1. Incorrect message format in extensions
  2. Free memory detection does not work in
    On stretch
  3. Free disk detection does not work if backup space is a mounted nfs drive

@framps framps added fixed in next release and removed to be verified Request was accepted and implemented and waiting for requestor verification of fix fixed Issue fixed labels Oct 24, 2018
@hillebr
Copy link

hillebr commented Oct 25, 2018

Hi framp,
I just tried to fix the issue with empty MEM messages with (free -m | grep "Mem" | cut -b 20-) when I read that you`ve already fixed it with (free -m | grep "Mem:" | awk '{print $2,$3}')
But: Shouldn't it be (free -m | grep "Mem:" | awk '{print $3,$4}') if your message is Used: %1 MB Free: %2 MB?

I think $2 is total, $3 is used and $4 is free mem?!

@framps
Copy link
Owner

framps commented Oct 25, 2018

Hello hillebr,

good catch 👍 You are right. I updated the retrieval of used and free memory in the extension just now and also eliminated the awk usage just to extract values. There is a plain bash way available to get this done 😃

@framps framps added the beta Issues on any beta code label Oct 28, 2018
@framps framps closed this as completed Jan 12, 2019
@pchristod
Copy link
Author

Hello @framps
I know this Github Issue is quite old, however I'm re-using it for simplictiy sake. I upgraded an hour ago to 0.6.5 with config merge and been testing with raspiBackup.sh -F if everything still works. I'm still using the old Sample Extensions you provided, mainly because I like see the free Space on my Backup Drive at a quick glance in the E-Mail, also CPU and Mem. However with 0.6.5 I don't see any output of any of the Extensions. Do you know if they are still supported?

@framps
Copy link
Owner

framps commented May 10, 2020

Hello @pchristod,

they should still work with 0.6.5. Frankly the extensions are not part of the regressiontest for raspiBackup. Please create a new issue for this 😃

@pchristod
Copy link
Author

pchristod commented May 10, 2020

Hey @framps

thanks. And sorry, totally my fault. I downloaded the zip file from your website and saw that you actually updated them in March 2020. I had an old version from 2018. That god rid of the issue. Must have missed that they got updated :/

@framps
Copy link
Owner

framps commented May 10, 2020

Yes, there was an update of the extensions because the message format changed. Actually the extensions are not part of the raspiBackup shipment because they are just sample extensions and thus there is no version checking and any update during upgrade.

Glad you find the root cause for your issue. If you're fine now please close the issue.

@pchristod
Copy link
Author

Thanks, that makes sense.

Hm, for me this issue is still closed, I didn't reopen it actually so it should be ok :)

Have a good evening.

@framps
Copy link
Owner

framps commented May 10, 2020

Ouch ... my fault. Sorry about this. I usually work on open issues the day long - that's why I missed this issue is already closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Issues on any beta code bug Issue accepted as a bug
Projects
None yet
Development

No branches or pull requests

3 participants