Hello, we ran into a serious issue today. We have a metered license and are self-hosting the Aspose.Words through docker compose. The license and the keys have been the same since 2021.
We also upgraded the docker container recently - maybe that is the issue.
Anyway - we are having “Evaluation Only. Created with Aspose.Words…” text on our PDFs that are converted from DOCX files.
This is a very bad thing for our business and need to resolve this ASAP.
Should we revert the container or is it possible to use some kind of other license type? Can it be that the error happens as Aspose’s API to check for license is unstable and therefore giving this result?
Thank you for the help
@rainitavokaado There were no problems with Containerize.Purchase API recently. The last incident was Friday 12th January 2024:
You can track status here
https://status.containerize.com/
The problem also might be caused by too many request form your side. The license should be applied only once per application domain. For example, you can apply the license on application start or in a static constructor of the main class.
Also, you are using metered license, which makes call to our server to verify license. Too many request to the license verification service might cause rejection of the further requests.
Looking at the logs, there were not many requests. We only have one docker container running and serving the requests. At the moment i downgraded the Aspose.Words container and we are using the oldone, as we cannot risk having a watermark for our customers. The new container also does not log anything for us to debug. Can we somehow debug this or find out what is causing this?
We see this as a huge issue. The feature we are using is to convert docx to PDF and nothing else.
So also the question is, what can we do to mitigate it? Can we change the licensing, buy in bulk or do something else?
@rainitavokaado I asked my colleagues who work on metered licensing mechanism to take a look whether there were some problems.
Normally it is enough to apply the metered license once on application start. However, if the metered licensing mechanism fails to communicate with the Aspose servers for 24 hours, Aspose.Words will exit licensed mode and switch to evaluation mode. To avoid such case, you should regularly check the license status – if Aspose.Words turns into evaluation mode, please apply the metered license again. You can check whether the license is set using the following code:
private static bool IsLicensed()
{
const string testString = "test";
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Write(testString);
using (MemoryStream ms = new MemoryStream())
{
doc.Save(ms, SaveFormat.Docx);
ms.Position = 0;
doc = new Document(ms);
}
string test = doc.ToString(SaveFormat.Text).Trim();
return test == testString;
}
Hello,
we do not implement any code on our side. We just use the ready-made docker container and the API it publishes. We just send in the HTTP request with the docx data and get PDF back. We have no necessity to modify the code in there. Is it possible to log this information out?
Example
AsposeWordsCloud:
image: aspose/words-cloud
ports: [ "8082:80" ]
volumes: [
"/opt/fonts:/fonts",
"/data/aspose:/data",
]
environment:
"User": "xxx"
"Password": "xxx"
"LicensePublicKey": "xxx"
"LicensePrivateKey": "xxx"
@rainitavokaado Do you use Aspose.Words for Cloud version? Or the ready-made docker container is created using on premises version of Aspose.Words?
Hello, yes, we have the ready-made docker container hosted on-premise with a metered license. The issue started occurring after upgrading the docker image yesterday. Docker
@rainitavokaado Your question is related to Aspose.Words for Cloud. I will move your request to the appropriate forum.