Airflow: How to setup log directory?
up vote
0
down vote
favorite
I upload a dag file to the web page and when I click 'Graph View' -> ${my_dag} -> 'View Log', it shows:
*** Log file isn't local.
*** Fetching here: http://:8793/log/demo_dag/hello_task/2018-11-14T15:06:00
*** Failed to fetch log file from worker.
*** Reading remote logs...
*** Unsupported remote log location.
I have checked the airflow.cfg and find these config info:
worker_log_server_port = 8793
base_log_folder = /root/airflow/logs
My question is:
- How to setup IP address for log service (Only port is setup)?
- I have setup directory for log service, why does it still go to
/log/..?
Any help is appreciated.
airflow airflow-scheduler
add a comment |
up vote
0
down vote
favorite
I upload a dag file to the web page and when I click 'Graph View' -> ${my_dag} -> 'View Log', it shows:
*** Log file isn't local.
*** Fetching here: http://:8793/log/demo_dag/hello_task/2018-11-14T15:06:00
*** Failed to fetch log file from worker.
*** Reading remote logs...
*** Unsupported remote log location.
I have checked the airflow.cfg and find these config info:
worker_log_server_port = 8793
base_log_folder = /root/airflow/logs
My question is:
- How to setup IP address for log service (Only port is setup)?
- I have setup directory for log service, why does it still go to
/log/..?
Any help is appreciated.
airflow airflow-scheduler
What is the file path to the log in/log?
– joeb
Nov 16 at 1:47
hey @joeb Thanks for your reply. The log file path is/root/airflow/logs(as in config file), but this path has full permissions (777).
– user2894829
Nov 16 at 2:43
What is the path to the file in your/logdirectory that you say has Airflow logging messages in it?
– joeb
Nov 16 at 14:03
@joeb thanks for your reply. The path is/root/airflow/logs, as shown in the config file.
– user2894829
Nov 19 at 5:21
In your second question "I have setup directory for log service, why does it still go to/log/.." -- What is the full path to the file in/log/..that you are seeing which contains Airflow logging?
– joeb
Nov 19 at 13:44
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I upload a dag file to the web page and when I click 'Graph View' -> ${my_dag} -> 'View Log', it shows:
*** Log file isn't local.
*** Fetching here: http://:8793/log/demo_dag/hello_task/2018-11-14T15:06:00
*** Failed to fetch log file from worker.
*** Reading remote logs...
*** Unsupported remote log location.
I have checked the airflow.cfg and find these config info:
worker_log_server_port = 8793
base_log_folder = /root/airflow/logs
My question is:
- How to setup IP address for log service (Only port is setup)?
- I have setup directory for log service, why does it still go to
/log/..?
Any help is appreciated.
airflow airflow-scheduler
I upload a dag file to the web page and when I click 'Graph View' -> ${my_dag} -> 'View Log', it shows:
*** Log file isn't local.
*** Fetching here: http://:8793/log/demo_dag/hello_task/2018-11-14T15:06:00
*** Failed to fetch log file from worker.
*** Reading remote logs...
*** Unsupported remote log location.
I have checked the airflow.cfg and find these config info:
worker_log_server_port = 8793
base_log_folder = /root/airflow/logs
My question is:
- How to setup IP address for log service (Only port is setup)?
- I have setup directory for log service, why does it still go to
/log/..?
Any help is appreciated.
airflow airflow-scheduler
airflow airflow-scheduler
edited Nov 16 at 0:03
cricket_007
78.3k1142109
78.3k1142109
asked Nov 15 at 8:56
user2894829
417
417
What is the file path to the log in/log?
– joeb
Nov 16 at 1:47
hey @joeb Thanks for your reply. The log file path is/root/airflow/logs(as in config file), but this path has full permissions (777).
– user2894829
Nov 16 at 2:43
What is the path to the file in your/logdirectory that you say has Airflow logging messages in it?
– joeb
Nov 16 at 14:03
@joeb thanks for your reply. The path is/root/airflow/logs, as shown in the config file.
– user2894829
Nov 19 at 5:21
In your second question "I have setup directory for log service, why does it still go to/log/.." -- What is the full path to the file in/log/..that you are seeing which contains Airflow logging?
– joeb
Nov 19 at 13:44
add a comment |
What is the file path to the log in/log?
– joeb
Nov 16 at 1:47
hey @joeb Thanks for your reply. The log file path is/root/airflow/logs(as in config file), but this path has full permissions (777).
– user2894829
Nov 16 at 2:43
What is the path to the file in your/logdirectory that you say has Airflow logging messages in it?
– joeb
Nov 16 at 14:03
@joeb thanks for your reply. The path is/root/airflow/logs, as shown in the config file.
– user2894829
Nov 19 at 5:21
In your second question "I have setup directory for log service, why does it still go to/log/.." -- What is the full path to the file in/log/..that you are seeing which contains Airflow logging?
– joeb
Nov 19 at 13:44
What is the file path to the log in
/log?– joeb
Nov 16 at 1:47
What is the file path to the log in
/log?– joeb
Nov 16 at 1:47
hey @joeb Thanks for your reply. The log file path is
/root/airflow/logs (as in config file), but this path has full permissions (777).– user2894829
Nov 16 at 2:43
hey @joeb Thanks for your reply. The log file path is
/root/airflow/logs (as in config file), but this path has full permissions (777).– user2894829
Nov 16 at 2:43
What is the path to the file in your
/log directory that you say has Airflow logging messages in it?– joeb
Nov 16 at 14:03
What is the path to the file in your
/log directory that you say has Airflow logging messages in it?– joeb
Nov 16 at 14:03
@joeb thanks for your reply. The path is
/root/airflow/logs, as shown in the config file.– user2894829
Nov 19 at 5:21
@joeb thanks for your reply. The path is
/root/airflow/logs, as shown in the config file.– user2894829
Nov 19 at 5:21
In your second question "I have setup directory for log service, why does it still go to
/log/.." -- What is the full path to the file in /log/.. that you are seeing which contains Airflow logging?– joeb
Nov 19 at 13:44
In your second question "I have setup directory for log service, why does it still go to
/log/.." -- What is the full path to the file in /log/.. that you are seeing which contains Airflow logging?– joeb
Nov 19 at 13:44
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
This can happen when the task status was manually changed (likely through the "Mark Success" option) and the task never receives a hostname value on the record.
The webserver is attempting to reach out to a server, with no name, to get logs for a task that never ran.
PS: Be careful running processes as the root user.
I don't think I changed the task status. Actually, all tasks keep running and never finished. I am trying to find reasons and logs are not available.
– user2894829
Nov 16 at 2:47
What is the status of the task that you're viewing?
– joeb
Nov 19 at 13:45
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
This can happen when the task status was manually changed (likely through the "Mark Success" option) and the task never receives a hostname value on the record.
The webserver is attempting to reach out to a server, with no name, to get logs for a task that never ran.
PS: Be careful running processes as the root user.
I don't think I changed the task status. Actually, all tasks keep running and never finished. I am trying to find reasons and logs are not available.
– user2894829
Nov 16 at 2:47
What is the status of the task that you're viewing?
– joeb
Nov 19 at 13:45
add a comment |
up vote
0
down vote
This can happen when the task status was manually changed (likely through the "Mark Success" option) and the task never receives a hostname value on the record.
The webserver is attempting to reach out to a server, with no name, to get logs for a task that never ran.
PS: Be careful running processes as the root user.
I don't think I changed the task status. Actually, all tasks keep running and never finished. I am trying to find reasons and logs are not available.
– user2894829
Nov 16 at 2:47
What is the status of the task that you're viewing?
– joeb
Nov 19 at 13:45
add a comment |
up vote
0
down vote
up vote
0
down vote
This can happen when the task status was manually changed (likely through the "Mark Success" option) and the task never receives a hostname value on the record.
The webserver is attempting to reach out to a server, with no name, to get logs for a task that never ran.
PS: Be careful running processes as the root user.
This can happen when the task status was manually changed (likely through the "Mark Success" option) and the task never receives a hostname value on the record.
The webserver is attempting to reach out to a server, with no name, to get logs for a task that never ran.
PS: Be careful running processes as the root user.
answered Nov 16 at 1:46
joeb
2,08611519
2,08611519
I don't think I changed the task status. Actually, all tasks keep running and never finished. I am trying to find reasons and logs are not available.
– user2894829
Nov 16 at 2:47
What is the status of the task that you're viewing?
– joeb
Nov 19 at 13:45
add a comment |
I don't think I changed the task status. Actually, all tasks keep running and never finished. I am trying to find reasons and logs are not available.
– user2894829
Nov 16 at 2:47
What is the status of the task that you're viewing?
– joeb
Nov 19 at 13:45
I don't think I changed the task status. Actually, all tasks keep running and never finished. I am trying to find reasons and logs are not available.
– user2894829
Nov 16 at 2:47
I don't think I changed the task status. Actually, all tasks keep running and never finished. I am trying to find reasons and logs are not available.
– user2894829
Nov 16 at 2:47
What is the status of the task that you're viewing?
– joeb
Nov 19 at 13:45
What is the status of the task that you're viewing?
– joeb
Nov 19 at 13:45
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53315630%2fairflow-how-to-setup-log-directory%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
What is the file path to the log in
/log?– joeb
Nov 16 at 1:47
hey @joeb Thanks for your reply. The log file path is
/root/airflow/logs(as in config file), but this path has full permissions (777).– user2894829
Nov 16 at 2:43
What is the path to the file in your
/logdirectory that you say has Airflow logging messages in it?– joeb
Nov 16 at 14:03
@joeb thanks for your reply. The path is
/root/airflow/logs, as shown in the config file.– user2894829
Nov 19 at 5:21
In your second question "I have setup directory for log service, why does it still go to
/log/.." -- What is the full path to the file in/log/..that you are seeing which contains Airflow logging?– joeb
Nov 19 at 13:44