traefik in docker stack does not respect _logLevel_ in config file The Next CEO of Stack OverflowHow does one remove an image in Docker?Copying files from Docker container to hostCopying files from host to Docker containerWhy is my traefik.toml file not be read by docker-compose configurationMounting volume in Azure-Container-Service not working for traefik.toml and /var/run/docker.sockWhy does Traefik not proxy new services in a Docker Swarm?traefik configuration docker + fileCannot set Traefik via “labels” inside docker-compose.ymlTemplating main Traefik config file with Dockerraspberry / docker swarm / traefik / portainer and no HTTPS

Is micro rebar a better way to reinforce concrete than rebar?

When you upcast Blindness/Deafness, do all targets suffer the same effect?

Solving system of ODEs with extra parameter

Is it professional to write unrelated content in an almost-empty email?

Why does standard notation not preserve intervals (visually)

How to install OpenCV on Raspbian Stretch?

What flight has the highest ratio of time difference to flight time?

What happened in Rome, when the western empire "fell"?

Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis

Is it okay to majorly distort historical facts while writing a fiction story?

Chain wire methods together in Lightning Web Components

I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin

Does soap repel water?

Why do remote US companies require working in the US?

Where does this common spurious transmission come from? Is there a quality difference?

Why is quantifier elimination desirable for a given theory?

Running a General Election and the European Elections together

Why the difference in type-inference over the as-pattern in two similar function definitions?

"misplaced omit" error when >centering columns

What does "Its cash flow is deeply negative" mean?

How do I align (1) and (2)?

Why is information "lost" when it got into a black hole?

Why doesn't UK go for the same deal Japan has with EU to resolve Brexit?

Why don't programming languages automatically manage the synchronous/asynchronous problem?



traefik in docker stack does not respect _logLevel_ in config file



The Next CEO of Stack OverflowHow does one remove an image in Docker?Copying files from Docker container to hostCopying files from host to Docker containerWhy is my traefik.toml file not be read by docker-compose configurationMounting volume in Azure-Container-Service not working for traefik.toml and /var/run/docker.sockWhy does Traefik not proxy new services in a Docker Swarm?traefik configuration docker + fileCannot set Traefik via “labels” inside docker-compose.ymlTemplating main Traefik config file with Dockerraspberry / docker swarm / traefik / portainer and no HTTPS










0















I have API and traefik running in separate containers. The setup (mostly) works. However, traefik does not seem to respect the logLevel settings in the config file: it only logs errors.



The relevant parts of the traefik.toml config file are:



defaultEntryPoints = ["https"]

[docker]
endpoint = "unix:///var/run/docker.sock"
swarmMode = true

logLevel = "DEBUG" # no matter what I put here, it only logs errors
[traefikLog]
filePath = "/logs/traefik.log"
...


I start the api through docker stack deploy with the docker-compose.yml file looking like:



version: '3.5'

services:
api:
...
traefik:
image: traefik
ports:
...
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# So that Traefik can listen to the Docker events
- $CODEDIR/api/traefik.toml:/etc/traefik/traefik.toml
- $LOGSDIR:/logs
deploy:
labels:
- traefik.enable=true
- trafik.backend=traefik
...


I can see that the traefik.log file is created in the correct place. However, unless there is an error, it remains empty.



Seems like I am missing something simple and obvious but so far I haven't been able to spot it...



Ideas?



As a side note: there are also other options in traefik.toml that seem to be ignored.



  • Docker 18.09.3

  • traefik docker image 1.7.9

  • debian buster









share|improve this question


























    0















    I have API and traefik running in separate containers. The setup (mostly) works. However, traefik does not seem to respect the logLevel settings in the config file: it only logs errors.



    The relevant parts of the traefik.toml config file are:



    defaultEntryPoints = ["https"]

    [docker]
    endpoint = "unix:///var/run/docker.sock"
    swarmMode = true

    logLevel = "DEBUG" # no matter what I put here, it only logs errors
    [traefikLog]
    filePath = "/logs/traefik.log"
    ...


    I start the api through docker stack deploy with the docker-compose.yml file looking like:



    version: '3.5'

    services:
    api:
    ...
    traefik:
    image: traefik
    ports:
    ...
    - "8080:8080"
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    # So that Traefik can listen to the Docker events
    - $CODEDIR/api/traefik.toml:/etc/traefik/traefik.toml
    - $LOGSDIR:/logs
    deploy:
    labels:
    - traefik.enable=true
    - trafik.backend=traefik
    ...


    I can see that the traefik.log file is created in the correct place. However, unless there is an error, it remains empty.



    Seems like I am missing something simple and obvious but so far I haven't been able to spot it...



    Ideas?



    As a side note: there are also other options in traefik.toml that seem to be ignored.



    • Docker 18.09.3

    • traefik docker image 1.7.9

    • debian buster









    share|improve this question
























      0












      0








      0








      I have API and traefik running in separate containers. The setup (mostly) works. However, traefik does not seem to respect the logLevel settings in the config file: it only logs errors.



      The relevant parts of the traefik.toml config file are:



      defaultEntryPoints = ["https"]

      [docker]
      endpoint = "unix:///var/run/docker.sock"
      swarmMode = true

      logLevel = "DEBUG" # no matter what I put here, it only logs errors
      [traefikLog]
      filePath = "/logs/traefik.log"
      ...


      I start the api through docker stack deploy with the docker-compose.yml file looking like:



      version: '3.5'

      services:
      api:
      ...
      traefik:
      image: traefik
      ports:
      ...
      - "8080:8080"
      volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      # So that Traefik can listen to the Docker events
      - $CODEDIR/api/traefik.toml:/etc/traefik/traefik.toml
      - $LOGSDIR:/logs
      deploy:
      labels:
      - traefik.enable=true
      - trafik.backend=traefik
      ...


      I can see that the traefik.log file is created in the correct place. However, unless there is an error, it remains empty.



      Seems like I am missing something simple and obvious but so far I haven't been able to spot it...



      Ideas?



      As a side note: there are also other options in traefik.toml that seem to be ignored.



      • Docker 18.09.3

      • traefik docker image 1.7.9

      • debian buster









      share|improve this question














      I have API and traefik running in separate containers. The setup (mostly) works. However, traefik does not seem to respect the logLevel settings in the config file: it only logs errors.



      The relevant parts of the traefik.toml config file are:



      defaultEntryPoints = ["https"]

      [docker]
      endpoint = "unix:///var/run/docker.sock"
      swarmMode = true

      logLevel = "DEBUG" # no matter what I put here, it only logs errors
      [traefikLog]
      filePath = "/logs/traefik.log"
      ...


      I start the api through docker stack deploy with the docker-compose.yml file looking like:



      version: '3.5'

      services:
      api:
      ...
      traefik:
      image: traefik
      ports:
      ...
      - "8080:8080"
      volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      # So that Traefik can listen to the Docker events
      - $CODEDIR/api/traefik.toml:/etc/traefik/traefik.toml
      - $LOGSDIR:/logs
      deploy:
      labels:
      - traefik.enable=true
      - trafik.backend=traefik
      ...


      I can see that the traefik.log file is created in the correct place. However, unless there is an error, it remains empty.



      Seems like I am missing something simple and obvious but so far I haven't been able to spot it...



      Ideas?



      As a side note: there are also other options in traefik.toml that seem to be ignored.



      • Docker 18.09.3

      • traefik docker image 1.7.9

      • debian buster






      docker docker-swarm traefik






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 21 at 18:06









      Ott ToometOtt Toomet

      1,370720




      1,370720






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55286672%2ftraefik-in-docker-stack-does-not-respect-loglevel-in-config-file%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55286672%2ftraefik-in-docker-stack-does-not-respect-loglevel-in-config-file%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현