Code Monkey home page Code Monkey logo

Comments (12)

beeyev avatar beeyev commented on September 14, 2024

Look into your device log, what does it say ?

from mikrotik-routeros-automatic-backup-and-update.

adv2020 avatar adv2020 commented on September 14, 2024

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.

beeyev avatar beeyev commented on September 14, 2024

did you set a correct name to the script ?
it has to be BackupAndUpdate

from mikrotik-routeros-automatic-backup-and-update.

adv2020 avatar adv2020 commented on September 14, 2024

Yes. The script partially works. It sends the backup files, but it doesn't update the firmware.

from mikrotik-routeros-automatic-backup-and-update.

beeyev avatar beeyev commented on September 14, 2024

The script was updated, try again please.

from mikrotik-routeros-automatic-backup-and-update.

adv2020 avatar adv2020 commented on September 14, 2024

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.

adv2020 avatar adv2020 commented on September 14, 2024

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.

adv2020 avatar adv2020 commented on September 14, 2024

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.

4ingiz avatar 4ingiz commented on September 14, 2024

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.

beeyev avatar beeyev commented on September 14, 2024

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.

adv2020 avatar adv2020 commented on September 14, 2024

I confirm it works now! Thanks for sharing!

from mikrotik-routeros-automatic-backup-and-update.

beeyev avatar beeyev commented on September 14, 2024

Yes, I have rewritten the whole script.

from mikrotik-routeros-automatic-backup-and-update.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.