Hi Nicholas

Airflow will first try to find logs locally if none are found, it will try
to find them in s3 or gcs.
The only drawback is that you won't see the logs of tasks that are
currently running if you only push logs in S3. see documentation
<https://airflow.incubator.apache.org/configuration.html#logs>

It's hard to give you a good answer did you use this image :
https://github.com/puckel ?

Here is two workarounds :

- If you take this approach using S3, I highly recommend this post
<https://stackoverflow.com/questions/39997714/airflow-s3-connection-using-ui>
the configuration is a little bit tricky.
- You can also mount a volume  on /usr/airflow/logs so the logs will be
shared across your instances.

For the volume I will choose an elastic file system because I don't know if
logs are trimmed or rotated in airflow see:
https://stackoverflow.com/questions/43548744/removing-airflow-task-logs


Best,

Nolan


On Mon, Aug 21, 2017 at 11:16 AM, Nicholas Hodgkinson <
[email protected]> wrote:

> All,
>
> I've got a problem I'm trying to solve where I've expanded my Airflow
> machine into a cluster; this itself works, however I'm having a problem
> with the accessing the logs through the UI. I know this is due to the fact
> that I run my airflow workers (and other processes) inside docker
> containers. I get this error when trying to access logs:
>
> *** Log file isn't local.
> *** Fetching here:
> http://f6400f7aea88:8793/log/cjob/queue/2017-08-18T22:44:09.334353
> *** Failed to fetch log file from worker.
>
> Now I understand that "f6400f7aea88" is the address of the docker container
> within docker, however this is not running on the same machine as the
> webserver so this address can not be resolved. So my question is: how I can
> change either the address that the web UI uses or the address that the
> worker reports back?
>
> Thanks,
> -Nik
> [email protected]
>
> --
>
>          See why we are one of WSJ's Top Tech Companies to Watch
> <https://www.wsj.com/articles/collective-healths-goal-
> medical-benefits-that-work-1497492300?mg=prod/accounts-wsj>
>
> *This message may contain confidential, proprietary, or protected
> information.  If you are not the intended recipient, you may not review,
> copy, or distribute this message. If you received this message in error,
> please notify the sender by reply email and delete this message.*
>

Reply via email to