Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portainer: ERROR! HiveMQ Home Folder Permissions not correct. #543

Open
speckenbuettel opened this issue Aug 30, 2024 · 5 comments
Open

Comments

@speckenbuettel
Copy link

Hello,

I tried to run the Docker image in Portainer, with the port mapping as per instruction and no other settings changed.

But it won't run, in the log I receive this error message:

HiveMQ Edge Start Script for Linux/Unix v1.13
ERROR! HiveMQ Home Folder Permissions not correct.

Any idea how to fix this?

Thanks and best regards,
Falk

@DC2-DanielKrueger
Copy link
Contributor

Hello @speckenbuettel ,

What version did you try to run?

best regards,

Daniel

@speckenbuettel
Copy link
Author

Hi Daniel,

I had pulled the "latest" image from Docker Hub on that day.

Thanks and best regards,
Falk

@DC2-DanielKrueger
Copy link
Contributor

We have automated tests for docker image. Nevertheless I tried to run 2024.6/2024.7 and it worked as expected. Could it be Portainer specific? I have no experience with this. Also the latest tag could get you an old image if it present in the local docker environment and no new pull is issued.

Can you please try to pin the version like this and run it in your Portainer environment? It works for me in docker:
docker run --name hivemq-edge -p 1883:1883 -p 8080:8080 -a STDOUT hivemq/hivemq-edge:2024.7

it also prints out the STD_OUT, so you do not need to connect to the container.

Thank you for your help and best regards,
Daniel

@codepitbull
Copy link
Contributor

I just tested with a local Portainer-instance using my local docker-installation.
Following our docs I was able to deploy hivemq-edge without a hitch using:

  • image hivemq/hivemq-edge:latest
  • port 1183:1883
  • port 8080:8080

Log is clean and the broker is usable.

Can you provide additional information about your environment:

  • Portainer version and edition
  • Linux/Mac OS X/Windows/Cloud ...
  • Logs from Portainer

Whatever else you can get.

@MkKiefer
Copy link

I have the same issue on an ArmV7 device using the following command without portainer:

  • docker run --name hivemq-edge -d -p 1883:1883 -p 8080:8080 hivemq/hivemq-edge

doing the same on a ArmV8 device worked for me without any issues.

Tested the following version:

  • 2024.7
  • 2024.5

Log on ArmV7:

Getting bind address from container hostname
setting bind address to x.x.x.x
-------------------------------------------------------------------------
  _    _ _           __  __  ____             _                          
 | |  | (_)         |  \/  |/ __ \           | |                         
 | |__| |___   _____| \  / | |  | |   ___  __| | __ _  ___               
 |  __  | \ \ / / _ \ |\/| | |  | |  / _ \/ _` |/ _` |/ _ \              
 | |  | | |\ V /  __/ |  | | |__| | |  __/ (_| | (_| |  __/              
 |_|  |_|_| \_/ \___|_|  |_|\___\_\  \___|\__,_|\__, |\___|              
                                                __/ |                    
-------------------------------------------------------------------------
HiveMQ Edge Start Script for Linux/Unix v1.13
ERROR! HiveMQ Home Folder Permissions not correct.

Log on ArmV8:

Getting bind address from container hostname
setting bind address to x.x.x.x
-------------------------------------------------------------------------
  _    _ _           __  __  ____             _                          
 | |  | (_)         |  \/  |/ __ \           | |                         
 | |__| |___   _____| \  / | |  | |   ___  __| | __ _  ___               
 |  __  | \ \ / / _ \ |\/| | |  | |  / _ \/ _` |/ _` |/ _ \              
 | |  | | |\ V /  __/ |  | | |__| | |  __/ (_| | (_| |  __/              
 |_|  |_|_| \_/ \___|_|  |_|\___\_\  \___|\__,_|\__, |\___|              
                                                __/ |                    
-------------------------------------------------------------------------
  HiveMQ Edge Start Script for Linux/Unix v1.13
-------------------------------------------------------------------------
  HIVEMQ_HOME: /opt/hivemq
  JAVA_OPTS: -XX:+UnlockExperimentalVMOptions -XX:+UseNUMA -Djava.net.preferIPv4Stack=true --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED --add-exports java.base/jdk.internal.misc=ALL-UNNAMED -Djava.security.egd=file:/dev/./urandom -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Duser.language=en -Duser.region=US -XX:+CrashOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError
  JAVA_VERSION: 11
-------------------------------------------------------------------------
2024-11-20 12:54:42,906 [main] INFO com.hivemq.HiveMQEdgeMain#main - Starting HiveMQ Edge...
2024-11-20 12:54:43,536 INFO  - Log Configuration was overridden by /opt/hivemq/conf/logback.xml
LOGBACK: No context given for ch.qos.logback.core.read.ListAppender[null]
2024-11-20 12:54:43,071 INFO  - HiveMQ Edge Version: 2024.7
2024-11-20 12:54:43,071 INFO  - HiveMQ home directory: /opt/hivemq
...
<more>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants