Git Product home page Git Product logo

Comments (1)

sseide avatar sseide commented on September 16, 2024

had a talk with Tildeslash about some problems around the migration from 3 to 4.

This problem here is rooted in the way MMonit does its update. For the update process the old configuration files from the 3.x directory are copied into the new (current 4.x) directory and the migration process starts than.
Running interactive the "upgrade" program asks for a new license.

upgrade -p /config/mmonit-3.7.15-alpine/
Upgrading M/Monit from /config/mmonit-3.7.15-alpine to /opt/mmonit-4.0.0 ...

***WARNING*** please wait and DO NOT INTERRUPT the process (the upgrade can take some time if your database is large)

Reading license in '/config/mmonit-3.7.15-alpine/conf/server.xml'
Copying configuration files from /config/mmonit-3.7.15-alpine/conf/ to /opt/mmonit-4.0.0/conf/ ... done
Copying uploaded files from /config/mmonit-3.7.15-alpine/docroot/uploads/ to /opt/mmonit-4.0.0/docroot/uploads/ ... done
+------------------------------------------------------------------------------+
| LICENSE EXPIRED                                                              |
|                                                                              |
| This is M/Monit version 4.0.0, released, November 17, 2023. Your license was |
| registred on April 15, 2015. Please renew your license to upgrade to this    |
| version of M/Monit.                                                          |
|                                                                              |
| When you renew your license, you'll get a year of updates for M/Monit. Once  |
| that year is up, you can renew again or continue forever using the last      |
| version of M/Monit you updated to.                                           |
|                                                                              |
| Please go to https://mmonit.com/user to renew your M/Monit license and       |
| paste your renewed license below or enter q to abort this upgrade process.   |
+------------------------------------------------------------------------------+

New License key>

Running manually you can enter your new license and the process goes on without problems.
Manually replacing the license inside the old server.xml before starting the container / upgrade process solves this.

But with your automation the old 3.x license remains in the server.xml of the old 3.x directory and is replaced after the (failed) upgrade process only inside the new 4.0 directory.

As this is a new case that did not happen for years i do not know how much to automate here or publish some workarounds in the README to do the update process manually...

from docker-mmonit.

Related Issues (19)

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.