Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-9460

Running activemq-classic via docker does not allow access to web console

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.0.1
    • 6.1.1
    • Broker, Docker
    • None

    Description

      I cannot use the web console when running via docker

      docker run -d -p 61616:61616 -p 8161:8161 apache/activemq-classic

      When you open localhost:8161 the web console comes up, but when you start browsing queues then the login page is shown. But admin/admin does not work.

      It works fine in the standalone .tar you can download and run locally.

      It seems the conf/credentials.properties is corrupted in the docker image vs standalone.

      Standalone:

      ~/Downloads/apache-activemq-6.1.0/conf ❯ cat users.properties
      ## ---------------------------------------------------------------------------
      ## Licensed to the Apache Software Foundation (ASF) under one or more
      ## contributor license agreements.  See the NOTICE file distributed with
      ## this work for additional information regarding copyright ownership.
      ## The ASF licenses this file to You under the Apache License, Version 2.0
      ## (the "License"); you may not use this file except in compliance with
      ## the License.  You may obtain a copy of the License at
      ##
      ## http://www.apache.org/licenses/LICENSE-2.0
      ##
      ## Unless required by applicable law or agreed to in writing, software
      ## distributed under the License is distributed on an "AS IS" BASIS,
      ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      ## See the License for the specific language governing permissions and
      ## limitations under the License.
      ## ---------------------------------------------------------------------------
      
      admin=admin%

      And on docker:

      /opt/apache-activemq/conf
      root@8483a39f7510:/opt/apache-activemq/conf# cat users.properties
      ## ---------------------------------------------------------------------------
      ## Licensed to the Apache Software Foundation (ASF) under one or more
      ## contributor license agreements.  See the NOTICE file distributed with
      ## this work for additional information regarding copyright ownership.
      ## The ASF licenses this file to You under the Apache License, Version 2.0
      ## (the "License"); you may not use this file except in compliance with
      ## the License.  You may obtain a copy of the License at
      ##
      ## http://www.apache.org/licenses/LICENSE-2.0
      ##
      ## Unless required by applicable law or agreed to in writing, software
      ## distributed under the License is distributed on an "AS IS" BASIS,
      ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      ## See the License for the specific language governing permissions and
      ## limitations under the License.
      ## ---------------------------------------------------------------------------
      
      admin=adminroot@8483a39f7510:/opt/apache-activemq/conf#

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2.5h
                2.5h