@MattFox Alright, in Mango v5, the variable should be set as follows: MA_JAVA_OPTS="$JAVAOPTS -Dnashorn.args=-scripting". Thanks for your help
Posts made by Jdiaz-co
-
RE: Invoke shell commands from a Scripting environment?
-
RE: Invoke shell commands from a Scripting environment?
@MattFox said in Invoke shell commands from a Scripting environment?:
JAVAOPTS="$JAVAOPTS -Dnashorn.args=-scripting"
That's what I did, however, I still can't use the exec command. In Mango v3, it works for me, but in Mango v5, it doesn't.
-
RE: Invoke shell commands from a Scripting environment?
@MattFox In the v5 installation, there are no "ext-enabled" or "ext-available" folders, so I don't know where to place the scripts you mentioned as a solution.
-
RE: Invoke shell commands from a Scripting environment?
Good morning, I have tried to implement this solution in Mango v5.1.4, however, I find that this folder does not exist in your installation. Could you please tell me how to do it for that version?
-
Mango v5.1.4 SSL
Good afternoon, I am installing Mango v5.1.4 and I do not want it to use SSL. However, if I set ssl.on=false in mango.properties, the database does not initialize and it does not start. What is the configuration to access the web on port 8080?
-
RE: apiv3
@MattFox thanks for your help, ISO formatted It has worked correctly with the ISO timestamp format.
-
RE: apiv3
Hello, in Swagger it works, that is, it gives me a 200 status code, but in Mango the value doesn't change.
I'm using this JSON to test it.:
[
{
"xid": "MY_DP",
"dataType":"NUMERIC",
"timestamp": 184965161,
"value": 4
}, {
"xid": "MY_DP",
"dataType":"NUMERIC",
"timestamp": 184965161,
"value": 2
}
]The response is this, however, as I mentioned, the value doesn't change in Mango.
[
{
"xid": "DP_RV-BAR-1CA_bar_cmd",
"totalQueued": 1,
"totalSkipped": 0,
"result": {
"messages": [],
"valid": true,
"hasMessages": false
}
},
{
"xid": "DP_RV-BAR-1CA_status",
"totalQueued": 1,
"totalSkipped": 0,
"result": {
"messages": [],
"valid": true,
"hasMessages": false
}
}
]Thank you for assisting me.
-
RE: apiv3
@terrypacker said in apiv3:
POST rest/v3/point-value-modification/import
I've tried the POST "rest/v3/point-value-modification/import" you mentioned from Swagger, and it doesn't work for me when trying to input multiple Datapoints at once. Is there any other way?
-
RE: apiv3
Indeed, that endpoint works correctly; however, I can only send a single Datapoint in the request. My question is whether there is any endpoint where I can send multiple at once, as was possible in apiV1. I see, since I have tried that same endpoint and haven't been able to achieve it.
-
RE: apiv3
Sorry for my English. I'm currently using apiV1, but I'm considering migrating everything to apiV3, which uses Mango v5.0.2. In apiV1, there is a "PUT" function called "/point-values" that allows you to send multiple Datapoints at once. However, I see that this "PUT" in apiV3 either doesn't exist or has changed.
-
apiv3
Good morning,
I would need to know if there is a substitute for the "PUT /point-values" function that allows changing multiple datapoints at once in apiV1 by passing an array as a parameter in apiV3.
-
Docker and Mango v5.0.2
Hello, we are having issues with the installation of Mango 5 in a Docker container. When starting Mango, it doesn't proceed beyond the step "Loading Jetty web server SSL/TLS certificate from: /opt/mango/certificates/instance.p12." We are doing this using JDK-17.
This is a Dockerfile:
FROM openjdk:17-ea-17-jdk
COPY free-m2m2-core-5.0.2.zip /tmp
RUN mkdir -p /opt/mango
&& microdnf install unzip openssl
&& unzip /tmp/free-m2m2-core-5.0.2.zip -d /opt/mango
&& cd /opt/mangoENV MA_HOME /opt/mango
ENV MA_CP $MA_HOME/overrides/classes:$MA_HOME/classes:$MA_HOME/overrides/properties:$MA_HOME/overrides/lib/:$MA_HOME/lib/EXPOSE 5000
WORKDIR /opt/mango
ENTRYPOINT exec java -server -cp $MA_CP -Dma.home=$MA_HOME -Djava.library.path=$MA_HOME/overrides/lib:$MA_HOME/lib:/usr/lib/jni/:$PATH com.serotonin.m2m2.Main -
Mango crash after nightly purge
Hi,
We are having a problem, every night when mango does the data purge, mango does not restart, What could be the problem?
Thanks for your help.