Mailu: LOG_DRIVER=journald no longer works in 1.6

Created on 24 Feb 2019  路  4Comments  路  Source: Mailu/Mailu

Hi all,

I've upgrade from 1.5 to 1.6 one week ago.

LOG_DRIVER with 1.5 was OK (journald), but now with 1.6 I've a problem with it.
I've set LOG_DRIVER=journald in my mailu.env but nothing appear in the logs on my host.
I've test with option syslog but same appear.

The previous issue in 1.5 for this option was #584.

Thanks for the investigation.

journalctl -b CONTAINER_NAME=mailu_front_1
-- No entries --

Most helpful comment

Hi, I've experienced the same behavior and I've found the docker-compose.yml file contains a hard reference to the logging driver:

# Core services
  front:
    image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}nginx:${MAILU_VERSION:-1.6}
    restart: always
    env_file: mailu.env
    logging:
      driver: json-file
    ports:
    ...
    volumes:
    ...

Seems the auto-generated docker-compose.yml no longer reads this value from the environment. Replacing json-file with journald or syslog worked fine for me.

All 4 comments

I just migrated from 1.5 to 1.6, and am able to use the journald log driver. Using the same commands I do get a log trace, so it is working for me.

Are you sure that the LOG_DRIVER setting from the mailu.env file is being used in your docker run or docker-compose command?

Hello,

I get the same error. I didn't migrate from any previous version.

Hi, I've experienced the same behavior and I've found the docker-compose.yml file contains a hard reference to the logging driver:

# Core services
  front:
    image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}nginx:${MAILU_VERSION:-1.6}
    restart: always
    env_file: mailu.env
    logging:
      driver: json-file
    ports:
    ...
    volumes:
    ...

Seems the auto-generated docker-compose.yml no longer reads this value from the environment. Replacing json-file with journald or syslog worked fine for me.

Wow, I hadn't seen this parameter, my eyes have a real problem... _I think_...

So, I added:

    logging:
      driver: journald

On all container and it works like a charm 馃憤
Now my old jails are OK:
https://github.com/Mailu/Mailu/issues/584#issuecomment-433702594

Thanks _Superman_ dixit @daniellibonati :]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SJS28092018 picture SJS28092018  路  3Comments

Thorsten1976 picture Thorsten1976  路  4Comments

Diman0 picture Diman0  路  3Comments

c-holtermann picture c-holtermann  路  3Comments

fabiorauber picture fabiorauber  路  3Comments