License Expired on a Free Mailarchiva installation after upgrade

833 views
Skip to first unread message

stef...@gmail.com

unread,
Apr 5, 2017, 5:55:03 PM4/5/17
to MailArchiva
Hi,
I am a happy user of the free Mailarchiva product since a couple years. Thanks!
I recently upgraded from 5.0.3 to 5.0.29. First I did a WAR upgrade. Everything worked fine, but at the end the summary was saying "License Expired". I thus deleted the /var/opt/mailarchiva/tomcat/ROOT directory and went for a Major Version Upgrade, but the result was the same.

About says:

MailArchiva On-Premise license is invalid
License is expired
Licensed To Free Edition
Upgrade to MailArchiva On-Premise

License Count log says:

License Check Mailbox Sample 3/30/17 10:11 PM
MailArchiva 5.0.29
***************************************************
mailbox 01
***************************************************
Total Mailbox Count: 1
Total Licensed Mailboxes: 100000
***************************************************
Note: Not all installed mailboxes may be present above.
Use the mailbox count in your mail server as a guide.

Debug Log says:

[ERROR] license is invalid! License is expired {licensee='45 Day Trial', quantity='100000', daysleft='0', ipAddress='null'}
[ERROR] please visit us to purchase or upgrade your license.

I run on Linux Ubuntu on a hosted virtual server. Any recommendations on how to fix this "License Expired" issue? As said, before the upgrade everything was working perfectly (except for the upgrade button missing, and still missing). Automatic upgrades are also working, today it updated automatically to 5.0.30

Kind regards,
Stefano

Kurt Dillen

unread,
Apr 20, 2017, 10:02:04 AM4/20/17
to MailArchiva
I have the same issue, did an upgrade and license expired.. 

How to solve this ?   What is the work around ?  

Kurt Dillen

unread,
Apr 20, 2017, 10:12:18 AM4/20/17
to MailArchiva
I actually found a work around:   Look for the temp license file and remove it. 

I found mine in directory:  /var/opt/mailarchiva/tomcat/webapps/ROOT/WEB-INF/classes

Name of the file is: license.lic

Just restart mailarchiva and it works. 

stef...@gmail.com

unread,
Apr 20, 2017, 3:24:21 PM4/20/17
to MailArchiva
Thanks Kurt, perfect solution! So simple! I had found the license file, looked into it, but had not thought to remove it. Now I did, restarted and everything works like a charm. Thanks a lot!

systemun...@gmail.com

unread,
May 2, 2017, 9:28:13 AM5/2/17
to MailArchiva
I have upgraded MailArchiva from v5.0.25 to v5.1.2 and first it did NOT complain about an invalid license, but it did that few days later. The solution described above doesn't work (deleting license.lic).

2017-05-02 15:17:36 t.c.s.a.s.c [ERROR] exception occurred while conducting license check. license is assumed invalid.
java.lang.ExceptionInInitializerError: null
at com.stimulus.archiva.security.c.y(MailArchiva:1041)
at com.stimulus.archiva.security.c.s(MailArchiva:905)
at com.stimulus.archiva.security.c.c(MailArchiva:157)
at com.stimulus.archiva.domain.br$a.a(MailArchiva:144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: License Not Found
at com.stimulus.archiva.vs.<init>(MailArchiva:52)
at com.stimulus.archiva.vr.<clinit>(MailArchiva:28)
... 7 common frames omitted
2017-05-02 15:17:36 t.c.s.a.d.br [ERROR] error:stop:java.lang.NoClassDefFoundError: Could not initialize class com.stimulus.archiva.vr
java.lang.NoClassDefFoundError: Could not initialize class com.stimulus.archiva.vr
at com.stimulus.archiva.security.c.a(MailArchiva:1006)
at com.stimulus.archiva.security.c.s(MailArchiva:943)
at com.stimulus.archiva.security.c.c(MailArchiva:157)
at com.stimulus.archiva.domain.br$a.a(MailArchiva:144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)


2017-05-02 15:23:12 t.c.s.a.s.c [ERROR] license is invalid! ERROR {licensee='45 Day Trial', quantity='100000', daysleft='0', ipAddress='null'}
2017-05-02 15:23:12 t.c.s.a.s.c [ERROR] please visit us to purchase or upgrade your license.

license_count.txt:

Total Licensed Mailboxes: 100000
------------------------------------------------------------------

Licensee:45 Day Trial
Quantity:100000
Plan:On Premise License
Days Left:0

Any ideas?
Thanks.

systemun...@gmail.com

unread,
May 9, 2017, 3:24:41 AM5/9/17
to MailArchiva
Release Notes:
5.1.3 (9 May 2017)

[AR-1568] free users run into license issues when performing major version upgrades

Now tried to update from v5.1.2 to v5.1.4 to solve this problem but the update fails:

Please wait while the update is downloaded and installed...
Starting to perform the download...
Succeeded to perform the download.
Successfully compiled ZIP file /var/opt/mailarchiva/tomcat/temp/delta1533962168573909855.zip containing changes between the current version and update version 5.1.4.
Starting to perform the backup of the existing distribution.
Succeeded to perform the distribution.
Starting to perform the patching of the distribution.
Failed to perform the patching of the distribution.
Starting to rollback the patching of the distribution.
Succeeded to rollback the patching of the distribution.
Starting to rollback the backup of the existing distribution.
Succeeded to rollback the distribution.
Sadly, the update could not be installed.
To protect against continuous restarts, update 5.1.4 will not be attempted again until this server is manually restarted.
Failed to install update. Please manually download the latest release from the website and run the installer.
auto update ended


jamie

unread,
May 9, 2017, 3:43:00 AM5/9/17
to MailArchiva
The license issue will not be resolved unless you download and run the entire installer.
Message has been deleted

J

unread,
May 9, 2017, 10:40:46 AM5/9/17
to MailArchiva
5.0.23 was the last version that worked for me.
Every update since then ended up with an invalid license. Also 5.1.4 still has this problem. It didn't matter, if I used the auto update, the manual update or the complete installer - this made no difference.

To solve this, I did the following:

Download 5.0.23 from the mailarchiva SFTP server.
Link at the top of the page: https://www.mailarchiva.com/downloads

Install 5.0.23 manually over the existing installation (rollback to 5.0.23). Then the license should become valid again.

Hopefully the problem will be solved soon...

systemun...@gmail.com

unread,
May 9, 2017, 10:48:04 AM5/9/17
to MailArchiva
I confirm that updating to 5.1.4 by downloading and executing the installer manually doesn't solve this problem.

jamie

unread,
May 10, 2017, 3:52:15 AM5/10/17
to MailArchiva
Delete the license.lic file in C:\ProgramData\MailArchiva\ROOT\conf\license.lic or /etc/opt/mailarchiva/ROOT/license.lic. Thereafter, restart server.

systemun...@gmail.com

unread,
May 10, 2017, 4:32:03 AM5/10/17
to MailArchiva
I did the following, but the problem was not solved:

sudo mv /etc/opt/mailarchiva/ROOT/license.lic /etc/opt/mailarchiva/ROOT/license.lic.bak
sudo /etc/init.d/mailarchiva stop
sudo /etc/init.d/mailarchiva start

2017-05-10 10:00:44 t.c.s.a.s.c [ERROR] license is invalid! ERROR {licensee='45 Day Trial', quantity='100000', daysleft='0', ipAddress='null'}
2017-05-10 10:00:44 t.c.s.a.s.c [ERROR] please visit us to purchase or upgrade your license.

sudo ls -l /etc/opt/mailarchiva/ROOT/license.lic
ls: cannot access '/etc/opt/mailarchiva/ROOT/license.lic': No such file or directory

MailArchiva has not re-created the license.lic after renaming it.

Than stoped MailArchiva and run:
~/mailarchiva_dist_v5.1.4$ sudo ./install

sudo ls -l /etc/opt/mailarchiva/ROOT/license.lic
ls: cannot access '/etc/opt/mailarchiva/ROOT/license.lic': No such file or directory

But license.lic is still missing.

J

unread,
May 10, 2017, 5:56:06 AM5/10/17
to MailArchiva
There was no license.lic file in /etc/opt/mailarchiva/ROOT/
I'm using Ubuntu 16.04 Server with Apache 2.4.18.
Here the license.lic file was located in /var/opt/mailarchiva/tomcat/webapps/ROOT/WEB-INF/classes/
So I removed the file license.lic from this folder and restarted mailarchiva. After login the license was instantly marked as invalid in the web interface.
I stopped mailarchiva, manually installed 5.1.4 after that and also installed the update to 5.1.5. I also tried to copy the newer license file manually from the 5.1.4 install directory ~/mailarchiva_dist_v5.1.4/mailarchiva/server/webapps/ROOT/WEB-INF/classes to the /var/opt/mailarchiva/tomcat/webapps/ROOT/WEB-INF/classes/ manually - this works for a few seconds and then the license becomes invalid because of a General error.
I re-installed 5.0.23 and this works immediately without any issues.

jamie

unread,
May 10, 2017, 6:20:49 AM5/10/17
to MailArchiva
I would like to get to the bottom of this, since we cannot reproduce in the lab. please install http://www.mailarchiva.com/supportapp, send a PIN and a session key to support at mailarchiva dot com

J

unread,
May 10, 2017, 7:46:02 AM5/10/17
to MailArchiva
I do not have a PC available at the moment. Is there a Mac version of the support app?
Just one other question: What would be the correct location of the license.lic file in 5.1.x?
Message has been deleted

AV

unread,
May 10, 2017, 8:56:21 AM5/10/17
to MailArchiva
i have exactly the same Problems with an newer Version as 5.0.23 on ubuntu 16.04.
Message has been deleted

wolfg...@googlemail.com

unread,
May 10, 2017, 5:24:46 PM5/10/17
to MailArchiva
I have the same Problem . V5.0.23 Works, Update to 5.1.X license is General error.
Ubuntu 16.04

jamie

unread,
May 11, 2017, 5:43:48 AM5/11/17
to MailArchiva
Can anyone install http://www.mailarchiva.com/supportapp send a PIN and a session key to support at mailarchiva dot com? Alternatively, download teamviewer from the teamviewer website.

jamie

unread,
May 11, 2017, 5:58:05 AM5/11/17
to MailArchiva
Ok. I am able to reproduce. This issue will be resolved shortly with a software update.

J

unread,
May 11, 2017, 6:36:56 AM5/11/17
to MailArchiva
Thank you for your support.

jamie

unread,
May 11, 2017, 1:42:59 PM5/11/17
to MailArchiva
Please update to v5.1.6  to have the general error problem resolved. Sorry for the delays in getting to a resolution.

AV

unread,
May 11, 2017, 3:49:49 PM5/11/17
to MailArchiva
It works, Thank you
Reply all
Reply to author
Forward
0 new messages