Ad Widget

Collapse

Cannot login with docker installation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bananabr
    Junior Member
    • Mar 2015
    • 5

    #1

    Cannot login with docker installation

    Hello all,

    I am trying to bring a 3 layer (frontend,server and db) initial instalation of zabbix 3.x but I cannot pass the login page.

    Here are my docker lines:

    docker run --name zabbix-db -t \
    -e POSTGRES_USER="zabbix" \
    -e POSTGRES_PASSWORD="a4d29cf3faab2ec897f2d11e599fe23 4" \
    -e POSTGRES_DB="zabbix" \
    -v /etc/localtime:/etc/localtime:ro \
    -p 5432:5432 \
    -d postgres:latest

    docker run \
    -d \
    --name zabbix-server \
    --link zabbix-db:zabbix-db \
    --env="DB_SERVER_HOST=zabbix-db" \
    --env="POSTGRES_DB=zabbix" \
    --env="DB_SERVER_PORT=5432" \
    --env="POSTGRES_USER=zabbix" \
    --env="ZBX_DEBUGLEVEL=3" \
    --env="ZBX_JAVAGATEWAY_ENABLE=false" \
    --env="POSTGRES_PASSWORD=a4d29cf3faab2ec897f2d11e599 fe234" \
    -v /etc/localtime:/etc/localtime:ro \
    -p 10051:10051 \
    -p 162:162/udp \
    zabbix/zabbix-server-pgsql:alpine-3.0.7

    docker run \
    -d \
    --name zabbix-frontend \
    --link zabbix-db:zabbix-db \
    --link zabbix-server:zabbix-server \
    --env="ZBX_SERVER_HOST=zabbix-server" \
    --env="ZBX_SERVER_PORT=10051" \
    --env="DB_SERVER_HOST=zabbix-db" \
    --env="DB_SERVER_PORT=5432" \
    --env="POSTGRES_DB=zabbix" \
    --env="POSTGRES_USER=zabbix" \
    --env="POSTGRES_PASSWORD=a4d29cf3faab2ec897f2d11e599 fe234" \
    --env="TZ=UTC" \
    --env="ZBX_SERVER_NAME=ZABBIX_3_0_7" \
    --env="ZBX_MAXEXECUTIONTIME=300" \
    --env="ZBX_MEMORYLIMIT=512M" \
    --env="ZBX_POSTMAXSIZE=64MB" \
    -v /etc/localtime:/etc/localtime:ro \
    -p 80:80 \
    -p 443:443 \
    zabbix/zabbix-web-nginx-pgsql:alpine-3.0.7

    Now when I try to login with the default credentials Admin/zabbix the login page keeps redirecting me to itself.
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    do you have some logs ?
    http logs or container logs ?

    Comment

    • bananabr
      Junior Member
      • Mar 2015
      • 5

      #3
      @batchenr here all my docker logs.

      http://pastebin.com/dChUvKbT

      Comment

      • batchenr
        Senior Member
        • Sep 2016
        • 440

        #4
        can you add a log from inside the container of nginx log ?
        did you set the nginx some way to work with php fpm ?
        can you add zabbix log ?
        are you using https to connect to zabbix GUI ?

        Comment

        • bananabr
          Junior Member
          • Mar 2015
          • 5

          #5
          Got it solved

          @batchenr I figured out my problem yesterday. The isse was caused by this line '--env="ZBX_POSTMAXSIZE=64MB"' which should be '--env="ZBX_POSTMAXSIZE=64M" \' the extra B was causing php to parse is as bytes instead of megabytes.

          Thanks anyway!

          Comment

          Working...