BUG: SRM Monthly report generation fails to run when set to a day greater than the month has

Currently reading
BUG: SRM Monthly report generation fails to run when set to a day greater than the month has

127
54
NAS
2x DS920+
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Linux
  2. macOS
  3. Windows
  4. other
Mobile operating system
  1. iOS
Looks like my monthly report that is scheduled to run on the 31st failed to run in April - I suspect due to there only being 30 days!

I guess there is a basic logic checking daynum, and not caclulating off end day of month.

Sadly this is a problem for those on mobile carriers who bill on different days of the month (eg 30 day billing cycles).
 

Rusty

Moderator
NAS Support
4,440
1,284
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Mine is configured to hit on the 1st of every month, so the April traffic is from 2019/04/01 - 2019/05/01 generated on the 1st of May at 00:30. Never failed.
 

fredbert

Moderator
NAS Support
Subscriber
2,976
1,178
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Logically the test would be add 1 day to today and if month is different then today is the last day of the month. Whether that's how it's done is another matter.

My method on DSM and SRM is reports are on the 1st at 00:00, but would be nice if it was 'last day of month at 23:59' as it has the right month in the file name.
 
127
54
NAS
2x DS920+
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Linux
  2. macOS
  3. Windows
  4. other
Mobile operating system
  1. iOS
To clarify:

Firstly, daily reports work fine.

Monthly report generation - if day set to 1-30 = works fine (though it doesn't in February).
If day set to 31 = works fine if 31 days in month (as it ran in March) else it doesn't run.

The expected behaviour should be to run on the last day of month if the day set > number of days in month (e.g.: run on the 30th if month has 30 days, and to run on 28th or 29th in Feb). It's clearly a coding error as it is just doing a straight day number lookup rather than applying logic according to the month. Or they need to add a 'last day of month option if the day number is strictly for that day.

The reason I need it to run on last day of month is to align with my mobile broadband billing cycle, so I can compare their record of usage to what the Synology reports (as I'm not trusting their usage reporting and wish to query it).

Reported the bug to Synology so we will see what happens.
 

fredbert

Moderator
NAS Support
Subscriber
2,976
1,178
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Fully understand your issue and reason. I originally set up weekly, monthly, and yearly reports. After the monthly didn’t trigger, like for you, I had to change to trigger just after the reporting period.

On my always on iMac I run PeakHour that monitors the SRM router using SNMP. It provides interactive history graphs which can be used to corroborate the SRM reports (even when run slightly late).

Could be something similar on other platforms
 
127
54
NAS
2x DS920+
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Linux
  2. macOS
  3. Windows
  4. other
Mobile operating system
  1. iOS
So you are a coder? :rolleyes:
No, I’m a psychologist - why so hostile? 🤔 /s

If you needed to do that, you would run the report on the first day of the month as Rusty described.
No, because the 1st of each month is actually THE SECOND DAY OF THE BILLING CYCLE. 🙄
 
127
54
NAS
2x DS920+
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Linux
  2. macOS
  3. Windows
  4. other
Mobile operating system
  1. iOS
Confirmed as a bug by Synology developers. Or, as they called it, "a design feature" o_O
 
2,026
856
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : APC Back UPS ES 700 — Mac/iOS user
Confirmed as a bug by Synology developers. Or, as they called it, "a design feature"
You said you’re a psychologist. You should convince them otherwise. That it’s not a design feature and that they should come to terms with accepting it :)
(Don’t mind me. It seems I have too much time on my hands today :censored:)
 
127
54
NAS
2x DS920+
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Linux
  2. macOS
  3. Windows
  4. other
Mobile operating system
  1. iOS
lol - I think I'd need Jedi training for that. ;-)
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

I updated my Neighbor's 2600ac PM of 9/19/21 and did not see this update as posted... So both of us are at...
Replies
2
Views
305
Same setup I have. Mesh with wired backhaul starting with a switch (multiple ones)
Replies
1
Views
351
Are you kidding? I'll be glad if SRM brings any new features at all. It's a real pity that a system that...
Replies
3
Views
1,473
  • Question
If your VM Hub is just a modem & the 2600ac is the main router then you use it in Wireless Router mode.
Replies
3
Views
449
SRM Update SRM 1.2.5-8227
Good to hear no show stopper issues, probably do this over the weekend.
Replies
6
Views
1,372

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Top