beeyev / Mikrotik-RouterOS-automatic-backup-and-update

Script sends backups to email and keep your mikrotik firmware up to date.
MIT License
433 stars 83 forks source link

Failure since update to RouterOS 7.14.2 #52

Closed amp88759 closed 3 months ago

amp88759 commented 5 months ago

Receive the error message in the email:

Mikrotik couldn't get any information about new RouterOS from server!

amp88759 commented 5 months ago

I have manually run the script and it appears to be fully functional now. I will wait for the automatic backup and update tomorrow morning to see if the script fails again.

Penticore commented 5 months ago

Receive the error message in the email:

Mikrotik couldn't get any information about new RouterOS from server!

Same here but it happened just after 7.14.1. I can run it manually but the scheduled version is broken.

02:00:00 script,info Bkp&Upd: script "Mikrotik RouterOS automatic backup & update" started.
02:00:00 script,info Bkp&Upd: Script Mode: osupdate, forceBackup: false
02:00:01 fetch,info Download from ipv4.mikrotik.ovh FINISHED
02:00:01 script,info Bkp&Upd: Performing the first step.
02:00:01 script,info Bkp&Upd: Checking for new RouterOS version. Current version is: 7.14.2
02:00:11 script,warning Bkp&Upd: There is a problem getting information about new RouterOS from server.
Penticore commented 5 months ago

I checked the command from the code and the last one has an empty result:

/system package update check-for-updates
            channel: stable
  installed-version: 7.14.2
     latest-version: 7.14.2
             status: System is already up to date

/system package update get latest-version
Penticore commented 5 months ago

Here is the test from this evening:

02:00:00 script,info Bkp&Upd: script "Mikrotik RouterOS automatic backup & update" started.
02:00:00 script,info Bkp&Upd: Script Mode: osupdate, forceBackup: false
02:00:01 fetch,info Download from ipv4.mikrotik.ovh FINISHED
02:00:01 script,info Bkp&Upd: Performing the first step.
02:00:01 script,info Bkp&Upd: Checking for new RouterOS version. Current version is: 7.14.2
02:00:10 script,warning Bkp&Upd: There is a problem getting information about new RouterOS from server.
02:00:10 script,info Bkp&Upd: Checking If the script needs to create a backup.
02:00:10 script,info Bkp&Upd: There is no need to create a backup.
02:00:10 script,info Bkp&Upd: Sending email message, it will take around half a minute...
02:00:12 e-mail,info sent <Bkp&Upd: Device - azurea. Error: No data about new RouterOS!> to: asd@asd
02:00:41 script,info Bkp&Upd: script "Mikrotik RouterOS automatic backup & update" completed it's job.r
02:00:41 script,info 
02:01:05 script,info 
02:01:05 script,info Bkp&Upd: script "Mikrotik RouterOS automatic backup & update" started.
02:01:05 script,info Bkp&Upd: Script Mode: osupdate, forceBackup: false
02:01:06 fetch,info Download from ipv4.mikrotik.ovh FINISHED
02:01:06 script,info Bkp&Upd: Performing the first step.
02:01:06 script,info Bkp&Upd: Checking for new RouterOS version. Current version is: 7.14.2
02:01:13 script,info Bkp&Upd: System is already up to date.
02:01:13 script,info Bkp&Upd: Checking If the script needs to create a backup.
02:01:13 script,info Bkp&Upd: There is no need to create a backup.
02:01:13 script,info Bkp&Upd: script "Mikrotik RouterOS automatic backup & update" completed it's job.r
Penticore commented 5 months ago

The 02:00 one is the scheduled run. The 02:01 one is the manual try.

Penticore commented 5 months ago

note: The script works fine on the old switches (CRS125 - mipsbe), but not on the newer routers (RB4011 - arm and ccr1009 - tile).

proteus88 commented 5 months ago

Same problem, sometimes works sometimes its not working but it always works if I run the script manually.

When the schedule runs I get "Bkp&Upd: There is a problem getting information about new RouterOS from server."

Penticore commented 5 months ago

It's fixed. I have recreated the scrips on the routers from scratch and it's working well.

proteus88 commented 5 months ago

I did put the updated script a few days ago because of this problem, its the same for me. I only added email and password.

Maybe smth on mikrotik side when its trying to check for updates.

beeyev commented 5 months ago

Also, ensure that the script is not scheduled for on-the-hour times, such as 13:00 or 17:00, because MikroTik servers are highly loaded during those periods. It's preferable to schedule the script at random minutes, like 13:46, for example.

proteus88 commented 5 months ago

Yep, it was the time schedule, changed to something else and its ok now... and 5:00AM GMT+2 is not a good time to auto update . 😄