Comments (12)
Look into your device log, what does it say ?
from mikrotik-routeros-automatic-backup-and-update.
The last two lines in the log:
Bkp&Upd: script "Mikrotik RouterOS automatic backup & update" completed it's job.
sent <Bkp&Upd: Backup completed - MikroTik. New RouteOS is going to be installed! v.6.45.7-> v.6.46.4>to xxxxx@xxxx
from mikrotik-routeros-automatic-backup-and-update.
did you set a correct name to the script ?
it has to be BackupAndUpdate
from mikrotik-routeros-automatic-backup-and-update.
Yes. The script partially works. It sends the backup files, but it doesn't update the firmware.
from mikrotik-routeros-automatic-backup-and-update.
The script was updated, try again please.
from mikrotik-routeros-automatic-backup-and-update.
Still doesn't work. I have the same behavior. Do you think it has to be related to some Mikrotik models? I'm testing it on a RouterBOARD D52G-5HacD2HnD-TC
from mikrotik-routeros-automatic-backup-and-update.
Here are the last lines of the log;
08:12:12 script,info Bkp&Upd: script "Mikrotik RouterOS automatic backup & update" started.
08:12:12 script,info Bkp&Upd: Performing the first step.
08:12:12 script,info Bkp&Upd: Creating system backups.
08:12:12 script,info Bkp&Upd: System backup created. MikroTik...v6.45.7.stable.2020apr11-081212.backup
08:12:15 script,info Bkp&Upd: Config file was exported. MikroTik...v6.45.7.stable.2020apr11-081212.rsc
08:12:15 script,info Bkp&Upd: Checking for new RouterOS version. Current version is: 6.45.7
08:12:21 script,info Bkp&Upd: New RouterOS is available! 6.46.5
08:12:21 script,info Bkp&Upd: Sending email with backups in attachment.
08:12:26 script,info Bkp&Upd: script "Mikrotik RouterOS automatic backup & update" completed it's job.\r
08:12:26 script,info
08:12:41 e-mail,info sent <Bkp&Upd: Backup completed - MikroTik. New RouterOS is going to be installed! v.6.45.7 -> v.6.46.5> to xxxxx@xxxx
from mikrotik-routeros-automatic-backup-and-update.
I tested the script on a 2011L model and it worked. So the problem is with RouterBOARD D52G-5HacD2HnD-TC.
from mikrotik-routeros-automatic-backup-and-update.
I got this problem too. But I fix it. If you add “:delay 15s;” at line 297 it start work ok.
It’s because “[/tool e-mail get last-status]“ return “in progress”.
But after add delay it’s return "succeeded"
У меня так же появилась такая проблема через 2 месяца после использования.
“[/tool e-mail get last-status]“ возвращал статус “in progress”.
После добавления задержки 10-15 сек в строке 297, стало работать нормально.
Скрипт быстрее доходила до строки 299 чем система отправляла письмо и давала статус "succeeded"
from mikrotik-routeros-automatic-backup-and-update.
I got this problem too. But I fix it. If you add “:delay 15s;” at line 297 it start work ok.
It’s because “[/tool e-mail get last-status]“ return “in progress”.
But after add delay it’s return "succeeded"У меня так же появилась такая проблема через 2 месяца после использования.
“[/tool e-mail get last-status]“ возвращал статус “in progress”.
После добавления задержки 10-15 сек в строке 297, стало работать нормально.
Скрипт быстрее доходила до строки 299 чем система отправляла письмо и давала статус "succeeded"
There was a delay for a 5 seconds, but as appeared it was not enough.
I have changed this delay to the 30s in a new commit, just to be sure.
Thank you for your investigation! I really appreciate that!
from mikrotik-routeros-automatic-backup-and-update.
I confirm it works now! Thanks for sharing!
from mikrotik-routeros-automatic-backup-and-update.
Yes, I have rewritten the whole script.
from mikrotik-routeros-automatic-backup-and-update.
Related Issues (20)
- Comma in Identity
- execute doesn't passing local variable
- Mikrotik model name.
- Adding Public IP to email details HOT 3
- Subject to contain date HOT 4
- Invalid Body.......... HOT 4
- Suggestion: Missed schedule backup time HOT 1
- Suggestion: Disabling the "Auto backup before updating" feature.
- Change the date format for ROS 7.1 and early. HOT 1
- Telegram notification HOT 2
- Not updating firmware on second action! HOT 3
- Mikrotik 7.12 Breaking Changes HOT 4
- ROS 7.13 - invalid BODY error HOT 1
- Script error at email check for RouterOS 7.12.1 HOT 5
- How about an option/variable to extend the time waiting for export to complete HOT 1
- Failure since update to RouterOS 7.14.2 HOT 11
- Script error for RouterOS 7.15 HOT 9
- Script does not work on a CloudHostetRouter HOT 6
- New script version note
- scriptVersion HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mikrotik-routeros-automatic-backup-and-update.