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

ERROR Could not register mbeans java.security.AccessControlException: access denied ("javax.management.MBeanTrustPermission" "register") #29

Closed
mark-monserrat opened this issue Dec 2, 2017 · 5 comments
Assignees

Comments

@mark-monserrat
Copy link

ERROR Could not register mbeans java.security.AccessControlException: access denied ("javax.management.MBeanTrustPermission" "register")

But I already created a PR for this issue... see #28

@khezen
Copy link
Owner

khezen commented Dec 3, 2017

I am unable to reproduce the issue with the following test:

docker-compose up

here is my docker-compose.yml

version: '2'
services:
    elasticsearch:
        image: khezen/elasticsearch
        environment:
            ELASTIC_PWD: changeme
            KIBANA_PWD: changeme
            TS_PWD: changeme
        volumes:
            - es_data:/elasticsearch/data
            - es_config:/elasticsearch/config
        ports:
             - "9200:9200"
             - "9300:9300"
        networks:
            - elk
        restart: always

    kibana:
        links:
            - elasticsearch
        image: khezen/kibana
        environment:
            KIBANA_PWD: changeme
            ELASTICSEARCH_HOST: elasticsearch
            ELASTICSEARCH_PORT: 9200
        volumes:
            - kibana_config:/opt/kibana-6.0.0-linux-x86_64/config
            - es_config:/etc/elasticsearch
        ports:
             - "5601:5601"
        networks:
            - elk
        restart: always

volumes:
  es_config:
    driver: local
  es_data:
    driver: local
  kibana_config:
    driver: local

networks:
  elk:
    driver: bridge

If you tell me how you run elasticsearch I may be able to help you.

@someone1
Copy link

someone1 commented Dec 14, 2017

I noticed this error too. It only occurrs when I map a local folder to the config directory.

Another oddity: when no volume is mapped, the container has a jvm.options file in the /elasticsearch/config directory, but this is not created if you map a volume there. The file looks auto-generated and includes the -Dlog4j2.disable.jmx=true which I believe addresses the issue reported here. Check this issue as a reference.

@kleptog
Copy link

kleptog commented Jan 31, 2018

Just a tip, I copied and pasted the compile file posted by @khezen I got the error the OP got. However, when I changed the path of kibana_config to /opt/kibana-6.1.1-linux-x86_64/config to match the versions actually running it worked fine.

@liangkiller
Copy link

pls try :
vi $JAVA_HOME/jre/lib/security/java.policy
and add the :
permission javax.management.MBeanTrustPermission "register";

@khezen
Copy link
Owner

khezen commented Jan 16, 2019

inactivity

@khezen khezen closed this as completed Jan 16, 2019
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

5 participants