I’m new to camunda.
I run an raspberry pi with debian and node-red.
My idea is to have camunda running on rasppi.
Tomcat 10.0.14 is running.
I’m on step: Choose between default and production configuration
in Camunda Platform Run | docs.camunda.org
In Putty I type: bash start.sh --production
The output gives this error message:
> 2021-12-23 23:12:13.310 INFO 4617 --- [ main] org.camunda.feel.FeelEngine : Engine created. [value-mapper: CompositeValueMapper(List(org.camunda.feel.impl.JavaValueMapper@6b143b, org.camunda.spin.plugin.impl.feel.integration.SpinValueMapper@2bd3c4)), function-provider: org.camunda.bpm.dmn.feel.impl.scala.function.CustomFunctionTransformer@1799544, clock: SystemClock, configuration: Configuration(false)]
> 2021-12-23 23:12:13.905 INFO 4617 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
> 2021-12-23 23:12:16.907 ERROR 4617 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Exception during pool initialization.
>
> org.h2.jdbc.JdbcSQLException: Fehler beim Erzeugen der Datei "/opt/camunda/camunda-h2-test-production"
> Error while creating file "/opt/camunda/camunda-h2-test-production" [90062-190]
Just guessing here - since there’s a few unknowns.
Since the permissions all appear to be root and rpi usually runs as raspberry, it looks like the directory probably doesn’t have permissions that raspberry would need to create a file in that directory.
If you do ls -altd /opt/camunda
What do you get?
I hope you’re not running Camunda as root… that wouldn’t be a good idea (though in a container world, it’s becoming pretty common thing to do: run apps as root in the container … I don’t really support that idea, and still suggest dropping to unprivileged user)
I have started as you mentioned and now the rasppi is like frozen.
I have no access to Node-red, …
The out put is:
pi@raspberrypi:/opt/camunda $ sudo ./start.sh
JAVA_HOME is not set. Unexpected results may occur.
Set JAVA_HOME to the directory of your local JDK to avoid this message.
REST API enabled
WebApps enabled
Swagger UI enabled
Invoice Example included - needs to be enabled in application configuration as well
classpath: ./internal/webapps/,./internal/rest/,./internal/swaggerui,./internal/example,./configuration/userlib/,./configuration/keystore/
That seems to suggest that the cause was in fact permissions.
You won’t need Tomcat 10 installed/running, since you can see in the log you posted that Tomcat 9.0.52 is being started.
Personally, I would be temped at this point to remove the /opt/camunda directory, and unzip the files again (this time as pi rather than root). That being said, I don’t know if your pi has enough resources to be able to run the camunda server, which is why it seems like it is frozen (likely all the CPU are pinned)
I am not an expert on how to run Camunda on a Rasperrypi! But it sounds like a nice project! If you use CamundaRun you don’t need Tomcat. From your Error Log above it seems like that you have not installed a JDK.In order to have Camunda working as expected you need to install Java and a JDK.
Looking forward to hearing more about this project
Cheers
Nele
’
thank you very much for your information.
I’ll try that, thank you.
I’m on the way to “reset” all back to the beginning and make a new start with that.
Hi @Nele,
I used the recommented procedure, but I get the message in the browser:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Sat Dec 25 15:49:06 CET 2021
There was an unexpected error (type=Not Found, status=404).
I did:
Download the camunda-bpm-run-7.16.0.tar.gz
cd /tmp/camunda → here is the camunda-bpm-run-7.16.0.tar.gz placed
I am happy that it runs now on your Raspberry! What kind of process are you orchestrating on your RasberryPi? Sounds like a nice Christmas Hacking project!
Hi @Nele,
I’m new with BPM.
I’ll try to use Camunda with Node-red.
Node-Red is running on Raspberry and is used at the moment, to aquire ambient data from micrcontrollers ESP8266 and ESP32 equipped with sensors, camera, Fritz router, … Also lights and socket can be switched by pc, smartphone or Alexa.
Aquired data are stored in a MySQL-database, this data are also used in Node-Red.
@mssib28
Glad to hear you got it sorted out!
I dusted off a Pi over the last two weeks and was trying to dig into what it would take to get your use-case running - I guess I don’t need to do that now
Your overall use-case (as described to Nele) is actually quite close to something I’ve been trying to get myself started on for a while - collecting and collating data from a set of meters. Maybe with your proof that it can be done, I’ll get it done too.